/* headcheck.email: the "Paper" look, matching the report (headcheck/report.py colours). */

@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-normal.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Newsreader"; src: url(fonts/newsreader-italic.woff2) format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url(fonts/instrument-sans-600.woff2) format("woff2"); font-weight: 600 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(fonts/ibm-plex-mono-400.woff2) format("woff2"); font-weight: 400 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --page: #f4f2ee;
  --card: #ffffff;
  --panel: #f8f6f2;
  --panel-2: #fdfcfa;
  --ink: #1f1d1a;
  --muted: #5e5950;
  --faint: #6f6a61;
  --line: #e6e1d8;
  --line-2: #efebe4;
  --track: #e9e5dd;
  --field: #cfc8bb;
  --red: #b42318;
  --red-wash: rgba(180, 35, 24, 0.09);
  --on-accent: #ffffff;
  --ok: #0f7a4a;
  --junk: #4a5567;
  --unclear: #5b44b0;
  --sus: #a15c07;
  --danger: #b42318;
  --btn: #1f1d1a;
  --btn-ink: #ffffff;
  --band: #1f1d1a;
  --band-card: #2a2825;
  --band-line: #4a463f;
  --band-ink: #f2eee7;
  --band-muted: #c9c2b6;
  --band-faint: #b1aa9e;
  --band-ok: #5fd49a;
  --mail-text: #2a2825;
  --shadow: 0 1px 2px rgba(31, 29, 26, 0.05), 0 24px 48px rgba(31, 29, 26, 0.08);
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Instrument Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --mail: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121110;
    --card: #1c1b19;
    --panel: #252320;
    --panel-2: #1f1e1c;
    --ink: #f2eee7;
    --muted: #b1aa9e;
    --faint: #a59e92;
    --line: #36332e;
    --line-2: #2e2c28;
    --track: #3a3732;
    --field: #4a463f;
    --red: #ff8a7a;
    --red-wash: rgba(255, 138, 122, 0.13);
    --on-accent: #121110;
    --ok: #5fd49a;
    --junk: #a9b3c3;
    --unclear: #b8a6f7;
    --sus: #f5b545;
    --danger: #ff8a7a;
    --btn: #f2eee7;
    --btn-ink: #121110;
    --band: #1c1b19;
    --band-card: #252320;
    --band-line: #3a3732;
    --mail-text: #e6e1d8;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 24px 48px rgba(0, 0, 0, 0.35);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  overflow-wrap: break-word;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
a:hover { color: var(--red); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 400; margin: 0; letter-spacing: -0.01em; text-wrap: balance; }
h1 em, h2 em, .em { font-style: italic; color: var(--red); }
p { margin: 0; }
code, .mono { font-family: var(--mono); font-size: 0.92em; }

.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--btn); color: var(--btn-ink); padding: 10px 16px; border-radius: 999px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; color: var(--btn-ink); }
.vh { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

.wrap { max-width: 1160px; margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: 15px; }
.label { font-size: 12px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }

/* header */
.site-head { border-bottom: 1px solid var(--line); }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font-weight: 600; font-size: 18px; color: var(--ink); }
.brand svg { flex: none; }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; padding: 10px 0; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
@media (max-width: 560px) { .nav { gap: 2px 18px; } .nav .opt { display: none; } }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 13px 24px; border-radius: 999px; background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; border: 1.5px solid var(--btn); }
.btn:hover { color: var(--btn-ink); opacity: 0.9; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { color: var(--ink); background: var(--panel); opacity: 1; }
.soon { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 1.5px dashed var(--field); color: var(--muted); font-weight: 600; text-align: center; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--sus); }

/* hero */
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: 40px; display: flex; flex-direction: column; gap: 26px; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--red); }
.hero h1 { font-size: clamp(44px, 6.6vw, 84px); line-height: 1.0; letter-spacing: -0.02em; max-width: 13em; }
.lede { font-size: clamp(18px, 1.7vw, 21px); color: var(--muted); max-width: 36em; text-wrap: pretty; }
.addr { font-family: var(--mono); font-size: 0.9em; color: var(--ink); background: var(--card); border: 1px solid var(--line); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; padding-top: 6px; }
.pilot { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; font-size: 15px; color: var(--muted); background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 8px 16px; }

/* section heads */
.section { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 48px; }
.section-head.stack { flex-direction: column; align-items: flex-start; max-width: 700px; }
.h2 { font-size: clamp(34px, 4vw, 52px); line-height: 1.05; }
.h2.sm { font-size: clamp(30px, 3.4vw, 44px); line-height: 1.08; max-width: 15em; }
.intro { color: var(--muted); font-size: 18px; text-wrap: pretty; }

/* examples */
#examples { padding-top: 48px; gap: 28px; }
.ex-card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.ex-tabs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 14px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.ex-tabs[hidden] { display: none; }
.ex-tabs .label { padding: 0 10px 0 6px; }
.tab { font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 9px 16px; min-height: 44px; }
.tab[aria-selected="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.ex-panel { display: flex; flex-wrap: wrap; }
.ex-panel[hidden] { display: none; }
.ex-mail { flex: 3 1 520px; min-width: 0; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 14px; border-right: 1px solid var(--line); }
@media (max-width: 900px) { .ex-mail { border-right: 0; border-bottom: 1px solid var(--line); } }
.mail { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-family: var(--mail); font-size: 16px; line-height: 1.6; color: var(--mail-text); }
.mail-head { margin: 0; padding: 16px 20px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 4px 12px; font-size: 14px; }
.mail-head dt { color: var(--faint); }
.mail-head dd { margin: 0; overflow-wrap: anywhere; }
.mail-head .subj { font-weight: 700; color: var(--ink); }
.mail-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; min-height: 210px; }
.mail-foot { font-size: 13px; color: var(--faint); }
.fake-btn { display: inline-block; align-self: flex-start; color: #ffffff; font-weight: 600; padding: 11px 20px; border-radius: 4px; background: #2f5bd3; }
.fake-btn.dark { background: #1f1d1a; }
@media (prefers-color-scheme: dark) { .fake-btn.dark { background: #f2eee7; color: #121110; } }
.btn-row { display: flex; align-items: center; gap: 12px; padding: 4px 0; }
.btn-row.marked .fake-btn { outline: 2px dashed var(--red); outline-offset: 4px; }
.caption { font-size: 13px; color: var(--faint); }

mark.mk { color: inherit; background-color: transparent; background-image: linear-gradient(var(--red), var(--red)), linear-gradient(var(--red-wash), var(--red-wash)); background-repeat: no-repeat; background-position: 0 100%, 0 0; background-size: 100% 2px, 100% 100%; padding: 0 2px 2px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.pin { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 5px; border-radius: 50%; background: var(--red); color: var(--on-accent); font: 600 11px/1 var(--sans); position: relative; top: -0.45em; }
.btn-row .pin { top: 0; margin-left: 0; }

.ex-read { flex: 2 1 340px; min-width: 0; padding: clamp(20px, 3vw, 36px); display: flex; flex-direction: column; gap: 22px; background: var(--panel-2); }
.notes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.note { display: flex; gap: 12px; align-items: flex-start; }
.note .num { flex: 0 0 22px; height: 22px; border-radius: 50%; background: var(--red); color: var(--on-accent); font-size: 12px; font-weight: 600; display: flex; align-items: center; justify-content: center; margin-top: 3px; }
.note .txt { font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 1.4; }
.verdict { border-top: 1px solid var(--line); padding-top: 20px; display: flex; flex-direction: column; gap: 12px; }
.verdict-top { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.tier { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--on-accent); background: var(--acc); padding: 5px 10px; border-radius: 4px; }
.verdict-head { font-family: var(--serif); font-size: 26px; line-height: 1.2; }
.meter { list-style: none; margin: 0; padding: 4px 0 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
.meter li { display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-align: center; color: var(--muted); }
.meter .bar { display: block; height: 10px; border-radius: 5px; background: var(--track); overflow: hidden; }
.meter .bar span { display: block; height: 100%; width: 100%; transform-origin: left; }
.meter [aria-current] { color: var(--acc); font-weight: 600; }
.meter [aria-current] .bar span { background: var(--acc); }
.todo { font-size: 15px; font-weight: 600; padding-top: 4px; }
.t-danger { --acc: var(--danger); }
.t-sus { --acc: var(--sus); }
.t-unclear { --acc: var(--unclear); }
.t-junk { --acc: var(--junk); }
.t-ok { --acc: var(--ok); }

/* the one-time draw-in: armed by site.js only when motion is welcome */
@keyframes hcDraw { from { background-size: 0 2px, 0 100%; } to { background-size: 100% 2px, 100% 100%; } }
@keyframes hcRise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes hcFill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.armed mark.mk { background-size: 0 2px, 0 100%; }
.armed .note, .armed .btn-row.marked .pin { opacity: 0; }
.armed .btn-row.marked .fake-btn { outline-color: transparent; }
.armed .meter [aria-current] .bar span { transform: scaleX(0); }
.armed .play mark.mk { animation: hcDraw 0.7s ease-out both; }
.armed .play .note, .armed .play .btn-row.marked .pin { animation: hcRise 0.6s ease-out both; }
.armed .play .btn-row.marked .fake-btn { animation: hcRing 0.6s ease-out both; }
@keyframes hcRing { from { outline-color: transparent; } to { outline-color: var(--red); } }
.armed .play .n1 { animation-delay: 0.6s !important; }
.armed .play .n2 { animation-delay: 1.2s !important; }
.armed .play .n3 { animation-delay: 1.8s !important; }
.armed .play .meter [aria-current] .bar span { animation: hcFill 0.6s ease-out 2.6s both; }
.armed .play.c2 .meter [aria-current] .bar span { animation-delay: 2s; }

/* the five answers */
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.scale { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 24px 6px; margin: 0; padding: 0; list-style: none; }
.scale li { display: flex; flex-direction: column; gap: 14px; }
.scale .bar { display: block; height: 14px; border-radius: 7px; background: var(--acc); }
.scale .name { font-family: var(--serif); font-size: 26px; color: var(--acc); }
.scale .what { font-size: 15px; color: var(--muted); padding-right: 12px; }

/* tricks */
.tricks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); border-top: 1px solid var(--ink); }
.tricks li { padding: 26px 24px 30px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.tricks h3 { font-size: 24px; letter-spacing: 0; }
.tricks p { color: var(--muted); font-size: 16px; }
.tricks .eg { font-family: var(--mono); font-size: 13px; color: var(--red); overflow-wrap: anywhere; }

/* privacy band */
.dark-band { background: var(--band); color: var(--band-ink); }
.dark-band a { color: var(--band-ink); }
.dark-band :focus-visible { outline-color: var(--band-ink); }
.privacy { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 56px; }
.privacy .say { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.privacy .say p { color: var(--band-muted); font-size: 18px; text-wrap: pretty; }
.privacy .say p.sm { font-size: 16px; }
.privacy .show { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gone { border: 1px dashed var(--band-line); border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; opacity: 0.6; }
.gone .label { color: var(--band-faint); }
.gone span.line { display: block; height: 8px; border-radius: 4px; background: var(--band-line); }
.gone .w1 { width: 72%; } .gone .w2 { width: 90%; } .gone .w3 { width: 58%; }
.kept { background: var(--band-card); border: 1px solid var(--band-line); border-radius: 12px; padding: 22px 24px; display: flex; flex-direction: column; gap: 14px; }
.kept .label { color: var(--band-ok); }
.kept dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 16px; font-family: var(--mono); font-size: 14px; }
.kept dt { color: var(--band-faint); }
.kept dd { margin: 0; overflow-wrap: anywhere; }
.kept p { font-size: 14px; color: var(--band-faint); }
@media (max-width: 420px) { .kept dl { grid-template-columns: minmax(0, 1fr); gap: 2px; } .kept dd { margin-bottom: 8px; } }

/* pricing */
.notice { display: flex; gap: 12px; align-items: flex-start; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; max-width: 760px; }
.notice .dot { margin-top: 9px; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr)); gap: 20px; }
.plan { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: clamp(24px, 4vw, 32px); display: flex; flex-direction: column; gap: 20px; }
.plan-name { display: flex; flex-direction: column; gap: 2px; }
.plan-name strong { font-size: 20px; font-weight: 600; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.price .amt { font-family: var(--serif); font-size: 60px; line-height: 1; }
.plan ul { margin: 0; padding: 0 0 0 20px; display: flex; flex-direction: column; gap: 8px; }
.plan .soon { margin-top: auto; }
.extras { display: flex; flex-direction: column; }
.extra { border-top: 1px solid var(--line); padding: 20px 0; display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 32px; }
.extra:last-child { border-bottom: 1px solid var(--line); }
.extra .body { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.extra .cost { font-weight: 600; white-space: nowrap; }

/* questions */
.faq-wrap { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.faq-wrap h2 { flex: 1 1 260px; }
.faq { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; font-size: 18px; padding: 18px 32px 18px 0; position: relative; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-family: var(--serif); font-size: 26px; font-weight: 400; color: var(--muted); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { color: var(--muted); padding: 0 0 20px; max-width: 40em; }
.faq details p + p { margin-top: -8px; }

/* footer */
.site-foot .wrap { padding-top: 80px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 40px; }
.foot-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.foot-cta p { font-family: var(--serif); font-size: clamp(28px, 3.4vw, 40px); line-height: 1.15; max-width: 18em; }
.foot-cta em { color: var(--red); }
.foot-line { border-top: 1px solid var(--line); padding-top: 24px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 32px; font-size: 14px; color: var(--muted); }
.foot-line strong { color: var(--ink); }
.foot-line nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot-line nav a { color: var(--muted); padding: 6px 0; }
.foot-line nav a:hover { color: var(--ink); }

/* text pages: privacy, terms, not found */
.doc { max-width: 760px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) var(--gutter) 80px; display: flex; flex-direction: column; gap: 22px; }
.doc h1 { font-size: clamp(40px, 5.4vw, 64px); line-height: 1.02; letter-spacing: -0.02em; }
.doc h2 { font-size: clamp(26px, 2.8vw, 32px); line-height: 1.15; padding-top: 22px; }
.doc p, .doc li { text-wrap: pretty; }
.doc ul, .doc ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.doc .updated { color: var(--muted); font-size: 15px; }
.doc .short { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; display: flex; flex-direction: column; gap: 12px; }
.doc .short ul { gap: 6px; }
.table-box { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.doc table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 15px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.doc tr:last-child td { border-bottom: 0; }
.doc th { font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); background: var(--panel); }
.lost { min-height: 50vh; justify-content: center; }
.section-head .side { flex: 0 1 30em; }
.meter li { overflow-wrap: normal; }
@media (max-width: 480px) { .meter { gap: 2px; } .meter li { font-size: 11px; } }
@media (max-width: 600px) {
  .doc table { min-width: 0; }
  .doc thead { display: none; }
  .doc table, .doc tbody, .doc tr, .doc td { display: block; }
  .doc tr { padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .doc tr:last-child { border-bottom: 0; }
  .doc td { padding: 2px 0; border: 0; }
  .doc td:first-child { font-weight: 600; padding-bottom: 4px; }
  .doc td + td::before { content: attr(data-label) ": "; color: var(--muted); }
}
.armed mark.mk .pin { opacity: 0; }
.armed .play mark.mk .pin { animation: hcRise 0.4s ease-out both; }
.armed .play mark.n1 .pin { animation-delay: 1s; }
.armed .play mark.n2 .pin { animation-delay: 1.6s; }
.armed .play mark.n3 .pin { animation-delay: 2.2s; }
