/* Struck Pure Golf — site design system
   Palette from docs/brand.json: chocolate brown and dark green on cream. */

@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Regular.ttf") format("truetype"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Serif"; src: url("/assets/fonts/InstrumentSerif-Italic.ttf") format("truetype"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/Geist[wght].ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/GeistMono[wght].ttf") format("truetype"); font-weight: 100 900; font-display: swap; }

:root {
  --cream: #FEF7E7;
  --cream-2: #F6ECD6;
  --paper: #FFFBF1;
  --ink: #25170C;
  --choc: #412B1D;
  --choc-light: #6E4E3A;
  --green-black: #0D261C;
  --green-dark: #1A4C39;
  --green-mid: #267355;
  --emerald: #319B72;
  --rule: rgba(65, 43, 29, 0.16);
  --rule-strong: rgba(65, 43, 29, 0.32);
  --slope-0: #e6efd6; --slope-1: #b7d68f; --slope-2: #e9d97a; --slope-3: #eba35a; --slope-4: #cf5b45;
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 1px 0 rgba(37,23,12,.04), 0 14px 40px rgba(37,23,12,.10);
  --wrap: 1200px;
  --gutter: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  font-feature-settings: "ss01", "cv11";
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: none; }
p a, li a { text-decoration: underline; text-decoration-color: var(--rule-strong); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 820px; }

/* Type */
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; line-height: 1.02; margin: 0; }
h1 { font-size: clamp(46px, 7.2vw, 96px); }
h2 { font-size: clamp(34px, 4.6vw, 60px); }
h3 { font-size: clamp(26px, 2.6vw, 34px); line-height: 1.1; }
h1 em, h2 em, h3 em, .serif em { font-style: italic; color: var(--green-mid); }
.on-dark h1 em, .on-dark h2 em, .on-dark h3 em { color: #8FD3B4; }
.eyebrow {
  font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--green-mid); margin: 0 0 16px;
}
.on-dark .eyebrow { color: #8FD3B4; }
.lead { font-size: clamp(18px, 1.5vw, 22px); line-height: 1.5; color: var(--choc); max-width: 60ch; }
.on-dark .lead { color: rgba(254,247,231,.82); }
.muted { color: var(--choc-light); }
.on-dark .muted { color: rgba(254,247,231,.64); }
.small { font-size: 14px; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.measure { max-width: 64ch; }
.caps { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.fleuron { display: block; text-align: center; color: var(--choc-light); font-size: 18px; letter-spacing: 0; margin: 0 0 18px; }
hr.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--green-black); color: var(--cream);
  border: 1px solid var(--green-black); border-radius: 999px;
  padding: 14px 24px; font-weight: 500; font-size: 16px; line-height: 1;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.btn:hover { background: var(--green-dark); transform: translateY(-1px); box-shadow: 0 10px 24px rgba(13,38,28,.18); }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-light { background: var(--cream); color: var(--ink); border-color: var(--cream); }
.btn-light:hover { background: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule-strong); }
.btn-ghost:hover { background: rgba(37,23,12,.05); box-shadow: none; }
.on-dark .btn-ghost { color: var(--cream); border-color: rgba(254,247,231,.4); }
.on-dark .btn-ghost:hover { background: rgba(254,247,231,.08); }
.btn-small { padding: 10px 16px; font-size: 14px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254,247,231,.85); backdrop-filter: saturate(140%) blur(12px); -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--rule);
}
.nav-row { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; font-size: 13px; }
.brand img { width: 34px; height: auto; }
.brand small { display: block; font-weight: 500; letter-spacing: 0.18em; font-size: 9px; color: var(--choc-light); margin-top: 2px; }
.links { display: flex; align-items: center; gap: 28px; font-size: 15px; font-weight: 500; }
.links a:not(.btn) { position: relative; padding: 6px 0; }
.links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--emerald); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.links a:not(.btn):hover::after, .links a[aria-current="page"]::after { transform: scaleX(1); }
.burger { display: none; background: none; border: 1px solid var(--rule-strong); border-radius: 999px; padding: 8px 14px; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; min-height: 92vh; display: flex; align-items: flex-end; color: var(--cream); overflow: hidden; background: var(--green-black); }
.hero-media { position: absolute; inset: 0; }
.hero-media video, .hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(13,38,28,.10) 0%, rgba(13,38,28,.18) 45%, rgba(13,38,28,.92) 100%); }
.hero-inner { position: relative; width: 100%; padding: 120px var(--gutter) 56px; }
.hero h1 { max-width: 14ch; text-wrap: balance; }
.hero .lead { color: rgba(254,247,231,.86); margin: 22px 0 30px; }
.hero .eyebrow { color: #B9E6CF; text-shadow: 0 1px 10px rgba(13,38,28,.7); }
.hero h1 { text-shadow: 0 2px 24px rgba(13,38,28,.35); }
.hero-foot { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: baseline; margin-top: 40px; padding-top: 22px; border-top: 1px solid rgba(254,247,231,.22); font-size: 13px; color: rgba(254,247,231,.7); }
.hero-foot strong { color: var(--cream); font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; font-size: 11px; }
.hero-card { position: absolute; right: var(--gutter); top: 96px; width: 230px; background: var(--paper); color: var(--ink); border-radius: 16px; padding: 18px 18px 14px; box-shadow: var(--shadow); font-size: 14px; }
.hero-card .serif { font-size: 34px; line-height: 1; margin: 8px 0 2px; }
.hero-card table { width: 100%; border-collapse: collapse; margin-top: 10px; font-family: var(--mono); font-size: 13px; }
.hero-card td { padding: 3px 0; border-top: 1px solid var(--rule); }
.hero-card td:last-child { text-align: right; color: var(--green-dark); font-weight: 600; }

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.band-cream2 { background: var(--cream-2); }
.band-green { background: var(--green-black); color: var(--cream); }
.band-paper { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head h2 { text-wrap: balance; }
.section-head .lead { margin-top: 18px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split > * { min-width: 0; }

/* Stats strip */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 28px 0; }
.stat .num { font-family: var(--serif); font-size: clamp(36px, 4vw, 54px); line-height: 1; }
.stat .lbl { font-size: 13px; color: var(--choc-light); margin-top: 6px; }

/* Cards */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
  background: var(--paper); border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: transform .22s ease, box-shadow .22s ease;
}
a.card:hover, .card.hover:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card-media { background: var(--cream-2); aspect-ratio: 4 / 3; overflow: hidden; position: relative; }
.card-media.tall { aspect-ratio: 3 / 4; }
.card-media.wide { aspect-ratio: 16 / 10; }
.card-media img, .card-media video { width: 100%; height: 100%; object-fit: cover; }
.card-media.contain img { object-fit: contain; padding: 18px; }
.card-body { padding: 22px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-body h3 { font-size: 28px; }
.card-body p { margin: 0; color: var(--choc); }
.card-foot { margin-top: auto; padding-top: 12px; font-size: 14px; font-weight: 500; color: var(--green-mid); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: rgba(49,155,114,.14); color: var(--green-dark); }
.tag-soft { background: rgba(65,43,29,.10); color: var(--choc); }
.tag-draft { background: rgba(207,91,69,.14); color: #9a3d2c; }
.card-media .tag { position: absolute; top: 12px; left: 12px; background: var(--paper); }

/* Plate (the kit's cream card look) */
.plate { background: var(--paper); border-radius: 16px; box-shadow: var(--shadow); border: 1px solid rgba(65,43,29,.10); }
.page-img { border-radius: 10px; box-shadow: 0 2px 6px rgba(37,23,12,.10), 0 18px 40px rgba(37,23,12,.14); background: var(--paper); }

/* Figure strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip figure { margin: 0; }
.strip img { border-radius: 14px; aspect-ratio: 5 / 6; object-fit: cover; width: 100%; }
.strip figcaption { font-size: 13px; color: var(--choc-light); margin-top: 10px; }
.strip figcaption strong { color: var(--ink); font-weight: 500; display: block; }

/* Phone frame */
.phone { width: min(320px, 100%); aspect-ratio: 9 / 19.5; border-radius: 36px; background: #0b0b0b; padding: 10px; box-shadow: 0 30px 60px rgba(13,38,28,.35); margin: 0 auto; }
.phone-screen { width: 100%; height: 100%; border-radius: 28px; overflow: hidden; background: #000; }
.phone-screen video, .phone-screen img { width: 100%; height: 100%; object-fit: cover; }

/* Feature list */
.features { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.features li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; align-items: start; }
.features .dot { width: 28px; height: 28px; border-radius: 999px; background: rgba(49,155,114,.16); color: var(--green-dark); display: grid; place-items: center; font-size: 13px; font-weight: 700; font-family: var(--mono); }
.on-dark .features .dot { background: rgba(143,211,180,.18); color: #8FD3B4; }
.features strong { display: block; font-weight: 600; }
.features span { color: var(--choc); }
.on-dark .features span { color: rgba(254,247,231,.78); }

/* Slope legend */
.legend { display: inline-flex; gap: 6px; align-items: center; padding: 8px 10px; background: var(--paper); border: 1px solid var(--rule); border-radius: 10px; font-size: 11px; color: var(--choc-light); }
.legend i { display: inline-block; width: 26px; height: 12px; border-radius: 3px; border: 1px solid rgba(37,23,12,.12); }

/* Compare table */
.compare { width: 100%; border-collapse: collapse; font-size: 15px; }
.compare th, .compare td { padding: 14px 10px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.compare th { font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--choc-light); }
.compare th:not(:first-child), .compare td:not(:first-child) { text-align: center; width: 22%; }
.compare .yes { color: var(--green-mid); font-weight: 700; }
.compare .no { color: var(--choc-light); font-size: 13px; }
.compare .some { color: var(--choc-light); font-size: 13px; }

/* Quotes */
.quote { font-family: var(--serif); font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; }
.quote cite { display: block; font-family: var(--sans); font-style: normal; font-size: 13px; color: var(--choc-light); margin-top: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.placeholder { border: 1px dashed var(--rule-strong); border-radius: var(--radius); padding: 28px; color: var(--choc-light); background: repeating-linear-gradient(135deg, transparent 0 12px, rgba(65,43,29,.03) 12px 24px); }
.placeholder .caps { color: #9a3d2c; display: block; margin-bottom: 10px; }

/* Notice */
.notice { background: #FBF0C9; border: 1px solid #E8D48A; border-radius: var(--radius-sm); padding: 16px 18px; font-size: 15px; }
.notice strong { font-weight: 600; }

/* Diagram */
.diagram { width: 100%; height: auto; }
.diagram text { font-family: var(--sans); fill: var(--ink); }
.diagram .lbl { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; fill: var(--green-mid); }
.diagram .box { fill: var(--paper); stroke: var(--rule-strong); }
.diagram .box-green { fill: var(--green-black); stroke: var(--green-black); }
.diagram .on-green { fill: var(--cream); }
.diagram .line { stroke: var(--choc-light); fill: none; stroke-width: 1.4; }
.diagram .serif { font-family: var(--serif); font-size: 22px; }

/* Request block */
.request { display: grid; grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: center; background: var(--green-black); color: var(--cream); border-radius: 28px; padding: clamp(32px, 5vw, 64px); }
.request h2 { color: var(--cream); }
.request .steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; font-size: 15px; }
.request .steps li { display: grid; grid-template-columns: 26px 1fr; gap: 12px; color: rgba(254,247,231,.86); }
.request .steps b { font-family: var(--mono); color: #8FD3B4; }

/* Footer */
.footer { background: var(--green-black); color: rgba(254,247,231,.78); padding: 56px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer h4 { margin: 0 0 12px; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--cream); font-weight: 600; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a:hover { color: var(--cream); }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(254,247,231,.16); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(254,247,231,.5); }
.footer .wordmark { width: 240px; background: var(--cream); padding: 12px 16px; border-radius: 12px; }

/* Page hero (inner pages) */
.page-hero { padding: clamp(56px, 8vw, 110px) 0 clamp(32px, 5vw, 56px); }
.page-hero h1 { font-size: clamp(42px, 6vw, 80px); max-width: 16ch; text-wrap: balance; }
.breadcrumb { font-size: 13px; color: var(--choc-light); margin-bottom: 22px; }
.breadcrumb a { color: var(--green-mid); }

/* Gallery of pages */
.pages { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; align-items: start; }
.pages figure { margin: 0; }
.pages figcaption { font-size: 13px; color: var(--choc-light); margin-top: 12px; line-height: 1.4; }
.pages figcaption strong { display: block; color: var(--ink); font-weight: 500; }

/* Prose */
.prose p { margin: 0 0 1.1em; max-width: 66ch; }
.prose h3 { margin: 2em 0 .5em; }
.prose ul { padding-left: 20px; max-width: 66ch; }
.prose li { margin-bottom: .4em; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; margin: 1em 0 1.6em; }
.prose th, .prose td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.prose th { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--choc-light); font-weight: 600; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  html { scroll-behavior: auto; }
}

/* Responsive */
@media (max-width: 1000px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 800px) {
  .links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: var(--cream); border-bottom: 1px solid var(--rule); padding: 18px var(--gutter) 24px; flex-direction: column; align-items: flex-start; gap: 14px; }
  .links.open { display: flex; }
  .burger { display: inline-block; }
  .split, .grid-3, .grid-2, .pages, .request { grid-template-columns: 1fr; }
  .hero { min-height: 86vh; }
  .hero-card { display: none; }
  .hero-inner { padding-top: 90px; }
  .compare th:not(:first-child), .compare td:not(:first-child) { width: 18%; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  .grid-4, .strip { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 18px; }
  .footer-grid { grid-template-columns: 1fr; }
}
