/* Turnout Studio: "Morning Leaf". Warm paper, olive ink, bronze labels, a leaf shadow on the hero.
   Inspired by Ben's reference boards (2026-11-19). Class names match the old system so every page restyles at once. */

:root {
  /* Palette */
  --bg: #f3ece1;          /* Paper */
  --surface: #ebe1d2;     /* Linen: panels */
  --line: #d6c8b4;        /* Hairline */
  --muted: #6e6352;       /* Driftwood: secondary text */
  --ink: #2c2a20;         /* Ink: text */
  --olive: #4a5231;       /* Olive: buttons, the check band */
  --olive-2: #5a633c;     /* Olive, lifted (hover) */
  --olive-deep: #3e4529;  /* Olive, deep (form panel on the band) */
  --bark: #46342a;        /* Bark: footer */
  --bronze: #85592f;      /* Bronze: labels and rules */
  --sun: #c9952f;         /* Sunrise: the logo mark only */
  --on-dark: #f3ece1;
  --on-dark-2: #d9cfbd;
  --error: #a23b2a;

  /* Type */
  --display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --body: "DM Sans", system-ui, sans-serif;
  --util: "DM Sans", system-ui, sans-serif;

  --t-sm: .85rem;
  --t-body: 1.0625rem; /* 17 */
  --t-lead: 1.3rem;
  --t-h3: 1.6rem;
  --t-h2: clamp(2.1rem, 4.4vw, 3rem);
  --t-h1: clamp(3.2rem, 8vw, 5.6rem);

  --gutter: 20px;
  --section: 72px;
  --max: 1160px;

  --r-pill: 999px;
  --r-panel: 6px;
  --r-input: 4px;
  --r-chip: 999px;
}
@media (min-width: 768px) { :root { --gutter: 40px; --section: 104px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: var(--t-body); line-height: 1.65; }
img { max-width: 100%; display: block; }
a { color: var(--ink); text-underline-offset: .2em; text-decoration-thickness: 1px; }
:focus-visible { outline: 2px solid var(--olive); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.measure { max-width: 64ch; }
.section { padding: var(--section) 0; position: relative; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--olive); color: var(--on-dark); padding: 8px 16px; border-radius: 4px; z-index: 20; }
.skip:focus { left: 8px; }

h1, h2, h3 { font-family: var(--display); color: var(--ink); margin: 0; font-weight: 400; }
h1 { font-size: var(--t-h1); line-height: .98; letter-spacing: -.02em; font-style: italic; font-variation-settings: "opsz" 72; }
h2 { font-size: var(--t-h2); line-height: 1.08; letter-spacing: -.012em; margin-bottom: 24px; font-style: italic; font-variation-settings: "opsz" 60; }
h3 { font-size: var(--t-h3); line-height: 1.2; margin-bottom: 8px; font-variation-settings: "opsz" 36; }
p { margin: 0 0 16px; }
.lead { font-size: var(--t-lead); line-height: 1.55; color: #3d392d; }
.util { font-family: var(--util); font-weight: 500; }

/* Labels: small letterspaced bronze, followed by a hairline that runs to the edge */
.eyebrow {
  display: flex; align-items: center; gap: 18px;
  font-family: var(--util); font-weight: 600; font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--bronze); margin: 0 0 18px;
}
.eyebrow::after { content: ""; flex: 1; max-width: 420px; height: 1px; background: color-mix(in srgb, var(--bronze) 55%, transparent); }
.hero .eyebrow::after, .page-hero .eyebrow::after { max-width: 120px; }
.band .eyebrow { color: var(--on-dark-2); }
.band .eyebrow::after { background: color-mix(in srgb, var(--on-dark) 35%, transparent); }
.num { font-family: var(--display); font-style: italic; }

.ph { color: var(--muted); }
.ph-block { display: grid; place-items: center; text-align: center; background: var(--surface); color: var(--muted); border: 1px dashed var(--line); border-radius: var(--r-panel); padding: 24px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 52px;
  padding: 0 30px; border-radius: var(--r-pill); background: var(--olive); color: var(--on-dark);
  font-family: var(--body); font-weight: 500; font-size: 1.02rem; text-decoration: none; border: 1px solid var(--olive); cursor: pointer;
  transition: background-color .2s ease, color .2s ease;
}
.btn::after { content: "→"; font-size: 1.1em; transition: transform .2s ease; }
.btn:hover { background: var(--olive-2); border-color: var(--olive-2); }
.btn:hover::after { transform: translateX(3px); }
.btn.on-dark { background: var(--on-dark); color: var(--olive); border-color: var(--on-dark); }
.btn.on-dark:hover { background: #fffaf1; }
.btn.small { min-height: 44px; padding: 0 22px; font-size: .95rem; }
.btn.small::after { content: none; }
.text-link { font-weight: 500; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 36px; }

/* Header */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 5; border-bottom: 1px solid color-mix(in srgb, var(--line) 80%, transparent); }
.site-header.is-stuck { position: fixed; background: var(--bg); animation: settle .28s ease-out both; }
.site-header.is-stuck .wrap { padding-top: 10px; padding-bottom: 10px; }
@keyframes settle { from { transform: translateY(-100%); } to { transform: none; } }
section[id] { scroll-margin-top: 90px; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; }
.wordmark { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.wordmark .mark { width: 46px; height: 29px; color: var(--sun); flex: none; }
.wm-text { display: grid; line-height: 1; }
.wm-name { font-family: var(--display); font-size: 1.65rem; letter-spacing: -.01em; font-variation-settings: "opsz" 36; }
.wm-sub { font-family: var(--util); font-size: .62rem; font-weight: 600; letter-spacing: .32em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.nav { display: flex; align-items: center; gap: 8px 30px; }
.nav a:not(.btn) { text-decoration: none; font-weight: 400; padding-bottom: 3px; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.nav a:not(.btn):hover { border-bottom-color: var(--bronze); }
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .wm-name { font-size: 1.25rem; white-space: nowrap; }
  .nav .btn.small { padding: 0 16px; font-size: .88rem; white-space: nowrap; min-height: 40px; }
  .wm-sub { display: none; }
  .wordmark .mark { width: 38px; height: 24px; }
}

/* Hero: paper with a leaf shadow falling across the right side */
.hero, .page-hero { position: relative; overflow: hidden; padding: 176px 0 var(--section); border-bottom: 1px solid var(--line); }
.hero { min-height: min(760px, 92vh); display: flex; align-items: center; }
.hero > .wrap { width: 100%; }
@media (max-width: 767px) { .hero, .page-hero { padding-top: 124px; } .hero { min-height: 0; } }
.hero .wrap, .page-hero .wrap { position: relative; z-index: 2; }
.hero h1 { max-width: 8.5ch; margin-bottom: 28px; }
.hero .lead { max-width: 30em; }
.leaves {
  position: absolute; z-index: 1; top: -6%; right: -4%; width: min(64vw, 820px); aspect-ratio: 700 / 620;
  background: url("/assets/ginkgo-shadow.svg") no-repeat top right / contain;
  pointer-events: none; mix-blend-mode: multiply;
  animation: sway 14s ease-in-out infinite alternate, leaves-in 1.2s ease-out both;
  transform-origin: top right;
}
@keyframes sway { from { transform: rotate(0deg) translate(0, 0); } to { transform: rotate(-1.6deg) translate(-8px, 6px); } }
@keyframes leaves-in { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 767px) { .leaves { width: 110vw; right: -30%; top: -4%; opacity: .55; } }
.trust { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; margin: 44px 0 0; color: var(--muted); font-size: .95rem; }
.trust li::before { content: "·"; color: var(--bronze); margin-right: 10px; font-weight: 700; }
.plan-terms { color: var(--muted); }

/* Problem: one big italic line */
.problem { background: var(--surface); }
.problem p:not(.eyebrow) { font-family: var(--display); font-style: italic; font-size: var(--t-h2); line-height: 1.18; max-width: 24ch; margin: 0; font-variation-settings: "opsz" 60; }

/* How it works: columns divided by thin rules, like the reference */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.steps li { display: grid; gap: 6px; align-content: start; padding: 4px 28px; border-left: 1px solid var(--line); }
.steps li:first-child { border-left: 0; padding-left: 0; }
.steps .num { font-size: 2.4rem; line-height: 1; color: var(--bronze); }
.steps h3 { font-size: 1.45rem; }
.steps p { color: #4a4537; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr 1fr; row-gap: 32px; } .steps li:nth-child(3) { border-left: 0; padding-left: 0; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li { border-left: 0; padding: 0 0 24px; border-bottom: 1px solid var(--line); } }

/* Plans */
.plans-grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: stretch; margin-top: 44px; }
.plan-row { padding: 26px 0; border-top: 1px solid var(--line); }
.plan-row:last-child { border-bottom: 1px solid var(--line); }
.plan-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.price { font-family: var(--display); font-size: 2.1rem; line-height: 1; white-space: nowrap; font-variation-settings: "opsz" 48; }
.price small { font-family: var(--body); font-size: .9rem; color: var(--muted); margin-left: 6px; }
.plan-feature { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 40px 36px; display: flex; flex-direction: column; }
.plan-feature .echo { display: none; }
.recommend { align-self: flex-start; background: var(--olive); color: var(--on-dark); font-size: .72rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; padding: 6px 14px; border-radius: var(--r-chip); margin-bottom: 22px; }
.plan-feature h3 { font-size: 2rem; font-style: italic; }
.plan-feature .price { font-size: 3.2rem; margin: 6px 0 18px; }
.plan-feature ul { margin: 6px 0 24px; padding: 0; list-style: none; }
.plan-feature li { padding: 9px 0 9px 26px; border-top: 1px solid var(--line); position: relative; }
.plan-feature li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--bronze); }
.plan-feature .btn { margin-top: auto; align-self: flex-start; }
@media (max-width: 860px) { .plans-grid { grid-template-columns: 1fr; } }

/* Proof */
.quote { font-family: var(--display); font-style: italic; font-size: clamp(1.55rem, 2.8vw, 2.1rem); line-height: 1.32; max-width: 34ch; margin: 0 0 18px; font-variation-settings: "opsz" 48; }
.quote-by { font-size: .95rem; color: var(--muted); }
.case { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 48px; margin-top: 64px; align-items: start; }
.case .ph-block { aspect-ratio: 4 / 3; }
.shot { margin: 0; border-radius: var(--r-panel); overflow: hidden; background: var(--surface); border: 1px solid var(--line); padding-top: 26px; position: relative; box-shadow: 0 30px 60px -40px rgba(70, 52, 42, .45); }
.shot::before { content: ""; position: absolute; top: 9px; left: 14px; width: 40px; height: 8px; background: radial-gradient(circle at 4px 4px, var(--line) 4px, transparent 4.5px) 0 0 / 16px 8px repeat-x; }
.shot img { width: 100%; height: auto; }
.shot-cap { padding: 12px 16px; font-size: .95rem; }
.testimonial { margin: 0 0 8px; padding-left: 28px; border-left: 2px solid var(--bronze); }
.testimonial .quote { margin: 0 0 12px; }
.client-logo { display: block; width: 120px; height: auto; margin: 0 0 18px; mix-blend-mode: multiply; }
.portrait { width: 100%; max-width: 360px; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-panel); mix-blend-mode: multiply; }
.map { width: 100%; height: auto; border-radius: var(--r-panel); margin-top: 28px; }
.map-fig { margin: 32px 0 0; max-width: 420px; }
.band .map { margin-top: 0; border-radius: 0; -webkit-mask-image: radial-gradient(ellipse 62% 58% at 52% 48%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 62% 58% at 52% 48%, #000 62%, transparent 100%); }
.map-fig figcaption { font-size: .85rem; color: var(--on-dark-2); margin-top: 10px; }
.facts { list-style: none; padding: 0; margin: 18px 0 0; }
.facts li { padding: 11px 0; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .case { grid-template-columns: 1fr; } }

/* About: ginkgo leaf resting at the right edge */
/* Ben's photo stands on the olive band: its bottom edge sits on the band's top line */
.about { overflow: hidden; overflow: clip; padding-bottom: 0; }
.about .portrait { border-radius: 0; max-width: 470px; aspect-ratio: 880 / 850; align-self: end; margin-bottom: -1px; }
.about .creds { align-items: end; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px; }
.about .creds > div { padding-bottom: 72px; align-self: start; padding-top: 8px; }
.about-head { position: relative; margin-bottom: 8px; }
.about-head h2 { margin-bottom: 0; }
@media (max-width: 860px) {
  .about .creds { grid-template-columns: 1fr; gap: 24px; }
  .about .creds > div { order: 1; padding-bottom: 8px; }
  .about .portrait { order: 2; max-width: 250px; }
}
.ginkgo { position: absolute; right: max(2%, calc((100% - var(--max)) / 2 - 40px)); bottom: -128px; width: 210px; height: auto; opacity: .95; pointer-events: none; z-index: 0; transform: rotate(-12deg); filter: drop-shadow(-14px 22px 18px rgba(70, 52, 42, .22)); }
.about .wrap { position: relative; }
@media (max-width: 860px) { .ginkgo { display: block; width: 105px; right: 6px; bottom: -4px; transform: rotate(-6deg); transform-origin: 46% 100%; } }
.creds { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 56px; align-items: start; }
.creds .ph-block { aspect-ratio: 4 / 5; max-width: 340px; }
.cred-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 22px 36px; max-width: 640px; }
.cred-list li { border-top: 1px solid var(--line); padding-top: 12px; }
.cred-list strong { display: block; font-family: var(--display); font-size: 1.25rem; font-weight: 400; }
.cred-list span { color: var(--muted); }
@media (max-width: 860px) { .creds { grid-template-columns: 1fr; } .creds .ph-block, .portrait { max-width: 260px; } }
@media (max-width: 560px) { .cred-list { grid-template-columns: 1fr; } }

/* The check band: full-width olive, like the reference */
.band { background: var(--olive); color: var(--on-dark); position: relative; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: -10% -20% auto auto; width: 70%; aspect-ratio: 700 / 620; background: url("/assets/ginkgo-shadow.svg") no-repeat top right / contain; opacity: .35; mix-blend-mode: multiply; pointer-events: none; }
.band .wrap { position: relative; }
.band h2, .band h3 { color: var(--on-dark); }
.band .ph { color: var(--on-dark-2); }
.band a:not(.btn) { color: var(--on-dark); }
.band-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px; align-items: start; }
.info { display: grid; gap: 18px; margin-top: 32px; }
.info dt { font-size: .75rem; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-2); }
.info dd { margin: 2px 0 0; }
.band .ph-block { background: var(--olive-deep); border-color: var(--olive-2); color: var(--on-dark-2); aspect-ratio: 16 / 9; margin-top: 28px; }
form { display: grid; gap: 16px; background: var(--olive-deep); padding: 32px; border-radius: var(--r-panel); border: 1px solid color-mix(in srgb, var(--on-dark) 14%, transparent); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { display: block; font-weight: 500; font-size: .95rem; margin-bottom: 6px; color: var(--on-dark); }
.opt { color: var(--on-dark-2); font-weight: 400; }
input, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid transparent; border-radius: var(--r-input); padding: 12px 14px; min-height: 48px; }
input:focus, textarea:focus { outline: none; border-color: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 40%, transparent); }
textarea { min-height: 110px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--on-dark-2); margin: 0; }
.hidden { position: absolute; left: -9999px; }
@media (max-width: 860px) { .band-grid { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } form { padding: 22px; } }

/* Footer: bark brown */
.site-footer { background: var(--bark); color: var(--on-dark-2); padding: 56px 0 40px; }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px 40px; }
.footer-thesis { font-family: var(--display); font-style: italic; font-size: 1.9rem; color: var(--on-dark); margin: 0; flex-basis: 100%; padding-bottom: 24px; border-bottom: 1px solid color-mix(in srgb, var(--on-dark) 18%, transparent); }
.site-footer a { color: var(--on-dark); }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.nap { line-height: 1.7; }

/* Plans: two starting tracks */
.track-title { font-family: var(--util); font-weight: 600; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; color: var(--bronze); margin: 0 0 4px; }
.track-title:not(:first-child) { margin-top: 40px; }
.plan-row p a { font-weight: 500; white-space: nowrap; }
.plan-terms a { color: var(--ink); font-weight: 500; }
.plan-alt { border-top: 1px solid var(--line); padding-top: 14px; }
.plan-alt strong { font-weight: 600; }
.addons-title { margin: 64px 0 8px; font-style: italic; font-size: 2rem; }
.addon-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.addon-list li { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 7fr) minmax(0, 2fr); gap: 4px 24px; align-items: baseline; padding: 16px 0; border-bottom: 1px solid var(--line); }
.addon-list strong { font-weight: 500; }
.addon-list span:not(.price) { color: var(--muted); }
.addon-list .price { font-size: 1.5rem; text-align: right; }
.addon-list .price small { display: block; font-size: .85rem; margin: 0; }
.addon-list .soon { font-family: var(--body); font-size: .95rem; color: var(--muted); }
@media (max-width: 680px) {
  .addon-list li { grid-template-columns: 1fr auto; }
  .addon-list span:not(.price) { grid-column: 1 / -1; grid-row: 2; }
}

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 32px 56px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 40px 18px 0; position: relative; font-family: var(--display); font-size: 1.3rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-family: var(--body); font-weight: 300; font-size: 1.6rem; color: var(--bronze); transition: transform .2s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0 0 20px; max-width: 60ch; color: #4a4537; }
@media (max-width: 860px) { .faq-grid { grid-template-columns: 1fr; } }

/* Inner pages */
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.4rem); max-width: 15ch; margin-bottom: 28px; }
.breadcrumb { font-size: .9rem; color: var(--muted); margin: 0 0 16px; }
.breadcrumb a { color: var(--muted); }
.split { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 64px; align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.included { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.included li { padding: 14px 0 14px 30px; border-bottom: 1px solid var(--line); position: relative; }
.included li::before { content: ""; position: absolute; left: 4px; top: 23px; width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--bronze); }
.price-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-panel); padding: 34px; }
.price-panel .price { font-size: 3.2rem; display: block; margin: 4px 0 12px; }
.related { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0 32px; }
.related li { border-top: 1px solid var(--line); padding: 14px 0; }
.related a { font-family: var(--display); font-size: 1.2rem; text-decoration: none; }
.related a:hover { text-decoration: underline; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
.footer-sub { display: block; font-family: var(--body); font-style: normal; font-size: .95rem; color: var(--on-dark-2); margin-top: 8px; letter-spacing: .02em; }
