/* Revision Ledger — paper and ink editorial system */

@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Regular.ttf') format('truetype');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Instrument Serif';
  src: url('fonts/InstrumentSerif-Italic.ttf') format('truetype');
  font-weight: 400; font-style: italic; font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/WorkSans-Var.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Work Sans';
  src: url('fonts/WorkSans-Italic-Var.ttf') format('truetype-variations');
  font-weight: 100 900; font-style: italic; font-display: swap;
}

:root {
  --paper: #FBF9F4;
  --panel: #F4F1E8;
  --ink: #1A1814;
  --muted: #5F5A52;
  --faint: #8E887E;
  --rule: #DED7C9;
  --accent: #22405C;
  --accent-hover: #16293b;
  --included: #3F6B32;
  --clarify: #8A5A0B;
  --change: #A4442B;

  --serif: 'Instrument Serif', Georgia, serif;
  --sans: 'Work Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  --measure: 34rem;
  --wide: 68rem;
  --s1: 0.5rem; --s2: 1rem; --s3: 1.5rem; --s4: 2rem;
  --s5: 3rem; --s6: 4.5rem; --s7: 7rem; --s8: 10rem;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: 'kern' 1, 'liga' 1;
}

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; line-height: 1.12; letter-spacing: -0.012em; margin: 0; }
h1 { font-size: clamp(2.6rem, 6.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
h3 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); }
p { margin: 0 0 1.15em; }
a { color: var(--accent); text-decoration: none; border-bottom: 1px solid rgba(34,64,92,.3); transition: border-color .18s, color .18s; }
a:hover { border-bottom-color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
strong { font-weight: 600; }
hr { border: 0; border-top: 1px solid var(--rule); margin: var(--s5) 0; }

.wrap { width: 100%; max-width: var(--wide); margin: 0 auto; padding: 0 var(--s4); }
.measure { max-width: var(--measure); }
.eyebrow {
  font-size: .75rem; font-weight: 600; letter-spacing: .13em;
  text-transform: uppercase; color: var(--faint); margin: 0 0 var(--s3);
}
.lede { font-size: 1.24rem; line-height: 1.55; color: var(--muted); }
.small { font-size: .875rem; color: var(--muted); }
.tiny { font-size: .8125rem; color: var(--faint); line-height: 1.5; }

/* ---------------------------------------------------------- nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251,249,244,.92);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--rule);
}
.nav-in { display: flex; align-items: center; gap: var(--s4); height: 64px; }
.brand { display: flex; align-items: center; gap: .6rem; border: 0; color: var(--ink); flex: none; }
.brand svg { display: block; }
.brand-txt { font-size: .72rem; font-weight: 700; letter-spacing: .14em; line-height: 1.18; text-transform: uppercase; }
.nav-links { display: flex; gap: var(--s3); margin-left: auto; align-items: center; font-size: .9375rem; }
.nav-links a { border: 0; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* ---------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-size: .9375rem; font-weight: 600;
  padding: .82rem 1.5rem; border-radius: 3px; border: 1px solid var(--accent);
  background: var(--accent); color: var(--paper); cursor: pointer;
  transition: background .18s, transform .1s, border-color .18s; text-align: center;
}
.btn:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn-ghost { background: transparent; color: var(--accent); border-color: var(--rule); }
.btn-ghost:hover { background: var(--panel); color: var(--accent); border-color: var(--accent); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; }

/* ---------------------------------------------------------- sections */
section { padding: var(--s7) 0; }
section + section { border-top: 1px solid var(--rule); }
.sec-head { margin-bottom: var(--s5); }

/* ---------------------------------------------------------- hero */
.hero { padding: var(--s7) 0 var(--s6); border: 0; }
.hero h1 { max-width: 15ch; margin-bottom: var(--s3); }
.hero .lede { max-width: 48ch; }
.hero-cta { margin-top: var(--s4); }
.hero-note { margin-top: var(--s2); }

/* ---------------------------------------------------------- pull quote */
.pull {
  font-family: var(--serif); font-size: clamp(1.5rem, 3.2vw, 2.15rem);
  line-height: 1.26; color: var(--ink); max-width: 24ch;
  border-left: 3px solid var(--accent); padding-left: var(--s3); margin: var(--s5) 0;
}

/* ---------------------------------------------------------- tables */
.tbl-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: var(--s4) 0; }
table { width: 100%; border-collapse: collapse; font-size: .9375rem; min-width: 34rem; }
thead th {
  text-align: left; font-family: var(--sans); font-size: .7rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  padding: 0 1rem .7rem 0; border-bottom: 1.5px solid var(--ink); vertical-align: bottom;
}
tbody td { padding: .85rem 1rem .85rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
tbody tr:last-child td { border-bottom: 0; }
tbody td:first-child { font-weight: 600; }

/* ---------------------------------------------------------- cards */
.grid { display: grid; gap: var(--s3); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.g3 { grid-template-columns: repeat(3, 1fr); }
.card { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: var(--s3); }
.card h3 { font-family: var(--sans); font-size: .95rem; font-weight: 700; letter-spacing: .01em; margin-bottom: .5rem; line-height: 1.35; }
.card p { font-size: .9375rem; color: var(--muted); margin: 0; }

.step { display: grid; grid-template-columns: 3.2rem 1fr; gap: var(--s3); padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
.step:last-child { border-bottom: 0; }
.step-n { font-family: var(--serif); font-size: 2.4rem; color: #ABA294; line-height: 1; }
.step h3 { font-family: var(--sans); font-size: 1rem; font-weight: 700; margin-bottom: .35rem; }
.step p { margin: 0; color: var(--muted); font-size: .9375rem; }

ul.tick { list-style: none; padding: 0; margin: var(--s2) 0; }
ul.tick li { position: relative; padding-left: 1.6rem; margin-bottom: .7rem; font-size: .9688rem; }
ul.tick li::before {
  content: ''; position: absolute; left: 0; top: .54em; width: .5rem; height: .28rem;
  border-left: 1.8px solid var(--accent); border-bottom: 1.8px solid var(--accent);
  transform: rotate(-45deg);
}
ul.cross li::before {
  content: ''; width: .55rem; height: 0; border-left: 0; border-bottom: 1.8px solid var(--faint);
  transform: none; top: .78em;
}

/* ---------------------------------------------------------- price */
.price-box { background: var(--panel); border: 1px solid var(--rule); border-radius: 5px; padding: var(--s5) var(--s4); text-align: center; max-width: 30rem; margin: 0 auto; }
.price-amt { font-family: var(--serif); font-size: 4.2rem; line-height: 1; color: var(--ink); }
.price-amt sup { font-size: .38em; vertical-align: .9em; margin-right: .06em; }
.price-sub { font-size: .9375rem; color: var(--muted); margin: var(--s1) 0 var(--s4); }

/* ---------------------------------------------------------- classifier */
.clf { max-width: 44rem; }
.clf-card { background: var(--panel); border: 1px solid var(--rule); border-radius: 5px; padding: var(--s4); }
.clf-q { font-family: var(--serif); font-size: clamp(1.35rem, 2.8vw, 1.75rem); line-height: 1.25; margin-bottom: var(--s2); }
.clf-help { font-size: .9375rem; color: var(--muted); margin-bottom: var(--s3); }
.clf-opts { display: grid; gap: .6rem; }
.clf-opt {
  display: block; width: 100%; text-align: left; font-family: var(--sans); font-size: 1rem;
  padding: .9rem 1.1rem; border: 1px solid var(--rule); border-radius: 3px;
  background: var(--paper); color: var(--ink); cursor: pointer;
  transition: border-color .15s, background .15s, transform .1s;
}
.clf-opt:hover { border-color: var(--accent); background: #fff; }
.clf-opt:active { transform: translateY(1px); }
.clf-opt b { display: block; font-weight: 600; }
.clf-opt span { display: block; font-size: .875rem; color: var(--muted); margin-top: .15rem; line-height: 1.45; }

.clf-prog { display: flex; gap: .35rem; margin-bottom: var(--s3); }
.clf-prog i { display: block; height: 3px; flex: 1; background: var(--rule); border-radius: 2px; transition: background .25s; }
.clf-prog i.on { background: var(--accent); }

.clf-back { background: 0; border: 0; padding: .4rem 0; margin-top: var(--s3); font-family: var(--sans); font-size: .875rem; color: var(--muted); cursor: pointer; }
.clf-back:hover { color: var(--ink); }

.verdict { border-left: 4px solid var(--accent); padding-left: var(--s3); margin-bottom: var(--s3); }
.verdict-label { font-size: .72rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: .4rem; }
.verdict h2 { font-size: clamp(1.9rem, 4vw, 2.6rem); margin-bottom: .6rem; }
.v-included { border-color: var(--included); } .v-included .verdict-label { color: var(--included); }
.v-clarify  { border-color: var(--clarify); }  .v-clarify  .verdict-label { color: var(--clarify); }
.v-change   { border-color: var(--change); }   .v-change   .verdict-label { color: var(--change); }

.script { background: var(--paper); border: 1px solid var(--rule); border-left: 3px solid var(--accent); border-radius: 3px; padding: var(--s3); margin: var(--s3) 0; font-size: .9375rem; line-height: 1.6; }
.script p { margin: 0 0 .75em; }
.script p:last-child { margin: 0; }
.script b { color: var(--accent); }
.copy-btn { font-family: var(--sans); font-size: .8125rem; font-weight: 600; padding: .45rem .9rem; border: 1px solid var(--rule); border-radius: 3px; background: var(--paper); color: var(--muted); cursor: pointer; }
.copy-btn:hover { border-color: var(--accent); color: var(--accent); }

/* ---------------------------------------------------------- article */
.article { max-width: var(--measure); margin: 0 auto; padding: var(--s6) var(--s4) var(--s7); }
.article h1 { font-size: clamp(2.2rem, 5vw, 3.2rem); margin-bottom: var(--s3); }
.article h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin: var(--s5) 0 var(--s2); }
.article h3 { font-family: var(--sans); font-size: 1.05rem; font-weight: 700; margin: var(--s4) 0 var(--s1); letter-spacing: 0; }
.article ul, .article ol { padding-left: 1.2rem; }
.article li { margin-bottom: .55rem; }
.article blockquote { margin: var(--s3) 0; padding: var(--s3); background: var(--panel); border-left: 3px solid var(--accent); border-radius: 3px; font-size: .9688rem; }
.article blockquote p:last-child { margin: 0; }
.article table { min-width: 0; }
.article .tbl-scroll { margin: var(--s3) 0; }
.article code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .875em; background: var(--panel); padding: .12em .35em; border-radius: 2px; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-bottom: 1px solid var(--rule); padding: var(--s3) 0; }
.post-list li:last-child { border-bottom: 0; }
.post-list a { font-family: var(--serif); font-size: 1.5rem; border: 0; line-height: 1.2; display: block; margin-bottom: .35rem; color: var(--ink); }
.post-list a:hover { color: var(--accent); }
.post-list p { margin: 0; color: var(--muted); font-size: .9375rem; }

/* ---------------------------------------------------------- notice + footer */
.notice { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: var(--s3); font-size: .875rem; color: var(--muted); line-height: 1.55; }
.notice strong { color: var(--ink); }

/* FAQ rhythm */
#faq h3 { margin: 2.4rem 0 .45rem; }
#faq h3:first-of-type { margin-top: 0; }
#faq p { margin-bottom: 0; }

footer { border-top: 1px solid var(--rule); padding: var(--s5) 0 var(--s6); }
.foot-grid { display: flex; flex-wrap: wrap; gap: var(--s5); align-items: flex-start; }
.foot-col h4 { font-family: var(--sans); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: var(--s2); }
.foot-col ul { list-style: none; padding: 0; margin: 0; }
.foot-col li { margin-bottom: .5rem; font-size: .9375rem; }
.foot-col a { color: var(--muted); border: 0; }
.foot-col a:hover { color: var(--ink); }
.foot-legal { margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--rule); }

/* ---------------------------------------------------------- responsive */
@media (max-width: 860px) {
  .g3 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --s7: 4rem; --s6: 3rem; }
  .wrap { padding: 0 1.25rem; }
  .article { padding: var(--s5) 1.25rem var(--s6); }
  .g2, .g3 { grid-template-columns: 1fr; }
  .nav-links { gap: var(--s2); font-size: .875rem; }
  .nav-links a.hide-sm { display: none; }
  .btn { width: 100%; }
  .btn-row { flex-direction: column; align-items: stretch; }
  .clf-card { padding: var(--s3) 1.1rem; }
  .step { grid-template-columns: 2.4rem 1fr; gap: var(--s2); }
  .price-amt { font-size: 3.4rem; }
  .foot-grid { gap: var(--s4); flex-direction: column; }
  .foot-grid .foot-col { flex: 0 0 auto !important; }
}

/* ---------------------------------------------------------- email signup */
section.alt { background: var(--panel); }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
      overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.signup { max-width: 40rem; margin: 0 auto; text-align: center; }
.signup h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.01em;
             font-size: clamp(1.5rem, 3.4vw, 2rem); line-height: 1.12; margin: 0 0 var(--s2); }
.signup > .small { color: var(--muted); max-width: 38ch; margin: 0 auto var(--s3); }
.signup .btn-row { justify-content: center; margin-top: var(--s3); }
.signup-pending { color: var(--muted); background: var(--paper); border: 1px solid var(--rule);
                  border-radius: 5px; padding: var(--s3); text-align: left; margin: 0 auto; }
.signup-form { display: flex; flex-wrap: wrap; gap: var(--s2); justify-content: center;
               margin: var(--s3) 0 var(--s2); }
.signup-form input { flex: 1 1 17rem; min-width: 0; max-width: 22rem;
                     font-family: var(--sans); font-size: 1rem; color: var(--ink);
                     background: var(--paper); border: 1px solid var(--rule);
                     border-radius: 4px; padding: .7rem .85rem; }
.signup-form input::placeholder { color: var(--faint); }
.signup-form input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.signup-form .btn { flex: 0 0 auto; }
.signup-fine { color: var(--faint); font-size: .8125rem; line-height: 1.55; max-width: 44ch; margin: 0 auto; }

@media (max-width: 560px) {
  .signup-form { flex-direction: column; }
  .signup-form input { max-width: none; }
  .signup-form .btn { width: 100%; justify-content: center; }
}
