/* Kidcyclopedia — the public card pages (/q/). Its own stylesheet; shares the app's tokens with
   app/public/about/landing.css but is never loaded with it (one file per surface, no merge collisions).
   felt #1F6B5E · paper #FBFBF3 · ink #1E2A2A · ink-soft #5B6B6B · marigold #F6B73C (Dig deeper)
   sky #5AA9E6 (What else?) · coral #D9472B (Surprise me!) · rule #D9D4C7
   Fredoka for the question and anything a child reads; Andika for the grown-up lines. */

@font-face { font-family: Fredoka; font-style: normal; font-weight: 500; font-display: swap; src: url("/about/fonts/fredoka-latin-500.woff2") format("woff2"); }
@font-face { font-family: Fredoka; font-style: normal; font-weight: 600; font-display: swap; src: url("/about/fonts/fredoka-latin-600.woff2") format("woff2"); }
@font-face { font-family: Andika; font-style: normal; font-weight: 400; font-display: swap; src: url("/about/fonts/andika-latin-400.woff2") format("woff2"); }
@font-face { font-family: Andika; font-style: normal; font-weight: 700; font-display: swap; src: url("/about/fonts/andika-latin-700.woff2") format("woff2"); }

:root {
  --felt: #1F6B5E; --felt-deep: #174F46;
  --paper: #FBFBF3; --paper-2: #F3F1E6; --card: #FCFBF2;
  --ink: #1E2A2A; --ink-soft: #5B6B6B; --rule: #D9D4C7;
  --marigold: #F6B73C; --sky: #5AA9E6; --coral: #D9472B;
  --on-felt: #FBFBF3; --on-felt-soft: rgba(251, 251, 243, .84);
  --display: Fredoka, "Trebuchet MS", sans-serif;
  --body: Andika, "Segoe UI", Verdana, sans-serif;
  --shadow-card: 0 20px 40px rgba(0, 0, 0, .35);
  --shadow-tile: 0 10px 26px rgba(0, 0, 0, .3);
  --r-card: 32px;
  --tab: #9DA6B6;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.5; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -80px; z-index: 50; background: var(--marigold); color: var(--ink); font-family: var(--display); font-weight: 600; padding: 12px 20px; border-radius: 28px; }
.skip:focus { top: 16px; outline: 4px solid var(--ink); outline-offset: 3px; }

/* ---------- bands ---------- */
.felt { background-color: var(--felt); background-image: url("/about/img/felt.webp"); background-size: 800px auto; background-repeat: repeat; color: var(--on-felt); }
.paper { background: var(--paper); color: var(--ink); }

/* ---------- top bar: the wordmark and one way to the whole shelf ---------- */
.top { background: var(--felt-deep); color: var(--on-felt); }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; padding-top: 8px; padding-bottom: 8px; }
.top-mark { display: flex; align-items: center; min-height: 44px; flex: 0 1 200px; min-width: 0; }
.top-mark img { width: 100%; max-width: 200px; filter: drop-shadow(0 2px 0 rgba(0, 0, 0, .25)); }
.top-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 22px; font-family: var(--display); font-weight: 500; font-size: 17px; text-decoration: none; color: var(--on-felt); white-space: nowrap; }
.top-link:hover { background: rgba(255, 255, 255, .1); }
.top-link:focus-visible { outline: 4px solid var(--marigold); outline-offset: 0; }

/* ---------- the table: one card, as the app lays it ---------- */
.table-band { padding: 46px 0 44px; }
@media (min-width: 700px) { .table-band { padding: 54px 0 56px; } }
.crumb { display: flex; flex-wrap: wrap; align-items: center; gap: 0 10px; font-family: var(--display); font-weight: 500; font-size: 15px; letter-spacing: .01em; color: var(--on-felt-soft); margin-bottom: 14px; }
.table-band .crumb { margin-bottom: 50px; max-width: 760px; margin-left: auto; margin-right: auto; }
.crumb a { text-decoration: none; color: var(--on-felt); display: inline-flex; align-items: center; min-height: 44px; }
.crumb a:hover { text-decoration: underline; }
.card { position: relative; background: var(--card); color: var(--ink); border-radius: var(--r-card); box-shadow: var(--shadow-card); padding: 16px 20px 24px; max-width: 760px; margin: 0 auto; }
@media (min-width: 700px) { .card { padding: 24px 32px 32px; } }
.card-tab { position: absolute; left: 24px; bottom: 100%; height: 44px; padding: 0 16px 0 14px; display: inline-flex; align-items: center; border-radius: 16px 16px 0 0; background: var(--tab); font-family: var(--display); font-weight: 600; font-size: 19px; color: #1E2A2B; letter-spacing: .02em; text-decoration: none; }
.card-tab:hover { filter: brightness(1.04); }
.card-tab:focus-visible { outline: 4px solid var(--marigold); outline-offset: 2px; }
.card-tab::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: 0 -3px 12px rgba(0, 0, 0, .2); clip-path: inset(-24px -24px 0 -24px); z-index: -1; }
.card-pic { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; border-radius: 14px; background: #FCFBF2; } /* the ground the art carries at its edges: #FFFDF7 showed the box */
.pic-note { font-size: 13px; color: var(--ink-soft); margin-top: 6px; text-align: right; }
.card-q { font-size: clamp(26px, 6vw, 36px); margin-top: 14px; }
.card-a { font-size: 19px; line-height: 1.45; margin-top: 14px; display: grid; gap: .8em; }
@media (min-width: 700px) { .card-a { font-size: 21px; } }

/* the one speech control: a round felt button, 56px (the app's voice button, grown to a parent's thumb) */
.hear { display: flex; align-items: center; gap: 14px; margin-top: 20px; }
.hear-btn { width: 64px; height: 64px; border-radius: 32px; border: 0; background: var(--felt); color: #fff; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); cursor: pointer; flex: none; }
.hear-btn:focus-visible { outline: 4px solid var(--marigold); outline-offset: 3px; }
.hear-btn[aria-pressed="true"] { background: var(--coral); }
.hear-btn svg { width: 32px; height: 32px; }
.hear-btn .stop { display: none; }
.hear-btn[aria-pressed="true"] .play { display: none; }
.hear-btn[aria-pressed="true"] .stop { display: block; }
.hear-label { font-family: var(--display); font-weight: 600; font-size: 19px; line-height: 1.2; }
.hear-sub { font-size: 15px; color: var(--ink-soft); }
.hear-sm .hear-btn { width: 48px; height: 48px; border-radius: 24px; }
.hear-sm .hear-btn svg { width: 24px; height: 24px; }
.hear-sm .hear-label { font-size: 17px; }

.more { margin-top: 28px; padding-top: 22px; border-top: 2px dashed var(--rule); }
.more h2 { font-size: 22px; }
.more p { font-size: 18px; line-height: 1.5; margin-top: 10px; }
.wow { margin-top: 22px; background: var(--marigold); border-radius: 18px; padding: 14px 18px; display: flex; gap: 12px; align-items: flex-start; transform: rotate(-.6deg); box-shadow: 0 6px 16px rgba(0, 0, 0, .12); }
.wow b { font-family: var(--display); font-weight: 600; font-size: 20px; flex: none; }
.wow p { font-size: 17px; line-height: 1.4; }
.words { margin-top: 22px; }
.words h2 { font-size: 20px; }
.words ul { display: grid; gap: 8px; margin-top: 10px; }
.words li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; font-size: 16px; line-height: 1.4; }
.words b { font-family: var(--display); font-weight: 600; font-size: 17px; background: var(--paper-2); border: 1.5px solid var(--rule); border-radius: 14px; padding: 2px 10px; }
.tryit { margin-top: 22px; background: var(--paper-2); border-radius: 18px; padding: 14px 18px; }
.tryit h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tryit .grown { font-family: var(--body); font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-soft); background: #fff; border-radius: 10px; padding: 2px 8px; }
.tryit p { font-size: 16px; margin-top: 8px; }

/* ---------- the ways on: the rail, laid out as tiles under the card ---------- */
.ways { margin-top: 44px; }
.ways h2 { font-size: 24px; color: var(--on-felt); text-shadow: 0 2px 0 rgba(0, 0, 0, .28); text-align: center; }
.rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (min-width: 700px) { .rail { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
.tile { background: var(--paper); color: var(--ink); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-tile); display: flex; flex-direction: column; text-decoration: none; padding: 8px 8px 12px; min-width: 0; }
.tile:hover { transform: translateY(-2px); }
.tile:focus-visible { outline: 4px solid var(--marigold); outline-offset: 3px; }
.tile img { width: 100%; aspect-ratio: 1376 / 768; object-fit: cover; border-radius: 12px; background: #FCFBF2; }
.hub-grid .tile img { background: #FFFFFF; }
.chip { display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px 0 4px; margin-top: 10px; border-radius: 15px; font-family: var(--display); font-weight: 600; font-size: 15px; line-height: 1; white-space: nowrap; align-self: flex-start; max-width: 100%; }
.chip img { width: 24px; height: 24px; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 0 0 2px #fff; flex: none; }
.chip-why { background: var(--marigold); color: var(--ink); }
.chip-else { background: var(--sky); color: var(--ink); }
.chip-surprise { background: var(--coral); color: #fff; }
.tile-q { font-family: var(--display); font-weight: 500; font-size: 16px; line-height: 1.3; padding: 8px 4px 0; text-wrap: balance; }

/* ---------- for grown-ups: sources, the picture, the app ---------- */
.grown { padding: 44px 0 40px; }
.grown .wrap { max-width: 824px; }
.grown h2 { font-size: 24px; }
.grown h3 { font-size: 18px; margin-top: 24px; }
.grown p { margin-top: 8px; color: var(--ink); }
.sources { margin-top: 10px; display: grid; gap: 10px; }
.sources li { padding-left: 26px; position: relative; line-height: 1.45; color: var(--ink-soft); font-size: 15px; }
.sources li::before { content: ""; position: absolute; left: 2px; top: .5em; width: 12px; height: 12px; border-radius: 50%; background: var(--felt); }
.sources a { font-size: 17px; color: var(--felt); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; word-break: break-word; }
.sources .read { white-space: nowrap; }
.open { margin-top: 28px; background: var(--felt); color: var(--on-felt); border-radius: 24px; padding: 24px 20px; text-align: center; }
.open h2 { color: var(--on-felt); text-shadow: 0 2px 0 rgba(0, 0, 0, .28); font-size: 24px; }
.open p { color: var(--on-felt-soft); margin: 8px auto 0; max-width: 520px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 28px; border-radius: 28px; border: none; cursor: pointer; font-family: var(--display); font-weight: 600; font-size: 20px; line-height: 1.1; text-decoration: none; white-space: normal; text-align: center; box-shadow: 0 4px 12px rgba(0, 0, 0, .18); }
.btn-marigold { background: var(--marigold); color: var(--ink); }
.btn-paper { background: var(--paper); color: var(--ink); }
.btn:focus-visible { outline: 4px solid var(--marigold); outline-offset: 3px; }
.btn-marigold:focus-visible { outline-color: var(--on-felt); }
.cta-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 16px; margin-top: 18px; }
.foot { padding: 20px 0 32px; color: var(--ink-soft); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: center; }
.foot a { color: var(--ink-soft); }

/* ---------- hubs: a subject, and the whole shelf ---------- */
.hub-head { padding: 36px 0 32px; text-align: center; }
.hub-head h1 { font-size: clamp(30px, 6vw, 44px); color: var(--on-felt); text-shadow: 0 2px 0 rgba(0, 0, 0, .28); }
.hub-head .lede { color: var(--on-felt-soft); margin: 10px auto 0; max-width: 620px; font-size: 17px; }
.hub-cover { width: 120px; margin: 0 auto 16px; border-radius: 10px; box-shadow: var(--shadow-tile); }
.hub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 28px 0 44px; }
@media (min-width: 700px) { .hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } }
@media (min-width: 1000px) { .hub-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hub-grid .tile { background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .08); border: 1px solid var(--rule); }
.hub-grid .tile-q { font-size: 17px; }
.journals { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; padding: 28px 0 44px; }
@media (min-width: 700px) { .journals { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; } }
.journal { display: flex; align-items: center; gap: 12px; background: #fff; border: 1px solid var(--rule); border-radius: 18px; padding: 10px 12px; text-decoration: none; color: var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); min-height: 72px; }
.journal .spine { width: 12px; align-self: stretch; border-radius: 6px; background: var(--jc); flex: none; }
.journal b { font-family: var(--display); font-weight: 600; font-size: 18px; }
.journal small { display: block; color: var(--ink-soft); font-size: 14px; }


/* ---------- added by the builder (not in the mockup) ---------- */
/* the six wide subject pictures (t-<area>.webp) are 520×290, not a 358×480 journal cover */
.hub-cover-wide { width: 240px; border-radius: 14px; }
.more .hear-sm { margin-top: 14px; }
/* every tap target 44px tall on a phone (the device suite's TAP rule): the footer's links and the sources */
.foot a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; }
/* a source's link sits in its line of text ("<title> · read 3 Nov 2026"): an inline link in a sentence,
   which WCAG 2.5.8 (and the device suite's TAP rule) exempts from the 44px target size */
@media (prefers-reduced-motion: reduce) { .tile:hover { transform: none; } }

/* ---------- polish (Design, 2026-11-08) ---------- */
/* buttons behave like the landing page's: a lift on hover, a press, one transition; the tiles and Hear it press too */
.btn { transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .2s ease; -webkit-tap-highlight-color: transparent; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(0, 0, 0, .22); }
.btn:active { transform: translateY(0) scale(.97); }
.tile { transition: transform .2s cubic-bezier(.22, 1, .36, 1); -webkit-tap-highlight-color: transparent; }
.tile:active { transform: scale(.98); }
.hear-btn { transition: transform .15s cubic-bezier(.22, 1, .36, 1); }
.hear-btn:active { transform: scale(.94); }
/* a focus ring on every link a keyboard reaches, in the one colour (the buttons and tiles already had one) */
.sources a:focus-visible, .foot a:focus-visible, .crumb a:focus-visible { outline: 4px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) {
  .btn, .tile, .hear-btn { transition: none; }
  .btn:hover, .btn:active, .tile:hover, .tile:active, .hear-btn:active { transform: none; }
}

/* ---------- the trust layer (ORG-5, 2026-11-12) ---------- */
/* a card's byline, at the top of "For grown-ups": who checked it, when it last changed, how cards are made.
   Its links sit in the sentence (an inline link in a line of text, exempt from the 44px target like a source's) */
.grown .byline { margin-top: 10px; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }
.byline a { color: var(--felt); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.byline time { white-space: nowrap; }
/* /about/how-cards-are-made/: one readable column on paper, the grown-up section's measure */
.made { padding: 36px 0 44px; }
.made .wrap { max-width: 760px; }
.made section + section { margin-top: 28px; padding-top: 24px; border-top: 2px dashed var(--rule); }
.made h2 { font-size: 24px; }
.made p { margin-top: 10px; font-size: 18px; line-height: 1.55; }
.made .editor { font-size: 19px; }
.made .editor b { font-family: var(--display); font-weight: 600; }
.made a:not(.btn) { color: var(--felt); font-weight: 700; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.made strong { word-break: break-word; }
.made .cta-row { margin-top: 36px; }
.made .btn-paper { background: #fff; border: 1.5px solid var(--rule); }
.byline a:focus-visible, .made a:not(.btn):focus-visible { outline: 4px solid var(--marigold); outline-offset: 3px; border-radius: 6px; }
