/* ---------- tokens ---------- */
:root {
  /* one brand hue (96) + 5 HSB variations */
  --brand-1: #384D2A;   /* 96,45,30  strong  */
  --brand-2: #536B42;   /* 96,38,42  mid     */
  --brand-3: #7C9469;   /* 96,35,58  stroke  */
  --brand-4: #C1DBAF;   /* 96,20,86  fill    */
  --brand-5: #EEF7E9;   /* 96,06,97  wash    */

  --ink: #16180F;
  --ink-2: #5B6157;
  --paper: #FBFCF9;
  --white: #FFFFFF;

  /* spacing scale: 4 / 8 / 12 / 16 / 24 / 32 / 40 / 48 / 64 */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s5: 24px;
  --s6: 32px; --s7: 40px; --s8: 48px; --s9: 64px;

  /* type scale: base 16, ratio ~1.25, rounded */
  --t-s: 14px; --t-b: 16px; --t-4: 20px; --t-3: 24px; --t-2: 32px; --t-1: 40px;

  --ui: "Avenir Next", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --display: Georgia, "Iowan Old Style", "Times New Roman", serif;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--t-b)/24px var(--ui);
}

h1, h2, h3 { font-family: var(--display); font-weight: 400; margin: 0; }
h1 { font-size: var(--t-1); line-height: 48px; letter-spacing: -0.02em; }
h2 { font-size: var(--t-2); line-height: 40px; letter-spacing: -0.015em; }
h3 { font-size: var(--t-3); line-height: 32px; letter-spacing: -0.01em; }
h4 { font: 700 var(--t-4)/28px var(--ui); margin: 0; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img { display: block; max-width: 100%; }

a { color: var(--brand-1); text-decoration: none; }
a:hover { color: var(--brand-2); text-decoration: underline; }
a:active { color: var(--ink); }

:focus-visible { outline: 2px solid var(--brand-1); outline-offset: 3px; }

.skip {
  position: absolute; left: -9999px; top: var(--s2);
  background: var(--brand-1); color: var(--white);
  padding: var(--s3) var(--s4); border-radius: 2px;
}
.skip:focus { left: var(--s4); z-index: 20; text-decoration: none; }

.small { font-size: var(--t-s); line-height: 24px; color: var(--ink-2); }
.muted { color: var(--ink-2); }
.lede { font-size: var(--t-4); line-height: 32px; }

/* ---------- shell: 12 columns ---------- */
.shell {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--s5);
  padding: var(--s5) var(--s5) var(--s9);
  max-width: 1440px;
  margin: 0 auto;
}

.rail { grid-column: 1 / -1; }
.main { grid-column: 1 / -1; min-width: 0; }

@media (min-width: 900px) {
  .shell { gap: var(--s8) var(--s5); padding: var(--s8) var(--s8) var(--s9); }
  .rail { grid-column: span 3; position: sticky; top: var(--s6); align-self: start; }
  .main { grid-column: span 9; }
}

/* ---------- rail ---------- */
.wordmark {
  display: inline-block;
  font-family: var(--display);
  font-size: var(--t-3);
  line-height: 32px;
  letter-spacing: -0.01em;
  color: var(--ink);
  padding: var(--s2) 0;
}
.wordmark:hover { color: var(--brand-1); text-decoration: none; }

.rail-note {
  font-size: var(--t-s); line-height: 24px; color: var(--ink-2);
  margin-top: var(--s2); max-width: 30ch;
}

.nav { margin-top: var(--s5); border-top: 1px solid var(--brand-3); }
.nav li { border-bottom: 1px solid var(--brand-3); }
.nav a {
  display: flex; align-items: center; gap: var(--s3);
  min-height: 48px; color: var(--ink); font-size: var(--t-b);
}
.nav a:hover { color: var(--brand-1); text-decoration: none; background: var(--brand-5); }
.nav a[aria-current="page"] { color: var(--brand-1); font-weight: 700; }
.nav .tick {
  width: var(--s2); height: var(--s2); flex: 0 0 auto;
  border: 1px solid var(--brand-2); background: transparent;
}
.nav a[aria-current="page"] .tick { background: var(--brand-1); border-color: var(--brand-1); }

.cur { margin-top: var(--s5); }
.cur-label { display: block; font-size: var(--t-s); line-height: 24px; color: var(--ink-2); margin-bottom: var(--s2); }
.cur-set { display: flex; gap: var(--s2); }
.cur-btn {
  min-height: 48px; min-width: 64px; padding: 0 var(--s4);
  font: 400 var(--t-b)/24px var(--ui);
  background: var(--white); color: var(--brand-1);
  border: 1px solid var(--brand-2); border-radius: 2px; cursor: pointer;
}
.cur-btn:hover { background: var(--brand-5); }
.cur-btn:active { background: var(--brand-4); }
.cur-btn[aria-pressed="true"] { background: var(--brand-1); border-color: var(--brand-1); color: var(--white); font-weight: 700; }

.rail-contact { margin-top: var(--s5); font-size: var(--t-s); line-height: 24px; color: var(--ink-2); }
.rail-contact a { color: var(--brand-1); }
.rail-contact p + p { margin-top: var(--s1); }

/* ---------- meta bar ---------- */
.meta {
  display: flex; flex-wrap: wrap; gap: var(--s3) var(--s5);
  align-items: baseline; justify-content: space-between;
  padding-bottom: var(--s4);
  border-bottom: 2px solid var(--brand-1);
}
.meta .count { font-family: var(--display); font-size: var(--t-3); line-height: 32px; }
.meta .note { font-size: var(--t-s); line-height: 24px; color: var(--ink-2); max-width: 46ch; }

/* ---------- ledger ---------- */
.ledger {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s8) var(--s5);
  margin-top: var(--s8);
}
@media (min-width: 720px) {
  .ledger { grid-template-columns: repeat(12, 1fr); }
  .item { grid-column: span var(--w, 4); }
}
.band { grid-column: 1 / -1; }

.item { min-width: 0; }
.shot {
  position: relative; margin: 0 0 var(--s4);
  aspect-ratio: 3 / 4; background: var(--brand-5);
  border: 1px solid var(--brand-3); overflow: hidden;
}
.item.wide .shot { aspect-ratio: 4 / 3; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.ph {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: var(--s2);
  text-align: center; padding: var(--s4);
  background:
    repeating-linear-gradient(135deg, var(--brand-5) 0 12px, var(--white) 12px 24px);
  color: var(--brand-1);
}
.ph b { font: 700 var(--t-s)/24px var(--ui); }
.ph span { font-size: var(--t-s); line-height: 24px; color: var(--ink-2); }

.item h3 { font-size: var(--t-4); line-height: 28px; font-family: var(--ui); font-weight: 700; letter-spacing: 0; }
.item .desc { margin-top: var(--s2); font-size: var(--t-s); line-height: 24px; color: var(--ink-2); }
.item .price {
  margin-top: var(--s3); padding-top: var(--s3);
  border-top: 1px solid var(--brand-3);
  font-size: var(--t-b); line-height: 24px; font-weight: 700;
}
.item .price .alt { font-weight: 400; color: var(--ink-2); font-size: var(--t-s); }

/* ---------- bands ---------- */
.statement {
  background: var(--brand-1); color: var(--white);
  padding: var(--s8) var(--s5);
}
@media (min-width: 720px) { .statement { padding: var(--s9) var(--s8); } }
.statement h2 { color: var(--white); max-width: 22ch; }
.statement p { margin-top: var(--s4); max-width: 60ch; color: #D7E3CD; }
.facts { margin-top: var(--s7); display: grid; gap: var(--s5); }
@media (min-width: 720px) { .facts { grid-template-columns: repeat(3, 1fr); gap: var(--s6); } }
.facts div { border-top: 1px solid #D7E3CD; padding-top: var(--s3); }
.facts b { display: block; font-size: var(--t-b); line-height: 24px; }
.facts p { margin-top: var(--s2); font-size: var(--t-s); line-height: 24px; color: #D7E3CD; }
.statement a { color: var(--white); text-decoration: underline; }
.statement a:hover { color: var(--brand-4); }
.statement :focus-visible { outline-color: var(--brand-4); }

.signup { border: 1px solid var(--brand-3); padding: var(--s6) var(--s5); background: var(--white); }
@media (min-width: 720px) { .signup { padding: var(--s8); } }
.signup h2 { max-width: 24ch; }
.signup .lede { margin-top: var(--s3); color: var(--ink-2); max-width: 60ch; }

/* ---------- form ---------- */
.form { margin-top: var(--s6); max-width: 420px; }
.field { margin-bottom: var(--s5); }
.field label { display: block; font-weight: 700; font-size: var(--t-b); line-height: 24px; }
.field .hint { display: block; font-size: var(--t-s); line-height: 24px; color: var(--ink-2); margin-bottom: var(--s2); }
.field input[type="email"] {
  width: 100%; min-height: 48px; padding: 0 var(--s3);
  font: 400 var(--t-b)/24px var(--ui); color: var(--ink);
  background: var(--white); border: 1px solid var(--brand-2); border-radius: 2px;
}
.field input[type="email"]:hover { border-color: var(--brand-1); }
.check { display: flex; gap: var(--s3); align-items: flex-start; min-height: 48px; }
.check input { width: 24px; height: 24px; margin: 0; accent-color: var(--brand-1); flex: 0 0 auto; }
.check label { font-weight: 400; font-size: var(--t-s); line-height: 24px; }
.status { margin-top: var(--s4); font-size: var(--t-s); line-height: 24px; }
.status[data-tone="error"] { color: #8A1C1C; font-weight: 700; }
.status[data-tone="ok"] { color: var(--brand-1); font-weight: 700; }

/* ---------- buttons ---------- */
.btn, .btn-2 {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 var(--s5); border-radius: 2px;
  font: 700 var(--t-b)/24px var(--ui); cursor: pointer; text-decoration: none;
}
.btn { background: var(--brand-1); color: var(--white); border: 1px solid var(--brand-1); }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); color: var(--white); text-decoration: none; }
.btn:active { background: var(--ink); border-color: var(--ink); }
.btn-2 { background: transparent; color: var(--brand-1); border: 1px solid var(--brand-2); }
.btn-2:hover { background: var(--brand-5); color: var(--brand-1); text-decoration: none; }
.btn-2:active { background: var(--brand-4); }

/* ---------- documents ---------- */
.doc { max-width: 68ch; }
.doc h1 { margin-bottom: var(--s3); }
.doc .updated { font-size: var(--t-s); line-height: 24px; color: var(--ink-2); }
.doc .intro { margin-top: var(--s5); font-size: var(--t-4); line-height: 32px; }
.doc section { margin-top: var(--s8); }
.doc section h2 { font-size: var(--t-3); line-height: 32px; }
.doc section > * + * { margin-top: var(--s4); }
.doc .bullets li { padding-left: var(--s5); position: relative; }
.doc .bullets li + li { margin-top: var(--s3); }
.doc .bullets li::before {
  content: ""; position: absolute; left: 0; top: 10px;
  width: var(--s2); height: 1px; background: var(--brand-2);
}
.doc .steps { counter-reset: step; }
.doc .steps li { padding-left: var(--s6); position: relative; }
.doc .steps li + li { margin-top: var(--s3); }
.doc .steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 0; font-weight: 700; color: var(--brand-1);
}
.toc { margin-top: var(--s5); border-top: 1px solid var(--brand-3); }
.toc li { border-bottom: 1px solid var(--brand-3); }
.toc a { display: block; min-height: 48px; line-height: 48px; }
@media (min-width: 720px) { .toc ul { columns: 2; column-gap: var(--s5); } }

.lb { border-top: 1px solid var(--brand-3); }
.lb-row {
  display: grid; gap: var(--s1) var(--s5); padding: var(--s3) 0;
  border-bottom: 1px solid var(--brand-3);
}
@media (min-width: 640px) { .lb-row { grid-template-columns: 1.4fr 1fr; } }
.lb-row .b { font-size: var(--t-s); line-height: 24px; color: var(--ink-2); }
.lb-head { font-weight: 700; }
.lb-head .b { color: var(--ink); font-size: var(--t-b); font-weight: 700; }

.doc .callout {
  background: var(--brand-5); border-left: 2px solid var(--brand-1);
  padding: var(--s4) var(--s5);
}

/* ---------- footer ---------- */
.foot { border-top: 2px solid var(--brand-1); background: var(--white); }
.foot-in {
  max-width: 1440px; margin: 0 auto;
  padding: var(--s8) var(--s5);
  display: grid; grid-template-columns: repeat(12, 1fr); gap: var(--s6) var(--s5);
}
@media (min-width: 900px) { .foot-in { padding: var(--s8); } }
.foot-col { grid-column: 1 / -1; }
@media (min-width: 720px) { .foot-col { grid-column: span 4; } }
.foot h4 { font-size: var(--t-b); line-height: 24px; margin-bottom: var(--s3); }
.foot p, .foot li { font-size: var(--t-s); line-height: 24px; color: var(--ink-2); }
.foot li + li { margin-top: var(--s2); }
.foot .legal { grid-column: 1 / -1; border-top: 1px solid var(--brand-3); padding-top: var(--s4); }
.foot .legal p + p { margin-top: var(--s2); }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
