/* Never Still — article pages (/method/…).
   One stylesheet for every long-read page, so a change here updates them all.
   Tokens and type match index.html. Paths are relative (../fonts/) so the
   page also renders when opened straight from disk. */

@font-face{font-family:'Fraunces';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/fraunces-v38-latin_latin-ext-300.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/fraunces-v38-latin_latin-ext-regular.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/fraunces-v38-latin_latin-ext-500.woff2') format('woff2');}
@font-face{font-family:'Fraunces';font-style:italic;font-weight:400;font-display:swap;src:url('../fonts/fraunces-v38-latin_latin-ext-italic.woff2') format('woff2');}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:300;font-display:swap;src:url('../fonts/work-sans-v24-latin_latin-ext-300.woff2') format('woff2');}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:400;font-display:swap;src:url('../fonts/work-sans-v24-latin_latin-ext-regular.woff2') format('woff2');}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:500;font-display:swap;src:url('../fonts/work-sans-v24-latin_latin-ext-500.woff2') format('woff2');}
@font-face{font-family:'Work Sans';font-style:normal;font-weight:600;font-display:swap;src:url('../fonts/work-sans-v24-latin_latin-ext-600.woff2') format('woff2');}

:root{
  --bg:#222927;
  --line:rgba(244,240,232,0.20);
  --ink:#F4F0E8;
  --ink-body:#DDD6C8;
  --ink-dim:#CCC4B4;
  --ochre:#D9A263;
  --sage:#9DB3A8;
  --serif:'Fraunces', Georgia, 'Times New Roman', serif;
  --sans:'Work Sans', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --note-w:260px;
  --note-gap:44px;
}
*{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;overflow-x:hidden;}
@media (prefers-reduced-motion:reduce){ html{scroll-behavior:auto;} }
body{
  overflow-x:hidden;
  background:var(--bg);
  color:var(--ink);
  font-family:var(--sans);
  font-weight:400;
  line-height:1.7;
  -webkit-font-smoothing:antialiased;
}
a{color:inherit;}
a:focus-visible, button:focus-visible{outline:2px solid var(--ochre);outline-offset:3px;}

.wrap{max-width:1040px;margin:0 auto;padding:0 28px;}
@media(max-width:640px){ .wrap{padding:0 22px;} }

/* ---------- masthead: brand, way back, title, short answer ---------- */
.masthead{position:relative;overflow:hidden;border-bottom:1px solid var(--line);}
.masthead-photo{position:absolute;inset:0;background-size:cover;background-position:center;pointer-events:none;}
.masthead-photo::after{
  content:"";
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(32,26,20,0.90) 0%, rgba(32,26,20,0.82) 50%, rgba(32,26,20,0.55) 100%),
    linear-gradient(180deg, rgba(32,26,20,0.35) 0%, rgba(32,26,20,0.70) 100%);
}
.masthead .wrap{position:relative;padding-top:40px;padding-bottom:88px;}
@media(max-width:640px){ .masthead .wrap{padding-top:28px;padding-bottom:60px;} }

.brand{font-family:var(--serif);font-size:19px;letter-spacing:0.01em;margin-bottom:76px;}
@media(max-width:640px){ .brand{margin-bottom:52px;} }
.brand a{text-decoration:none;}
.brand-dot{color:var(--ochre);margin:0 1px;}
.brand-run{color:var(--ochre);font-style:italic;}
.brand a:hover .brand-dot, .brand a:hover .brand-run{color:#E8B87C;}

.crumb{font-family:var(--serif);font-style:italic;font-size:15px;color:var(--sage);margin-bottom:18px;}
.crumb a{text-decoration:none;border-bottom:1px solid rgba(157,179,168,0.35);}
.crumb a:hover{color:var(--ink);border-color:var(--ink-dim);}

h1{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(33px, 5vw, 54px);
  line-height:1.12;
  letter-spacing:-0.01em;
  max-width:17ch;
  text-wrap:balance;
}
.dek{
  margin-top:28px;
  max-width:54ch;
  font-size:18px;
  font-weight:300;
  line-height:1.65;
  color:#E2DBCD;
  text-wrap:pretty;
}
.reviewed{margin-top:26px;font-size:13.5px;font-weight:300;color:var(--ink-dim);max-width:54ch;}
@media(max-width:640px){ .dek{font-size:17px;} }

/* ---------- article body ----------
   Text column is 66ch. On wide screens each claim with a note becomes a
   two-column grid: text on the left, the note beside it. On narrow screens
   the note simply follows the text it belongs to. */
.article{padding:64px 0 24px;}
.prose{font-size:17.5px;}
@media(max-width:640px){ .prose{font-size:16.5px;} }
.prose > *{max-width:66ch;}
.prose > * + *{margin-top:1.05em;}
.prose p, .prose li{color:var(--ink-body);text-wrap:pretty;}
.prose h2{
  font-family:var(--serif);
  font-weight:400;
  font-size:clamp(23px, 1.65em, 29px);
  line-height:1.25;
  color:var(--ink);
  margin-top:2.3em;
  text-wrap:balance;
}
.prose > h2:first-child{margin-top:0;}
.prose h2 + *{margin-top:0.75em;}
.prose strong{font-weight:500;color:var(--ink);}
.prose a{text-decoration:none;border-bottom:1px solid rgba(217,162,99,0.55);color:var(--ink);}
.prose a:hover{color:var(--ochre);}

/* unordered: sage en dash, as in the offer list on the landing */
.prose ul{list-style:none;}
.prose ul > li{position:relative;padding-left:22px;}
.prose ul > li + li{margin-top:0.7em;}
.prose ul > li::before{content:"–";position:absolute;left:0;color:var(--sage);}

/* ordered: only where the order is the point (what gets cut first) */
.prose ol.order{list-style:none;counter-reset:step;}
.prose ol.order > li{
  counter-increment:step;
  position:relative;
  padding:18px 0 18px 40px;
  border-top:1px solid var(--line);
}
.prose ol.order > li:first-child{border-top:none;padding-top:4px;}
.prose ol.order > li::before{
  content:counter(step);
  position:absolute;
  left:0;
  top:18px;
  font-family:var(--serif);
  font-style:italic;
  font-size:21px;
  line-height:1.3;
  color:var(--ochre);
}
.prose ol.order > li:first-child::before{top:4px;}

/* ---------- evidence notes ----------
   In the source each note comes right before the text it belongs to.
   Narrow screens: the note is moved below its text (flex order).
   Wide screens: the note floats out into the right margin, level with the
   first line of its text, without pushing anything down. */
.claim,
.prose ul.claims > li,
.prose ol.order > li > div{display:flex;flex-direction:column;}
.note{
  order:2;
  margin-top:0.7em;
  padding-left:14px;
  border-left:1px solid var(--line);
  font-size:14px;
  font-weight:300;
  line-height:1.55;
  color:var(--ink-dim);
  text-wrap:pretty;
}
.level{
  display:flex;
  align-items:center;
  gap:8px;
  font-family:var(--serif);
  font-style:italic;
  font-size:13.5px;
  color:var(--ink);
  margin-bottom:3px;
}
.level::before{
  content:"";
  flex:0 0 9px;
  width:9px;
  height:9px;
  border-radius:50%;
  border:1.5px solid currentColor;
}
.level.strong{color:var(--sage);}
.level.strong::before{background:currentColor;}
.level.some{color:var(--ochre);}
.level.some::before{background:linear-gradient(90deg, currentColor 50%, transparent 50%);}
.level.practice{color:var(--ink-dim);}
.cite{white-space:nowrap;}
.cite a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line);}
.cite a:hover{color:var(--ochre);}

/* the key to the three marks, near the top */
.legend{
  display:flex;
  flex-direction:column;
  gap:6px;
  padding:16px 0 18px;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line);
}
.legend .level{margin:0;}
.legend-intro{font-size:15px !important;color:var(--ink-dim) !important;font-weight:300;}

@media(min-width:1100px){
  .prose{display:flow-root;}
  .claim,
  .prose ul.claims > li,
  .prose ol.order > li > div{display:block;}
  .note{
    float:right;
    clear:right;
    width:var(--note-w);
    margin:0.3em calc(-1 * (var(--note-w) + var(--note-gap))) 0.8em 0;
  }
}

/* ---------- a week, as planned and as it went ---------- */
.week{margin-top:1.8em;max-width:900px;}
.week table{width:100%;border-collapse:collapse;}
.week th, .week td{
  text-align:left;
  vertical-align:top;
  padding:15px 22px 15px 0;
  border-top:1px solid var(--line);
  font-size:15.5px;
  line-height:1.5;
}
.week thead th{
  border-top:none;
  padding-bottom:12px;
  font-family:var(--serif);
  font-style:italic;
  font-weight:400;
  font-size:15px;
  color:var(--sage);
}
.week tbody th{font-family:var(--serif);font-weight:400;font-size:17px;color:var(--ink);width:4.2em;}
.week .plan{color:var(--ink-dim);font-weight:300;width:28%;}
.week .plan s{text-decoration-color:rgba(217,162,99,0.85);text-decoration-thickness:1.5px;color:rgba(204,196,180,0.62);}
.week .life{color:var(--ink-body);font-weight:300;width:26%;}
.week .did{color:var(--ochre);}
.week .did.same{color:var(--sage);}
.week-total{
  margin-top:22px;
  padding-top:20px;
  border-top:1px solid var(--line);
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px 40px;
  max-width:900px;
}
.week-total p{margin:0;font-size:15.5px;color:var(--ink-dim);font-weight:300;}
.week-total b{display:block;font-family:var(--serif);font-weight:400;font-size:19px;color:var(--ink);}
.week-total .done b{color:var(--ochre);}
.week + .prose{margin-top:40px;}
@media(max-width:640px){
  .week thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);}
  .week table, .week tbody, .week tr, .week th, .week td{display:block;width:auto;}
  .week tr{padding:16px 0;border-top:1px solid var(--line);}
  .week tbody tr:first-child{border-top:none;}
  .week th, .week td{border-top:none;padding:2px 0;}
  .week td.plan, .week td.life, .week tbody th{width:auto;}
  .week tbody th{margin-bottom:4px;}
  .week td::before{
    content:attr(data-label);
    display:block;
    font-family:var(--serif);
    font-style:italic;
    font-size:13px;
    color:var(--sage);
    margin-top:6px;
  }
  .week-total{grid-template-columns:1fr;}
}

/* ---------- where to go next ---------- */
.next{
  margin-top:72px;
  max-width:760px;
  background:rgba(24,30,31,0.80);
  border:1px solid var(--line);
  border-radius:3px;
  padding:44px 48px;
}
@media(max-width:640px){ .next{padding:30px 22px;margin-top:56px;} }
.next-inline{margin:48px 0 56px;padding:30px 36px;}
.next-inline p{color:var(--ink);}
.next-inline .next-actions{margin-top:20px;}
@media(max-width:640px){ .next-inline{padding:24px 20px;margin:40px 0 48px;} }
.next h2{font-family:var(--serif);font-weight:400;font-size:24px;line-height:1.3;margin-bottom:14px;}
.next p{font-size:16px;font-weight:300;color:var(--ink-dim);max-width:58ch;text-wrap:pretty;}
.next-actions{margin-top:28px;display:flex;gap:22px;align-items:center;flex-wrap:wrap;}
.btn-primary{
  display:inline-block;
  text-decoration:none;
  background:var(--ochre);
  color:#1B211F;
  font-family:var(--sans);
  font-size:15px;
  font-weight:500;
  padding:13px 26px;
  border-radius:2px;
}
@media (hover:hover){ .btn-primary:hover{background:#CE9A62;} }
.btn-ghost{font-size:14px;color:var(--ink-dim);text-decoration:none;border-bottom:1px solid var(--line);padding-bottom:2px;}
.btn-ghost:hover{color:var(--ink);border-color:var(--ink-dim);}

/* ---------- sources ---------- */
.sources{margin-top:80px;padding-top:36px;border-top:1px solid var(--line);max-width:780px;}
.sources h2{font-family:var(--serif);font-weight:400;font-size:22px;margin-bottom:8px;}
.sources > p{font-size:14.5px;font-weight:300;color:var(--ink-dim);margin-bottom:22px;max-width:66ch;}
.sources ol{list-style:none;counter-reset:ref;}
.sources li{
  counter-increment:ref;
  display:grid;
  grid-template-columns:34px minmax(0,1fr);
  padding:10px 0;
  border-top:1px solid rgba(244,240,232,0.10);
  font-size:14px;
  font-weight:300;
  line-height:1.55;
  color:var(--ink-dim);
  scroll-margin-top:24px;
}
.sources li::before{content:counter(ref);font-family:var(--serif);font-style:italic;color:var(--ochre);}
.sources li:target{background:rgba(217,162,99,0.08);}
.sources li a{color:var(--ink);text-decoration:none;border-bottom:1px solid var(--line);word-break:break-word;}
.sources li a:hover{color:var(--ochre);}

/* ---------- footer, back to top: same as the landing ---------- */
footer{
  margin-top:96px;
  padding:48px 0 64px;
  border-top:1px solid var(--line);
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap;
  gap:16px;
}
.footer-brand{font-family:var(--serif);font-size:16px;}
.footer-brand a{text-decoration:none;}
.footer-note{color:var(--ink-dim);font-size:13px;font-weight:300;max-width:40ch;}
.footer-legal{display:inline-block;margin-top:10px;font-size:12.5px;}
.footer-legal a{color:var(--ink-dim);text-decoration:none;border-bottom:1px solid var(--line);}
.footer-legal a:hover{color:var(--ink);}

.totop{
  position:fixed;
  right:28px;
  bottom:28px;
  width:44px;
  height:44px;
  display:flex;
  align-items:center;
  justify-content:center;
  border:1px solid rgba(244,240,232,0.25);
  border-radius:999px;
  background:rgba(16,20,22,0.78);
  color:var(--ink);
  z-index:20;
  opacity:0;
  visibility:hidden;
  transition:opacity .25s ease, visibility .25s ease, border-color .2s ease;
}
.totop.on{opacity:1;visibility:visible;}
.totop svg{width:19px;height:19px;}
@media (hover:hover){ .totop:hover{border-color:var(--ochre);color:var(--ochre);} }
@media(max-width:640px){ .totop{right:16px;bottom:16px;width:40px;height:40px;} }

/* visually hidden, still read by screen readers */
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;}

/* ---------- drafting only ----------
   Notes to the author inside a draft. Deliberately loud so none survive
   review on the draft branch. Before merging to main:
   grep -rn 'class="todo"' site/   → must return nothing. */
.todo{
  display:inline;
  font-family:var(--sans);
  font-size:0.8em;
  font-style:normal;
  font-weight:500;
  line-height:1.5;
  color:#F6C3B0;
  background:rgba(224,135,107,0.16);
  border:1px dashed #E0876B;
  border-radius:2px;
  padding:1px 6px;
  margin-left:4px;
}

/* legend items: mark + one short line */
.legend-item{display:flex;align-items:baseline;gap:10px;}
.legend-desc{font-size:13.5px;font-weight:300;color:var(--ink-dim);}
