/* thedrjester.com
   Layout: a slim masthead, then the newest joke beside the pitch and the
   signup. Below that: more jokes (tap for the punchline), the departments,
   the prescription maker, the Generation Wars vote, about, and the full
   signup slip. Rows wrap on their own, so the same rules serve phones and
   desktops. */

@font-face { font-family: "Fredoka"; src: url("/fonts/fredoka-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Figtree"; src: url("/fonts/figtree-700.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url("/fonts/plex-mono-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }

:root {
  --ink: #111014;
  --white: #ffffff;
  --text: #17161c;
  --body: #34323f;
  --muted: #56546a;
  --label: #6a6780;
  --line: #e3e1ea;
  --soft: #f3f4f8;
  --red: #c8160f;
  --red-dark: #a8120c;
  --gold: #fbc902;
  --blue: #0b2e8f;
  --blue-dark: #092678;
  --blue-link: #0b3fd6;
  --blue-rule: #5b78d6;
  --blue-text: #d9e1ff;
  --hat-red: #fa0102;
  --hat-gold: #fbc902;
  --hat-blue: #013dfa;
  --hero-text: #d4d0dd;
  --nav-text: #e9e6f0;
  --footer-text: #a9a5b6;
  --mint: #f1f7f4;
  --mint-ink: #13261d;
  --mint-muted: #3e5a4d;
  --mint-rule: #bfd6cb;
  --mint-field: #6f9585;
  --display: "Fredoka", "Figtree", system-ui, sans-serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button { font: inherit; }
h1, h2, h3 { text-wrap: balance; }
:focus-visible { outline: 3px solid var(--blue-link); outline-offset: 3px; }
.site-header :focus-visible, .hero :focus-visible, .wars :focus-visible, .site-footer :focus-visible, .board :focus-visible, .cover:focus-visible { outline-color: var(--gold); }
.no-js [data-needs-js] { display: none; }
[hidden] { display: none !important; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-left: max(24px, env(safe-area-inset-left, 0px));
  padding-right: max(24px, env(safe-area-inset-right, 0px));
}
@media (max-width: 480px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
}
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 16px; top: 16px; z-index: 10; background: var(--white); color: var(--ink); padding: 10px 14px; border-radius: 6px; }

.eyebrow { margin: 0; font-family: var(--mono); font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.eyebrow-red { color: var(--red); }
.eyebrow-blue { color: var(--blue-link); }
.eyebrow-gold { color: var(--gold); }
.big { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; color: var(--text); }
.big-light { color: var(--white); }
.sub { margin: 0; max-width: 36em; font-size: 17px; color: var(--muted); }
.sub-light { color: var(--hero-text); }
.fine { margin: 0; font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--muted); }
.fine-light { color: var(--footer-text); }
.red { color: var(--red); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-family: var(--sans); font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.btn-outline { border: 1.5px solid var(--text); background: transparent; color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--white); }
.btn-dark { background: var(--text); color: var(--white); }
.btn-dark:hover { background: var(--red); }
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.text-link { align-self: flex-start; padding: 10px 0; color: var(--blue-link); font-weight: 600; font-size: 15px; text-underline-offset: 3px; }
.text-link-light { color: var(--white); }

/* Masthead */
.site-header { background: var(--ink); color: var(--white); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; padding-top: max(12px, env(safe-area-inset-top, 0px)); padding-bottom: 12px; }
.brand { display: block; line-height: 0; }
.brand img { height: 66px; width: auto; transform-origin: 50% 85%; }
.brand:hover img { animation: jingle 0.6s ease-in-out; }
@keyframes jingle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-4deg); } 40% { transform: rotate(3deg); } 60% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } }
.nav { display: flex; align-items: center; gap: 6px 22px; }
.nav-link { color: var(--nav-text); text-decoration: none; font-size: 15px; font-weight: 600; padding: 11px 0; }
.nav-link:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; }
.pill { color: var(--white); text-decoration: none; font-size: 15px; font-weight: 600; border: 1.5px solid var(--white); border-radius: 999px; padding: 10px 18px; white-space: nowrap; }
.pill:hover { background: var(--white); color: var(--ink); }
.stripe { height: 5px; background: linear-gradient(90deg, var(--hat-red) 0 33.34%, var(--hat-gold) 33.34% 66.67%, var(--hat-blue) 66.67%); }
@media (max-width: 760px) {
  .nav-link { display: none; }
  .brand img { height: 54px; }
  .pill { padding: 10px 14px; font-size: 14px; }
}

/* Top of the homepage: the newest joke beside the pitch */
.hero { background: var(--ink); color: var(--white); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; padding-top: clamp(22px, 3vw, 44px); padding-bottom: clamp(40px, 5.5vw, 76px); }
.hero-post { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.hero-line { margin: 0; font-size: 17px; color: var(--hero-text); }
.hero-copy { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.hero h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(38px, 4.6vw, 64px); line-height: 1.04; letter-spacing: -0.01em; color: var(--white); }
.lede { margin: 0; max-width: 34em; font-size: 19px; line-height: 1.55; color: var(--hero-text); }
.follow { margin: 0; font-size: 15px; color: var(--hero-text); }
.follow a { color: var(--white); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-post { max-width: 460px; }
}

/* A post image and the cover over its punchline */
.post { position: relative; border-radius: 10px; overflow: hidden; background: #f4f3f7; }
.post a { display: block; }
.post img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.cover {
  position: absolute; left: var(--cx); top: var(--cy); width: var(--cw); height: var(--ch);
  margin: 0; padding: 14px; border: 0; border-top: 5px solid var(--gold);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  background: var(--blue); color: var(--white); text-align: center; cursor: pointer;
  transition: transform 0.55s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.55s, background-color 0.15s;
}
.post[data-dir="right"] .cover { border-top: 0; border-left: 5px solid var(--gold); }
.cover:hover { background: var(--blue-dark); }
.cover-rx { font-family: Georgia, "Times New Roman", "Segoe UI Symbol", "Apple Symbols", serif; font-size: clamp(34px, 5vw, 52px); line-height: 1; color: var(--gold); }
.cover-text { font-family: var(--display); font-weight: 600; font-size: clamp(16px, 1.9vw, 21px); line-height: 1.2; }
.cover-hint { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--blue-text); }
.post.is-open .cover { transform: translateY(102%); opacity: 0; pointer-events: none; }
/* Before the script adds the real cover, a plain one hides the punchline. It lifts by itself after a few seconds in case the script never loads. */
.js .post[data-cover]:not(.is-ready)::after { content: ""; position: absolute; left: var(--cx); top: var(--cy); width: var(--cw); height: var(--ch); background: var(--blue); animation: cover-timeout 0.3s 5s forwards; }
@keyframes cover-timeout { to { opacity: 0; visibility: hidden; } }
.post[data-dir="right"].is-open .cover { transform: translateX(102%); }

/* Mint signup card */
.signup-mini { max-width: 470px; background: var(--mint); color: var(--mint-ink); border-radius: 8px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.signup-title { margin: 0; display: flex; align-items: baseline; gap: 10px; font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; }
.signup-title .rx-symbol { font-size: 34px; }
.signup-text { margin: 0; font-size: 16px; }

/* Shared section rhythm */
.section { background: var(--white); }
.tint { background: var(--soft); }
.pad { padding-top: clamp(52px, 6.2vw, 88px); padding-bottom: clamp(52px, 6.2vw, 88px); }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 32px; }
.section-head > div { display: flex; flex-direction: column; gap: 8px; min-width: 0; }

/* Cards */
.cards { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 900px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card { height: 100%; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.card .post { border-radius: 0; }
.card-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px 14px; }
.card-label { align-self: flex-start; padding: 6px 0; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--label); text-decoration: none; }
.card-label:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.card-text { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text); }

/* Hospital directory */
.directory { padding-bottom: clamp(52px, 6.2vw, 88px); }
.board { background: var(--blue); color: var(--white); border-radius: 14px; padding: clamp(24px, 3vw, 40px); display: flex; flex-direction: column; gap: 24px; }
.board-head { display: flex; flex-direction: column; gap: 10px; }
.board .eyebrow { color: var(--gold); }
.board h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(28px, 2.8vw, 38px); line-height: 1.1; }
.depts { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 28px; }
@media (max-width: 860px) { .depts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .depts { grid-template-columns: minmax(0, 1fr); } }
.dept { height: 100%; display: flex; flex-direction: column; gap: 6px; padding-top: 14px; border-top: 1px solid var(--blue-rule); color: var(--white); text-decoration: none; }
.dept-name { font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.2; }
.dept:hover .dept-name { text-decoration: underline; text-underline-offset: 4px; }
.dept-desc { font-size: 15px; line-height: 1.5; color: var(--blue-text); }
.dept-count { margin-top: auto; padding-top: 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); }

/* Prescription slip (shared by the signup and the prescription maker) */
.rx {
  flex: 1 1 360px; min-width: 0; max-width: 470px;
  background: var(--mint); color: var(--mint-ink);
  border: 1px solid var(--mint-rule); border-radius: 6px; padding: 26px 28px 24px;
  box-shadow: 0 14px 30px rgba(17, 16, 20, 0.16);
  display: flex; flex-direction: column; gap: 16px;
}
.rx-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--mint-rule); }
.rx-head > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.rx-head img { height: 44px; width: auto; flex: none; }
.rx-name { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.rx-office { font-family: var(--mono); font-size: 12px; color: var(--mint-muted); }
.rx-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; font-family: var(--mono); font-size: 13px; color: var(--mint-muted); }
.rx-meta strong { color: var(--mint-ink); font-weight: 600; overflow-wrap: anywhere; }
.rx-title { display: flex; align-items: baseline; gap: 12px; }
.rx-symbol { font-family: Georgia, "Times New Roman", "Segoe UI Symbol", "Apple Symbols", serif; font-size: 48px; line-height: 1; color: var(--red); }
.rx-title h2, .rx-title h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1.15; }
.rx-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 16px; line-height: 1.45; }
.rx-list li { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.rx-list .k { font-family: var(--mono); font-size: 13px; color: var(--mint-muted); padding-top: 2px; }
.rx-sig { display: flex; flex-direction: column; gap: 6px; font-family: var(--mono); font-size: 13px; color: var(--mint-muted); }
.rx-refills { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.prn { border: 1.5px solid var(--red); color: var(--red); border-radius: 999px; padding: 1px 8px; font-weight: 600; }
.rx-signup { display: flex; flex-direction: column; gap: 8px; }
.rx-signup iframe { width: 100%; border: 0; }
.rx-soon { margin: 0; padding: 12px 14px; border: 1.5px dashed var(--mint-field); border-radius: 6px; background: var(--white); font-size: 15px; }
.rx-fine { margin: 0; font-size: 13px; color: var(--mint-muted); }
.rx-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 8px; border-top: 1px solid var(--mint-rule); }
.rx-foot span { padding-bottom: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mint-muted); }
.rx-foot img { height: 36px; width: auto; }

/* Prescription maker */
.gen { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .gen { grid-template-columns: minmax(0, 1fr); } }
.gen-form { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
#rx-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 14px; }
.field-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.field { width: 100%; max-width: 360px; height: 48px; padding: 0 14px; border: 1.5px solid #8f8ca3; border-radius: 8px; background: var(--white); color: var(--text); font-family: var(--sans); font-size: 16px; }
.complaints { min-width: 0; margin: 8px 0 6px; padding: 0; border: 0; }
.complaints legend { padding: 0; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-radio { position: relative; display: inline-flex; }
.chip-radio input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip-radio span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--text); border-radius: 999px; background: var(--white); font-weight: 600; font-size: 15px; }
.chip-radio input:checked + span { background: var(--text); color: var(--white); }
.chip-radio input:focus-visible + span { outline: 3px solid var(--blue-link); outline-offset: 3px; }
.gen-out { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.slip { flex: none; max-width: none; transform: rotate(-1.2deg); }
.slip-dx { margin: 0; font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; }
.slip-sig { margin: 14px 0 0; font-size: 17px; line-height: 1.5; }
.slip-refills { margin: 10px 0 0; font-family: var(--mono); font-size: 13px; color: var(--mint-muted); }
.gen-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Generation Wars */
.wars { background: var(--ink); color: var(--white); }
.wars-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
@media (max-width: 860px) { .wars-grid { grid-template-columns: minmax(0, 1fr); } }
.wars-vote { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.vote { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.vote-btn { min-height: 48px; padding: 0 22px; border: 1.5px solid var(--white); border-radius: 999px; background: transparent; color: var(--white); font-family: var(--sans); font-size: 16px; font-weight: 600; cursor: pointer; transition: background-color 0.15s, color 0.15s; }
.vote-btn:hover { background: var(--white); color: var(--ink); }
.vote-btn[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.vote-msg { margin: 6px 0 0; min-height: 1.6em; font-size: 17px; color: var(--gold); }
.standings { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.row { display: grid; grid-template-columns: 108px minmax(0, 1fr) 46px; align-items: center; gap: 12px; }
.row-name { font-family: var(--display); font-weight: 600; font-size: 18px; }
.bar { height: 22px; border-radius: 999px; background: #2a2832; overflow: hidden; }
.fill { display: block; height: 100%; width: var(--w); min-width: 12px; border-radius: 999px; }
.fill-gold { background: var(--hat-gold); }
.fill-red { background: var(--hat-red); }
.fill-blue { background: #4d7bff; }
.fill-white { background: #e9e6f0; }
/* Below zero: the fill sits in front of the track, to the left of where the others start */
.bar-under { overflow: visible; }
.bar-under .fill { width: 20px; min-width: 0; margin-left: -24px; }
.row-num { font-family: var(--mono); font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }

/* About */
.about { background: var(--soft); }
.about-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 36px 72px; }
.about-mark { flex: 0 1 260px; display: flex; justify-content: center; }
.about-mark img { width: 240px; height: 240px; border-radius: 50%; border: 6px solid var(--ink); object-fit: cover; }
.about-copy { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about h2 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(30px, 3.2vw, 44px); line-height: 1.12; color: var(--text); }
.about h2 span { display: block; }
.about-body { margin: 0; max-width: 36em; font-size: 18px; line-height: 1.65; color: var(--body); }
.symptoms { max-width: 36em; margin-top: 8px; padding: 20px 22px; border: 1.5px solid var(--text); border-radius: 12px; background: var(--white); display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.symptoms h3 { margin: 0; font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; }
.symptoms p { margin: 0; font-size: 16px; color: var(--body); }
.email { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.2; color: var(--text); overflow-wrap: anywhere; user-select: all; }

/* Full signup slip */
.slip-band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 36px 64px; }
.slip-pitch { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }

/* All diagnoses */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 28px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1.5px solid var(--text); border-radius: 999px; color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; }
.chip span { font-family: var(--mono); font-size: 12px; color: var(--label); }
.chip:hover { background: var(--soft); }
.chip[aria-current="true"] { background: var(--text); color: var(--white); }
.chip[aria-current="true"] span { color: var(--hero-text); }
.empty { margin: 8px 0 0; font-size: 18px; color: var(--muted); }

/* One diagnosis */
.post-page { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
@media (max-width: 860px) { .post-page { grid-template-columns: minmax(0, 1fr); } }
.post-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.post-line { margin: 0; font-size: 20px; line-height: 1.5; color: var(--body); }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.share-msg { font-size: 14px; color: var(--muted); }
.prevnext { display: flex; flex-direction: column; gap: 2px; }

/* Sponsors */
.pitch { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 32px 56px; padding: clamp(24px, 3vw, 40px); border: 1.5px solid var(--text); border-radius: 14px; }
.pitch-copy { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.pitch-copy p:last-child { margin: 0; max-width: 38em; font-size: 17px; line-height: 1.6; color: var(--muted); }
.pitch-contact { flex: 0 1 340px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.pitch-label { font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Footer */
.site-footer { background: var(--ink); color: var(--hero-text); }
.foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px 40px; padding-top: 48px; padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px)); }
.foot-brand { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.foot-brand img { width: 186px; }   /* the masthead's size on a desktop: 186 x 66 */
.foot-brand span { font-family: var(--mono); font-size: 13px; color: var(--footer-text); }
.foot-links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-width: 0; }
.foot-links nav { display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 15px; }
.foot-links nav a { color: var(--white); padding: 11px 0; }
.foot-legal { font-size: 13px; color: var(--footer-text); }

/* Simple pages (privacy, page not found) */
.page { background: var(--white); }
.page .wrap { max-width: 760px; padding-top: clamp(48px, 6vw, 88px); padding-bottom: clamp(56px, 7vw, 104px); display: flex; flex-direction: column; gap: 18px; }
.page h1 { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 52px); line-height: 1.08; color: var(--text); }
.page p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--body); }
.page p.fine { font-size: 13px; color: var(--muted); }
.page p.eyebrow { font-size: 13px; color: var(--red); }
.page a:not(.btn) { color: var(--blue-link); }
.page .btn { align-self: flex-start; }
.lost-mark { width: 160px; height: 160px; border-radius: 50%; border: 5px solid var(--ink); object-fit: cover; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand:hover img { animation: none; }
  .cover, .btn, .vote-btn { transition: none; }
}
