/* The generated pages (scripts/build-pages.py): question and date idea pages,
   the quizzes, printables, the Valentine's page. Sits on top of site.css and
   uses only its color tokens, so light and dark both work. */
.pg { max-width: 760px; margin: 0 auto; padding: 64px 24px 24px; width: 100%; box-sizing: border-box; display: flex; flex-direction: column; gap: 18px }
.pg-wide { max-width: 960px }
.pg-kicker { font-size: 13px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); text-decoration: none }
.pg h1 { font-family: 'Caveat', cursive; font-weight: 700; font-size: clamp(42px, 9vw, 60px); line-height: 1.02; margin: 0 }
.pg h2 { font-family: 'Caveat', cursive; font-weight: 700; font-size: 38px; line-height: 1.05; margin: 18px 0 0 }
.pg p, .pg li { font-size: 17px; line-height: 1.7 }
.pg p { margin: 0 }
.pg .muted { color: var(--muted) }
.samples { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; counter-reset: s }
.samples li { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px 16px 58px; position: relative; counter-increment: s }
.samples li::before { content: counter(s); position: absolute; left: 18px; top: 14px; font-family: 'Caveat', cursive; font-weight: 700; font-size: 28px; color: var(--accent) }
.samples .t { display: block; font-weight: 800; color: var(--ink) }
.samples .d { display: block; color: var(--muted) }
.samples .opts { display: block; color: var(--muted); font-size: 15px; margin-top: 4px }
.cta { background: var(--accent-soft); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 12px; margin-top: 12px }
.cta h2 { margin: 0 }
.btn { display: inline-block; background: var(--accent); color: var(--accent-ink); padding: 14px 28px; border-radius: 999px; font-weight: 800; font-size: 17px; text-decoration: none; text-align: center; border: 0; cursor: pointer; font-family: 'Karla', sans-serif }
.btn:hover { color: var(--accent-ink); filter: brightness(1.08) }
.btn[disabled] { opacity: .55; cursor: default }
.btn-quiet { background: transparent; color: var(--ink); border: 1.5px solid var(--line) }
.btn-quiet:hover { color: var(--ink); border-color: var(--accent) }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0 }
.links a { display: block; background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 15.5px; line-height: 1.35 }
.links a:hover { border-color: var(--accent) }
.choice { display: block; width: 100%; box-sizing: border-box; text-align: left; background: var(--card); color: var(--ink); border: 1.5px solid var(--line); border-radius: 14px; padding: 14px 16px; font: inherit; font-size: 17px; margin: 0 0 10px; cursor: pointer }
.choice[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent) inset }
.choice.right { background: var(--accent-soft); border-color: var(--accent) }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px }
.field-in { width: 100%; box-sizing: border-box; font: inherit; font-size: 17px; padding: 12px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: var(--bg); color: var(--ink) }
.note { font-size: 15px; color: var(--muted) }
.error { color: var(--accent); font-weight: 700 }
.big { font-family: 'Caveat', cursive; font-weight: 700; font-size: 34px; line-height: 1.15 }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 26px; letter-spacing: .12em; font-weight: 700 }
.videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px }
.videos video { width: 100%; border-radius: 16px; border: 1px solid var(--line); background: var(--bg2) }
