/**
 * iGBInsider — Base Styles
 */

html {
	scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}
}

body {
	font-family: var(--font-body);
	background: var(--color-paper);
	color: var(--color-text-primary);
	font-size: var(--font-size-base);
	line-height: var(--line-height-base);
	overflow-x: hidden;
	padding-bottom: var(--height-sticky-ad);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

body.sticky-ad-hidden {
	padding-bottom: 0;
}

a {
	color: inherit;
	text-decoration: none;
	transition: color var(--transition-fast);
}

a:hover {
	color: var(--color-gold-dark);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
	outline: none;
	box-shadow: var(--focus-ring);
}

img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* Typography scale */
h1,
h2,
h3,
h4,
h5,
h6,
.heading-display {
	font-family: var(--font-heading);
	font-weight: var(--font-weight-extrabold);
	line-height: var(--line-height-tight);
	letter-spacing: var(--letter-spacing-wider);
}

h1,
.h1 {
	font-size: var(--font-size-hero);
	text-transform: uppercase;
}

h2,
.h2 {
	font-size: var(--font-size-3xl);
	text-transform: uppercase;
}

h3,
.h3 {
	font-size: var(--font-size-2xl);
}

h4,
.h4 {
	font-size: var(--font-size-xl);
}

h5,
.h5 {
	font-size: var(--font-size-lg);
}

h6,
.h6 {
	font-size: var(--font-size-md);
}

p {
	margin-bottom: var(--space-4);
}

p:last-child {
	margin-bottom: 0;
}

.lead {
	font-size: var(--font-size-md);
	line-height: var(--line-height-relaxed);
	color: var(--color-text-secondary);
}

.text-muted {
	color: var(--color-text-muted);
}

.text-small {
	font-size: var(--font-size-sm);
}

.text-uppercase {
	text-transform: uppercase;
	letter-spacing: var(--letter-spacing-wider);
}

.sr-only,
.screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.skip-link {
	position: absolute;
	top: -100%;
	left: var(--space-4);
	z-index: calc(var(--z-overlay) + 1);
	padding: var(--space-3) var(--space-5);
	background: var(--color-gold);
	color: var(--color-ink);
	font-family: var(--font-heading);
	font-weight: var(--font-weight-extrabold);
	font-size: var(--font-size-base);
	text-transform: uppercase;
	border-radius: var(--radius-sm);
}

.skip-link:focus {
	top: var(--space-4);
}

/* Prose / article body */
.prose,
.entry-content {
	font-size: var(--font-size-md);
	line-height: var(--line-height-relaxed);
	color: var(--color-text-secondary);
}

.prose > * + *,
.entry-content > * + * {
	margin-top: var(--space-5);
}

.prose h2,
.prose h3,
.prose h4,
.entry-content h2,
.entry-content h3,
.entry-content h4 {
	color: var(--color-text-primary);
	margin-top: var(--space-8);
	margin-bottom: var(--space-4);
}

.prose h2,
.entry-content h2 {
	font-size: var(--font-size-2xl);
}

.prose h3,
.entry-content h3 {
	font-size: var(--font-size-xl);
}

.prose ul,
.prose ol,
.entry-content ul,
.entry-content ol {
	padding-left: var(--space-6);
	margin-bottom: var(--space-5);
}

.prose ul,
.entry-content ul {
	list-style: disc;
}

.prose ol,
.entry-content ol {
	list-style: decimal;
}

.prose li,
.entry-content li {
	margin-bottom: var(--space-2);
}

.prose blockquote,
.entry-content blockquote {
	border-left: 3px solid var(--color-gold);
	padding: var(--space-4) var(--space-6);
	background: var(--color-gold-bg);
	font-size: var(--font-size-lg);
	font-style: italic;
	color: var(--color-text-primary);
}

.prose a,
.entry-content a {
	color: var(--color-gold-dark);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.prose a:hover,
.entry-content a:hover {
	color: var(--color-ink);
}

.prose figure,
.entry-content figure {
	margin: var(--space-8) 0;
}

.prose figcaption,
.entry-content figcaption {
	margin-top: var(--space-2);
	font-size: var(--font-size-sm);
	color: var(--color-text-muted);
	text-align: center;
}

.prose img,
.entry-content img {
	border-radius: var(--radius-md);
}

.prose table,
.entry-content table {
	width: 100%;
	font-size: var(--font-size-base);
	border: 1px solid var(--color-line);
	border-radius: var(--radius-md);
	overflow: hidden;
}

.prose th,
.prose td,
.entry-content th,
.entry-content td {
	padding: var(--space-3) var(--space-4);
	border-bottom: 1px solid var(--color-line);
	text-align: left;
}

.prose th,
.entry-content th {
	background: var(--color-ink);
	color: var(--color-white);
	font-family: var(--font-heading);
	font-weight: var(--font-weight-bold);
	text-transform: uppercase;
	font-size: var(--font-size-sm);
	letter-spacing: var(--letter-spacing-wider);
}

/* Animations */
@keyframes blink {
	0%,
	100% {
		opacity: 1;
	}

	50% {
		opacity: 0.2;
	}
}

@keyframes tickmove {
	0% {
		transform: translateX(0);
	}

	100% {
		transform: translateX(-50%);
	}
}

@keyframes sweep {
	to {
		left: 200%;
	}
}

@keyframes shine {
	to {
		left: 200%;
	}
}

@media (prefers-reduced-motion: reduce) {
	*,
	*::before,
	*::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}
