/* base.css — reset, variables, font-face, prose base, warm ivory paper */

:root {
  /* Paper */
  --c-paper:     #F5EFE3;
  --c-paper-alt: #E9E1D1;

  /* Ink */
  --c-ink:       #171513;
  --c-ink-muted: #5E5648;
  --c-stone:     #A89E8D;

  /* Primary accent */
  --c-accent:     #151621;
  --c-accent-dp:  #0C0D14;

  /* Saffron */
  --c-saffron:    #B8712D;
  --c-saffron-dp: #8F561D;
  --c-warn:       #8B5F20;

  /* Functional */
  --c-error:      #7E2320;
  --c-success:    #3D5940;
  --c-focus-ring: rgba(21, 22, 33, 0.28);

  /* Typography */
  --f-display: 'PP Editorial New', Georgia, 'Iowan Old Style', 'Apple Garamond', serif;
  --f-body:    'PP Neue Montreal', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --f-hero:        clamp(4rem, 9vw, 7.5rem);
  --f-display-xl:  clamp(3rem, 6vw, 4.5rem);
  --f-display-l:   clamp(2.2rem, 4vw, 3rem);
  --f-display-m:   clamp(1.6rem, 2.5vw, 2rem);
  --f-display-s:   1.5rem;
  --f-dropcap:     6rem;
  --f-subtitle:    1.25rem;
  --f-body-l:      1.0625rem;
  --f-body:        1rem;
  --f-body-s:      0.875rem;
  --f-caption:     0.8125rem;
  --f-label:       0.75rem;

  --r-none: 0;
  --r-sm:   3px;
  --r-md:   8px;

  --space-section:   112px;
  --space-section-m: 64px;
  --space-block:     48px;
  --space-item:      24px;
  --container:       1120px;
  --content:         840px;
  --prose:           560px;
  --gutter:          40px;
  --gutter-m:        20px;
}

@font-face {
  font-family: 'PP Editorial New';
  src: url('../fonts/pp-editorial-new.woff2') format('woff2-variations'),
       url('../fonts/pp-editorial-new.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'PP Editorial New';
  src: url('../fonts/pp-editorial-new-italic.woff2') format('woff2-variations'),
       url('../fonts/pp-editorial-new-italic.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'PP Neue Montreal';
  src: url('../fonts/pp-neue-montreal.woff2') format('woff2-variations'),
       url('../fonts/pp-neue-montreal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* Reserve scrollbar space so overflow:hidden scroll-lock doesn't shift layout */
  scrollbar-gutter: stable;
}
body {
  background: var(--c-paper);
  color: var(--c-ink);
  font-family: var(--f-body);
  font-size: var(--f-body);
  font-weight: 400;
  line-height: 1.6;
  font-feature-settings: "kern", "liga", "tnum";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* Prevent horizontal overflow caused by rogue long strings */
  overflow-x: hidden;
}

/* Prevent long URLs, emails, operator names breaking out of their containers */
p, li, dd, dt, figcaption, blockquote, h1, h2, h3, h4, h5, h6, td, th, a, span {
  overflow-wrap: anywhere;
  word-wrap: break-word;
}
/* Hero H1 and display headings — italic display allows soft-wrap only on spaces */
.wh-hero-h1, .wh-pagetitle, .wh-review-hero h1, .wh-qcard-h1 {
  overflow-wrap: break-word;
  word-wrap: break-word;
  hyphens: auto;
}

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

a {
  color: var(--c-accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  padding-bottom: 1px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
a:hover { border-bottom-color: var(--c-accent); }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--f-display);
  font-weight: 500;
  line-height: 1.08;
  margin: 0 0 var(--space-item);
  color: var(--c-ink);
}

h1 { font-size: var(--f-display-l); }
h2 { font-size: var(--f-display-m); font-weight: 500; }
h3 { font-size: var(--f-display-s); font-weight: 500; }

p  { margin: 0 0 1.1em; }

em, i { font-style: italic; }
strong, b { font-weight: 600; }

blockquote { margin: 0 0 1.5em; padding: 0; }

ul, ol { margin: 0 0 1.1em; padding-left: 1.25rem; }

hr { border: none; border-top: 1px solid var(--c-stone); margin: var(--space-block) 0; }

figure { margin: 0; }

code { font-family: var(--f-body); font-feature-settings: "tnum"; }

/* Tabular numerals throughout */
.tnum { font-feature-settings: "tnum" 1, "lnum" 1; font-variant-numeric: tabular-nums lining-nums; }

/* Kickers */
.wh-kicker {
  display: inline-block;
  font-family: var(--f-body);
  font-size: var(--f-label);
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--c-accent);
  margin: 0 0 1rem;
}

/* Prose column */
.wh-prose {
  max-width: var(--prose);
  margin-left: auto;
  margin-right: auto;
}

/* Skip link for a11y */
.wh-skip-link {
  position: absolute; left: -10000px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
  background: var(--c-accent); color: var(--c-paper);
  padding: 12px 20px; font-weight: 600;
}
.wh-skip-link:focus {
  left: 10px; top: 10px; width: auto; height: auto; z-index: 9999;
}

:focus-visible {
  outline: 2px solid var(--c-accent);
  outline-offset: 2px;
  border-radius: 2px;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* No dark mode — warm ivory is the only paper. */
@media (prefers-color-scheme: dark) {
  :root { color-scheme: light; }
}
