/**
 * Shared typography defaults + overflow safety.
 * Loaded after tokens.css; page styles may refine but should use the scale.
 */

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-primary);
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  line-height: var(--leading-normal);
  color: var(--color-text-primary);
  background: var(--color-bg-primary);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  color: var(--color-text-primary);
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

/* Match /1win review hero scale on every hub + review page */
.page-hero h1 {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  line-height: 1.15;
}

.page-hero p {
  font-size: 0.92rem;
  line-height: 1.65;
}


p, li, td, th, label, figcaption, blockquote, dd, dt {
  overflow-wrap: break-word;
  word-break: break-word;
  max-width: 100%;
}

a {
  color: var(--color-text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-text-link-hover);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--color-primary-light);
  outline-offset: 2px;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Utility type roles */
.text-primary { color: var(--color-text-primary); }
.text-secondary { color: var(--color-text-secondary); }
.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }

.fs-2xs { font-size: var(--text-2xs); }
.fs-xs { font-size: var(--text-xs); }
.fs-sm { font-size: var(--text-sm); }
.fs-md { font-size: var(--text-md); }
.fs-lg { font-size: var(--text-lg); }
.fs-xl { font-size: var(--text-xl); }
.fs-2xl { font-size: var(--text-2xl); }

/* Shared accent patterns (hub + review pages) */
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--text-2xs);
  font-weight: var(--font-weight-bold);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-primary-light);
  margin-bottom: var(--spacing-md);
  padding: 5px 16px;
  background: var(--color-primary-a08);
  border: 1px solid var(--color-primary-a15);
  border-radius: var(--radius-full);
}

.section-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-primary-light);
  box-shadow: 0 0 8px var(--color-primary-a40);
}

.gold-text {
  display: inline-block;
  color: var(--color-primary-light);
  background-image: linear-gradient(
    135deg,
    #93c5fd 0%,
    #60a5fa 45%,
    #2563eb 100%
  );
  background-image: var(--gradient-brand-text-alt);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  padding: 0.05em 0.1em;
}

/* Beat page rules like `.hero-text h1 span { display: inline }` */
h1 .gold-text,
h2 .gold-text,
h3 .gold-text,
.hero-text h1 .gold-text,
.page-hero h1 .gold-text {
  display: inline-block;
  color: var(--color-primary-light);
  background-image: linear-gradient(
    135deg,
    #93c5fd 0%,
    #60a5fa 45%,
    #2563eb 100%
  );
  background-image: var(--gradient-brand-text-alt);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.green-text {
  color: var(--color-success);
}
