/* Privacy and Terms: long-form reading on top of /movie-trivia/page.css (fonts, colors, header, footer). Flat colors, no gradients. */
.mast { background: var(--gold); }
.mast .top nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 6px; }
.title { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; padding: 40px 0 64px; }
.title > * { grid-column: 1; justify-self: start; }
.title .mascot { grid-column: 2; grid-row: 1 / span 4; align-self: end; width: clamp(200px, 22vw, 290px); margin-bottom: -64px; transform: rotate(6deg); transform-origin: bottom center; }
.title h1 { font: 400 clamp(72px, 11vw, 150px)/.86 'League Gothic', Impact, sans-serif; text-transform: uppercase; letter-spacing: .005em; }
.title p:not(.eyebrow) { max-width: 40ch; margin-top: 22px; font-size: 21px; }
.title .when { display: inline-block; margin-top: 26px; padding: 9px 16px; border-radius: 999px; background: var(--ink); color: var(--cream); font: 800 15px/1.2 Hanken, sans-serif; letter-spacing: .04em; }

/* Contents on the left, the text on the right; on a phone: the short version, contents, then the text */
.doc { display: grid; grid-template-columns: 250px minmax(0, 60ch); grid-template-areas: 'toc short' 'toc text'; gap: 0 88px; padding: 72px 0 120px; }
.toc { grid-area: toc; }
.toc nav { position: sticky; top: 32px; }
.toc b { display: block; font: 800 14px/1.2 Hanken, sans-serif; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 14px; }
.toc ol { counter-reset: toc; border-top: 3px solid var(--ink); }
.toc li { counter-increment: toc; border-bottom: 2px solid var(--rule); }
.toc a { display: flex; gap: 12px; padding: 9px 0; font-size: 16px; font-weight: 700; line-height: 1.3; text-decoration: none; }
.toc a::before { content: counter(toc, decimal-leading-zero); flex: none; width: 24px; color: var(--red-deep); font-weight: 800; }
.toc a:hover { text-decoration: underline; text-underline-offset: 4px; }

.short { grid-area: short; margin-bottom: 72px; padding: 32px 36px 36px; border-radius: 20px; background: var(--navy); color: var(--cream); box-shadow: 12px 12px 0 var(--gold); }
.short h2 { color: var(--gold); font-size: 52px; margin-bottom: 18px; }
.short ul { display: grid; gap: 14px; }
.short li { position: relative; padding-left: 34px; font-size: 19px; line-height: 1.5; }
.short li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 16px; height: 9px; border-left: 4px solid var(--gold); border-bottom: 4px solid var(--gold); transform: rotate(-45deg); }
.short a { color: var(--cream); font-weight: 800; }

.text { grid-area: text; margin: 0; max-width: none; font-size: 20px; line-height: 1.62; }
.text h2 { display: flex; align-items: baseline; gap: 16px; font-size: clamp(44px, 5vw, 58px); line-height: .95; margin: 88px 0 24px; padding-top: 22px; border-top: 3px solid var(--ink); scroll-margin-top: 24px; }
.text > h2:first-child { margin-top: 0; }
.text h2 .n { flex: none; color: var(--red); }
.text h3 { font: 800 23px/1.3 Hanken, sans-serif; margin: 40px 0 10px; }
.text p { margin-top: 16px; }
.text h2 + p, .text h3 + p { margin-top: 0; }
.text ul { display: grid; gap: 10px; margin-top: 16px; }
.text li { position: relative; padding-left: 28px; }
.text li::before { content: ''; position: absolute; left: 2px; top: .62em; width: 9px; height: 9px; background: var(--red-deep); }
.text a { font-weight: 700; text-underline-offset: 3px; }
.text strong { font-weight: 800; }
.note { margin-top: 24px; padding: 20px 24px; border-left: 6px solid var(--red-deep); background: #fbe6c0; }
.text .note p:first-child { margin-top: 0; }
.keep { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 18px; line-height: 1.45; }
.keep th, .keep td { text-align: left; vertical-align: top; padding: 14px 16px 14px 0; border-bottom: 2px solid var(--rule); }
.keep thead th { font: 800 14px/1.2 Hanken, sans-serif; letter-spacing: .12em; text-transform: uppercase; border-bottom: 3px solid var(--ink); }
.keep tbody th { width: 42%; font-weight: 800; }
.addr { margin-top: 16px; padding: 22px 26px; border: 3px solid var(--ink); border-radius: 16px; font-style: normal; }
mark.todo { background: var(--gold); color: var(--ink); padding: 1px 6px; border-radius: 4px; font-weight: 800; }

footer nav a[aria-current] { color: var(--gold); }

@media (max-width: 960px) {
  .doc { grid-template-columns: minmax(0, 1fr); grid-template-areas: 'short' 'toc' 'text'; max-width: 70ch; padding: 48px 0 96px; }
  .toc nav { position: static; margin-bottom: 56px; }
  .title .mascot { width: clamp(150px, 24vw, 200px); }
  .toc ol { columns: 2; column-gap: 28px; }
  .toc li { break-inside: avoid; }
  .short { margin-bottom: 48px; }
}
@media (max-width: 600px) {
  .title { padding: 24px 0 48px; }
  .title .mascot { display: none; }
  .title p:not(.eyebrow) { font-size: 19px; }
  .doc { padding-top: 32px; }
  .toc ol { columns: 1; }
  .short { padding: 24px 22px 26px; box-shadow: 8px 8px 0 var(--gold); }
  .short h2 { font-size: 44px; }
  .short li { font-size: 18px; }
  .text { font-size: 19px; }
  .text h2 { margin-top: 64px; gap: 12px; }
  .keep { font-size: 17px; }
  .keep tbody th { width: 38%; }
}
