/* ═══════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════ */
:root {
  --loam:        #2A1B14;
  --parchment:   #EFE6D2;
  --parchment-2: #E4D8BC;
  --cherry:      #A5301F;
  --highland:    #435C46;
  --buni:        #C08A3E;
  --ink:         #1C130E;
  --ink-soft:    #4A3A30;

  --max-w:    1180px;
  --pad-x:    clamp(1.25rem, 5vw, 3rem);
  --radius:   4px;
  --transition: 0.28s ease;
}

/* ═══════════════════════════════════════════
   RESET & BASE
═══════════════════════════════════════════ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  /* scroll-behavior is intentionally left as 'auto' here.
     Smooth scrolling is applied via JS only on user-initiated nav clicks,
     so that page refresh with a hash URL does not animate-scroll on load. */
}

body {
  font-family: var(--font-ibm-plex-sans), 'IBM Plex Sans', sans-serif;
  background: var(--parchment);
  color: var(--ink);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--buni);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: var(--cherry); }
a:focus-visible {
  outline: 2px solid var(--buni);
  outline-offset: 3px;
  border-radius: 2px;
}

h1, h2, h3 {
  font-family: var(--font-fraunces), 'Fraunces', serif;
  font-weight: 600;
  line-height: 1.18;
}

/* ═══════════════════════════════════════════
   UTILITY CLASSES
═══════════════════════════════════════════ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.mono {
  font-family: var(--font-ibm-plex-mono), 'IBM Plex Mono', monospace;
  font-size: 0.78rem;
  letter-spacing: 0.05em;
}

.eyebrow {
  font-family: var(--font-ibm-plex-mono), 'IBM Plex Mono', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--buni);
  display: block;
  margin-bottom: 0.6rem;
}

.tag {
  font-family: var(--font-ibm-plex-mono), 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.2em 0.65em;
  border-radius: 2px;
  display: inline-block;
}
.tag--cherry   { background: var(--cherry);   color: #fff; }
.tag--buni     { background: var(--buni);     color: #fff; }
.tag--highland { background: var(--highland); color: #fff; }
.tag--outline {
  border: 1px solid var(--buni);
  color: var(--buni);
  background: transparent;
}

.section-num {
  font-family: var(--font-ibm-plex-mono), 'IBM Plex Mono', monospace;
  font-size: 0.68rem;
  color: var(--buni);
  opacity: 0.7;
  display: block;
  margin-bottom: 0.35rem;
}

.section-divider {
  width: 48px;
  height: 2px;
  background: var(--buni);
  margin-bottom: 1.6rem;
  border-radius: 2px;
}
.section-divider--light {
  background: rgba(192, 138, 62, 0.5);
}

/* ═══════════════════════════════════════════
   SCROLL REVEAL ANIMATION
═══════════════════════════════════════════ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
