/* Boomer Quiz Show site stylesheet.
   One file, no remote fonts, no remote images. Palette is the app's Navy, Red and Gold direction.
   Dark is the default look, as in the app; a phone set to light gets the ivory variant.
   Contrast (WCAG AA, approximate ratios):
   dark  : cream on navy 15:1, dim on navy 10:1, gold on navy 9:1, link blue on navy 8:1, white on red button 5:1
   light : navy on ivory 14:1, dim on ivory 8:1, deep red on ivory 7.5:1, link blue on ivory 9:1, white on red button 6.9:1
   Body text is 19px. Nothing moves unless the visitor has NOT asked for reduced motion. */

:root {
  color-scheme: dark light;
  --ground: #0B1F4D;
  --ground-deep: #08173A;
  --card: #15306E;
  --line: #3A58A0;
  --text: #FFFAEB;
  --dim: #C9D3EE;
  --accent: #F2BE3A;
  --head: #F2BE3A;
  --link: #9CC8FF;
  --link-hover: #F2BE3A;
  --red: #CE2F3F;
  --red-text: #FFFFFF;
  --good: #4ADE90;
  --focus: #F2BE3A;
  --radius: 14px;
  --display: "Rockwell", "Roboto Slab", "Georgia", "Times New Roman", serif;
  --body: Georgia, "Iowan Old Style", "Palatino Linotype", "Times New Roman", serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: light) {
  :root {
    --ground: #FBF7EC;
    --ground-deep: #F1EBD6;
    --card: #E5EAF5;
    --line: #6F84B8;
    --text: #0C2154;
    --dim: #34436E;
    --accent: #A01C2B;
    --head: #A01C2B;
    --link: #0B3C9E;
    --link-hover: #A01C2B;
    --red: #B3202F;
    --good: #1B6F3E;
    --focus: #0C2154;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--ground); color: var(--text);
  font-family: var(--body); font-size: 1.1875rem; line-height: 1.65;
}
img, svg { max-width: 100%; height: auto; }
a { color: var(--link); text-underline-offset: 3px; text-decoration-thickness: 2px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 4px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: .45em; }
strong { color: var(--text); }
code { font-family: ui-monospace, Consolas, monospace; font-size: .95em; overflow-wrap: anywhere; }

.skip {
  position: absolute; left: 16px; top: -80px; z-index: 20;
  background: var(--accent); color: var(--ground); font-family: var(--ui); font-weight: 800;
  padding: 12px 18px; border-radius: 8px; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }

/* ---------- header ---------- */
.site-header { background: var(--ground-deep); border-bottom: 3px solid var(--red); }
.site-header .wrap {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 16px; padding-top: 6px; padding-bottom: 6px;
}
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 48px;
  font-family: var(--display); font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand b { color: var(--head); }
.brand-mark { width: 34px; height: 34px; flex: none; background: url("/img/favicon.svg") center / contain no-repeat; }
.nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.nav a {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 14px;
  color: var(--text); text-decoration: none; font-family: var(--ui); font-weight: 700; font-size: 1rem;
}
.nav a:hover { color: var(--link-hover); text-decoration: underline; }
.nav a[aria-current="page"] { box-shadow: inset 0 -4px 0 var(--red); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 52px;
  padding: 0 26px; border-radius: 12px; font-family: var(--ui); font-weight: 800; font-size: 1.1rem;
  text-decoration: none; border: 3px solid var(--red); background: var(--red); color: var(--red-text);
}
.btn:hover { background: var(--ground-deep); color: var(--text); border-color: var(--red); }

/* No store listing exists yet, so the status is a plain box, deliberately not a link. */
.status-box {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 14px;
  padding: 14px 20px; border: 3px solid var(--accent); border-radius: 12px; background: var(--card);
  color: var(--text); margin: 0; font-weight: 700;
}
.status-box .tag {
  background: var(--accent); color: var(--ground); font-family: var(--ui); font-weight: 900; font-size: .8rem;
  letter-spacing: .12em; padding: 4px 10px; border-radius: 6px;
}
.cta-note { color: var(--dim); font-size: 1rem; margin: 10px 0 0; }

/* ---------- hero ---------- */
.hero { padding: 36px 0 44px; background: linear-gradient(var(--ground-deep), var(--ground)); }
.hero .wrap { display: grid; gap: 32px; }
.eyebrow {
  color: var(--head); font-family: var(--ui); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  font-size: .9rem; margin: 0 0 10px;
}
h1.display, .display { font-family: var(--display); font-weight: 800; line-height: 1.05; margin: 0 0 .3em; }
h1.display { font-size: clamp(2.4rem, 10vw, 4.4rem); color: var(--text); }
.tagline { font-family: var(--display); font-style: italic; font-size: clamp(1.25rem, 5vw, 1.8rem); color: var(--head); margin: 0 0 18px; }
.lede { font-size: 1.25rem; max-width: 34em; }
.art { display: grid; place-items: center; }
.tv { width: min(100%, 380px); height: auto; }

/* ---------- sections ---------- */
section.block { padding: 48px 0; }
section.block.alt { background: var(--ground-deep); border-block: 3px solid var(--line); }
h2.section-title { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 6.5vw, 2.3rem); line-height: 1.15; margin: 0 0 .5em; }
h2.section-title::after {
  content: ""; display: block; width: 110px; height: 7px; margin-top: 12px; border-radius: 4px;
  background: linear-gradient(90deg, var(--red) 0 33%, var(--accent) 33% 66%, var(--line) 66%);
}
.section-intro { color: var(--dim); max-width: 40em; }

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.card { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 22px 20px; }
.card h3 { font-size: 1.35rem; line-height: 1.25; margin: 0 0 .5em; font-family: var(--display); }
.card p:last-child { margin-bottom: 0; }
.card .num { display: inline-block; font-family: var(--display); font-weight: 800; font-size: 2.2rem; line-height: 1; margin-bottom: 8px; color: var(--head); }

.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 14px; }
.steps li {
  counter-increment: step; background: var(--card); border: 3px solid var(--line);
  border-radius: var(--radius); padding: 16px 16px 16px 68px; position: relative; margin: 0;
}
.steps li::before {
  content: counter(step); position: absolute; left: 14px; top: 14px; width: 40px; height: 40px;
  border-radius: 50%; background: var(--red); color: var(--red-text); font-family: var(--ui); font-weight: 900;
  display: grid; place-items: center;
}
.steps strong { display: block; font-family: var(--display); font-size: 1.15rem; }

.decades { list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.decades li { margin: 0; padding: 18px; border-radius: var(--radius); border: 3px solid var(--line); background: var(--card); }
.decades .yr { display: block; font-family: var(--display); font-weight: 800; font-size: 2rem; line-height: 1.1; margin-bottom: 6px; color: var(--head); }
.decades .d50 { border-top: 10px solid var(--red); }
.decades .d60 { border-top: 10px solid var(--accent); }
.decades .d70 { border-top: 10px solid var(--link); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  margin: 0; padding: 10px 18px; min-height: 48px; display: inline-flex; align-items: center;
  border: 3px solid var(--accent); border-radius: 999px; background: var(--card);
  font-family: var(--ui); font-weight: 700; font-size: 1rem;
}

.two-col { display: grid; gap: 24px; }
.answer-card { background: var(--card); border: 3px dashed var(--accent); border-radius: var(--radius); padding: 20px; margin: 0; }
.answer-card .label { color: var(--dim); font-family: var(--ui); font-size: .85rem; letter-spacing: .1em; text-transform: uppercase; margin: 0 0 12px; font-weight: 700; }
.answer-card .verdict { color: var(--good); font-family: var(--ui); font-weight: 900; font-size: 1.4rem; margin: 0 0 4px; }
.answer-card .src { color: var(--dim); font-size: 1rem; margin: 0; }

/* ---------- legal and support pages ---------- */
.page-head { background: linear-gradient(var(--ground-deep), var(--ground)); padding: 36px 0 24px; border-bottom: 3px solid var(--line); }
.page-head h1 { font-family: var(--display); font-weight: 800; font-size: clamp(2rem, 8vw, 3rem); line-height: 1.1; margin: 0 0 8px; }
.page-head .meta { color: var(--dim); margin: 0; }
.prose { padding: 32px 0 56px; }
.prose h2 { font-family: var(--display); font-size: 1.5rem; line-height: 1.25; margin: 2em 0 .5em; color: var(--head); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-family: var(--display); font-size: 1.25rem; margin: 1.4em 0 .4em; }
.prose address { font-style: normal; background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 14px 18px; margin: 0 0 1em; }
.callout { background: var(--card); border-left: 8px solid var(--red); border-radius: 0 var(--radius) var(--radius) 0; padding: 16px 18px; margin: 0 0 1.4em; }
.callout p:last-child, .callout ul:last-child { margin-bottom: 0; }
.callout h2, .callout h3 { margin-top: 0; }
.toc { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); padding: 14px 18px 6px; margin: 0 0 1.6em; }
.toc ol { margin-bottom: .6em; }
.toc a { display: inline-block; padding: 4px 0; }

.switchable { border: 3px dashed var(--accent); border-radius: var(--radius); padding: 20px 18px; margin: 2em 0; background: var(--ground-deep); }
.switchable h2 { margin-top: 0; }
.switchable .status { background: var(--card); border-radius: 10px; padding: 10px 14px; }

.faq details { background: var(--card); border: 3px solid var(--line); border-radius: var(--radius); margin: 0 0 12px; }
.faq summary { cursor: pointer; padding: 14px 18px; font-family: var(--ui); font-weight: 700; min-height: 52px; }
.faq details > :not(summary) { padding: 0 18px; }
.faq details > p:last-child { padding-bottom: 6px; }
.template {
  background: var(--ground-deep); border: 3px solid var(--line); border-radius: var(--radius);
  padding: 14px 18px; margin: 0 0 1em; white-space: pre-wrap; font-family: ui-monospace, Consolas, monospace;
  font-size: 1rem; color: var(--text); overflow-wrap: anywhere;
}

/* ---------- footer ---------- */
.site-footer { background: var(--ground-deep); border-top: 3px solid var(--red); padding: 32px 0 40px; color: var(--dim); font-size: 1rem; }
.site-footer .cols { display: grid; gap: 22px; }
.site-footer h2 { font-family: var(--ui); font-size: .9rem; letter-spacing: .12em; text-transform: uppercase; color: var(--text); margin: 0 0 8px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0; }
.site-footer li a { display: inline-block; padding: 8px 0; }
.site-footer address { font-style: normal; }
.fine { margin: 24px 0 0; font-size: .95rem; line-height: 1.55; }

/* ---------- 404 ---------- */
.lost { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px 16px; }
.lost .big { font-family: var(--display); font-weight: 800; font-size: clamp(4rem, 22vw, 9rem); line-height: 1; margin: 0; color: var(--head); }

/* ---------- breakpoints ---------- */
@media (min-width: 720px) {
  .hero { padding: 64px 0 72px; }
  .hero .wrap { grid-template-columns: 1.1fr 1fr; align-items: center; gap: 48px; }
  .two-col { grid-template-columns: 1fr 1fr; align-items: center; gap: 40px; }
  .site-footer .cols { grid-template-columns: 1.4fr 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li { padding: 70px 16px 16px; }
  .steps li::before { left: 16px; top: 16px; }
}

/* ---------- print ---------- */
@media print {
  body { background: #fff; color: #000; font-size: 11pt; }
  .site-header, .site-footer .cols, .skip { display: none; }
  .page-head { background: none; border: 0; }
  a { color: #000; }
  .prose h2, .prose h3, strong { color: #000; }
  .switchable, .callout, .toc, .prose address { background: none; border-color: #000; color: #000; }
}

/* ---------- motion: opt-in only ---------- */
@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color .15s ease, color .15s ease; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
