/* Dear Ummah
   Design system taken from hjeewa.com: black page with film grain, Lab Grotesque for
   reading, PP Neue Montreal for display, quiet greys, 12-16px radii, small arrows.
   The one difference: the frame is wide, not a narrow column. */

@font-face { font-family: "PP Neue Montreal"; src: url(/fonts/PPNeueMontreal-Book.woff2) format("woff2"); font-weight: 400; font-display: block; }
@font-face { font-family: "Helvetica Now Micro"; src: url(/fonts/HelveticaNowMicro-Bold.woff2) format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: "PP Neue Montreal"; src: url(/fonts/PPNeueMontreal-Medium.woff2) format("woff2"); font-weight: 500; font-display: block; }
@font-face { font-family: "Lab Grotesque"; src: url(/fonts/LabGrotesque-Regular.woff2) format("woff2"); font-weight: 300; font-display: block; }
@font-face { font-family: "Lab Grotesque"; src: url(/fonts/LabGrotesque-Italic.woff2) format("woff2"); font-weight: 300; font-style: italic; font-display: block; }
@font-face { font-family: "Lab Grotesque"; src: url(/fonts/LabGrotesque-Bold.woff2) format("woff2"); font-weight: 500 700; font-display: block; }

:root {
  --u: 1px;
  --black: #000;
  --page: #121212;
  --ink: #fafafa;
  --dim: #a3a3a3;
  --faint: #6b6b6b;
  --box: #1c1c1c;
  --box-2: #232323;
  --rule: #333;
  --wash: rgb(255 255 255 / 6%);
  --sans: "Lab Grotesque", "Helvetica Neue", Arial, sans-serif;
  --display: "PP Neue Montreal", "Helvetica Neue", Arial, sans-serif;
  --ui: "Helvetica Now Micro", "Helvetica Neue", Arial, sans-serif;
  --t-small: 14px;
  --t-body: 17px;
  --t-read: 19px;
  --t-h2: 24px;
  --t-title: clamp(34px, 4.4vw, 60px);
  --window: 1280px;
  --measure: 640px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.2, 1.5, .35, 1);
}
@media (max-width: 480px) {
  :root { --t-body: 15px; --t-read: 17px; }
}

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, li, figure, fieldset, legend, dialog, button, input, textarea { margin: 0; padding: 0; }
ul { list-style: none; }
button, input, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }
img, svg { display: block; }
[hidden] { display: none !important; }

html { color-scheme: dark; background: var(--page); -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 24px); scrollbar-gutter: stable; }
/* A letter or the writer is open: the page behind stays put */
html.is-locked, html.is-locked body { overflow: hidden; }
html.is-locked body { position: fixed; left: 0; right: 0; width: 100%; }
body {
  position: relative;
  background: var(--page);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--t-body);
  font-weight: 300;
  line-height: 1.35;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
#app { min-height: 100lvh; background: var(--black); }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
::selection { background: var(--ink); color: var(--black); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 200; top: 8px; left: 8px; width: auto; height: auto; clip: auto; padding: 8px 12px; background: #fff; color: #000; }

/* Film grain over everything, as on hjeewa.com */
.grain { position: absolute; z-index: 40; inset: 0; width: 100%; height: 100%; opacity: .16; pointer-events: none; }

/* Header */
.site-header {
  --pad: max(20px, (100% - var(--window)) / 2);
  position: fixed; z-index: 50; top: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: var(--header-h); padding-inline: var(--pad);
  background: var(--page);
}
.site-header::before { content: ""; position: absolute; top: 100%; left: 0; right: 0; height: 5rem; background: linear-gradient(to bottom, var(--page), transparent); pointer-events: none; }
.site-header::after { content: ""; position: absolute; bottom: 0; left: var(--pad); right: var(--pad); height: 1px; background: var(--rule); }
.brand { display: inline-flex; align-items: center; min-width: 40px; min-height: 40px; flex-shrink: 0; color: var(--ink); }
/* Shared SVG branding. Dimensions preserve the existing header heights. */
.brand > svg { width: auto; height: 22px; }
.colophon__brand { display: block; max-width: 100%; color: var(--dim); }
.colophon__brand > svg { display: block; width: min(100%, 412px); height: auto; max-height: 40px; }
.kids .colophon__brand { color: var(--ink); }
@media (max-width: 640px) { .brand > svg { height: 18px; } }
.site-nav__list { display: flex; align-items: center; gap: 20px; }
.site-nav__list a { font-weight: 500; color: #fff; }
.site-nav__list a:not(.button):hover { text-decoration: underline; text-underline-offset: 3px; }
.site-nav__list .button { color: var(--black); }
@media (max-width: 480px) { .site-nav__list { gap: 18px; } }

/* Frame and bands. Wide frame; label sits in a left column on big screens. */
.frame { display: flex; flex-direction: column; width: min(100% - 40px, var(--window)); min-height: 100svh; margin-inline: auto; }
.main { flex: 1; padding-top: calc(var(--header-h) + 88px); }
.band { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.band__body, .band__label { min-width: 0; }
.band + .band, .site-footer { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--rule); }
@media (min-width: 960px) {
  .band { grid-template-columns: 280px minmax(0, 1fr); gap: 48px; }
  .band--full { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .band--full .band__label { display: flex; align-items: baseline; gap: 16px; }
  .band--full .label-meta { margin-top: 0; }
}

.label { font-family: var(--display); font-size: var(--t-h2); font-weight: 500; line-height: 1.3; letter-spacing: -.04em; -webkit-text-stroke: .3px currentColor; }
.label-meta { margin-top: 6px; font-size: var(--t-small); color: var(--dim); font-variant-numeric: tabular-nums; }
.eyebrow { font-size: var(--t-small); color: var(--dim); max-width: 220px; line-height: 1.4; }

/* Hero */
.statement {
  max-width: 17ch;
  font-family: var(--display); font-size: var(--t-title); font-weight: 500;
  line-height: 1.02; letter-spacing: -.045em; text-wrap: balance;
}
.statement--small { font-size: clamp(30px, 3.4vw, 44px); }
.hero__intro { max-width: var(--measure); margin-top: 40px; color: var(--dim); font-size: var(--t-read); line-height: 1.45; text-wrap: pretty; }
.hero__intro p + p { margin-top: 20px; }
.hero__intro p:first-child { color: var(--ink); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 40px; }

.js .statement { animation: fade-in .6s ease-out .15s both; }
.js .hero__intro { animation: fade-in .6s ease-out .4s both; }
.js .hero__actions, .js .hero .eyebrow { animation: fade-in .6s ease-out .55s both; }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- First-visit intro: the headline types itself in the middle of a dark screen ---------- */
html.intro-run .statement, html.intro-run .hero__intro, html.intro-run .hero__actions, html.intro-run .hero .eyebrow { animation: none; }
html.intro { overflow: hidden; }
html.intro .site-header, html.intro .hero__intro, html.intro .hero__actions,
html.intro .main > :not(.hero), html.intro .site-footer { opacity: 0; }
html.intro .statement { visibility: hidden; }
html.intro .statement.is-typing { visibility: visible; }
html.intro-run .site-header, html.intro-run .hero__intro, html.intro-run .hero__actions,
html.intro-run .main > :not(.hero), html.intro-run .site-footer { transition: opacity .7s ease-out; }
html.intro-run .hero__intro { transition-delay: .15s; }
html.intro-run .hero__actions { transition-delay: .3s; }
html.intro-run .main > :not(.hero), html.intro-run .site-footer { transition-delay: .5s; }
.statement .ch { visibility: hidden; }
.statement .ch.is-on { visibility: visible; }
.statement[data-headline] { position: relative; }
.caret { position: absolute; width: 2px; margin-left: 2px; background: currentColor; animation: caret 1s steps(1) infinite; pointer-events: none; }
.caret.is-gone { opacity: 0; transition: opacity .2s; }
@keyframes caret { 50% { opacity: 0; } }

/* Buttons */
.button {
  display: inline-flex; align-items: center; gap: .55em;
  height: 48px; padding: 0 20px;
  border: 1px solid var(--rule); border-radius: 12px;
  background: var(--box); color: var(--ink);
  font-weight: 500; white-space: nowrap;
  transition: background-color .15s, border-color .15s, opacity .15s, transform .2s var(--ease);
}
.button:hover { background: var(--box-2); border-color: #444; }
.button:active { transform: scale(.98); }
.button--solid { background: var(--ink); color: var(--black); border-color: var(--ink); }
.button--solid:hover { background: var(--ink); border-color: var(--ink); opacity: .86; }
.button--small { height: 40px; padding: 0 16px; border-radius: 10px; font-size: 15px; }
.button[disabled] { opacity: .5; cursor: default; }
.button .arrow { width: .7em; height: .7em; transition: transform .2s var(--ease); }
.button:hover .arrow { transform: translateX(.15em); }
.button .shuffle { width: 1em; height: 1em; transition: transform .35s var(--ease); }
.button:hover .shuffle { transform: rotate(-8deg) scale(1.08); }

.text-button { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; transition: opacity .15s; }
.text-button:hover { opacity: .7; }
.text-button--dim { color: var(--dim); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.toolbar__actions { display: flex; align-items: center; gap: 20px; }
.filter { display: inline-flex; padding: 4px; gap: 2px; border: 1px solid var(--rule); border-radius: 12px; background: var(--box); }
.filter button { height: 32px; padding: 0 14px; border-radius: 8px; color: var(--dim); font-size: 15px; transition: background-color .2s, color .2s; }
.filter button:hover { color: var(--ink); }
.filter button[aria-checked="true"] { background: var(--ink); color: var(--black); font-weight: 500; }

/* The wall of letters, slightly askew */
.wall { position: relative; display: flex; align-items: flex-start; gap: 28px; margin-top: 40px; }
.wall__item { position: relative; }
.wall__col { flex: 1 1 0; min-width: 0; }
.wall__item { padding: 10px 0 18px; }
.card {
  --tilt: 0deg;
  position: relative; display: block; width: 100%; text-align: left;
  padding: 24px 24px 20px;
  border: 1px solid var(--rule); border-radius: 16px;
  background: var(--box);
  box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 10px 30px rgb(0 0 0 / 35%);
  transform: rotate(var(--tilt));
  transition: transform .45s var(--spring), border-color .2s, background-color .2s, box-shadow .3s;
}
.card:hover, .card:focus-visible { transform: rotate(0deg) translateY(-4px) scale(1.015); border-color: #474747; background: var(--box-2); box-shadow: 0 1px 0 rgb(255 255 255 / 5%) inset, 0 18px 40px rgb(0 0 0 / 55%); z-index: 2; }
.card:focus-visible { outline-offset: 6px; }
.card__body {
  display: -webkit-box; -webkit-line-clamp: 9; -webkit-box-orient: vertical; overflow: hidden;
  font-size: 16px; line-height: 1.45; color: #e6e6e6; text-wrap: pretty; white-space: pre-line;
}
.card--short .card__body { font-family: var(--display); font-weight: 400; font-size: 21px; line-height: 1.22; letter-spacing: -.02em; color: var(--ink); }
.card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--dim); }
.card__who { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card__len { flex: none; font-variant-numeric: tabular-nums; }

/* Cards fade up once when a new set arrives; nothing animates on hover except the card itself. */
.wall.is-entering .wall__item { animation: card-in .5s var(--ease) var(--delay, 0ms) backwards; }
@keyframes card-in { from { opacity: 0; transform: translateY(14px); } }

.wall__empty { margin-top: 32px; color: var(--dim); }
.wall__more { min-height: 48px; padding-top: 16px; text-align: center; font-size: var(--t-small); color: var(--dim); }

/* Skeleton while loading */
.card--ghost { height: var(--h, 180px); background: linear-gradient(100deg, var(--box) 40%, var(--box-2) 50%, var(--box) 60%) 0 0 / 300% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { to { background-position: -150% 0; } }

/* Footer */
.footer__line { max-width: var(--measure); color: var(--dim); font-size: var(--t-read); line-height: 1.45; text-wrap: pretty; margin-bottom: 28px; }
.colophon { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 72px; padding-bottom: 96px; font-size: var(--t-small); color: var(--dim); }
.colophon a { text-decoration: underline; text-underline-offset: 2px; }
.colophon a:hover { color: var(--ink); }

/* Sheets (dialogs) */
.sheet {
  width: min(100% - 24px, 760px); max-height: min(100dvh - 48px, 900px);
  margin: auto; padding: 0;
  border: 1px solid var(--rule); border-radius: 20px;
  background: var(--box); color: var(--ink);
  box-shadow: 0 40px 120px rgb(0 0 0 / 70%);
  overflow: hidden;
}
.sheet::backdrop { background: rgb(0 0 0 / 62%); backdrop-filter: blur(10px) saturate(.8); -webkit-backdrop-filter: blur(10px) saturate(.8); }
.sheet[open] { animation: sheet-in .5s var(--ease) both; }
.sheet[open]::backdrop { animation: fade-in .3s ease-out both; }
.sheet.is-closing { animation: sheet-out .2s ease-in both; }
.sheet.is-closing::backdrop { animation: fade-out .2s ease-in both; }
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px) scale(.98); } }
@keyframes sheet-out { to { opacity: 0; transform: translateY(12px) scale(.985); } }
@keyframes fade-out { to { opacity: 0; } }

.sheet__inner { max-height: inherit; overflow-y: auto; padding: 0 clamp(22px, 5vw, 56px) clamp(28px, 4vw, 44px); overscroll-behavior: contain; }
.sheet__bar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 0 18px; margin-bottom: 12px; background: linear-gradient(var(--box) 70%, transparent); }
.sheet__kicker { font-size: var(--t-small); color: var(--dim); }
.close { display: grid; place-items: center; width: 36px; height: 36px; margin-right: -8px; border-radius: 50%; color: var(--dim); transition: background-color .15s, color .15s; }
.close:hover { background: var(--wash); color: var(--ink); }
.close svg { width: 14px; height: 14px; }

/* A single letter */
.letter { min-height: 200px; }
.letter__salutation { margin-bottom: 1em; font-size: var(--t-read); line-height: 1.6; color: var(--dim); }
.letter__salutation.is-short { margin-bottom: .6em; }
.letter__body { font-size: var(--t-read); line-height: 1.6; text-wrap: pretty; }
.letter__body strong { font-weight: 500; }
.letter__body u { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.letter__body p + p { margin-top: 1em; }
.letter__body.is-short { font-family: var(--display); font-weight: 400; font-size: clamp(24px, 3vw, 32px); line-height: 1.2; letter-spacing: -.025em; }
.letter__sign { margin-top: 36px; color: var(--dim); }
.letter__sign strong { color: var(--ink); font-weight: 500; }
@keyframes swap { 0% { opacity: 0; transform: translateY(10px); filter: blur(6px); } }

.sheet__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.sheet__links { display: flex; flex: 1 1 100%; align-items: center; gap: 22px; font-size: 15px; }
.action { display: inline-flex; align-items: center; gap: 7px; color: var(--ink); transition: opacity .15s; }
.action:hover { opacity: .7; }
.action svg { width: 17px; height: 17px; flex: none; }
/* Report sits apart on the right, in a soft red that reads on dark without shouting. */
.action--report { margin-left: auto; color: #e0716f; }

.flag { margin-top: 24px; padding: 20px; border: 1px solid var(--rule); border-radius: 14px; background: var(--box); }
.flag__title { font-weight: 500; }
.flag__options { display: grid; gap: 10px; margin-top: 14px; color: var(--dim); font-size: 15px; }
.flag__options label { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.flag__options label:has(input:checked) { color: var(--ink); }
.flag__options input { accent-color: var(--ink); }
.flag__actions { display: flex; align-items: center; gap: 20px; margin-top: 18px; }

.status { margin-top: 14px; font-size: var(--t-small); color: var(--dim); }
.status:empty { display: none; }
.status[data-state="error"] { color: #ff8a80; }

/* Writing */
/* The writer is its own full screen */
.screen {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--black); color: var(--ink);
  overflow: hidden;
}
/* The screen itself stays put (so the header and grain cover it all); only this scrolls. */
.screen__scroll { position: absolute; inset: 0; overflow-y: auto; overscroll-behavior: contain; }
.screen::backdrop { background: var(--black); }
.screen[open] { animation: screen-in .45s var(--ease) both; }
/* Closing the writer wipes it away upwards, uncovering the page underneath. */
.screen.is-closing { animation: screen-wipe .55s cubic-bezier(.7, 0, .3, 1) both; }
.screen.is-closing::backdrop { animation: fade-out .55s ease-in both; }
@keyframes screen-wipe { from { clip-path: inset(0 0 0 0); } to { clip-path: inset(0 0 100% 0); } }
@keyframes screen-in { from { opacity: 0; transform: translateY(16px); } }
.screen .site-header { z-index: 50; }
.grain--screen { position: absolute; z-index: 40; }
.screen .site-header { position: absolute; }
.site-nav__link { font-weight: 500; color: #fff; }
.site-nav__link:hover { text-decoration: underline; text-underline-offset: 3px; }
.screen__inner { width: min(100% - 40px, 760px); margin: 0 auto; padding: clamp(56px, 9vh, 96px) 0 96px; }
.screen__x { position: absolute; z-index: 50; top: 16px; right: 16px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; color: var(--dim); transition: background-color .15s, color .15s; }
.screen__x:hover { background: var(--wash); color: var(--ink); }
.screen__x svg { width: 16px; height: 16px; }
.screen__title { margin-bottom: 28px; font-family: var(--display); font-size: clamp(30px, 3.4vw, 44px); font-weight: 500; line-height: 1.05; letter-spacing: -.045em; }
/* Guidance: opens smoothly in place, pushing the letter down rather than jumping. */
.guidance__toggle { margin: -14px 0 18px; font-size: 15px; }
.guidance { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s var(--ease), opacity .3s ease, margin .35s var(--ease); }
.guidance.is-open { grid-template-rows: 1fr; opacity: 1; margin-bottom: 24px; }
.guidance__inner { overflow: hidden; min-height: 0; max-width: 58ch; color: var(--dim); font-size: 15px; line-height: 1.55; }
.guidance__inner p + p { margin-top: .7em; }
/* A section that opens smoothly in place (used for the Friday themes on /write). */
.reveal { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .35s var(--ease), opacity .3s ease; }
.reveal.is-open { grid-template-rows: 1fr; opacity: 1; }
.reveal__inner { overflow: hidden; min-height: 0; }

.paper { position: relative; padding: 24px clamp(20px, 4vw, 40px) 18px; border: 1px solid var(--rule); border-radius: 16px; background: var(--box); box-shadow: 0 1px 0 rgb(255 255 255 / 4%) inset, 0 10px 30px rgb(0 0 0 / 35%); transition: border-color .2s; }
.paper:focus-within { border-color: #4a4a4a; }
.paper__tools { display: flex; gap: 4px; margin: -6px -8px 18px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.paper__tools button { display: grid; place-items: center; width: 36px; height: 32px; border-radius: 8px; color: var(--dim); font-size: 16px; transition: background-color .15s, color .15s; }
.paper__tools button:hover { color: var(--ink); background: var(--wash); }
.paper__tools button[aria-pressed="true"] { color: var(--black); background: var(--ink); }
.paper__tools b { font-weight: 500; }
.paper__tools u { text-underline-offset: 2px; }
.paper__salutation { font-size: var(--t-read); line-height: 1.6; color: var(--dim); margin-bottom: .6em; user-select: none; }
.write__body {
  display: block; width: 100%; min-height: 42vh;
  outline: 0; font-size: var(--t-read); line-height: 1.6; color: var(--ink); caret-color: var(--ink);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.write__body p + p { margin-top: 1em; }
/* 700 (same Bold file) so the browser knows the text is bold and Cmd+B toggles it off */
.write__body b, .write__body strong { font-weight: 700; }
.write__body u { text-underline-offset: 3px; text-decoration-thickness: 1px; }
.write__body.is-empty::before { content: attr(data-placeholder); position: absolute; color: var(--faint); pointer-events: none; }
.write__body:focus-visible { outline: 0; }
.write__meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 13px; color: var(--dim); font-variant-numeric: tabular-nums; }
.write__meta [data-words].is-ready { color: var(--ink); }
/* Live problems with the letter sit just above the line under the text. The space is always there, so nothing moves. */
.write__error { min-height: 20px; margin-top: 14px; font-size: 13.5px; line-height: 20px; color: #ff8a80; opacity: 0; transition: opacity .25s ease; }
.write__error.is-on { opacity: 1; }
.write__error + .write__meta { margin-top: 2px; }

.write__who { margin-top: 36px; border: 0; }
.write__legend { margin-bottom: 18px; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -.03em; }
.write__fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 20px; transition: opacity .25s; }
.write__fields.is-off { opacity: .35; pointer-events: none; }
.field label { display: block; margin-bottom: 8px; font-size: var(--t-small); color: var(--dim); }
.field input {
  width: 100%; height: 48px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--box);
  font-size: max(16px, var(--t-body));
  transition: border-color .15s;
}
.field input::placeholder { color: var(--faint); }
.field input:focus-visible { outline: 0; border-color: var(--dim); }

.toggle { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; user-select: none; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle__track { position: relative; width: 44px; height: 26px; border-radius: 13px; background: #3a3a3a; transition: background-color .25s; }
.toggle__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgb(0 0 0 / 30%); transition: transform .3s var(--spring); }
.toggle input:checked + .toggle__track { background: var(--ink); }
.toggle input:checked + .toggle__track::after { transform: translateX(18px); background: var(--black); }
.toggle input:focus-visible + .toggle__track { outline: 1px solid var(--ink); outline-offset: 3px; }

.write__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--rule); }
.write__note { font-size: 13px; color: var(--dim); max-width: 34ch; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.sent { padding: 24px 0 8px; }
.sent__line { max-width: 52ch; margin-top: 20px; color: var(--dim); font-size: var(--t-read); line-height: 1.45; }
.sent__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
/* Once sent, the page is just the thank-you. */
.screen.is-sent .screen__title, .screen.is-sent .guidance__toggle, .screen.is-sent .guidance { display: none; }
.sent__share { max-width: 560px; margin-top: 32px; padding: 22px 24px; border: 1px solid var(--rule); border-radius: 16px; background: var(--box); }
.sent__share-title { font-weight: 500; margin-bottom: 14px; }
.sent__share-actions { display: flex; flex-wrap: wrap; gap: 14px 26px; font-size: 15px; }
.sent .statement { animation: swap .6s var(--ease) both; }

/* Small screens */
@media (max-width: 640px) {
  .main { padding-top: calc(var(--header-h) + 48px); }
  .hero__actions .button { flex: 1 1 100%; justify-content: center; }
  .toolbar { align-items: stretch; flex-direction: column; }
  .filter { width: 100%; }
  .filter button { flex: 1; padding: 0 6px; font-size: 14px; }
  .toolbar__actions { justify-content: space-between; }
  .sheet { width: calc(100% - 20px); max-width: calc(100% - 20px); max-height: calc(100dvh - 20px); margin: auto auto 10px; border-radius: 20px; }
  .sheet__foot .button { flex: 1 1 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Themes ---------- */
.themes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.themes button {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px;
  color: var(--dim); font-size: 14px; transition: color .15s, border-color .15s, background-color .2s;
}
.themes button:hover { color: var(--ink); border-color: #4a4a4a; }
.themes button[aria-checked="true"] { color: var(--black); background: var(--ink); border-color: var(--ink); font-weight: 500; }
.themes .n { font-size: 12px; opacity: .6; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .themes { flex-wrap: nowrap; overflow-x: auto; margin-inline: -20px; padding-inline: 20px; scrollbar-width: none; }
  .themes::-webkit-scrollbar { display: none; }
  .themes button { flex: none; }
}

.card__salutation { display: block; margin-bottom: 8px; font-size: 14px; color: var(--dim); }
.card--short .card__salutation { font-size: 14px; }
.card__theme { display: block; margin-bottom: 14px; font-size: 12px; letter-spacing: .02em; color: var(--dim); }
.card__len { display: inline-flex; align-items: center; gap: 12px; }
.card__likes { display: inline-flex; align-items: center; gap: 4px; }
.card__likes svg { width: 13px; height: 13px; }

.letter__themes { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 22px; }
.letter__themes:empty { display: none; }
.tag { height: 26px; padding: 0 11px; border: 1px solid var(--rule); border-radius: 999px; font-size: 13px; color: var(--dim); transition: color .15s, border-color .15s; }
.tag:hover { color: var(--ink); border-color: #4a4a4a; }

/* ---------- Hero: headline left, a few words and the buttons right ---------- */
.main { padding-top: calc(var(--header-h) + 76px); }
.hero { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.hero .statement { max-width: 11.5em; font-size: clamp(30px, 8.4vw, 84px); line-height: 1; }
@media (min-width: 960px) { .hero .statement { font-size: clamp(40px, 5.6vw, 84px); } }
.hero__side { max-width: 460px; }
.hero__side .hero__intro { margin-top: 0; font-size: var(--t-read); line-height: 1.45; color: var(--dim); }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: 24px; }
.button--pill { border-radius: 999px; padding: 0 24px; }
.text-button--quiet { color: var(--dim); text-decoration: none; }
.text-button--quiet:hover { color: var(--ink); opacity: 1; }
@media (min-width: 960px) {
  /* Desktop: a narrower title; the right column runs the title's full height, words at the top
     (level with its first line) and buttons at the bottom (level with its last line). */
  .hero { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); align-items: stretch; gap: 72px; }
  .hero .statement { font-size: clamp(40px, 4.9vw, 72px); max-width: 10.5em; }
  .hero__side { display: flex; flex-direction: column; justify-content: space-between; padding: .5em 0 .35em; }
  .hero__side .hero__actions { margin-top: 24px; }
}

/* ---------- Write (/write): the page is just the writer ---------- */
html[data-page="write"] #app, html[data-page="write"] body > .grain { display: none; }
html[data-page="write"] body { background: var(--black); }
/* No dimmed page behind it here: the writer is the page. */
html[data-page="write"] .screen::backdrop { background: var(--black); }
html[data-page="write"] .screen[open] { animation: none; }

/* ---------- All letters (/letters): the same page, starting with the wall ---------- */
html[data-page="letters"] .hero, html[data-page="letters"] .showcase { display: none; }
html[data-page="letters"] #letters { margin-top: 0; padding-top: 0; border-top: 0; }
html[data-page="letters"] #letters-heading { font-size: clamp(34px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -.045em; }
html[data-page="letters"] [data-all-link] { display: none; }
html:not([data-page="letters"]) [data-more] { display: none; }
.wall__all { margin-top: 24px; text-align: center; }

/* ---------- This week's letter: a big frame under the hero ---------- */
.showcase { margin-top: 48px; }
.showcase + .band { margin-top: 96px; padding-top: 48px; border-top: 1px solid var(--rule); }
.featured {
  position: relative; width: 100%; box-sizing: border-box; padding: clamp(28px, 5vw, 64px) clamp(22px, 6vw, 88px) clamp(26px, 4vw, 48px);
  border: 1px solid var(--rule); border-radius: 28px; background: #0c0c0c;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 5%), inset 0 0 60px rgb(255 255 255 / 2%);
}
.featured__label { margin-bottom: clamp(24px, 4vw, 40px); font-size: var(--t-small); color: var(--dim); }
.featured .letter__salutation, .featured .letter__body { max-width: 34em; font-size: clamp(19px, 1.9vw, 24px); line-height: 1.55; }
.featured .letter__body.is-short { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.15; }
.featured .letter__body p + p { margin-top: 1em; }
.featured .letter__sign { margin-top: 32px; }
.featured__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: 15px; }
.featured__foot .text-button { margin-left: auto; }
@media (max-width: 640px) {
  .main { padding-top: calc(var(--header-h) + 64px); }
  .hero__actions .button { flex: none; }
  .showcase { margin-top: 40px; }
}

/* ---------- Make dua ---------- */
.sheet__primary { display: flex; align-items: center; gap: 10px; }
.like {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 16px; border: 1px solid var(--rule); border-radius: 12px;
  background: var(--box); color: var(--dim); font-weight: 500; font-variant-numeric: tabular-nums;
  transition: color .15s, border-color .15s, background-color .15s;
}
.like svg { display: block; width: 18px; height: 18px; }
.dua__icon { position: relative; display: inline-flex; flex: none; }
.dua__icon::before { content: ""; position: absolute; inset: -12px; pointer-events: none; background: radial-gradient(circle, currentColor 0%, transparent 70%); opacity: 0; }
.dua__text { display: inline-flex; white-space: pre; }
.dua__label { display: inline-grid; justify-items: start; }
.dua__label::after { content: "You made dua"; visibility: hidden; height: 0; }
.like:hover { color: var(--ink); border-color: #4a4a4a; }
.like[aria-pressed="true"] { color: var(--ink); border-color: var(--ink); }
.like[aria-pressed="true"] svg path { fill: currentColor; fill-opacity: .18; }
.like.is-dua svg { animation: dua-lift 500ms ease-out; }
.like.is-dua .dua__icon::before { animation: dua-glow 500ms ease-out; }
@keyframes dua-lift { 40% { transform: translateY(-3px) scale(1.06); } 100% { transform: none; } }
@keyframes dua-glow { 40% { opacity: .16; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .like.is-dua svg, .like.is-dua .dua__icon::before { animation: none; }
}
@media (max-width: 640px) { .sheet__primary { width: 100%; flex-wrap: wrap; } .sheet__primary .button { flex: 1; justify-content: center; } .sheet__primary .like { flex: 1 1 100%; justify-content: center; } }

/* ---------- Letter reader: one action row, "Another letter" under the box ---------- */
.sheet--read { background: none; border: 0; box-shadow: none; overflow: visible; }
.sheet--read[open] { display: flex; flex-direction: column; align-items: center; }
.sheet--read .sheet__inner {
  width: 100%; max-height: calc(min(100dvh - 48px, 900px) - 76px);
  border: 1px solid var(--rule); border-radius: 20px; background: var(--box);
  box-shadow: 0 40px 120px rgb(0 0 0 / 70%);
}
.sheet__after { display: flex; justify-content: center; padding-top: 16px; }
.sheet__foot--row { flex-wrap: nowrap; gap: 12px; }
.sheet__foot--row .like { flex: none; }
.sheet__foot--row .sheet__links { flex: 0 1 auto; flex-wrap: nowrap; justify-content: flex-end; gap: 4px 20px; }
.sheet__foot--row .action--report { margin-left: 0; }
@media (max-width: 640px) {
  .sheet--read .sheet__inner { max-height: calc(100dvh - 20px - 72px); }
  .sheet__foot--row .sheet__links { gap: 4px 16px; }
  .sheet__foot--row .action:not(.action--report) span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .sheet__foot--row .action:not(.action--report) svg { width: 20px; height: 20px; }
}
/* The smallest phones: keep everything visible, the links drop to their own line. */
@media (max-width: 360px) { .sheet__foot--row { flex-wrap: wrap; } .sheet__foot--row .sheet__links { margin-left: auto; } }

/* ---------- Writing: email ---------- */
.optional { margin-left: 8px; font-family: var(--sans); font-size: 13px; font-weight: 300; letter-spacing: 0; color: var(--dim); }
.write__email { margin-top: 32px; }
.write__email .field label { line-height: 1.45; }
.perks { display: grid; gap: 8px; margin-bottom: 20px; color: var(--dim); font-size: 15px; }
.perks li { position: relative; padding-left: 20px; }
.perks li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 8px; height: 1px; background: var(--dim); }
.field__help { max-width: 56ch; margin-top: 8px; color: var(--dim); font-size: 13px; line-height: 1.45; }
.turnstile:empty { display: none; }
.weekly .turnstile { margin-top: 12px; }
.check { display: inline-flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 15px; color: var(--dim); cursor: pointer; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check__box { position: relative; flex: none; width: 20px; height: 20px; border: 1px solid #555; border-radius: 6px; transition: background-color .15s, border-color .15s; }
.check__box::after { content: ""; position: absolute; left: 6px; top: 2px; width: 5px; height: 10px; border: solid var(--black); border-width: 0 2px 2px 0; transform: rotate(45deg) scale(0); transition: transform .2s var(--spring); }
.check input:checked + .check__box { background: var(--ink); border-color: var(--ink); }
.check input:checked + .check__box::after { transform: rotate(45deg) scale(1); }
.check input:checked ~ span:last-child { color: var(--ink); }
.check input:focus-visible + .check__box { outline: 1px solid var(--ink); outline-offset: 3px; }

/* ---------- Weekly sign-up ---------- */
.weekly__line { max-width: var(--measure); color: var(--dim); font-size: var(--t-read); line-height: 1.45; text-wrap: pretty; }
.weekly { max-width: 760px; margin-top: 28px; }
.pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { cursor: pointer; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border: 1px solid var(--rule); border-radius: 999px; font-size: 14px; color: var(--dim); transition: color .15s, background-color .2s, border-color .15s; }
.chip:hover span { color: var(--ink); border-color: #4a4a4a; }
.chip input:checked + span { background: var(--ink); color: var(--black); border-color: var(--ink); font-weight: 500; }
.chip input:focus-visible + span { outline: 1px solid var(--ink); outline-offset: 3px; }
.weekly__row { display: flex; gap: 8px; margin-top: 18px; max-width: 520px; }
.input {
  flex: 1; min-width: 0; height: 48px; padding: 0 16px;
  border: 1px solid var(--rule); border-radius: 12px; background: var(--box);
  font-size: max(16px, var(--t-body)); transition: border-color .15s;
}
.input::placeholder { color: var(--faint); }
.input:focus-visible { outline: 0; border-color: var(--dim); }

/* ---------- Simple pages (privacy, subscribed) ---------- */
.page { max-width: 720px; }
.page .entry { margin-top: 36px; font-size: var(--t-read); line-height: 1.55; color: var(--dim); }
.page .entry p + p, .page .entry h2 + p { margin-top: 16px; }
.page .entry h2 { margin-top: 40px; color: var(--ink); font-family: var(--display); font-size: 22px; font-weight: 500; letter-spacing: -.03em; }
.page .entry strong { color: var(--ink); font-weight: 500; }
.page .entry a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* Feeling */
.feeling { min-width: 0; }
.feeling__hero { padding-bottom: 96px; }
.feeling__hero .statement { max-width: 20ch; overflow-wrap: anywhere; }
.feeling__shares { display: flex; justify-content: space-between; gap: 16px; font-family: var(--display); }
.feeling__shares li { min-width: 0; display: flex; flex-direction: column; gap: 8px; font-size: var(--t-read); }
.feeling__number { font-size: var(--t-title); line-height: 1; letter-spacing: -.045em; }
.feeling__bar { display: flex; height: 4px; margin-top: 32px; background: var(--box-2); }
.feeling__segment--hopeful { background: var(--ink); }
.feeling__segment--mixed { background: var(--dim); }
.feeling__segment--heavy { background: var(--rule); }
.feeling__trend { width: 100%; max-width: 100%; height: auto; font-family: var(--display); font-size: var(--t-read); }
.feeling__baseline { stroke: var(--rule); stroke-width: 1; stroke-dasharray: 3 5; }
.feeling__trend-line { fill: none; stroke: var(--dim); stroke-width: 1; }
.feeling__trend .feeling__axis-label { fill: var(--dim); font-size: var(--t-small); }
.feeling__month { color: var(--dim); }
.feeling__month--current { color: var(--ink); }
.feeling__trend text { fill: currentColor; }
.feeling__topics { display: grid; gap: 40px; }
.feeling__topics h3 { overflow-wrap: anywhere; font-family: var(--display); font-size: var(--t-title); font-weight: 500; letter-spacing: -.04em; line-height: 1.1; }
.feeling__topics p { margin-top: 12px; color: var(--dim); font-size: var(--t-body); }
.feeling__topics a { display: inline-flex; align-items: center; min-height: 40px; color: var(--dim); font-size: var(--t-small); text-decoration: underline; text-underline-offset: 3px; }
.feeling__topics a:hover, .feeling__note a:hover { color: var(--ink); }
.feeling__note { margin-top: 96px; max-width: var(--measure); color: var(--dim); font-size: var(--t-small); line-height: 1.5; }
.feeling__note a { padding-block: 12px; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 640px) {
  .feeling__hero { padding-bottom: 64px; }
  .feeling__shares { gap: 12px; }
}
/* ---------- Your letters ---------- */
.your-letters { max-width: none; }
.your-letters__intro { margin-top: 36px; }
.your-letters__form { max-width: var(--measure); margin-top: 28px; }
.your-letters__form .button { margin-top: 20px; }
.your-letters__note { max-width: var(--measure); margin-top: 24px; font-size: var(--t-small); color: var(--dim); }
.your-letters__account { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 24px; margin-top: 24px; color: var(--dim); }
.your-letters__account p { overflow-wrap: anywhere; }
.your-letters .text-button { display: inline-flex; align-items: center; min-height: 40px; }
.your-letters__list { margin-top: 64px; }
.your-letters__list:empty { display: none; }
.your-letters__item + .your-letters__item { margin-top: 48px; }
.your-letters__item .letter { min-height: 0; max-width: var(--measure); overflow-wrap: anywhere; }
.your-letters__date { font-family: var(--display); font-size: var(--t-body); font-weight: 400; color: var(--dim); }
.your-letters__state { margin-top: 12px; font-size: var(--t-small); color: var(--dim); }
.your-letters__open { margin-top: 4px; font-size: var(--t-small); }
.your-letters__empty { margin-top: 48px; color: var(--dim); }
.your-letters__empty .button { margin-top: 24px; }
.your-letters__settings { margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--rule); }
.your-letters__settings .check { min-height: 40px; margin-top: 0; font-size: var(--t-small); }
.your-letters [data-access-status]:not(:empty) { max-width: var(--measure); margin-top: 28px; font-size: var(--t-read); line-height: 1.45; }
.your-letters [data-access-status]:focus { outline: none; }
.write__email .field__help a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.your-letters__form .field input:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
/* ---------- Article audio ---------- */
.sheet__links { flex-wrap: wrap; gap: 4px 20px; }
.sheet__links .action { min-height: 40px; font-size: var(--t-small); }
.article-player { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0 12px; margin-top: 12px; font-size: var(--t-small); }
.article-player__toggle { min-height: 40px; font-family: var(--display); }
.article-player__time { justify-self: end; font-variant-numeric: tabular-nums; color: var(--dim); white-space: nowrap; }
.article-player__track { grid-column: 1 / -1; position: relative; height: 40px; }
.article-player__track::before, .article-player__fill { position: absolute; top: 19px; left: 0; height: 2px; pointer-events: none; }
.article-player__track::before { content: ""; width: 100%; background: var(--rule); }
.article-player__fill { width: var(--played, 0%); max-width: 100%; background: var(--ink); }
.article-player__seek { position: relative; width: 100%; min-width: 0; height: 40px; appearance: none; -webkit-appearance: none; cursor: pointer; background: transparent; }
.article-player__seek::-webkit-slider-runnable-track { height: 2px; background: transparent; }
.article-player__seek::-moz-range-track { height: 2px; background: transparent; }
.article-player__seek::-webkit-slider-thumb { appearance: none; -webkit-appearance: none; width: 8px; height: 8px; margin-top: -3px; border-radius: 50%; background: var(--ink); }
.article-player__seek::-moz-range-thumb { width: 8px; height: 8px; border: 0; border-radius: 50%; background: var(--ink); }
.article-player__seek:disabled { cursor: default; }
.article-player__status { grid-column: 1 / 3; grid-row: 1; color: var(--dim); line-height: 1.45; }
.article-player__status:empty { display: none; }
.article-player[data-state="preparing"] .article-player__status { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.article-player[data-state="preparing"] .article-player__track { opacity: .45; animation: audio-wait 1.8s ease-in-out infinite; }
.article-player[data-state="preparing"] .article-player__seek::-webkit-slider-thumb { visibility: hidden; }
.article-player[data-state="preparing"] .article-player__seek::-moz-range-thumb { visibility: hidden; }
.article-player[data-state="error"] .article-player__toggle,
.article-player[data-state="error"] .article-player__time,
.article-player[data-state="error"] .article-player__track { display: none; }
.article-player .close { grid-column: 3; grid-row: 1; width: 40px; height: 40px; }
@keyframes audio-wait { 50% { opacity: .85; } }
@media (prefers-reduced-motion: reduce) { .article-player[data-state="preparing"] .article-player__track { animation: none; } }

/* Admin pronunciation check */
.pronunciation-form { grid-column: 1 / -1; display: grid; gap: 12px; justify-items: start; width: 100%; }
.pronunciation-form label { font-size: var(--t-small); color: var(--dim); }
.pronunciation-form textarea.input { width: 100%; min-height: 112px; padding: 12px 16px; resize: vertical; line-height: 1.5; }
.pronunciation-output { grid-column: 1 / -1; color: var(--dim); font-size: var(--t-small); white-space: pre-wrap; overflow-wrap: anywhere; }
.pronunciation-audio { grid-column: 1 / -1; width: min(100%, 420px); }
/* ---------- Articles ---------- */
.articles-page { max-width: none; padding-bottom: 48px; }
.long-read { max-width: var(--window); row-gap: 0; overflow-wrap: anywhere; }
/* On small screens the two band columns flatten into the original reading order. */
.article__details, .article__content { display: contents; }
.long-read .article__author { order: 1; }
.article__content > .statement { order: 2; max-width: 22ch; }
.article__details > .article__meta { order: 3; margin-top: 24px; }
.article__audio { order: 4; width: 100%; max-width: var(--measure); margin-top: 24px; }
.article__listen { min-height: 40px; color: var(--dim); font-size: var(--t-small); }
.article-admin__audio { max-width: var(--measure); margin-top: 24px; }
.article-admin__audio audio { display: block; width: 100%; margin-top: 12px; }
.article-admin__audio .status { margin-top: 12px; }
.long-read .article__reading { order: 5; }
.article__author { display: flex; align-items: center; gap: 20px; margin-bottom: 40px; }
.article__photo { flex: 0 0 72px; width: 72px; height: 72px; object-fit: cover; border: 1px solid var(--rule); border-radius: 50%; }
.article__name { font-family: var(--display); font-size: var(--t-body); font-weight: 500; }
.article__standfirst, .article__meta { color: var(--dim); font-size: var(--t-small); line-height: 1.5; }
.article__standfirst { margin-top: 4px; }
.article__reading { max-width: var(--measure); margin-top: 64px; }
.article__body { font-size: var(--t-read); line-height: 1.65; }
.article__body h2 { margin: 48px 0 24px; font-family: var(--display); font-size: var(--t-h2); font-weight: 500; letter-spacing: -.03em; line-height: 1.25; }
.article__body p + p { margin-top: 1.25em; }
.article__foot { display: flex; flex-wrap: wrap; gap: 16px 32px; margin-top: 64px; padding-top: 24px; border-top: 1px solid var(--rule); font-size: var(--t-small); }
.article__foot .status { flex-basis: 100%; }
.article__foot a, .article__foot button, .article-list__all { display: inline-flex; align-items: center; min-height: 40px; }
.article-list__intro { max-width: var(--measure); margin-top: 24px; color: var(--dim); font-size: var(--t-read); line-height: 1.5; }
.article-list { margin-top: 64px; }
.article-row { display: flex; align-items: flex-start; gap: 24px; }
.article-row__photo { flex: 0 0 72px; }
.article-row__photo:empty { display: none; }
.article-row__text { min-width: 0; }
.article-row__title { max-width: 28ch; margin-top: 12px; font-family: var(--display); font-size: var(--t-title); font-weight: 500; line-height: 1.08; letter-spacing: -.04em; overflow-wrap: anywhere; }
.article-row .article__meta { margin-top: 16px; }
.article-row:hover .article-row__title { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 6px; }
[data-long-letters] .article-row { padding-top: 0; border-top: 0; }
.article-list__all { margin-top: 16px; }
.article-write { max-width: var(--measure); }
.article-write form { display: grid; gap: 28px; margin-top: 40px; }
.article-write .write__submit { margin-top: 0; }
.article-write__body { resize: vertical; min-height: 480px; }
.article-write__body:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.article-write .paper { box-shadow: none; }
.article-write .paper__tools button { min-width: 40px; min-height: 40px; }
.article-write .field input[type="file"] { height: auto; min-height: 48px; padding: 12px; }
.article-write .field > .article__meta { margin-top: 8px; }
.article-write__photo { margin-top: 16px; }
.article-review-note { margin-top: 24px; padding: 20px; background: var(--box); border: 1px solid var(--rule); border-radius: 12px; }
[data-article-waiting] { margin-top: 64px; padding-top: 48px; border-top: 1px solid var(--rule); }
.article-admin { margin-top: 32px; }
.article-admin h2 { margin: 32px 0 20px; }
.article-admin form { max-width: var(--measure); display: grid; gap: 20px; }
.article-admin .input { width: 100%; }
.article-admin textarea, .article-admin input[readonly] { padding: 16px; border: 1px solid var(--rule); border-radius: 12px; background: var(--box); }
.article-admin textarea { width: 100%; min-height: 120px; resize: vertical; line-height: 1.5; }
.article-admin textarea[name="body"] { min-height: 360px; }
.article-admin .item__actions { flex-wrap: wrap; }
.article-admin .item { margin-top: 16px; overflow-wrap: anywhere; }
.article-admin__preview { width: 100%; height: 900px; margin-top: 32px; border: 1px solid var(--rule); border-radius: 16px; background: var(--black); }
.article-admin__notes { margin-top: 20px; color: var(--dim); }
.article-admin__link { margin-top: 24px; }
.article-admin__link label { display: block; margin-bottom: 8px; color: var(--dim); font-size: var(--t-small); }
.admin .tabs button { min-height: 40px; }
@media (max-width: 640px) {
  .article__author { margin-bottom: 32px; gap: 16px; }
  .article__reading { margin-top: 48px; }
  .article-row { gap: 16px; }
  .article-row__title { font-size: var(--t-h2); }
  .article-list { margin-top: 48px; }
  .article-admin__preview { height: 700px; }
  .article-write .write__submit .button { flex: 1; justify-content: center; }
}

@media (min-width: 960px) {
  .article__details, .article__content { display: block; }
  .article__details { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
  .long-read .article__author { flex-direction: column; align-items: flex-start; margin-bottom: 24px; }
  .article__details > .article__meta { margin-top: 0; }
  .article__content > .statement { max-width: 18ch; }
  .article-list .article-row { display: grid; column-gap: 48px; }
  .article-list .article-row__text { grid-column: 2; }
/* Kids review uses the existing admin items, fields and buttons. */
.kids-admin { margin-top: 32px; }
.kids-admin__heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-bottom: 24px; }
.kids-admin__heading .field { max-width: 100%; }
.kids-admin__list { display: grid; gap: 20px; margin-top: 24px; }
.kids-admin .item__actions { flex-wrap: wrap; }
.kids-admin .item { min-width: 0; }
.kids-admin .item__body { max-height: none; overflow-wrap: anywhere; }
.kids-admin textarea { display: block; width: 100%; min-height: 240px; padding: 16px; margin-top: 8px; border: 1px solid var(--rule); border-radius: 12px; font-size: var(--t-body); line-height: 1.55; background: var(--black); resize: vertical; }
.kids-admin .field { margin-top: 20px; }
.kids-admin .input { max-width: 100%; font: inherit; }
.kids-admin summary { cursor: pointer; color: var(--dim); min-height: 44px; padding-top: 12px; }
.kids-admin details { margin-top: 16px; }
.kids-admin .kids-safety { border-color: #ff8a80; }
.kids-safety__note { color: #ff8a80; margin-bottom: 20px; font-size: var(--t-body); line-height: 1.55; }
.kids-safety__note a { text-decoration: underline; }
.kids-review-note { color: var(--dim); font-size: var(--t-small); margin-top: 8px; line-height: 1.55; }
.kids-admin__list .reasons { display: block; color: var(--dim); font-size: var(--t-small); line-height: 1.55; }
.kids-admin__list .reasons p + p { margin-top: 8px; }
.admin .tabs button { min-height: 40px; }
.admin [data-status] { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .kids-admin .item { padding: 20px; }
  .admin .tabs { display: flex; }
}

} /* End desktop article and admin rules. */

/* ---------- Kids: Daytime ---------- */
@font-face { font-family: "Shantell Sans"; src: url(/fonts/ShantellSans-Latin-400.woff2) format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url(/fonts/ShantellSans-Latin-600.woff2) format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: "Shantell Sans"; src: url(/fonts/ShantellSans-Latin-800.woff2) format("woff2"); font-style: normal; font-weight: 800; font-display: swap; }
html.kids, body.kids {
  --sky: #cfe9ff; --paper: #fffdf8; --ink: #14213d; --soft: #4a5a78;
  --ink-edge: #0a1224;
  --sun: #f5c542; --grass: #8fd19e; --grass-front: #6cc283;
  --tape-pink: #ff9fb2; --tape-blue: #9cc9ff;
  --page: var(--sky); --black: var(--paper); --dim: var(--soft); --faint: var(--soft);
  --box: var(--paper); --box-2: #fff; --rule: #b9d6ee; --wash: var(--sky);
  --sans: "Shantell Sans", sans-serif; --display: var(--sans);
  --t-small: 14px; --t-body: 18px; --t-read: 22px; --window: 1100px;
  color-scheme: light; background: var(--page); color: var(--ink);
  font-family: var(--sans); font-weight: 400;
}
html.kids { scrollbar-gutter: auto; scroll-padding-top: 20px; }
.kids.kids-writing { --page: var(--paper); }
.kids #app { background: var(--page); }
.kids ::selection { color: var(--paper); background: var(--ink); }
.kids button, .kids input, .kids select, .kids textarea { font-family: var(--sans); }
.kids :focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.kids .site-header {
  position: relative; height: auto; min-height: 80px; max-width: 1140px;
  margin-inline: auto; padding: 18px 20px; gap: 10px; background: transparent;
}
.kids .site-header::before, .kids .site-header::after { content: none; }
.kids .brand { display: inline-flex; align-items: center; min-height: 44px; color: var(--ink); font-size: 14px; font-weight: 600; letter-spacing: 0; white-space: normal; }
.kids .kids-grown-ups { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 14px; border-radius: 99px; background: rgb(255 255 255 / 70%); color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.kids .frame { width: min(100% - 40px, 1100px); min-height: calc(100svh - 80px); }
.kids .main { padding-top: 0; }
.kids .statement { font-weight: 800; letter-spacing: -.02em; -webkit-text-stroke: 0; }
.kids .statement--small { font-size: clamp(32px, 5vw, 44px); line-height: 1.12; }
.kids .button {
  justify-content: center; min-height: 64px; height: auto; padding: 14px 28px;
  background: var(--ink); color: #fff; border: 0; border-radius: 32px;
  box-shadow: 0 5px 0 var(--ink-edge); font-weight: 800; font-size: 20px;
  line-height: 1.4; text-align: center; transition: none;
}
.kids .button:hover { background: var(--ink); color: #fff; opacity: 1; text-decoration: underline; text-underline-offset: 4px; }
.kids .button:active { transform: translateY(2px); box-shadow: 0 3px 0 var(--ink-edge); }
.kids .button:disabled { opacity: 1; color: var(--soft); background: #e4e9ee; box-shadow: 0 5px 0 #b9c5d1; }
.kids .text-button, .kids .action { display: inline-flex; align-items: center; min-height: 44px; color: var(--soft); font-size: 16px; text-decoration: underline; text-underline-offset: 3px; }
.kids .text-button:hover, .kids .action:hover { opacity: 1; color: var(--ink); }
.kids .hero {
  position: relative; isolation: isolate; display: block; min-height: calc(100svh - 80px);
  margin-inline: -20px; padding: 64px 20px 310px; overflow: visible;
}
.kids .hero .statement { position: relative; z-index: 1; max-width: 8ch; font-size: 64px; line-height: .92; text-wrap: initial; }
.kids .hero__side { display: block; max-width: none; padding: 0; }
.kids .hero__side .hero__intro { position: relative; z-index: 1; max-width: 300px; margin-top: 18px; color: var(--ink); font-size: 22px; line-height: 1.3; }
.kids .hero__actions { position: relative; z-index: 1; display: flex; align-items: flex-start; flex-direction: column; gap: 14px; margin-top: 26px; }
.kids .hero__actions .button { flex: none; }
.kids .hero__actions .text-button { font-size: 14px; }
.kids .kids-sun { position: absolute; top: -40px; right: -58px; width: 170px; height: 170px; pointer-events: none; }
.kids .kids-scene { position: absolute; z-index: -1; left: 0; bottom: 0; width: 100%; height: 300px; pointer-events: none; }
.kids .kids-hills { position: absolute; inset: 0; width: 100%; height: 100%; }
.kids .kids-masjid { position: absolute; left: 65%; bottom: 94px; width: 130px; height: 130px; transform: translateX(-50%); }
.kids .kids-wall { display: block; margin-top: 0; padding: 48px 0 12px; border: 0; scroll-margin-top: 20px; }
.kids .kids-wall .band__label { display: block; }
.kids .kids-wall .label { max-width: 16ch; font-size: 40px; line-height: 1; font-weight: 800; letter-spacing: -.02em; -webkit-text-stroke: 0; }
.kids .kids-wall .label-meta { margin-top: 10px; font-size: 17px; line-height: 1.4; color: var(--soft); }
/* The wall controls keep their targets and spacing at phone widths. */
.kids .kids-wall-toolbar { margin-top: 24px; gap: 16px; }
.kids .kids-wall-toolbar .filter { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; border: 0; background: transparent; }
.kids .kids-wall-toolbar .filter button {
  min-width: 44px; height: 44px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 24px;
  background: var(--box-2); color: var(--ink); font-size: 16px; font-weight: 600; transition: none;
}
.kids .kids-wall-toolbar .filter button[aria-checked="true"] { background: var(--ink); color: var(--box-2); font-weight: 600; }
.kids .kids-wall-toolbar .button { min-height: 48px; padding: 10px 20px; font-size: var(--t-body); }
.kids .wall { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 26px 12px; margin-top: 32px; }
.kids .wall__item { padding: 0; min-width: 0; --kids-note-tilt: 0deg; --tape: var(--sun); --tape-tilt: 0deg; --tape-position: 50%; }
.kids .wall__item:first-child { grid-column: 1 / -1; }
.kids .card {
  position: relative; display: block; padding: 22px 14px 14px; border: 0; border-radius: 4px;
  background: #fff; color: var(--ink); box-shadow: 0 2px 0 rgb(20 33 61 / 12%);
  transform: rotate(var(--kids-note-tilt)); transition: transform .45s var(--spring);
}
.kids .card:hover, .kids .card:focus-visible { transform: rotate(0deg) translateY(-4px) scale(1.015); }
.kids .card::before { content: ""; position: absolute; top: -9px; left: var(--tape-position); width: 54px; height: 18px; margin-left: -27px; background: var(--tape); opacity: .85; transform: rotate(var(--tape-tilt)); }
.kids .card__text { display: block; white-space: pre-line; overflow-wrap: anywhere; font-size: 16px; line-height: 1.32; }
.kids .wall__item:first-child .card { padding: 24px 18px 16px; }
.kids .wall__item:first-child .card__text { font-size: 20px; }
.kids .card__foot { display: block; margin-top: 10px; padding: 0; border: 0; color: var(--soft); font-size: 14px; font-weight: 600; }
.kids .card__who { white-space: normal; overflow-wrap: anywhere; }
.kids [data-more]:not([hidden]) { display: inline-flex; }
.kids .site-footer { margin-top: 64px; padding-top: 20px; border-top: 1px solid var(--rule); }
.kids .colophon { margin-top: 0; padding-bottom: 32px; gap: 16px; font-size: 14px; line-height: 1.6; }
.kids .colophon a { display: inline; min-height: 0; }
.kids .kids-write, .kids .kids-letter { width: 100%; max-width: 700px; margin-inline: auto; }
.kids .kids-write-back { margin-bottom: 12px; }
.kids .kids-steps { display: flex; list-style: none; gap: 8px; padding: 6px 0 0; margin: 0; }
.kids .kids-steps li { display: flex; align-items: center; flex: 1; gap: 8px; }
.kids .kids-steps li:last-child { flex: none; }
.kids .kids-steps li:not(:last-child)::after { content: ""; flex: 1; height: 3px; background: var(--ink); opacity: .2; border-radius: 2px; }
.kids .kids-step-number { display: grid; place-items: center; width: 40px; height: 40px; flex: none; border: 2.5px solid var(--ink); border-radius: 50%; font-size: 17px; font-weight: 800; }
.kids .kids-steps .is-current .kids-step-number { background: var(--sun); }
.kids .kids-steps .is-done .kids-step-number { background: var(--ink); color: #fff; }
.kids .kids-write-title { margin: 28px 0 0; }
/* The first step uses the question as its visible heading, as in the mockup. */
.kids .kids-write:has([data-step="write"]:not([hidden])) .kids-write-title {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.kids .kids-starter { position: relative; margin: 22px 0 0; padding: 16px 18px 8px; border-radius: 22px; background: var(--sky); }
.kids .kids-starter::after { content: ""; position: absolute; left: 34px; bottom: -12px; border: 12px solid transparent; border-top-color: var(--sky); border-bottom: 0; }
.kids .kids-question { font-size: 19px; line-height: 1.3; font-weight: 600; }
.kids .kids-starter .text-button { margin-top: 4px; font-size: 14px; text-align: left; }
.kids .kids-question-help { margin-top: 22px; }
.kids .paper { margin-top: 20px; padding: 0 4px; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.kids .paper__salutation { margin: 0; height: 44px; color: var(--soft); font-size: 24px; line-height: 44px; background: linear-gradient(to bottom, transparent 42px, var(--rule) 42px); }
.kids .kids-editor {
  width: 100%; min-height: 220px; padding: 0; border: 0; border-radius: 0; resize: none;
  background: repeating-linear-gradient(to bottom, transparent 0 42px, var(--rule) 42px 44px);
  font-size: 24px; line-height: 44px; font-weight: 400; color: var(--ink);
}
.kids .kids-editor:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.kids .write__meta { margin-top: 16px; padding-top: 0; border: 0; font-size: 16px; align-items: center; gap: 8px; }
.kids [data-words] { padding: 6px 0; }
.kids [data-words].is-ready { padding: 6px 14px; border-radius: 99px; background: var(--grass); color: var(--ink); font-weight: 800; }
.kids .kids-chars { flex-basis: 100%; font-size: 14px; }
.kids .field__help { margin-top: 12px; color: var(--soft); font-size: 14px; line-height: 1.55; }
.kids .field__help a { display: inline-flex; align-items: center; min-height: 44px; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.kids .write__submit { margin-top: 30px; padding-top: 0; border: 0; gap: 12px; }
.kids .write__submit .button { width: 100%; }
.kids [data-step="write"] { display: flex; flex-direction: column; min-height: calc(100svh - 210px); padding-bottom: 5px; }
.kids [data-step="write"] .write__submit { margin-top: auto; padding-top: 26px; }
.kids .kids-intro { margin: 24px 0; color: var(--soft); font-size: 20px; line-height: 1.55; }
.kids .kids-intro strong { color: var(--ink); font-weight: 600; }
.kids .write__fields { grid-template-columns: minmax(0, 1fr); gap: 24px; }
.kids .field label { font-size: 16px; color: var(--ink); font-weight: 600; }
.kids .field input, .kids .input {
  width: 100%; min-width: 0; height: 56px; padding: 0 16px; border: 2px solid #8a9ab0;
  border-radius: 14px; background: #fff; color: var(--ink); font-size: 18px; font-weight: 400;
}
.kids .field input:focus, .kids .input:focus { border: 2px solid var(--ink); }
.kids .field input:focus-visible, .kids .input:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.kids .write__legend { margin-bottom: 16px; font-weight: 600; font-size: 20px; letter-spacing: 0; }
.kids .check { align-items: flex-start; min-height: 44px; padding-block: 8px; font-size: 16px; line-height: 1.55; color: var(--soft); }
.kids .check__box { width: 24px; height: 24px; margin-top: 1px; border: 2px solid var(--ink); transition: none; }
.kids .check__box::after { left: 7px; top: 3px; border-color: #fff; }
.kids .check input:focus-visible + .check__box { outline: 3px solid var(--ink); outline-offset: 3px; }
.kids .sent__line { color: var(--soft); font-size: 22px; }
.kids .sent__actions .button { width: 100%; }
.kids .kids-letter > .statement { margin-top: 24px; }
.kids .letter { margin-top: 32px; padding: 30px 24px; border: 0; border-radius: 4px; background: #fff; box-shadow: 0 2px 0 rgb(20 33 61 / 12%); }
.kids .letter__salutation, .kids .letter__body { font-size: 24px; line-height: 1.65; }
.kids .letter__body, .kids .kids-plain { white-space: pre-wrap; overflow-wrap: anywhere; }
.kids .letter__sign { color: var(--soft); font-size: 18px; font-weight: 600; }
.kids .sheet__foot { margin-top: 28px; padding-top: 0; border: 0; }
.kids .flag { background: var(--paper); border: 2px solid var(--ink); }
.kids .flag select { display: block; margin-top: 16px; }
.kids .flag__actions { flex-wrap: wrap; }
.kids .status { font-size: 16px; color: var(--soft); }
.kids .status[data-state="error"] { color: #9b2435; }
.kids [data-consent-form] { margin-bottom: 32px; }
.kids.kids-confirm .kids-letter { padding-top: 24px; }
.kids.kids-confirm .letter { border-radius: 14px; box-shadow: none; }
.kids.kids-confirm .letter__salutation, .kids.kids-confirm .letter__body { font-size: 20px; }
.kids.kids-confirm .write__submit .button:not(.button--solid) { color: var(--ink); background: var(--paper); border: 2px solid var(--ink); box-shadow: none; }
@media (max-width: 639px) {
  .kids .wall__item:last-child:nth-child(even) { grid-column: 1 / -1; }
}
@media (min-width: 640px) {
  .kids .brand, .kids .kids-grown-ups { font-size: 16px; }
  .kids .hero { padding-top: 72px; }
  .kids .hero .statement { font-size: 88px; }
  .kids .kids-sun { width: 220px; height: 220px; right: 24px; top: 30px; }
  .kids .hero__side .hero__intro { max-width: 420px; font-size: 26px; }
  .kids .wall { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 20px; }
  .kids .wall__item:first-child { grid-column: span 2; }
  .kids .write__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kids .letter { padding: 44px; }
}
@media (min-width: 960px) {
  .kids .hero { padding: 40px 40px 160px; min-height: min(760px, calc(100svh - 80px)); }
  .kids .hero .statement { font-size: 112px; }
  .kids .kids-sun { width: 260px; height: 260px; right: 80px; }
  .kids .kids-scene { left: 50%; width: 100vw; transform: translateX(-50%); }
  .kids .kids-masjid { width: 200px; height: 200px; }
  .kids .kids-wall { padding-top: 64px; }
  .kids .kids-wall .label { max-width: none; font-size: 52px; }
  .kids .wall { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
  .kids .card { padding: 24px 18px 18px; }
  .kids .card__text { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html.kids { scroll-behavior: auto; }
  .kids *, .kids *::before, .kids *::after { animation: none !important; transition: none !important; }
}

/* Kids homepage intro. Opacity and transforms reserve the final layout throughout. */
.kids .kids-sun-track { position: absolute; z-index: -2; inset: -80px 0 0; overflow: hidden; pointer-events: none; }
.kids .kids-sun-track .kids-sun { margin-top: 80px; }
html.kids.kids-intro-active .site-header,
html.kids.kids-intro-active .hero__intro,
html.kids.kids-intro-active .hero__actions,
html.kids.kids-intro-active .kids-wall,
html.kids.kids-intro-active .site-footer { opacity: 0; }
html.kids.kids-intro-active #headline, html.kids.kids-intro-active .kids-sun { visibility: hidden; }
html.kids.kids-intro-run #headline, html.kids.kids-intro-run .kids-sun { visibility: visible; }
html.kids.kids-intro-active .kids-intro-char { opacity: 0; }
html.kids.kids-intro-active .kids-intro-char.is-written { opacity: 1; }
html.kids.kids-intro-active .kids-sun-rays { opacity: 0; }
html.kids.kids-intro-run .kids-sun { animation: kids-sunrise .8s ease-out both; }
html.kids.kids-intro-run .kids-sun-rays { animation: kids-rays .25s ease-out .55s both; }
html.kids.kids-intro-run .hero__intro,
html.kids.kids-intro-run .hero__actions,
html.kids.kids-intro-run .site-header,
html.kids.kids-intro-run .kids-wall,
html.kids.kids-intro-run .site-footer { transition: opacity .35s ease-out; }
html.kids.kids-intro-run .hero__actions { transition-delay: .15s; }
html.kids.kids-intro-run .site-header { transition-delay: .3s; }
html.kids.kids-intro-reveal .hero__intro,
html.kids.kids-intro-reveal .hero__actions,
html.kids.kids-intro-reveal .site-header,
html.kids.kids-intro-reveal .kids-wall,
html.kids.kids-intro-reveal .site-footer { opacity: 1; }
.kids .kids-pencil { position: absolute; width: 12px; height: 26px; pointer-events: none; transform: rotate(20deg); transform-origin: bottom left; }
@keyframes kids-sunrise { from { transform: translateY(var(--kids-sun-rise)); } to { transform: translateY(0); } }
@keyframes kids-rays { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  html.kids.kids-intro-active .site-header,
  html.kids.kids-intro-active .hero__intro,
  html.kids.kids-intro-active .hero__actions,
  html.kids.kids-intro-active .kids-wall,
  html.kids.kids-intro-active .site-footer,
  html.kids.kids-intro-active .kids-intro-char,
  html.kids.kids-intro-active .kids-sun-rays { opacity: 1; }
  html.kids.kids-intro-active #headline, html.kids.kids-intro-active .kids-sun { visibility: visible; }
  html.kids .kids-pencil { display: none; }
}

/* ---------- Kids: Daytime letter popup ---------- */
.kids .kids-sheet {
  position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0;
  padding: calc(12px + env(safe-area-inset-top, 0px)) 12px calc(17px + env(safe-area-inset-bottom, 0px));
  border: 0; background: transparent; color: var(--ink); font-family: var(--sans); overflow: hidden;
}
.kids .kids-sheet[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.kids .kids-sheet::backdrop { background: rgb(20 33 61 / 38%); }
.kids .kids-sheet__inner {
  position: relative; flex: 0 1 auto; width: min(100%, 760px); min-height: 0; padding: 24px 20px 28px;
  border-radius: 10px; background: var(--box-2); overflow-y: auto; overscroll-behavior: contain;
}
.kids .kids-sheet__inner::before {
  content: ""; display: block; width: 100px; height: 24px; margin: -14px auto 10px;
  background: var(--sun); opacity: .85; transform: rotate(-3deg);
}
.kids .kids-sheet__bar { position: sticky; top: 0; z-index: 1; background: var(--box-2); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kids .kids-sheet__bar h2 { font-size: var(--t-small); font-weight: 600; color: var(--soft); }
.kids .kids-sheet__bar button { flex: none; min-width: 44px; }
.kids .kids-sheet .letter { margin-top: 20px; padding: 0; box-shadow: none; background: transparent; }
.kids .kids-sheet .letter__salutation, .kids .kids-sheet .letter__body { font-size: var(--t-read); line-height: 1.55; }
.kids .kids-sheet .letter__sign { margin-top: 24px; overflow-wrap: anywhere; }
.kids .kids-sheet__actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; }
.kids .kids-sheet__actions [data-dua-slot] { flex: none; margin-right: auto; }
.kids .kids-sheet__links { display: flex; flex: 0 1 auto; flex-wrap: nowrap; align-items: center; justify-content: flex-end; gap: 4px 20px; }
.kids .kids-sheet__links .action { min-width: 44px; min-height: 44px; font-size: var(--t-small); }
.kids [data-dua-count] { display: none; }
.kids .like {
  min-height: 48px; padding: 0 12px; border: 2px solid var(--ink); border-radius: 24px;
  background: var(--box-2); color: var(--ink); font-family: var(--sans); font-size: 16px; font-weight: 600;
}
.kids .like:hover, .kids .like:focus-visible { border-color: var(--ink); }
.kids .like[aria-pressed="true"] { background: var(--sky); }
.kids .kids-sheet .flag .button {
  min-height: 48px; padding: 10px 18px; font-size: var(--t-body);
}
.kids .kids-sheet__next { flex: none; max-width: 100%; }
.kids .kids-sheet .text-button { min-height: 44px; }
.kids .kids-sheet .flag { padding: 16px; }
.kids .kids-sheet .flag__options label { min-height: 44px; font-size: var(--t-small); line-height: 1.5; }
.kids .kids-sheet .flag__options input { flex: none; width: 20px; height: 20px; }
.kids .kids-sheet .status { overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .kids .kids-sheet__links { gap: 4px 8px; }
  .kids .kids-sheet__links .action:not(.action--report) { justify-content: center; }
  .kids .kids-sheet__actions .like { gap: 6px; padding-inline: 8px; font-size: var(--t-small); }
}
@media (min-width: 640px) {
  .kids .kids-sheet__inner { padding: 32px 44px 40px; }
}

/* ---------- Grown-up brand typography ---------- */
/* Scope the new face and capitals to the grown-up world; kids keep Shantell. */
html:not(.kids) :is(.button, .text-button, .site-nav__list a, .site-nav__link,
  .filter button, .themes button, .tag, .chip span, .card__theme,
  .action, .like, .tabs button, .item__themes button, .colophon a, .read-full) {
  font-family: var(--ui); font-weight: 700; font-style: normal;
  letter-spacing: -.02em; text-transform: uppercase; white-space: nowrap;
}
html:not(.kids) :is(.button, .text-button, .site-nav__list a, .site-nav__link,
  .filter button, .themes button, .chip span, .action, .like, .tabs button) {
  font-size: var(--t-small);
}
html:not(.kids) :is(.statement, .article-row__title) {
  font-family: var(--ui); font-weight: 700;
  text-transform: uppercase; letter-spacing: -.035em; line-height: .95;
  min-width: 0; overflow-wrap: anywhere;
}
html:not(.kids) .admin .login input { min-width: 0; }
html:not(.kids) .admin .login .button { flex-shrink: 0; }
@media (max-width: 640px) {
  html:not(.kids) .site-nav__list { gap: 16px; }
  html:not(.kids) .sheet__links { gap: 8px 12px; }
}
