/* Layout: single reading column (~40rem) on a cool proof-paper ground; red pen is the only accent, used for strike-throughs, verdict stamps and links on hover. */
:root {
  --paper: #F2F3EF;
  --panel: #E6E9E2;
  --ink: #18202C;
  --muted: #555E6B;
  --rule: #CDD1C8;
  --pen: #C42127;
  --pen-soft: rgba(196, 33, 39, .10);
  --display: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --body: "Literata", Georgia, "Times New Roman", serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #12171F; --panel: #1A212B; --ink: #E9EBE5; --muted: #A0A8B4;
    --rule: #2C3440; --pen: #FF6B5E; --pen-soft: rgba(255, 107, 94, .12);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --paper: #12171F; --panel: #1A212B; --ink: #E9EBE5; --muted: #A0A8B4;
  --rule: #2C3440; --pen: #FF6B5E; --pen-soft: rgba(255, 107, 94, .12);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.7;
  padding-inline: 20px;
}
img { max-width: 100%; }
a { color: inherit; text-decoration-color: var(--pen); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pen); }
:focus-visible { outline: 3px solid var(--pen); outline-offset: 3px; border-radius: 2px; }

.wrap { max-width: 64rem; margin-inline: auto; }
.wrap > * { max-width: 44rem; }
.wide { max-width: 64rem; margin-inline: auto; }

/* Header */
.site-head { border-bottom: 1px solid var(--rule); }
.site-head .wide { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; padding-block: 1.1rem; }
.mark { font-family: var(--display); font-weight: 800; font-size: 1.35rem; letter-spacing: -.02em; text-decoration: none; }
.mark span { color: var(--pen); }
.nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; font-family: var(--display); font-size: 1rem; font-weight: 500; }
.nav a { text-decoration: none; padding-block: .25rem; }
.nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--pen); }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; letter-spacing: -.02em; text-wrap: balance; margin: 0; }
h2 { font-size: clamp(1.6rem, 3.6vw, 2.1rem); font-weight: 700; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }
.flow > * + * { margin-top: 1.1rem; }
.lede { font-size: 1.2rem; color: var(--muted); }
.small { font-size: .92rem; color: var(--muted); }

/* Hero */
.hero { padding-block: clamp(3rem, 9vw, 6.5rem) clamp(2.5rem, 6vw, 4rem); }
.hero h1 { font-size: clamp(2.6rem, 8.4vw, 5.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.hero h1 .line { display: block; }
.struck { position: relative; display: inline-block; color: var(--muted); }
.struck::after {
  content: ""; position: absolute; left: -4%; right: -4%; top: 52%;
  height: .09em; background: var(--pen); border-radius: 99px;
  transform: rotate(-4deg); transform-origin: left center;
  animation: strike .5s cubic-bezier(.6,0,.3,1) both;
}
.struck:nth-of-type(2)::after { animation-delay: .35s; transform: rotate(3deg); }
@keyframes strike { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hero .sub { margin-top: 1.6rem; max-width: 36rem; font-size: clamp(1.1rem, 2.2vw, 1.3rem); }

/* Target ledger */
.ledger { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-block: 2px solid var(--ink); margin-top: 2.5rem; font-family: var(--display); }
.ledger div { padding: .9rem 1rem .9rem 0; }
.ledger div + div { border-left: 1px solid var(--rule); padding-left: 1rem; }
.ledger dt { font-size: .85rem; color: var(--muted); }
.ledger dd { margin: 0; font-size: clamp(1.4rem, 4vw, 2rem); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.ledger dd.pen { color: var(--pen); }

section { padding-block: clamp(2.5rem, 6vw, 4rem); }
section + section { border-top: 1px solid var(--rule); }

/* Manifesto */
.manifesto h2 { margin-bottom: 1.4rem; }
.manifesto .big { font-family: var(--display); font-size: clamp(1.35rem, 3vw, 1.65rem); font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }

.strands { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 2rem; margin-top: 2.2rem; }
.strand { border-top: 2px solid var(--ink); padding-top: 1rem; }
.strand h3 { margin-bottom: .5rem; }
.strand p { font-size: 1rem; }
.strand a { font-family: var(--display); font-weight: 600; display: inline-block; margin-top: .7rem; }

.signoff { font-family: var(--display); font-weight: 700; font-size: 1.25rem; }

/* Teardown list */
.tlist { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.tlist li { border-top: 1px solid var(--rule); }
.tlist li:last-child { border-bottom: 1px solid var(--rule); }
.tlist a { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr) auto; gap: 1rem; align-items: baseline; padding-block: 1.3rem; text-decoration: none; }
.tlist .no { font-family: var(--display); font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.tlist h3 { font-size: clamp(1.15rem, 2.6vw, 1.4rem); }
.tlist p { font-size: .98rem; color: var(--muted); margin-top: .3rem; }
.tlist a:hover h3 { color: var(--pen); }
@media (max-width: 560px) {
  .tlist a { grid-template-columns: 2.2rem minmax(0, 1fr); }
  .tlist .stamp { grid-column: 2; justify-self: start; }
}

/* Stamp */
.stamp {
  display: inline-block; font-family: var(--display); font-weight: 700; font-size: .82rem; line-height: 1.2;
  color: var(--pen); border: 2px solid var(--pen); border-radius: 4px; padding: .3rem .55rem;
  transform: rotate(-2deg); white-space: nowrap; letter-spacing: .02em;
}

/* Roast My Plan feature */
.feature { background: var(--panel); border-radius: 6px; padding: clamp(1.5rem, 4vw, 2.5rem); display: grid; gap: 1rem; }
.feature + .feature { margin-top: 1.5rem; }
.feature h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); }
.btn {
  justify-self: start; display: inline-block; font-family: var(--display); font-weight: 700; font-size: 1.05rem;
  background: var(--ink); color: var(--paper); text-decoration: none; padding: .8rem 1.3rem; border-radius: 4px;
}
.btn:hover { background: var(--pen); color: #fff; }

/* Article */
.post-head { padding-block: clamp(2.5rem, 7vw, 4.5rem) 2rem; border-bottom: 1px solid var(--rule); }
.post-head .kicker { font-family: var(--display); font-weight: 600; color: var(--muted); margin-bottom: .9rem; }
.post-head h1 { font-size: clamp(2rem, 5.6vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; }
.post-head .meta { margin-top: 1.2rem; font-family: var(--display); font-size: .95rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: .3rem 1.2rem; }

.pitch { margin: 2.2rem 0 0; padding: 1.3rem 1.4rem; background: var(--pen-soft); border-radius: 6px; }
.pitch .label { font-family: var(--display); font-weight: 700; font-size: .95rem; color: var(--pen); margin-bottom: .4rem; }
.pitch blockquote { margin: 0; font-size: 1.15rem; font-style: italic; }

.article { padding-block: 2rem 3rem; }
.article h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); margin-top: 2.6rem; margin-bottom: .9rem; }
.article h2 .n { color: var(--pen); margin-right: .4rem; }
.article ul, .article ol { padding-left: 1.3rem; margin: 0; }
.article li + li { margin-top: .4rem; }
.article strong { font-weight: 700; }

.costs { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; margin-top: 1rem; }
.costs td { padding: .55rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.costs td:last-child { text-align: right; font-family: var(--display); font-weight: 600; white-space: nowrap; padding-left: 1rem; }
.costs tr.total td { border-bottom: 2px solid var(--ink); font-weight: 700; font-family: var(--display); }
.costs tr.total td:last-child { color: var(--pen); font-size: 1.15rem; }
.costs .what { display: block; font-size: .9rem; color: var(--muted); }

.sum { font-family: var(--display); font-size: clamp(1.25rem, 3vw, 1.5rem); font-weight: 700; line-height: 1.3; border-left: 4px solid var(--pen); padding-left: 1rem; }

.smoke { border: 2px solid var(--ink); border-radius: 6px; padding: 1.3rem 1.4rem; margin-top: 2.6rem; }
.smoke h2 { margin-top: 0 !important; }

.verdict { margin-top: 2.8rem; text-align: left; }
.verdict .stamp { font-size: clamp(1.05rem, 3vw, 1.35rem); padding: .7rem 1rem; white-space: normal; transform: rotate(-1.5deg); }
.verdict p { margin-top: 1.1rem; }

.next { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; display: grid; gap: 1rem; }

/* Lab table */
.table-wrap { overflow-x: auto; margin-top: 1.5rem; }
.labtable { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; min-width: 30rem; }
.labtable th { font-family: var(--display); text-align: left; font-size: .9rem; color: var(--muted); font-weight: 600; padding: .5rem .8rem .5rem 0; border-bottom: 2px solid var(--ink); }
.labtable td { padding: .8rem .8rem .8rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.labtable td.num { font-family: var(--display); font-weight: 700; white-space: nowrap; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding-block: 2rem 3rem; font-family: var(--display); font-size: .92rem; color: var(--muted); }
.site-foot .wide { display: flex; flex-wrap: wrap; gap: .6rem 2rem; justify-content: space-between; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; }
.foot-id { display: grid; gap: .4rem; }
.foot-id p { margin: 0; }

@media (max-width: 560px) {
  .ledger { grid-template-columns: 1fr; }
  .ledger div + div { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; }
}
@media (max-width: 600px) {
  .labtable.stack { min-width: 0 !important; }
  .labtable.stack thead { display: none; }
  .labtable.stack tr, .labtable.stack td { display: block; }
  .labtable.stack tr { border-bottom: 1px solid var(--rule); padding-block: .6rem; }
  .labtable.stack td { border: 0; padding: .3rem 0; }
  .labtable.stack td[data-label]::before { content: attr(data-label); display: block; font-family: var(--display); font-size: .85rem; font-weight: 600; color: var(--muted); }
}
.tool-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 1rem; }
.tool h2 { font-size: clamp(1.35rem, 3vw, 1.65rem); }
@media (prefers-reduced-motion: reduce) {
  .struck::after { animation: none; }
}

/* Screenshot pair in articles */
.shots { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin: 1.6rem 0; max-width: 34rem; }
.shots figure { margin: 0; }
.shots img { width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--rule); display: block; }
.shots figcaption { font-size: .9rem; color: var(--muted); margin-top: .4rem; text-align: center; }
