/* Unslop Your Content: plain CSS, no build step.
   Big type on purpose. The root size scales up on large screens. */
@font-face { font-family: "Anton"; src: url("../fonts/anton-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Playfair Display"; src: url("../fonts/playfair-italic-latin.woff2") format("woff2"); font-weight: 400 900; font-style: italic; font-display: swap; }
:root {
  --bg: #FCEAD3;          /* the cover's cream */
  --paper: #FFFAF2;
  --ink: #0C0C0A;
  --muted: #4A4238;
  --line: #D9BF9A;
  --band: #F5DDB9;
  --brand: #0C0C0A;
  --brand-dark: #A82314;
  --red: #E8402A;         /* brush-stroke red */
  --red-text: #B42318;    /* red that passes contrast on cream */
  --marker: #FFE27A;
  --focus: #1B5FE0;
  --bad: #B42318;
  --hl-vocab: #FFE27A;
  --hl-framing: #BCE0FF;
  --hl-structure: #FFC4D6;
  --hl-honesty: #FFB59A;
  --hl-voice: #C5EDBD;
  --display: Anton, Impact, "Arial Narrow Bold", "Haettenschweiler", sans-serif;
  --italic: "Playfair Display", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --serif: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --radius: 12px;
  --shadow: 0 1px 2px rgba(12,12,10,.08), 0 6px 18px rgba(12,12,10,.07);
}
* { box-sizing: border-box; }
html { font-size: clamp(18px, 14px + 0.5vw, 32px); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html[data-size="large"]  { font-size: clamp(21px, 17px + 0.5vw, 36px); }
html[data-size="xlarge"] { font-size: clamp(25px, 20px + 0.5vw, 42px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { animation: none !important; transition: none !important; } }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.6; }
img, svg { max-width: 100%; }
a { color: var(--red-text); text-underline-offset: .18em; text-decoration-thickness: .08em; }
a:hover { color: var(--ink); text-decoration-thickness: .14em; }
:focus-visible { outline: .22rem solid var(--focus); outline-offset: .18rem; border-radius: 4px; }
h1, h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; line-height: 1; margin: 0 0 .5em; letter-spacing: .01em; }
h3 { font-family: var(--sans); font-weight: 800; line-height: 1.2; margin: 0 0 .5em; }
h1 { font-size: clamp(3.4rem, 1.8rem + 6vw, 8rem); line-height: .92; }
h2 { font-size: clamp(2.2rem, 1.5rem + 2.4vw, 4rem); margin-top: 0; }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
.wrap { width: 100%; max-width: 74rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.narrow { max-width: 42rem; }
.measure { max-width: 40rem; }
.lead { font-size: 1.25rem; color: var(--muted); max-width: 40rem; }
.eyebrow { font-family: var(--sans); font-size: .85rem; letter-spacing: .16em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .7rem 1rem; z-index: 100; }
.skip:focus { left: 0; }
mark.m { background: var(--marker); color: inherit; padding: .05em .15em; border-radius: 3px; }

.mt1 { margin-top: 1rem; margin-bottom: 0; } .mt2 { margin-top: 2rem; } .tight { margin-bottom: .4rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- header ---------- */
.site-header { border-bottom: 1px solid var(--line); background: var(--bg); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 2rem; padding-block: .9rem; }
.brand { color: var(--ink); text-decoration: none; display: inline-flex; align-items: baseline; gap: .55rem; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin-left: auto; align-items: center; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: .35rem 0; border-bottom: .2rem solid transparent; }
.nav a:hover { border-bottom-color: var(--red); }
.nav a[aria-current="page"] { border-bottom-color: var(--red); }
.size-ctl { display: inline-flex; gap: .25rem; align-items: center; }
.size-ctl button { font: inherit; font-weight: 700; background: transparent; border: 2px solid var(--line); border-radius: 8px; padding: .1rem .55rem; color: var(--ink); cursor: pointer; min-width: 2.6rem; }
.size-ctl button[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.size-ctl .lbl { font-size: .8rem; color: var(--muted); margin-right: .2rem; }

/* ---------- buttons ---------- */
.btn { display: inline-block; font: inherit; font-weight: 800; font-size: 1.1rem; line-height: 1.2; padding: .85rem 1.4rem; border-radius: 6px; border: 2px solid var(--ink); background: var(--ink); color: var(--bg); text-decoration: none; cursor: pointer; text-align: center; }
.btn:hover { background: var(--red-text); border-color: var(--red-text); color: #fff; }
.btn.secondary { background: transparent; color: var(--ink); }
.btn.secondary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn.soon, .btn.soon:hover { background: var(--paper); border: 2px dashed #5C5246; color: var(--ink); cursor: default; }
.btn.small { font-size: .95rem; padding: .55rem 1rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin: 1.5rem 0 .8rem; }

/* ---------- sections ---------- */
section { padding-block: clamp(2.5rem, 6vw, 5rem); }
.band { background: var(--band); border-block: 1px solid var(--line); }
.hero { padding-block: clamp(2.5rem, 7vw, 6rem); }
.hero-grid { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: center; }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.25fr 1fr; } }
.grid { display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: var(--shadow); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.stat { font-family: var(--display); font-size: clamp(4rem, 2.6rem + 4vw, 7rem); font-weight: 400; line-height: 1; margin: 0 0 .3rem; color: var(--red-text); }
.src { font-size: .9rem; color: var(--muted); }
.demo { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.4rem 1.5rem; box-shadow: 8px 8px 0 var(--red); }
.demo p { font-size: 1.2rem; }
.demo .cap { font-size: .95rem; color: var(--muted); margin: 0; }
.hl { padding: .05em .2em; border-radius: 3px; }
.hl.vocab { background: var(--hl-vocab); } .hl.framing { background: var(--hl-framing); } .hl.structure { background: var(--hl-structure); }
.hl.honesty { background: var(--hl-honesty); border-bottom: 3px solid var(--bad); } .hl.voice { background: var(--hl-voice); }
.asks { counter-reset: ask; list-style: none; padding: 0; display: grid; gap: 1rem; }
.asks li { counter-increment: ask; display: grid; grid-template-columns: 3rem 1fr; gap: 1rem; align-items: start; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.3rem; margin: 0; }
.asks li::before { content: counter(ask); font-family: var(--display); font-size: 2.8rem; font-weight: 400; color: var(--red-text); line-height: 1; }
.asks strong { display: block; font-size: 1.15rem; }
.two { display: grid; gap: 3rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 62rem) { .two { grid-template-columns: 1fr 1fr; } .two.wide-left { grid-template-columns: 1.4fr 1fr; } }
.tick li { list-style: none; position: relative; padding-left: 1.6rem; }
.tick { padding-left: 0; }
.tick li::before { content: ""; position: absolute; left: 0; top: .55em; width: .9rem; height: .5rem; border-left: .22rem solid var(--ink); border-bottom: .22rem solid var(--ink); transform: rotate(-45deg) translateY(-.2em); }
.cross li::before { border: 0; content: "\00D7"; transform: none; top: -.05em; font-weight: 700; color: var(--bad); font-size: 1.3em; }
.pair { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 52rem) { .pair { grid-template-columns: 1fr 1fr; } }
.pair > div { border-radius: var(--radius); padding: 1.1rem 1.3rem; border: 1px solid var(--line); background: var(--paper); }
.pair .before { border-left: .5rem solid var(--bad); } .pair .after { border-left: .5rem solid var(--ink); }
.pair .tag { font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin: 0 0 .4rem; }
.pair p:last-child { margin: 0; }

/* ---------- forms ---------- */
label { display: block; font-weight: 700; margin-bottom: .3rem; }
input[type="email"], input[type="text"], textarea { font: inherit; width: 100%; padding: .8rem .9rem; border: 2px solid #7A7266; border-radius: 10px; background: #fff; color: var(--ink); }
input:focus, textarea:focus { border-color: var(--focus); outline: .2rem solid rgba(27,95,224,.3); }
.field { margin-bottom: 1.1rem; }
.check { display: flex; gap: .7rem; align-items: flex-start; font-weight: 400; }
.check input { width: 1.4rem; height: 1.4rem; margin-top: .25rem; flex: none; accent-color: var(--brand); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.signup { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.6rem 1.7rem; box-shadow: 8px 8px 0 var(--red); }
.signup h2, .signup h3 { margin-bottom: .4em; }
.notice { border-left: .5rem solid var(--red); background: var(--paper); padding: 1rem 1.2rem; border-radius: 8px; }

/* ---------- checker ---------- */
.checker-top { padding-block: clamp(2rem, 4vw, 3.5rem) 1rem; }
.editor { background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.2rem; box-shadow: 8px 8px 0 var(--red); }
.editor textarea { min-height: 18rem; font-size: 1.1rem; line-height: 1.65; resize: vertical; }
.editor .bar { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; margin-top: 1rem; }
.editor .count { margin-left: auto; color: var(--muted); font-size: .95rem; }
.privacy-note { font-size: .95rem; color: var(--muted); margin: .8rem 0 0; }
#result[hidden] { display: none; }
.scorebox { display: grid; gap: 1.5rem 3rem; grid-template-columns: 1fr; align-items: center; background: var(--paper); border: 2px solid var(--ink); border-radius: var(--radius); padding: 1.5rem 1.7rem; margin-bottom: 1.5rem; }
@media (min-width: 52rem) { .scorebox { grid-template-columns: auto 1fr; } }
.scorenum { font-family: var(--display); font-size: clamp(5.5rem, 3.5rem + 6vw, 10rem); font-weight: 400; line-height: .9; white-space: nowrap; }
.scorenum small { font-size: .3em; color: var(--muted); font-weight: 400; margin-left: .15em; }
.band-label { font-size: clamp(2rem, 1.5rem + 1.5vw, 3rem); margin: 0 0 .2rem; }
.meter { height: 1.1rem; background: #E7E0D2; border-radius: 99px; overflow: hidden; margin: .8rem 0; border: 1px solid var(--line); }
.meter > i { display: block; height: 100%; width: 0; background: var(--bad); transition: width .5s ease; }
.band-clean .meter > i { background: #1E7B4B; } .band-light .meter > i { background: #A07C00; } .band-smells .meter > i { background: #C2410C; } .band-heavy .meter > i { background: var(--bad); }
.facts { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; color: var(--muted); font-size: .95rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.facts li { margin: 0; }
.result-grid { display: grid; gap: 2rem; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 80rem) { .result-grid { grid-template-columns: 1.1fr 1fr; } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; box-shadow: var(--shadow); }
.panel h2, .panel h3 { font-size: 1.9rem; margin-bottom: .5em; }
.panel h3 { font-size: 1.3rem; }
.legend { display: flex; flex-wrap: wrap; gap: .5rem 1.1rem; margin: 0 0 1rem; padding: 0; list-style: none; font-size: .9rem; }
.legend li { margin: 0; display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 1.1rem; height: 1.1rem; border-radius: 4px; display: inline-block; border: 1px solid rgba(0,0,0,.25); }
.legend .vocab i { background: var(--hl-vocab); } .legend .framing i { background: var(--hl-framing); } .legend .structure i { background: var(--hl-structure); } .legend .honesty i { background: var(--hl-honesty); } .legend .voice i { background: var(--hl-voice); }
.marked { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.1rem; line-height: 1.9; max-height: 38rem; overflow: auto; padding: .3rem; }
.marked mark { color: var(--ink); border-radius: 4px; padding: .08em .12em; cursor: pointer; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.marked mark.vocab { background: var(--hl-vocab); } .marked mark.framing { background: var(--hl-framing); } .marked mark.structure { background: var(--hl-structure); }
.marked mark.honesty { background: var(--hl-honesty); border-bottom: 3px solid var(--bad); } .marked mark.voice { background: var(--hl-voice); }
.marked mark.flash, .issue.flash { outline: .22rem solid var(--focus); outline-offset: 2px; }
.cat { margin-bottom: 1.4rem; }
.cat > h3 { display: flex; gap: .6rem; align-items: center; font-size: 1.2rem; font-family: var(--sans); margin-bottom: .6rem; }
.cat > h3 i { width: 1rem; height: 1rem; border-radius: 4px; border: 1px solid rgba(0,0,0,.25); flex: none; }
.cat .vocab > i, .cat h3.vocab i { background: var(--hl-vocab); } .cat h3.framing i { background: var(--hl-framing); } .cat h3.structure i { background: var(--hl-structure); } .cat h3.honesty i { background: var(--hl-honesty); } .cat h3.voice i { background: var(--hl-voice); }
.issue { border-top: 1px solid var(--line); padding: .8rem 0; }
.issue:first-of-type { border-top: 0; }
.issue .top { display: flex; flex-wrap: wrap; gap: .4rem .8rem; align-items: baseline; }
.issue .name { font-weight: 700; }
.issue .n { color: var(--muted); font-size: .9rem; }
.issue .fix { margin: .3rem 0 .4rem; }
.issue .fix b { font-weight: 700; }
.issue .ex { display: flex; flex-wrap: wrap; gap: .4rem; margin: .3rem 0; padding: 0; list-style: none; }
.issue .ex li { margin: 0; background: var(--band); border: 1px solid var(--line); border-radius: 6px; padding: .1rem .5rem; font-size: .95rem; }
.linkbtn { font: inherit; background: none; border: 0; padding: 0; color: var(--red-text); text-decoration: underline; cursor: pointer; font-weight: 600; }
.fixfirst { counter-reset: ff; list-style: none; padding: 0; margin: 0; }
.fixfirst li { counter-increment: ff; display: grid; grid-template-columns: 2.2rem 1fr; gap: .6rem; margin-bottom: .9rem; }
.fixfirst li::before { content: counter(ff); font-family: var(--display); font-weight: 400; font-size: 2rem; color: var(--red-text); line-height: 1.1; }
.review { list-style: none; padding: 0; margin: 0; }
.review li { display: grid; grid-template-columns: 6.5rem 1fr; gap: .8rem; align-items: start; padding: .6rem 0; border-top: 1px solid var(--line); margin: 0; }
.review li:first-child { border-top: 0; }
.badge { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: .15rem .5rem; border-radius: 6px; text-align: center; }
.badge.pass { background: #D4EDDD; color: #0B4A28; } .badge.flag { background: #FBD5CF; color: #7A1810; } .badge.manual { background: #E5E1F5; color: #2D2470; }
.review .nm { font-weight: 700; display: block; }
.review .nt { font-size: .95rem; color: var(--muted); }
.tip { position: fixed; z-index: 50; max-width: 24rem; background: var(--ink); color: #fff; padding: .7rem .9rem; border-radius: 8px; font-size: .95rem; line-height: 1.4; box-shadow: var(--shadow); pointer-events: none; }
.tip b { display: block; color: var(--marker); margin-bottom: .15rem; }
.tip[hidden] { display: none; }
.rules-list { columns: 2 22rem; column-gap: 2rem; padding-left: 1.2rem; }
.rules-list li { break-inside: avoid; }

/* ---------- checklist ---------- */
.ck { counter-reset: ck; list-style: none; padding: 0; display: grid; gap: .9rem; }
.ck > li { counter-increment: ck; display: grid; grid-template-columns: 3rem 1fr; gap: .9rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; margin: 0; break-inside: avoid; }
.ck > li::before { content: counter(ck); font-family: var(--display); font-size: 2.6rem; font-weight: 400; color: var(--red-text); line-height: 1; }
.ck strong { display: block; font-size: 1.15rem; }
.ck p { margin: 0; }

/* ---------- footer ---------- */
.site-footer { background: var(--ink); color: var(--bg); padding-block: 3rem; font-size: .95rem; }
.site-footer .cols { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.site-footer h2 { font-size: 1.5rem; color: var(--bg); margin-bottom: .5em; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35em; }
.site-footer a { color: var(--bg); }
.site-footer a:hover { color: var(--marker); }
.site-footer .muted { color: #D9C7AA; }
.it { font-family: var(--italic); font-style: italic; }

/* ---------- cover theme: brush strike, italic accents, cover art ---------- */
.strike { position: relative; display: inline-block; white-space: nowrap; }
.strike::after { content: ""; position: absolute; left: -.05em; right: -.05em; top: 44%; height: .3em; transform: translateY(-50%) rotate(-2.5deg); background: url("../img/strike.svg") center / 100% 100% no-repeat; pointer-events: none; }
.brand-mark { font-family: var(--display); font-size: 2rem; line-height: 1; text-transform: uppercase; letter-spacing: .02em; }
.brand-sub { font-family: var(--italic); font-style: italic; font-size: 1.1rem; }
.sub { font-family: var(--italic); font-style: italic; font-size: clamp(1.8rem, 1.2rem + 2vw, 3.2rem); line-height: 1.15; margin: 0 0 1rem; }
.cover-wrap { display: flex; justify-content: center; }
.cover { display: block; width: min(100%, 26rem); height: auto; border-radius: 4px; box-shadow: 12px 14px 0 var(--ink), 0 20px 40px rgba(12,12,10,.25); }
@media (min-width: 62rem) { .hero-grid { grid-template-columns: 1.3fr 1fr; } }
.hero h1 { margin-bottom: .15em; }
.hero .eyebrow { color: var(--ink); }
.site-header { background: var(--bg); border-bottom: 3px solid var(--ink); }

@media print {
  .site-header, .site-footer, .no-print, .skip { display: none !important; }
  body { background: #fff; font-size: 12pt; }
  html { font-size: 14px; }
  .card, .ck > li, .panel { box-shadow: none; }
  a { color: inherit; }
}
[tabindex="-1"]:focus { outline: none; }

/* book page: chapter lists and pull quote */
.toc { margin: .4rem 0 0; padding-left: 1.6rem; }
.toc li { margin: .3rem 0; }
.pull { margin: 2.2rem 0; padding: .4rem 0 .4rem 1.4rem; border-left: 6px solid var(--red); }
.pull p { font-family: "Playfair Display", Georgia, serif; font-style: italic; font-size: 1.5rem; line-height: 1.3; margin: 0; max-width: 36em; }
/* 3D paperback mockup in the heroes (transparent PNG/WebP) */
.cover.mockup { width: min(100%, 36rem); border-radius: 0; box-shadow: none; filter: drop-shadow(0 22px 22px rgba(12,12,10,.22)); }
