@font-face { font-family: 'Inter Tight'; font-weight: 400; font-display: swap; src: url('/fonts/inter-tight-400.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 500; font-display: swap; src: url('/fonts/inter-tight-500.woff2') format('woff2'); }
@font-face { font-family: 'Inter Tight'; font-weight: 600; font-display: swap; src: url('/fonts/inter-tight-600.woff2') format('woff2'); }

/* Registered so the gradient colours interpolate during the flow */
@property --c1 { syntax: '<color>'; inherits: true; initial-value: #c2635a; }
@property --c2 { syntax: '<color>'; inherits: true; initial-value: #1b8d9c; }
@property --c3 { syntax: '<color>'; inherits: true; initial-value: #203a7a; }

:root {
  --flow: 2200ms;
  --ease: cubic-bezier(.45, .05, .25, 1);
  --bg: #0a0b10;
  --text: #f4f2ef;
  --muted: rgba(244, 242, 239, .85);
  --ink: #0d0f14;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
/* Background on html only: a body background would paint over the z-index:-1 .stage */
html { background: var(--bg); }
body {
  font-family: 'Inter Tight', system-ui, sans-serif; color: var(--text); overflow: hidden;
  -webkit-font-smoothing: antialiased;
  transition: --c1 var(--flow) var(--ease), --c2 var(--flow) var(--ease), --c3 var(--flow) var(--ease);
}
button { font: inherit; color: inherit; cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }

/* Background */
.stage { position: fixed; inset: 0; overflow: hidden; isolation: isolate; z-index: -1; }
.blob { position: absolute; border-radius: 50%; filter: blur(70px); transition: transform var(--flow) var(--ease); animation: drift 18s ease-in-out infinite alternate; }
.b1 { width: 70vmax; height: 70vmax; left: -25vmax; top: 4vh; background: var(--c1); opacity: .6; }
.b2 { width: 85vmax; height: 85vmax; right: -40vmax; top: 18vh; background: var(--c2); opacity: .7; animation-delay: -6s; }
.b3 { width: 70vmax; height: 70vmax; left: -5vmax; bottom: -10vh; background: var(--c3); opacity: .65; animation-delay: -12s; }
@keyframes drift { from { translate: 0 0; } to { translate: 4vw -3vh; } }
.grain { position: absolute; inset: 0; opacity: .05; background-image: radial-gradient(rgba(255,255,255,.4) .5px, transparent .6px); background-size: 3px 3px; }
.vig { position: absolute; inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 40%, rgba(5,6,10,.85)); }

/* Header */
.top { position: fixed; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: max(18px, env(safe-area-inset-top)) 22px 0; z-index: 5; }
.mark { font-size: 12px; letter-spacing: .14em; }
.link { background: none; border: 0; color: var(--muted); font-size: 13px; min-height: 44px; padding: 0 4px; }

/* Shared controls */
.glass { position: relative; background: rgba(255,255,255,.05); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border: 0; box-shadow: 0 10px 34px rgba(0,0,0,.35); }
.glass::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 80%, white), rgba(255,255,255,.12) 50%, color-mix(in srgb, var(--c2) 75%, white));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.solid { background: rgba(255,255,255,.92); color: var(--ink); border: 0; font-weight: 600; }
.solid:disabled { opacity: .5; cursor: default; }
.btn { min-height: 52px; border-radius: 999px; font-size: 15px; font-weight: 500; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.row { display: flex; gap: 12px; }
.row > * { flex: 1; }
/* A flex column: the card flows from the top, the actions sit at the bottom, and the card
   scrolls rather than ever running underneath the buttons on a short screen. */
main { position: fixed; inset: 0; display: flex; flex-direction: column; padding: 0 22px max(28px, env(safe-area-inset-bottom)); }
.actions { position: relative; flex: none; width: 100%; max-width: 520px; margin: auto auto 0; display: flex; flex-direction: column; gap: 10px; }
.text-link { background: none; border: 0; color: var(--muted); font-size: 13px; min-height: 44px; }

/* Stack card */
.copy { position: relative; flex: 0 1 auto; min-height: 0; overflow-y: auto; width: 100%; max-width: 528px; margin: 112px auto 20px; padding: 0 4px; transition: opacity 450ms ease, transform 450ms ease; touch-action: pan-y; }
.copy.out-left { opacity: 0; transform: translateX(-40px); }
.copy.out-up { opacity: 0; transform: translateY(-24px); }
.copy.in { opacity: 0; transform: translateY(18px); transition: none; }
.copy.dim { opacity: .45; }
.kick { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.syn { margin: 0; font-size: clamp(22px, 6.6vw, 30px); line-height: 1.22; letter-spacing: -.01em; font-weight: 400; text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.meta { margin-top: 16px; font-size: 13px; color: var(--muted); }

/* Services (S1) */
.services { position: absolute; left: 22px; right: 22px; top: 96px; max-width: 520px; margin: 0 auto; }
h1 { font-size: clamp(28px, 8vw, 38px); line-height: 1.08; font-weight: 500; letter-spacing: -.02em; margin: 0; }
.sub { color: var(--muted); font-size: 14px; line-height: 1.45; margin: 10px 0 0; }
.cloud { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; }
.pill { border-radius: 999px; min-height: 44px; padding: 0 16px; font-size: 14px; }
.pill[aria-pressed="true"] { background: rgba(255,255,255,.92); color: var(--ink); }
.pill[aria-pressed="true"]::before { display: none; }

/* Message screens (intro, end of stack, closure): the text sits just above the actions and scrolls if long */
main.is-message { padding-top: 96px; justify-content: flex-end; }
main.is-message .actions { margin-top: 0; }
.message { flex: 0 1 auto; min-height: 0; overflow-y: auto; width: 100%; max-width: 520px; margin: 0 auto 28px; padding: 0 4px; }
.message h2 { font-size: 26px; font-weight: 500; letter-spacing: -.01em; margin: 0; }
.message.intro h1 { font-size: clamp(34px, 10vw, 46px); line-height: 1.02; }
.message.intro .sub { font-size: 16px; margin-top: 14px; max-width: 30ch; }
.near { margin-top: 26px; }
.near h3 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 12px; }
.near ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.near-name { font-size: 18px; font-weight: 500; margin-bottom: 8px; }
.near-links { display: flex; flex-wrap: wrap; gap: 8px; }
.near-links .btn { min-height: 44px; font-size: 14px; color: var(--text); }
nav.footer { flex: none; display: flex; justify-content: center; gap: 22px; margin-top: 2px; }
nav.footer a { color: var(--muted); font-size: 12px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
nav.footer a:hover { color: var(--text); }

/* Guess form */
.guess-form { display: flex; flex-direction: column; gap: 12px; }
.guess-form input { min-height: 52px; border-radius: 16px; border: 0; padding: 0 16px; font: inherit; font-size: 16px; color: var(--text); background: rgba(255,255,255,.08); }

/* Reveal sheet (R3) */
.scrim { position: fixed; inset: 0; background: rgba(5,6,10,.25); z-index: 8; }
.sheet { position: fixed; left: 8px; right: 8px; bottom: 8px; max-width: 560px; margin: 0 auto; z-index: 9; border-radius: 28px; padding: 14px 20px max(20px, env(safe-area-inset-bottom));
  background: rgba(20,22,30,.55); backdrop-filter: blur(22px); -webkit-backdrop-filter: blur(22px);
  max-height: calc(100dvh - 16px); overflow-y: auto; overscroll-behavior: contain;
  transform: translateY(110%); transition: transform 380ms var(--ease); touch-action: pan-y; }
.sheet.open { transform: translateY(0); }
.sheet::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c1) 70%, white), rgba(255,255,255,.08) 50%, color-mix(in srgb, var(--c2) 65%, white));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.grab { width: 40px; height: 5px; border-radius: 9px; background: rgba(255,255,255,.3); margin: 0 auto 14px; }
.sheet h2 { font-size: clamp(26px, 7vw, 34px); line-height: 1.05; font-weight: 500; letter-spacing: -.02em; margin: 6px 0; }
.sheet .by { font-size: 13px; color: var(--muted); }
.sheet .stack { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.sheet .play { width: 100%; }
.sheet .play.solid { min-height: 58px; font-size: 16px; }
.sheet a.btn.glass { color: var(--text); }
.btn { text-align: center; line-height: 1.2; }
.row.split > :last-child { flex: 1.7; }
.sheet .links { display: flex; justify-content: center; gap: 22px; }
.sheet .stack > .sub { margin: 0; }
.report-form { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.choices { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; align-items: center; gap: 12px; min-height: 44px; font-size: 16px; }
.choice input { width: 24px; height: 24px; accent-color: #fff; flex: none; }
.choice input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.report-form textarea.input { min-height: 80px; padding: 12px 16px; resize: vertical; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#sheet-title:focus { outline: none; }
.rating { display: flex; gap: 8px; }
.rating button { flex: 1; min-height: 52px; border-radius: 16px; font-size: 17px; }

@media (prefers-reduced-motion: reduce) {
  :root { --flow: 600ms; }
  .blob { animation: none; }
  .copy { transition: opacity 200ms ease; }
  .copy.out-left, .copy.out-up, .copy.in { transform: none; }
  .sheet { transition: opacity 200ms ease; transform: none; opacity: 0; }
  .sheet.open { opacity: 1; }
}

/* Writer pages (W1 focused column) */
.writer { --head: 72px; }
.writer .top { flex-wrap: wrap; gap: 4px 18px; padding-bottom: 6px; }
.writer a.mark { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.tabs { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 0 18px; }
.tabs .link { text-decoration: none; display: inline-flex; align-items: center; font-size: 14px; }
.tabs .link:hover, .tabs .link[aria-current="page"] { color: var(--text); }
.tabs .link[aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1px; }
main.write-main { top: var(--head); display: block; overflow-y: auto; padding: 24px 22px max(28px, env(safe-area-inset-bottom)); }
.w-col { width: 100%; max-width: 760px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.w-col.narrow { max-width: 460px; justify-content: center; padding-bottom: 10vh; }
.w-col h2 { font-size: clamp(26px, 6vw, 34px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; margin: 6px 0 0; }
.lab { display: block; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 0; }
.w-form { display: flex; flex-direction: column; gap: 14px; margin-top: 26px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.input { min-height: 52px; border-radius: 16px; padding: 0 16px; font: inherit; font-size: 16px; color: var(--text); }
.w-form .sub { margin: 0; }
.code-form { margin-top: 18px; }
.code-form[hidden] { display: none; }
#code-input { letter-spacing: .3em; }
.form-message { color: var(--text); font-size: 14px; line-height: 1.45; margin: 0; min-height: 1.45em; }
.form-message p { margin: 0; }
.form-message ul { margin: 6px 0 0; padding-left: 18px; color: #f0a593; }
.flash { margin: 0 0 18px; font-size: 14px; color: #9fe0bf; }
.w-list { list-style: none; margin: 24px 0 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.film-row, .mine-row { width: 100%; text-align: left; border-radius: 18px; padding: 14px 18px; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.film-row:hover, button.mine-row:hover { background: rgba(255,255,255,.1); }
.row-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.row-title { font-size: 17px; font-weight: 500; }
.row-meta { font-size: 13px; color: var(--muted); }
.row-text { font-size: 14px; line-height: 1.45; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.row-note { font-size: 13px; color: #f0c48f; }
.status { flex: none; font-size: 12px; color: var(--muted); }
.status.live { color: #9fe0bf; }
.status.rejected, .status.pulled { color: #f0c48f; }

/* Writing view */
.w-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.w-meta { margin: 0; font-size: 14px; color: var(--muted); white-space: nowrap; }
.note { margin: 16px 0 0; font-size: 14px; line-height: 1.45; color: #f0c48f; }
.note .lab { margin-bottom: 4px; }
#synopsis { display: block; width: 100%; margin-top: 28px; border-radius: 24px; padding: 22px 26px; resize: vertical; min-height: 168px;
  font: inherit; font-size: clamp(19px, 4.6vw, 26px); line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
#synopsis:focus-visible { outline: 2px solid #fff; outline-offset: 3px; background: rgba(255,255,255,.08); }
.writer h1:focus, .writer h2:focus, .writer .flash:focus { outline: none; }
.w-under { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-top: 18px; }
#checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.4; }
#checks li { position: relative; padding-left: 15px; }
#checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#checks .error { color: #f0a593; }
#checks .warn { color: #f0c48f; }
#checks .ok { color: #9fe0bf; }
.count { margin: 0; flex: none; font-size: 14px; color: var(--muted); }
.tick { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 14px; min-height: 44px; cursor: pointer; }
.tick input { width: 20px; height: 20px; margin: 0; accent-color: #fff; }
.writing .form-message { margin-top: 6px; }
.w-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: auto; padding-top: 24px; }
.w-actions .btn { min-width: 150px; }
.w-actions .glass { color: var(--text); }

@media (max-width: 640px) {
  .writer { --head: 120px; }
  .writer .top { padding-left: 16px; padding-right: 16px; }
  .writer a.mark { padding-left: 6px; }
  .tabs { width: 100%; flex-wrap: nowrap; justify-content: flex-start; gap: 0 10px; overflow-x: auto; scrollbar-width: none; }
  .tabs .link { flex: none; font-size: 13px; min-height: 44px; white-space: nowrap; }
  main.write-main { padding-left: 16px; padding-right: 16px; }
  .w-under { flex-direction: column-reverse; gap: 10px; }
  .w-head { flex-direction: column; gap: 4px; }
  .w-actions .btn { flex: 1; min-width: 0; }
}
.tabs[hidden], .field[hidden] { display: none; }

/* Editor pages (Q1 inbox at 900px+, Q2 one at a time below) */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.editor h1:focus, .editor h2:focus, .editor .form-message:focus { outline: none; }
.inline-link { color: var(--text); }
.ed-queue { width: 100%; max-width: 1240px; margin: 0 auto; min-height: 100%; display: grid; grid-template-columns: minmax(280px, 34%) 1fr; gap: 32px; }
.ed-list { list-style: none; margin: 0; padding: 0; border-radius: 24px; overflow-y: auto; align-self: stretch; max-height: calc(100dvh - var(--head) - 52px); }
.ed-list li + li { border-top: 1px solid rgba(255,255,255,.08); }
.queue-item { width: 100%; min-height: 72px; text-align: left; background: none; border: 0; padding: 16px 22px; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.queue-item:hover { background: rgba(255,255,255,.06); }
.queue-item[aria-current="true"] { background: rgba(255,255,255,.12); }
.queue-item:focus-visible { outline-offset: -3px; }
.queue-item .flags { color: #f0c48f; }
.queue-item .clean { color: #9fe0bf; }
.ed-slot { min-width: 0; display: flex; }
.ed-detail { flex: 1; display: flex; flex-direction: column; min-width: 0; touch-action: pan-y; }
.ed-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.ed-pos { margin: 0; font-size: 14px; color: var(--muted); display: none; }
.ed-detail h2 { font-size: clamp(26px, 4vw, 34px); line-height: 1.1; font-weight: 500; letter-spacing: -.02em; margin: 10px 0 0; }
.ed-detail .by { margin: 8px 0 0; font-size: 14px; color: var(--muted); }
#review-text { display: block; width: 100%; margin-top: 24px; border-radius: 24px; padding: 20px 26px; resize: vertical; min-height: 132px;
  font: inherit; font-size: clamp(20px, 2.4vw, 26px); line-height: 1.3; letter-spacing: -.01em; color: var(--text); }
#review-text[readonly] { cursor: default; }
#review-text:not([readonly]) { background: rgba(255,255,255,.1); }
#review-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; line-height: 1.4; }
#review-checks li { position: relative; padding-left: 15px; }
#review-checks li::before { content: ""; position: absolute; left: 0; top: .5em; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
#review-checks .error { color: #f0a593; }
#review-checks .warn { color: #f0c48f; }
#review-checks .ok { color: #9fe0bf; }
#note { width: 100%; margin-top: 18px; padding: 14px 20px; border-radius: 18px; resize: vertical; min-height: 56px; line-height: 1.4; }
#note::placeholder, .input::placeholder { color: rgba(244,242,239,.6); }
.ed-detail .form-message { margin-top: 10px; }
.ed-actions { display: flex; justify-content: flex-end; gap: 12px; margin-top: auto; padding-top: 22px; }
.ed-actions .btn { min-width: 120px; }
.ed-actions .glass, .ed-row .glass { color: var(--text); }
.ed-actions .btn[aria-pressed="true"] { background: rgba(255,255,255,.18); }
.ed-hint { margin: 10px 0 0; text-align: right; font-size: 12px; color: var(--muted); }
.ed-empty { justify-content: center; padding-bottom: 10vh; }
.ed-row { border-radius: 18px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; }
.row-text.full { display: block; -webkit-line-clamp: none; color: var(--text); font-size: 16px; margin-top: 4px; }
.row-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.row-actions .btn { min-height: 44px; font-size: 14px; }
.fix { display: grid; grid-template-columns: minmax(150px, 1fr) 2fr; gap: 10px; margin-top: 8px; }
select.input { background-color: rgba(255,255,255,.05); padding-right: 12px; }
select.input option { color: var(--ink); }
select:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.ed-form { max-width: 640px; }
.ed-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ed-links { border: 0; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.ed-links legend { margin-bottom: 12px; }
.ed-links .lab { letter-spacing: .04em; text-transform: none; font-size: 13px; }

.tmdb-logo { height: 12px; width: auto; display: block; }
.tmdb-find { margin: 0 0 28px; }
.tmdb-find h2 { font-size: 18px; margin: 0 0 12px; }
.tmdb-row { display: grid; grid-template-columns: 2fr 1fr auto; gap: 12px; align-items: end; }
.tmdb-results { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.tmdb-result { width: 100%; min-height: 44px; text-align: left; justify-content: flex-start; border-radius: 16px; font-size: 15px; color: var(--text); }
.tmdb-result:focus-visible, #tmdb-watch:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.tmdb-watch { margin: 14px 0 0; }
#tmdb-watch { display: inline-flex; align-items: center; min-height: 44px; color: var(--text); }
.tmdb-help, .on-tmdb { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.tmdb-help { margin: 0 0 8px; }

@media (max-width: 899px) {
  .ed-queue { display: flex; flex-direction: column; gap: 0; max-width: 600px; }
  .ed-list { display: none; }
  .ed-pos { display: block; }
  #review-text { border-radius: 0; padding: 0; margin-top: 20px; min-height: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; resize: none; field-sizing: content; }
  #review-text::before { display: none; }
  #review-text:not([readonly]) { padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.1); }
  .ed-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .ed-actions #approve { grid-column: 1 / -1; min-height: 58px; font-size: 16px; }
  .ed-actions .btn { min-width: 0; }
  .ed-hint { text-align: center; }
}
@media (max-width: 640px) {
  .fix, .ed-grid, .ed-links, .tmdb-row { grid-template-columns: 1fr; }
  .ed-detail .w-under { flex-direction: column; }
}

/* Reading pages: about, guidelines, privacy, credits. The app locks body scrolling; these scroll. */
body.doc { overflow-y: auto; height: auto; min-height: 100%; }
.doc .top { position: static; max-width: 684px; margin: 0 auto; padding: max(18px, env(safe-area-inset-top)) 22px 0; flex-wrap: wrap; gap: 4px 18px; }
.doc .top a { color: var(--text); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.doc .back { font-size: 15px; }
main.page { position: static; display: block; max-width: 684px; margin: 0 auto; padding: 28px 22px max(48px, env(safe-area-inset-bottom));
  font-size: 18px; line-height: 1.55; color: var(--text); text-shadow: 0 1px 12px rgba(0,0,0,.35); }
.page h1 { margin: 0 0 24px; }
.page h2 { font-size: 22px; line-height: 1.2; font-weight: 500; letter-spacing: -.01em; margin: 40px 0 12px; }
.page h3 { font-size: 18px; font-weight: 600; margin: 28px 0 8px; }
.page p, .page ul, .page ol, .page blockquote { margin: 0 0 16px; }
.page ul, .page ol { padding-left: 1.3em; }
.page li + li { margin-top: 6px; }
.page a { color: var(--text); text-underline-offset: 3px; }
.page blockquote { margin-left: 0; padding: 14px 18px; border-left: 3px solid rgba(255,255,255,.6); border-radius: 0 14px 14px 0; background: rgba(0,0,0,.18); }
.page code { font-family: inherit; font-size: .9em; background: rgba(0,0,0,.2); padding: 1px 6px; border-radius: 6px; }
.page .lede { font-size: 20px; }
.page-links { display: flex; flex-wrap: wrap; gap: 4px 22px; margin-top: 32px; }
.page-links a { min-height: 44px; display: inline-flex; align-items: center; }
.page .version { margin-top: 32px; font-size: 14px; opacity: .7; }

.sheet .app-only { text-align: center; padding: 12px 4px; color: var(--text); }

/* Viewer Menu: the button's hit area runs to the corner; "Write for us" shows beside it on wide screens */
.top-links { display: flex; align-items: flex-start; align-self: flex-start; margin-right: -22px; margin-top: calc(-1 * max(18px, env(safe-area-inset-top))); }
#open-menu { min-width: 80px; min-height: 66px; padding: max(18px, env(safe-area-inset-top)) 22px 0 12px; font-size: 14px; color: var(--text); }
#open-menu:focus-visible, #write-inline:focus-visible { outline-offset: -6px; }
#write-inline { display: none; align-items: center; min-height: 66px; padding: max(18px, env(safe-area-inset-top)) 12px 0; font-size: 14px; text-decoration: none; color: var(--muted); }
#write-inline:hover { color: var(--text); }
@media (min-width: 900px) { #write-inline { display: inline-flex; } }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
nav.menu { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; }
nav.menu .btn { width: 100%; color: var(--text); min-height: 48px; }
nav.menu [aria-pressed="true"] { background: rgba(255,255,255,.92); color: var(--ink); }
nav.menu [aria-pressed="true"]::before { display: none; }
a.text-link { display: inline-flex; align-items: center; text-decoration: underline; text-underline-offset: 3px; }
.sheet .links { flex-wrap: wrap; }
.write-block { margin-top: 26px; }
.write-block h3 { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin: 0 0 8px; }
.write-block a.text-link { padding: 0; margin-top: 4px; color: var(--text); font-size: 14px; }
nav.footer { flex-wrap: wrap; gap: 0 22px; }
.page-footer { margin-top: 40px; font-size: 15px; }
.page-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 22px; }
.page-footer a { min-height: 44px; display: inline-flex; align-items: center; }
.page-footer p { margin: 4px 0 0; font-size: 14px; }
.device-controls { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.device-controls .btn { color: var(--text); font-size: 15px; text-shadow: none; }
.device-controls [aria-pressed="true"] { background: rgba(255,255,255,.92); color: var(--ink); }
.device-controls [aria-pressed="true"]::before { display: none; }
.page-footer li + li { margin-top: 0; }
