/* Factually Odd · "Riso Field Guide". Flat inks on warm paper, grain, off-register on purpose.
   Tokens and rules: brand spec sections 1 and 16. Pink and teal are never text on paper; corners are square; the only shadows are hard print offsets. */
:root {
  --paper: #F3EEE2; --ink: #1C2B8C; --pink: #FF4FA3; --teal: #00A88F; --reveal: #17142E; --muted: #655E50; --label: #E8DFCB;
  --pink-print: #F34A90; --plum: #3E1765; --violet: #A43586; --deep-sea: #003158; --field: #FFFDF8;
  --pink-tint: #F8AEC9; /* pink at 40% on paper: highlight blocks behind ink text (6.7:1) */
  --f-d: 'Fraunces', Georgia, serif; --f-t: 'Bricolage Grotesque', system-ui, sans-serif; --f-m: 'Courier Prime', 'Courier New', monospace;
  --ease-print: cubic-bezier(.2, 1.4, .4, 1);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 500 19px/1.55 var(--f-t); font-optical-sizing: auto; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3, p, ol, ul { margin: 0; }
a { color: var(--ink); text-underline-offset: .18em; text-decoration-thickness: 2px; }
a:hover { color: var(--plum); }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; }
::selection { background: var(--pink-tint); color: var(--ink); }

/* the three faces */
.d { font-family: var(--f-d); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 900; letter-spacing: -.015em; }
.t { font-family: var(--f-t); }
.m { font-family: var(--f-m); }
.label { font: 700 15px/1.4 var(--f-m); letter-spacing: .12em; text-transform: uppercase; }

/* grain: fractal noise, desaturated, soft-light, above everything, never in the way */
.grain { position: fixed; inset: 0; z-index: 60; pointer-events: none; background: url(/assets/grain.svg) repeat; background-size: 260px; mix-blend-mode: soft-light; opacity: .75; }

/* misregistration: the pink plate sits +3 / -2 px behind the ink */
.mr { position: relative; display: block; }
.mr-ghost { position: absolute; left: 3px; top: -2px; width: 100%; color: var(--pink); }
.mr-ghost .pw { -webkit-text-stroke: 0; }
.mr-ink { position: relative; }
/* a pink word on paper: pink fill with an ink trap line, so it is a shape that reads, never bare pink text */
.pw { font-style: italic; color: var(--pink); -webkit-text-stroke: .045em var(--ink); paint-order: stroke fill; }
.pk { font-style: italic; color: var(--pink); }   /* pink text on Drawer Dark only (5.9:1) */
mark.hl { background: var(--pink-tint); color: var(--ink); padding: 0 .12em; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

.wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 70; background: var(--ink); color: var(--paper); padding: 12px 16px; font: 700 15px var(--f-m); }
.skip:focus { top: 12px; color: var(--paper); }

/* ── header ── */
.site-head { border-bottom: 3px solid var(--ink); }
.head-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-block: 14px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 48px; }
.logo .query { flex: none; }
.logo-t { font-size: 30px; line-height: 1; white-space: nowrap; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 22px; font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav a { text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.nav a:hover { text-decoration: underline; }
.nav .nav-sub { background: var(--ink); color: var(--paper); padding: 12px 18px; }
.nav .nav-sub:hover { background: var(--plum); color: var(--paper); text-decoration: none; }

/* ── buttons, fields, forms ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 60px; padding: 0 26px; background: var(--pink); color: var(--ink);
  border: 3px solid var(--ink); border-radius: 0; box-shadow: -5px 4px 0 var(--ink); font: 800 20px/1.1 var(--f-t); text-decoration: none; cursor: pointer;
  transition: transform .12s var(--ease-print), box-shadow .12s var(--ease-print); }
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: -6px 5px 0 var(--ink); }
.btn:active { transform: translate(-4px, 3px); box-shadow: -1px 1px 0 var(--ink); }
.btn:disabled { cursor: progress; opacity: .85; }
.btn-small { min-height: 52px; font-size: 19px; padding: 0 20px; }
.field-label { display: block; margin: 0 0 8px; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.field-row { display: flex; flex-wrap: wrap; gap: 14px 16px; align-items: stretch; }
.field { flex: 999 1 260px; min-width: 0; height: 60px; padding: 0 16px; background: var(--field); color: var(--ink); border: 3px solid var(--ink); border-radius: 0;
  font: 600 20px var(--f-t); }
.field::placeholder { color: var(--muted); opacity: 1; }
.field[aria-invalid="true"] { border-color: var(--pink-print); box-shadow: inset 0 0 0 2px var(--pink); }
.field-row .btn { flex: 1 1 auto; }
.micro { margin-top: 12px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: flex; gap: 10px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; background: var(--label); border: 2px solid var(--ink); font: 600 17px/1.4 var(--f-t); }
.form-error-mark { flex: none; width: 24px; height: 24px; display: grid; place-items: center; background: var(--pink); border: 2px solid var(--ink); font: 800 15px var(--f-t); }
.spinner { width: 18px; height: 18px; border: 3px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; min-height: 44px; }
.link { font-weight: 700; }

/* the submitted state: a Label Stock card, rotated, with a stamp */
.filed { position: relative; background: var(--label); color: var(--ink); border: 3px solid var(--ink); padding: 26px 24px 22px; transform: rotate(-1.5deg); max-width: 620px; }
.filed .stamp { position: absolute; right: 18px; top: -26px; font-size: 40px; background: var(--paper); }
.filed-h { font-size: clamp(26px, 3vw, 32px); line-height: 1.05; margin: 0 0 8px; padding-right: 110px; }
.filed p { font-size: 18px; }
.filed-dark { background: var(--paper); }

/* stamps: condensed caps, solid border in the same ink, rotated. Graphic marks (aria-hidden), not body text */
.stamp { display: inline-block; font: 800 34px/1.1 var(--f-t); font-stretch: 75%; letter-spacing: .06em; text-transform: uppercase; border: 5px solid currentColor; padding: 0 .3em; transform: rotate(-6deg); }
.stamp-teal { color: var(--teal); }
.stamp-pink { color: var(--pink); }
.stamp-64 { font-size: 64px; border-width: 6px; }
.tilt-r { transform: rotate(6deg); }
.tilt-l { transform: rotate(-6deg); }

/* the double specimen rule: 3 px ink + a 1.5 px inner line 8 px in */
.rule2 { border: 3px solid var(--ink); outline: 1.5px solid var(--ink); outline-offset: -11px; }

/* ── hero ── */
.hero { padding-block: 64px 72px; }
.hero-row { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-main { flex: 999 1 520px; min-width: 0; }
.hero-h { font-size: clamp(48px, 7vw, 96px); line-height: .94; margin: 18px 0 24px; }
.hero-p { font-size: 22px; line-height: 1.5; max-width: 34em; margin-bottom: 32px; }
.signup-anchor { max-width: 640px; }
.today-card { flex: 1 1 340px; max-width: 440px; margin-inline: auto; background: var(--label); padding: 26px 28px 24px; transform: rotate(1.2deg); }
.card-top { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 10px; border-bottom: 2px solid var(--ink); }
.today-card .baseball { width: 100%; height: auto; margin: 8px 0 4px; }
.today-card-h { font-size: 28px; line-height: 1.05; margin-bottom: 14px; }
.fig { font-size: 15px; line-height: 1.4; color: var(--muted); padding-top: 10px; border-top: 2px solid var(--ink); }

/* ── how it works (Riso Blue band) ── */
.how { background: var(--ink); color: var(--paper); padding-block: 72px; }
.band-h { font-size: clamp(36px, 5vw, 64px); line-height: .98; max-width: 14em; margin-bottom: 40px; }
.how-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; }
.how-card { border: 3px solid var(--paper); padding: 24px 24px 28px; }
.how-n { display: block; font: 800 72px/.9 var(--f-t); font-stretch: 75%; color: var(--pink); font-variant-numeric: tabular-nums lining-nums; margin-bottom: 14px; }
.how-card h3 { font-size: 32px; line-height: 1; margin-bottom: 10px; }
.how-card p { font-size: 18px; }

/* ── sample issue ── */
.sample { padding-block: 80px; }
.sample-row { display: flex; flex-wrap: wrap; gap: 48px 64px; align-items: flex-start; }
.sample-text { flex: 1 1 320px; min-width: 0; }
.sec-h { font-size: clamp(36px, 4.6vw, 60px); line-height: .98; margin: 14px 0 18px; }
.sample-text p:last-child { font-size: 20px; }
.mock { flex: 999 1 520px; min-width: 0; background: var(--field); border: 3px solid var(--ink); box-shadow: -8px 8px 0 var(--pink); }
.mock-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 3px solid var(--ink); font-size: 14px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mock-body { padding: 26px 28px 28px; }
.mock-body h3 { font-size: clamp(28px, 3vw, 36px); line-height: 1.02; margin-bottom: 16px; }
.mock-body p { margin-bottom: 16px; font-size: 18px; }
.scalebox { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; background: var(--paper); border: 3px solid var(--ink); padding: 14px 20px; margin: 4px 0 18px; }
.scale-n { font: 800 72px/.9 var(--f-t); font-stretch: 75%; letter-spacing: -.02em; font-variant-numeric: tabular-nums lining-nums; text-decoration: underline; text-decoration-color: var(--teal); text-decoration-thickness: 8px; text-underline-offset: 8px; text-decoration-skip-ink: none; }
.scale-t { flex: 1 1 200px; font: 600 18px/1.35 var(--f-t); }
.src { font-size: 15px; color: var(--muted); margin: 0 !important; }

/* ── from the cabinet (Label Stock band) ── */
.cabinet { background: var(--label); border-top: 3px solid var(--ink); padding-block: 72px; }
.cab-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 24px; margin-bottom: 28px; }
.cab-head .sec-h { margin: 0; }
.cab-all { font-size: 17px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; min-height: 44px; display: inline-flex; align-items: center; }
.cab-grid { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 20px; }
.cab-card { display: flex; flex-direction: column; gap: 10px; height: 100%; background: var(--paper); border: 2px solid var(--ink); padding: 14px 18px 20px; text-decoration: none; transition: transform .2s var(--ease-print); }
.cab-card:hover { transform: rotate(-1.2deg) translateY(-2px); }
.cab-card:hover .cab-t { text-decoration: underline; text-decoration-color: var(--pink); }
.cab-no { font-size: 14px; font-weight: 700; letter-spacing: .12em; color: var(--muted); }
.cab-card .icon { align-self: center; }
.cab-t { font-size: 22px; line-height: 1.05; }

/* ── the promise ── */
.promise { padding-block: 84px; }
.promise-row { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.promise-stamps { display: flex; gap: 18px; flex: none; }
.promise-text { flex: 999 1 440px; min-width: 0; }
.promise-text .sec-h { margin-top: 0; }
.promise-text p { font-size: 20px; max-width: 36em; }

/* ── final CTA (Drawer Dark band) ── */
.final { position: relative; overflow: hidden; background: var(--reveal); color: var(--paper); padding-block: 96px 104px; }
.final .halo { position: absolute; width: 560px; height: 560px; right: -170px; top: -230px; pointer-events: none; }
.final-in { position: relative; }
.final-h { font-size: clamp(40px, 6vw, 80px); line-height: .96; max-width: 11em; margin-bottom: 36px; }
.final .signup { max-width: 680px; }
.on-dark .field-label { color: var(--paper); }
.on-dark .field { background: var(--paper); border-color: var(--paper); }
.on-dark .btn { color: var(--reveal); border-color: var(--paper); box-shadow: -5px 4px 0 var(--paper); }
.on-dark .micro { color: var(--label); }
.on-dark .form-error { color: var(--ink); }
.final .filed { color: var(--ink); }

/* ── footer ── */
.site-foot { border-top: 3px solid var(--ink); font-size: 15px; }
.foot-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; padding-block: 18px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-links a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 700; }

/* ── inner pages ── */
.page-narrow { max-width: 860px; padding-block: 48px 0; }
.page-head { padding-bottom: 28px; margin-bottom: 32px; border-bottom: 3px solid var(--ink); }
.page-h { font-size: clamp(48px, 7vw, 88px); line-height: .94; margin: 14px 0 16px; }
.page-p { font-size: 21px; max-width: 34em; }

/* an article as a specimen plate */
.plate { background: var(--label); padding: 26px 32px 22px; margin-bottom: 40px; }
.plate-top { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding-bottom: 12px; border-bottom: 2px solid var(--ink); }
.plate-title { display: flex; gap: 18px; align-items: flex-start; margin: 22px 0 14px; }
.plate-title .query { flex: none; margin-top: 4px; }
.plate-h { flex: 1; min-width: 0; font-size: clamp(38px, 5.4vw, 64px); line-height: .98; }
.plate-dek { font: 600 22px/1.4 var(--f-t); margin: 0 0 18px; }
.prose { max-width: 680px; }
.prose p { margin: 0 0 1.05em; }
.prose h2 { font-family: var(--f-d); font-variation-settings: "SOFT" 100, "WONK" 1, "opsz" 144; font-weight: 900; font-size: 32px; line-height: 1.05; margin: 1.4em 0 .5em; }
.prose a { font-weight: 700; }
.prose em { font-style: italic; }
.watch { margin-top: 28px !important; }
.pinned { position: relative; max-width: 620px; margin: 56px 0 40px; background: var(--label); border: 3px solid var(--ink); padding: 26px 26px 24px; transform: rotate(-1deg); }
.pinned .pin { position: absolute; left: 50%; top: -38px; transform: translateX(-50%); }
.pinned-l { font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 8px; }
.pinned-t { font: 700 23px/1.35 var(--f-t); }
.sources { max-width: 680px; font-size: 16px; line-height: 1.6; color: var(--muted); padding-top: 14px; border-top: 2px solid var(--ink); }
.sources a { color: var(--ink); }
.sources-l { font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }

/* specimen lists (archive, more from the cabinet) */
.more { margin-top: 64px; }
.more .sec-h { font-size: clamp(30px, 4vw, 44px); }
.more-link { margin-top: 40px; }
.spec-list { list-style: none; padding: 0; border-top: 3px solid var(--ink); margin-bottom: 20px; }
.spec-row { display: grid; grid-template-columns: 84px 1fr auto; gap: 6px 20px; align-items: baseline; padding: 18px 4px; border-bottom: 2px solid var(--ink); text-decoration: none; }
.spec-row:hover .spec-t { text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 3px; }
.spec-no, .spec-date { font-size: 15px; font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.spec-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.spec-t { font-size: 26px; line-height: 1.08; }
.spec-d { font-size: 17px; color: var(--muted); }
.empty { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding: 12px 0 8px; }
.empty h1 { font-size: clamp(40px, 6vw, 64px); line-height: .98; }
.empty-t { font-size: 32px; line-height: 1.05; }

/* the sign-up box at the foot of inner pages */
.signbox { margin: 72px 0 80px; background: var(--label); border: 3px solid var(--ink); box-shadow: -8px 8px 0 var(--ink); }
.signbox-in { padding: 32px 32px 30px; }
.signbox-h { font-size: clamp(32px, 4.4vw, 48px); line-height: 1; margin: 12px 0 22px; max-width: 13em; }
.signbox .field { background: var(--field); }

/* notices: check your inbox, confirmed, unsubscribed, 404 */
.notice { max-width: 760px; padding-block: 72px 96px; }
.notice-art { position: relative; display: inline-block; margin-bottom: 30px; }
.notice-art .stamp { position: absolute; left: calc(100% + 12px); top: 18px; white-space: nowrap; font-size: 40px; }
.notice-h { font-size: clamp(44px, 7vw, 80px); line-height: .96; margin-bottom: 18px; outline: none; }
.notice-p { font-size: 22px; max-width: 32em; margin-bottom: 18px; }
.notice-links { display: flex; flex-wrap: wrap; gap: 0 24px; margin-top: 18px; font-size: 17px; }
.notice-links a { min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 640px) {
  body { font-size: 18px; }
  .head-row { padding-block: 10px; }
  .logo-t { font-size: 26px; }
  .head-row { row-gap: 2px; }
  .nav { width: 100%; flex-wrap: nowrap; justify-content: space-between; gap: 0 10px; font-size: 13px; letter-spacing: .04em; }
  .nav a { white-space: nowrap; }
  .nav .nav-sub { padding: 10px 12px; }
  .hero { padding-block: 40px 56px; }
  .hero-p { font-size: 19px; }
  .field-row .btn { width: 100%; }
  .today-card { padding: 20px 20px 18px; }
  .how, .cabinet { padding-block: 56px; }
  .sample { padding-block: 60px; }
  .mock-body { padding: 20px 18px 22px; }
  .stamp-64 { font-size: 48px; border-width: 5px; }
  .cab-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .cab-card { padding: 12px 12px 16px; }
  .cab-card .icon { width: 84px; height: 84px; }
  .cab-t { font-size: 19px; }
  .plate { padding: 20px 20px 18px; }
  .plate-title { gap: 12px; }
  .plate-title .query { width: 36px; height: 48px; }
  .plate-dek { font-size: 19px; }
  .pinned { padding: 24px 18px 20px; }
  .pinned-t { font-size: 20px; }
  .spec-row { grid-template-columns: 1fr; gap: 2px; }
  .spec-date { order: -1; }
  .spec-t { font-size: 23px; }
  .signbox-in { padding: 24px 18px 22px; }
  .notice { padding-block: 48px 72px; }
  .notice-art .stamp { font-size: 30px; }
  .filed-h { padding-right: 0; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation-duration: .01ms !important; }
}
@media print { .grain, .site-head nav, .signbox, .final { display: none; } }
