/* ============================================================
   Acacia — shared styles
   ============================================================ */

:root {
  /* Palette — option 0: bone / olive / terracotta / ink */
  --bone:        #F4EFE6;
  --bone-2:      #EAE3D2;
  --bone-3:      #DCD3BD;
  --olive:       #3B4A2A;
  --olive-2:     #4E5F39;
  --olive-deep:  #283319;
  --terra:       #C97B3F;
  --terra-2:     #A55A2E;
  --clay:        #8B4A23;
  --ink:         #1F1B16;
  --ink-soft:    #3A332A;
  --muted:       #6F6657;
  --hairline:    rgba(31,27,22,0.14);
  --hairline-2:  rgba(31,27,22,0.08);

  /* Type */
  --serif: "Newsreader", "Source Serif 4", Georgia, serif;
  --sans:  "IBM Plex Sans", "Helvetica Neue", Helvetica, sans-serif;
  --mono:  "IBM Plex Mono", ui-monospace, monospace;

  /* Scale */
  --pad-x: clamp(20px, 4vw, 64px);
  --col-max: 1320px;
  --gap: 28px;

  /* Density */
  --density: 1;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-feature-settings: "ss01", "tnum" 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }

::selection { background: var(--olive); color: var(--bone); }

/* ---------- Layout ---------- */
.wrap {
  max-width: var(--col-max);
  margin: 0 auto;
  padding: 0 var(--pad-x);
}
.section { padding: calc(96px * var(--density)) 0; }
.section--tight { padding: calc(60px * var(--density)) 0; }
.section--hero  { padding: calc(40px * var(--density)) 0 calc(80px * var(--density)); }

.rule { height: 1px; background: var(--hairline); border: 0; margin: 0; }
.rule--ink { background: var(--ink); height: 1px; }

/* ---------- Type system ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow .dot {
  display: inline-block; width: 6px; height: 6px; border-radius: 50%;
  background: var(--terra); margin-right: 10px; vertical-align: 2px;
}

.display {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(48px, 7.2vw, 116px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}
.display em {
  font-style: italic;
  color: var(--olive);
  font-feature-settings: "ss02";
}

h1.h-xl, .h-xl {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 5.4vw, 80px);
  line-height: 1.02;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h2.h-lg, .h-lg {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(32px, 3.6vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.015em;
  text-wrap: balance;
}
h3.h-md, .h-md {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(24px, 2.2vw, 32px);
  line-height: 1.15;
  letter-spacing: -0.012em;
}
h4.h-sm, .h-sm {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.lede {
  font-family: var(--serif);
  font-size: clamp(20px, 1.6vw, 26px);
  line-height: 1.4;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.body { font-size: 16px; line-height: 1.6; color: var(--ink-soft); }
.body p + p { margin-top: 1em; }

.muted { color: var(--muted); }
.tnum { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }
.mono { font-family: var(--mono); }

/* ---------- Buttons & links ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 48px; padding: 0 22px;
  border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500;
  letter-spacing: 0.02em;
  transition: background .18s ease, color .18s ease, transform .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn--primary { background: var(--ink); color: var(--bone); }
.btn--primary:hover { background: var(--olive); }
.btn--accent  { background: var(--terra); color: var(--bone); }
.btn--accent:hover  { background: var(--terra-2); }
.btn--ghost   { background: transparent; color: var(--ink); border: 1px solid var(--ink); }
.btn--ghost:hover   { background: var(--ink); color: var(--bone); }
.btn--olive   { background: var(--olive); color: var(--bone); }
.btn--olive:hover   { background: var(--olive-deep); }
.btn .arr { display: inline-block; transition: transform .18s ease; }
.btn:hover .arr { transform: translateX(3px); }

.link-u {
  position: relative; padding-bottom: 2px;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 100% 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .25s ease;
}
.link-u:hover { background-size: 100% 2px; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244,239,230,0.86);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hairline-2);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand__mark { width: 26px; height: 26px; }
.brand__word {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: -0.01em;
}
.nav__links { display: flex; gap: 4px; }
.nav__links a {
  padding: 10px 14px; font-size: 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .15s ease;
}
.nav__links a:hover { background: var(--bone-2); }
.nav__links a.active { background: var(--ink); color: var(--bone); }
.nav__cta { display: inline-flex; gap: 10px; align-items: center; }

@media (max-width: 880px) {
  .nav__links { display: none; }
}

/* Hamburger button */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 8px;
  transition: background .15s;
}
.nav__burger:hover { background: var(--bone-2); }
.nav__burger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--ink);
  transition: transform .2s, opacity .2s;
  transform-origin: center;
}
.nav--open .nav__burger span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav--open .nav__burger span:nth-child(2) { opacity: 0; }
.nav--open .nav__burger span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

@media (max-width: 880px) {
  .nav__burger { display: flex; }
}

/* Mobile drawer */
.nav__drawer {
  display: none;
  position: fixed;
  top: 60px;
  left: 0; right: 0;
  background: var(--bone);
  border-bottom: 1px solid var(--hairline);
  z-index: 999;
  padding: 16px 24px 24px;
}
.nav__drawer nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.nav__drawer nav a {
  padding: 12px 16px;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
  border-radius: 8px;
  transition: background .15s;
}
.nav__drawer nav a:hover { background: var(--bone-2); }
.nav__drawer nav a.active { background: var(--ink); color: var(--bone); }
.nav--open .nav__drawer { display: block; }

@media (min-width: 881px) {
  .nav__drawer { display: none !important; }
}

/* ---------- Footer ---------- */
.foot {
  background: var(--ink);
  color: var(--bone);
  padding: 80px 0 32px;
  margin-top: 80px;
}
.foot a:hover { color: var(--terra); }
.foot__top {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 56px;
  border-bottom: 1px solid rgba(244,239,230,0.14);
}
.foot__col h5 {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(244,239,230,0.6);
  margin: 0 0 18px;
}
.foot__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot__col a { font-size: 14px; }
.foot__brand .display {
  color: var(--bone);
  font-size: clamp(36px, 4vw, 56px);
  line-height: 1;
  margin: 0 0 20px;
}
.foot__brand p { color: rgba(244,239,230,0.7); font-size: 14px; max-width: 320px; }

.foot__bottom {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 28px;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  color: rgba(244,239,230,0.55);
}
.foot__colophon {
  display: flex; gap: 18px; flex-wrap: wrap;
}

@media (max-width: 880px) {
  .foot__top { grid-template-columns: 1fr 1fr; }
  .foot__brand { grid-column: 1 / -1; }
}

/* ---------- Cards & media ---------- */
.photo {
  position: relative;
  background:
    repeating-linear-gradient(135deg, rgba(31,27,22,0.06) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, var(--bone-2), var(--bone-3));
  border: 1px solid var(--hairline-2);
  display: grid; place-items: center;
  color: var(--muted);
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  overflow: hidden;
}
.photo__cap {
  position: absolute; left: 14px; bottom: 12px;
  color: var(--muted); font-family: var(--mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  background: rgba(244,239,230,0.85);
  padding: 4px 8px; border-radius: 2px;
}
.photo--dark {
  background:
    repeating-linear-gradient(135deg, rgba(244,239,230,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, #2a2620, #1a1612);
  color: rgba(244,239,230,0.5);
  border-color: rgba(244,239,230,0.1);
}
.photo--olive {
  background:
    repeating-linear-gradient(135deg, rgba(244,239,230,0.05) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, var(--olive-2), var(--olive-deep));
  color: rgba(244,239,230,0.55);
  border-color: rgba(0,0,0,0.1);
}
.photo--terra {
  background:
    repeating-linear-gradient(135deg, rgba(31,27,22,0.08) 0 2px, transparent 2px 14px),
    linear-gradient(135deg, var(--terra), var(--terra-2));
  color: rgba(255,255,255,0.7);
  border-color: rgba(0,0,0,0.1);
}

/* ---------- Stat block ---------- */
.stat { display: grid; gap: 8px; }
.stat__num {
  font-family: var(--serif);
  font-size: clamp(48px, 5.6vw, 88px);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.stat__num small { font-size: 0.42em; vertical-align: 0.7em; color: var(--muted); letter-spacing: 0; }
.stat__label {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted);
}
.stat__note { font-size: 13px; color: var(--ink-soft); line-height: 1.45; }

/* ---------- Pill & tag ---------- */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-soft);
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--terra); }

/* ---------- Marquee ticker ---------- */
.ticker {
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bone);
}
.ticker__track {
  display: inline-flex; gap: 56px;
  white-space: nowrap;
  padding: 14px 0;
  animation: ticker 60s linear infinite;
}
.ticker__track span::before {
  content: "✦"; color: var(--terra); margin-right: 56px;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ---------- Utility ---------- */
.row { display: flex; gap: var(--gap); }
.col { display: grid; gap: var(--gap); }
.center { text-align: center; }
.divider { height: 1px; background: var(--hairline); margin: 28px 0; border: 0; }
.spacer-xs { height: 8px; }
.spacer-s  { height: 16px; }
.spacer-m  { height: 32px; }
.spacer-l  { height: 64px; }
.spacer-xl { height: 96px; }

.fadein { opacity: 0; transform: translateY(12px); transition: opacity .7s ease, transform .7s ease; }
.fadein.in { opacity: 1; transform: none; }

/* ---------- Hairline grid columns ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--gap); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--gap); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--gap); }
.grid-12 { display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--gap); }
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .grid-12 { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- Page header for sub-pages ---------- */
.page-head {
  padding-top: clamp(40px, 5vw, 64px);
  padding-bottom: clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--hairline);
}
.page-head__crumb {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  white-space: nowrap;
  color: var(--muted);
  margin-bottom: 28px;
  display: flex; gap: 10px; align-items: center;
}
.page-head__crumb .sep { color: var(--terra); }
.page-head__title { margin: 0 0 24px; }
.page-head__lede { max-width: 720px; }
