/* thefullhearing.com: ink on paper, mobile first. The side colors mark sides and nothing else. */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/inter-800-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 800;
  font-display: swap;
  src: url(/fonts/inter-800-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --paper: #f6f1e6;
  --ink: #1c1a21;
  --left: #4f79a8;
  --center: #9b958b;
  --center-text: #77716a; /* the grey darkened so "Center" reads on paper */
  --right: #bf5a4e;
  --hand: "Inter", "Helvetica Neue", Arial, sans-serif;
  --body: Charter, "Bitstream Charter", "Sitka Text", Cambria, Georgia, serif;
  --gutter: max(16px, env(safe-area-inset-left, 0px));
  color-scheme: light;
}
* { box-sizing: border-box; }
html { background: var(--paper); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  /* the paper: a few fibres, like the frames */
  background: var(--paper) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cg fill='%23d9d0bf'%3E%3Ccircle cx='31' cy='54' r='1.2'/%3E%3Ccircle cx='182' cy='22' r='1'/%3E%3Ccircle cx='117' cy='141' r='1.3'/%3E%3Ccircle cx='211' cy='196' r='1'/%3E%3Ccircle cx='64' cy='211' r='1.1'/%3E%3C/g%3E%3C/svg%3E");
  font: 400 1.0625rem/1.6 var(--body);
  padding: 0 var(--gutter);
  overflow-wrap: break-word;
}
main, header.top, footer { max-width: 44rem; margin: 0 auto; }
main { padding-bottom: 3rem; }
a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible, .btn:focus-visible { outline: 3px dashed var(--ink); outline-offset: 3px; border-radius: 2px; }
p { margin: 0 0 1rem; }
img, svg { max-width: 100%; }
code { font-size: 0.9em; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 8px; background: var(--paper); padding: 6px 10px; z-index: 2; font-family: var(--hand); font-weight: 800; }

/* ---------- hand lettering: each letter tilted its own small way (steadier than the stick account) ---------- */
h1, h2, h3, .brand span, nav, .meta, .tag, .label, .n, .of, .outlet, .btn, .ep .title, th, .side { font-family: var(--hand); font-weight: 800; }
.lettered .w { display: inline-block; white-space: nowrap; }
.lettered .w span { display: inline-block; transform-origin: 50% 80%; }
.t0 { transform: rotate(-3deg) translateY(1px); }
.t1 { transform: rotate(-1.8deg); }
.t2 { transform: rotate(-0.6deg) translateY(-1px); }
.t3 { transform: none; }
.t4 { transform: rotate(0.8deg) translateY(1px); }
.t5 { transform: rotate(2deg); }
.t6 { transform: rotate(3deg) translateY(-1px); }

h1 { font-size: clamp(1.9rem, 7vw, 2.75rem); line-height: 1.12; margin: 1.5rem 0 1rem; letter-spacing: 0.005em; }
h1.lede { font-size: clamp(1.35rem, 5vw, 1.8rem); line-height: 1.3; letter-spacing: 0; text-wrap: balance; }
h2 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.09em; margin: 2.75rem 0 1rem; display: inline-block; }
h2 .rule { display: block; width: 100%; height: 8px; margin-top: 2px; overflow: visible; }
.lede { font-size: 1.2rem; line-height: 1.5; }
.small { font-size: 0.95rem; }

/* side words: color marks the side, nothing else */
.s-left { color: var(--left); }
.s-center { color: var(--center-text); }
.s-right { color: var(--right); }
h1 .s-left, h1 .s-center, h1 .s-right { font-weight: 800; }

/* ---------- header ---------- */
header.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; padding: 14px 0 12px; border-bottom: 3px solid var(--ink); border-radius: 0 0 2px 60px / 0 0 3px 4px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { border-radius: 50%; display: block; }
.brand span { font-size: 1.05rem; letter-spacing: 0.06em; text-transform: uppercase; }
nav { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 0.9rem; }
nav a { text-decoration: none; padding: 4px 0; }
nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; }

/* ---------- home ---------- */
.hero { text-align: center; padding-top: 1.5rem; }
.hero .judge { display: block; width: min(100%, 12.5rem); height: auto; margin: 0 auto; overflow: visible; }
.hero h1 { margin: 1.25rem auto 1rem; max-width: 34rem; }
.ig { margin: 0 0 0.5rem; }
.hero .ig { font-size: 1.05rem; }

.btn {
  display: inline-block; text-decoration: none; padding: 10px 18px; background: var(--paper);
  border: 3px solid var(--ink); border-radius: 255px 15px 225px 15px / 15px 225px 15px 255px; transform: rotate(-1deg);
}
.btn:hover { background: #fff; }

.episodes { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 18px; }
.ep a { position: relative; display: grid; gap: 6px; padding: 16px 18px 18px; text-decoration: none; }
.ep a:hover { background: #fbf8f1; }
.ep a:hover .title { text-decoration: underline; }
.ep .title { font-size: 1.25rem; line-height: 1.25; }
.ep .summary { font-size: 1rem; }
.ep .bar { margin-top: 6px; max-width: 18rem; }
.meta { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0; }
.tag { border: 2px solid var(--ink); border-radius: 12px 3px 10px 4px / 4px 10px 3px 12px; padding: 0 6px; }

/* a hand-drawn border stretched to whatever it frames */
.edge { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }

/* ---------- the coverage bar ---------- */
.bar { display: block; width: 100%; height: auto; overflow: visible; }
.bar-figure { margin: 0 0 1rem; }
.bar-figure .bar { max-width: 36rem; }
.bar-figure figcaption { font-size: 0.95rem; margin-top: 0.5rem; }
.counts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 10px; max-width: 36rem; }
.count { display: flex; flex-direction: column; align-items: center; text-align: center; }
.count .label { font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; }
.count .n { font-size: 2rem; line-height: 1.1; }
.count .of { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }

/* the faint boil: three redraws, about 7.5 a second like the videos; frame 0 only for reduced motion */
.boil.f1, .boil.f2 { visibility: hidden; }
@media (prefers-reduced-motion: no-preference) {
  .boil { animation: boil 0.4s step-end infinite; }
  .boil.f1 { animation-delay: -0.2667s; }
  .boil.f2 { animation-delay: -0.1333s; }
}
@keyframes boil {
  0% { visibility: visible; }
  33.33% { visibility: hidden; }
  100% { visibility: hidden; }
}

/* ---------- episode ---------- */
.episode h1 { margin-top: 0.5rem; }
.episode > .meta { margin-top: 1.75rem; }
.headlines { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.hcard { position: relative; padding: 16px 18px 14px 40px; }
.hcard .stripe { position: absolute; left: 6px; top: 8px; bottom: 8px; width: 16px; height: calc(100% - 16px); overflow: visible; }
.hcard .outlet { font-size: 0.85rem; letter-spacing: 0.05em; text-transform: uppercase; margin: 0 0 6px; }
.hcard .side { text-transform: uppercase; }
.hcard blockquote { margin: 0 0 8px; }
.hcard blockquote p { font-family: var(--hand); font-weight: 800; font-size: 1.2rem; line-height: 1.3; margin: 0; }
.hcard blockquote p::before { content: "\201C"; }
.hcard blockquote p::after { content: "\201D"; }
.hcard .src { font-size: 0.92rem; margin: 0; }
.sources { padding-left: 1.4rem; }
.sources li { margin-bottom: 0.5rem; }
.example { border: 3px dashed var(--ink); padding: 10px 14px; margin: 1.5rem 0 0; font-size: 0.95rem; }

/* ---------- home: the latest story leads, the brand line follows ---------- */
.lead { padding-top: 1.25rem; }
.lead h1 { margin-top: 0.5rem; }
.lead h1 a { text-decoration: none; }
.lead h1 a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.lead .bar-figure { margin-top: 1.25rem; }
.intro { display: grid; grid-template-columns: 5.5rem 1fr; gap: 16px; align-items: center; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 2px solid var(--ink); border-radius: 40px 2px 0 0 / 3px 2px 0 0; }
.intro .judge { width: 100%; height: auto; overflow: visible; }
.intro .lede { font-family: var(--hand); font-weight: 800; font-size: 1.05rem; line-height: 1.35; margin: 0 0 0.4rem; }
.intro .ig { font-size: 0.95rem; margin: 0; }

/* ---------- every panel outlet: headline and link, or no story ---------- */
.cov { display: grid; gap: 1.25rem; }
.cov-side .label { font-family: var(--hand); font-weight: 800; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 0.4rem; }
.cov-side ul { list-style: none; margin: 0; padding: 0; }
.cov-side li { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--ink); }
.cov-side li:first-child { border-top: 2px solid var(--ink); }
.cov-side .outlet { grid-column: 1 / -1; font-family: var(--hand); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.04em; text-transform: uppercase; }
.cov-side .outlet .tag { font-size: 0.7rem; margin-left: 4px; }
.cov-side .hl { font-size: 1rem; line-height: 1.4; }
.cov-side .when { font-size: 0.85rem; white-space: nowrap; align-self: start; padding-top: 2px; }
.cov-side li.none .hl { font-style: italic; }

/* ---------- the members card (the in-depth report) ---------- */
.paywall { position: relative; margin: 2.75rem 0 0.5rem; padding: 20px 20px 18px; }
.paywall .kicker { font-family: var(--hand); font-weight: 800; font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; margin: 0 0 0.25rem; }
.paywall .plainh { margin: 0 0 0.5rem; font-size: 1.5rem; text-transform: none; letter-spacing: 0; display: block; }
.paywall .toc { margin: 0 0 1rem; padding-left: 1.3rem; font-size: 0.98rem; }
.paywall .soon { font-family: var(--hand); font-weight: 800; margin: 0; }
.paywall .btn { margin-top: 0.25rem; }

/* ---------- the report ---------- */
.report .prose h3 { font-size: 1.15rem; margin: 2rem 0 0.6rem; }
.report .prose h4 { font-size: 1rem; margin: 1.5rem 0 0.5rem; }
.report table { border-collapse: collapse; width: 100%; font-size: 0.95rem; margin-bottom: 1rem; }
.report th, .report td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.report thead th { font-family: var(--hand); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom-width: 3px; }

/* ---------- prose pages ---------- */
.prose h1 { margin-top: 2rem; }
ul.plain { padding-left: 1.2rem; }
ul.plain li { margin-bottom: 0.5rem; }
.log { list-style: none; padding: 0; }
.log li { border-left: 3px solid var(--ink); padding-left: 14px; margin-bottom: 1.25rem; }
.log p { margin-bottom: 0.25rem; }

.table-wrap { overflow-x: auto; margin: 0 0 1rem; }
table.panel { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.panel th, .panel td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 2px solid var(--ink); vertical-align: top; }
.panel thead th { font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom-width: 3px; }
.panel tbody th { font-weight: 800; }
.panel .side { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.08em; }
.panel tr.group th { padding-top: 18px; border-bottom-width: 3px; }
.panel tbody tr:not(.group) th, .panel tbody td { border-bottom-width: 1px; }

/* something only the creator can confirm: unmissable on purpose; `node build.mjs --strict` refuses to build with any left */
mark.todo { background: #fff3a8; color: var(--ink); border: 2px dashed var(--ink); padding: 0 4px; font-family: var(--hand); font-weight: 800; font-size: 0.85em; }

/* ---------- footer ---------- */
footer { border-top: 3px solid var(--ink); border-radius: 60px 2px 0 0 / 4px 3px 0 0; padding: 18px 0 40px; font-size: 0.95rem; }
footer p { margin: 0 0 8px; }
footer .links { display: flex; flex-wrap: wrap; gap: 6px 18px; font-family: var(--hand); font-weight: 800; }

@media (min-width: 640px) {
  body { font-size: 1.125rem; }
  .hero .judge { width: 19rem; }
  .ep a { padding: 20px 24px 22px; }
  .hcard { padding: 20px 24px 18px 48px; }
  .hcard .stripe { left: 10px; }
  .intro { grid-template-columns: 7rem 1fr; gap: 24px; }
  .paywall { padding: 26px 30px 24px; }
}

/* ---------- admin (only the creator sees these) ---------- */
.admin-bar { margin: 0 calc(-1 * var(--gutter)); padding: 8px 16px; background: #fff3a8; border-bottom: 2px dashed var(--ink); font-family: var(--hand); font-weight: 800; font-size: 0.9rem; text-align: center; }
.admin h1 { margin-top: 1.25rem; }
.admin-quiet { font-size: 0.9rem; }
.admin-notice { border: 2px solid var(--ink); background: #fff; padding: 8px 12px; font-family: var(--hand); font-weight: 800; }
.admin-errors { border: 3px dashed var(--right); background: #fff; padding: 10px 14px; margin: 1rem 0; }
.admin-errors ul { margin: 0; padding-left: 1.2rem; }
.admin-form { display: grid; gap: 1rem; margin: 1.5rem 0; }
.admin-form.narrow { max-width: 22rem; }
.admin-form fieldset { border: 2px solid var(--ink); border-radius: 3px 10px 4px 8px; padding: 12px 14px 16px; margin: 0; display: grid; gap: 12px; min-width: 0; }
.admin-form legend { font-family: var(--hand); font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.85rem; padding: 0 6px; }
.admin-form label { display: grid; gap: 4px; font-family: var(--hand); font-weight: 800; font-size: 0.85rem; }
.admin-form label.check { display: flex; gap: 8px; align-items: center; }
.admin-form input:not([type=checkbox]), .admin-form select, .admin-form textarea { font: 400 1rem/1.4 var(--body); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 2px; padding: 8px 10px; width: 100%; min-width: 0; }
.admin-form textarea { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9rem; }
.admin-form h3 { margin: 0.5rem 0 0; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; }
.admin-form .cov-row { border-top: 1px solid var(--ink); padding-top: 8px; display: grid; gap: 8px; }
.admin-form .cov-row .outlet { margin: 0; font-family: var(--hand); font-weight: 800; }
.admin-form button.btn { font: 800 1rem/1 var(--hand); cursor: pointer; justify-self: start; }
.row2, .row3 { display: grid; gap: 12px; }
.admin-table { border-collapse: collapse; width: 100%; font-size: 0.95rem; }
.admin-table th, .admin-table td { text-align: left; padding: 8px 10px 8px 0; border-bottom: 1px solid var(--ink); vertical-align: top; }
.admin-table thead th { font-family: var(--hand); font-weight: 800; font-size: 0.78rem; letter-spacing: 0.06em; text-transform: uppercase; border-bottom-width: 3px; }
@media (min-width: 640px) {
  .row2 { grid-template-columns: 2fr 1fr; }
  .row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
