/* =====================================================================================
   pages.css: the content pages in the Colour Blocks system (2026-10-21). /about, /contact, /press, /links,
   /thanks, /not-sent, /404, /email-optin, /email-preferences and the two document frames (/faq-shell,
   /legal-shell). Shared components (blocks, lips, buttons, cards, FAQ, forms, plates, menu card) live in
   site.css; this file only lays pages out with them. Linked in <head> by each page's front matter
   "css": "pages".
   Classes: .pg-hero (the orange block that continues the header, no lip) .pg-hero__grid .pg-solo (a page
   that is one block) .pg-split (heading or picture beside words) .pg-head .pg-cards > .pg-card (equal text
   cards, radius 32) .pg-plate (a round photo with its floating cards) .pg-links (ruled facts list) plus a
   short section per page.
   ===================================================================================== */

/* ---------- Page hero: the orange header carries on into it ---------- */
.blk.pg-hero { padding-top: clamp(24px, 4vw, 64px); }
.pg-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 96px); align-items: center; }
.pg-hero h1 { max-width: 13ch; }
.pg-hero .lede { margin-top: clamp(20px, 2.4vw, 32px); color: var(--ink); max-width: 36ch; }
.pg-hero .btn-row { margin-top: clamp(24px, 2.6vw, 36px); }
.pg-hero a:not(.btn) { text-decoration-thickness: 2px; }
.pg-solo { min-height: min(70vh, 52rem); }
@media (max-width: 900px) { .pg-hero__grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Layout inside blocks ---------- */
.pg-head { display: grid; gap: clamp(18px, 2vw, 28px); margin-bottom: clamp(32px, 4vw, 64px); }
.pg-head .lede { max-width: 40ch; }
@media (min-width: 1100px) { .pg-head--split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: end; column-gap: clamp(40px, 5vw, 110px); } }
.pg-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 110px); align-items: start; }
.pg-split--center { align-items: center; }
.pg-split > * { min-width: 0; }
@media (max-width: 900px) { .pg-split { grid-template-columns: minmax(0, 1fr); } }
.blk .prose a, .blk .lede a { text-decoration-thickness: 2px; }

/* ---------- Equal text cards (radius 32; white on orange and ink, grey on white) ---------- */
.pg-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 16rem)), 1fr)); gap: clamp(14px, 1.4vw, 24px); }
.pg-card { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 2.4vw, 40px); border-radius: var(--r-lg); background: var(--white); color: var(--black); }
.blk--white .pg-card { background: var(--grey-1); }
.pg-card h3 { font-size: clamp(1.375rem, 1.8vw, 1.875rem); line-height: 1.08; max-width: 14ch; }
.pg-card p { color: var(--grey-4); font-size: clamp(1rem, 1.1vw, 1.125rem); line-height: 1.5; }
.pg-card a { color: var(--black); text-decoration: underline; padding-block: 12px; }

/* ---------- A round photo with its floating cards ---------- */
.pg-plate { width: min(100%, 620px); justify-self: end; margin: 30px 0 40px; }
.pg-plate .fcard--a { left: -10%; top: 2%; }
.pg-plate .fcard--b { right: -4%; bottom: -6%; }
@media (max-width: 900px) {
  .pg-plate { width: min(80%, 520px); justify-self: center; margin: 70px 0 70px; }
  .pg-plate .fcard--a { left: -14%; top: -14%; }
  .pg-plate .fcard--b { right: -14%; bottom: -14%; }
}

/* ---------- A ruled list of facts: name, then words (contact's other ways, press facts) ---------- */
.pg-facts { margin: 0; border-top: 2px solid var(--ink); }
.pg-facts > div { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 6px 28px; padding: 18px 0; border-bottom: 2px solid var(--ink); }
.pg-facts dt { font: 700 1.125rem/1.25 var(--font-display); letter-spacing: -.02em; }
.pg-facts dd { margin: 0; color: var(--ink2); max-width: var(--measure); overflow-wrap: anywhere; }
.pg-facts a { color: var(--ink); text-decoration: underline; padding-block: 12px; }
@media (max-width: 700px) { .pg-facts > div { grid-template-columns: minmax(0, 1fr); } }

/* ---------- /about ---------- */
.about-problem .menu-card { justify-self: center; }
.about-problem .prose { margin-top: 28px; }
.about-people .arch { max-height: 680px; }
.about-people .prose { margin-top: 28px; }

/* ---------- /contact: the form on a white card in the hero ---------- */
.contact-card { border-radius: var(--r-lg); padding: clamp(22px, 2.6vw, 44px); box-shadow: var(--shadow-float); }
.contact-card h2 { font-size: clamp(1.5rem, 2.2vw, 2.25rem); max-width: none; }
.contact-card > p { margin: 12px 0 24px; color: var(--ink2); }
.contact-card a { text-decoration: underline; }
.page-contact .pg-hero__grid { align-items: start; }
@media (min-width: 1600px) { .contact-other .pg-facts { columns: 2; column-gap: clamp(40px, 3vw, 4.5rem); border-top: 0; } .contact-other .pg-facts > div { break-inside: avoid; border-top: 2px solid var(--ink); border-bottom: 0; } }

/* ---------- /press ---------- */
.press-now { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 28px 0 0; }
.press-now li { padding: 8px 18px; border-radius: var(--r-pill); background: var(--white); color: var(--black); font-weight: 700; font-size: 1rem; }
.press-para { font-size: clamp(1.1875rem, 1.5vw, 1.375rem); line-height: 1.5; max-width: 36em; }
.press-shots { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(14px, 1.4vw, 24px); grid-template-columns: repeat(4, minmax(0, 1fr)); }
.press-shot { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 18px; border-radius: var(--r-lg); background: var(--white); color: var(--black); }
.press-shot .shot-crop { aspect-ratio: 390 / 844; border-radius: var(--r-md); box-shadow: none; }
.press-shot p { margin: 0 8px; }
.press-shot b { display: block; font: 700 1.125rem/1.2 var(--font-display); letter-spacing: -.02em; }
.press-shot span { color: var(--grey-4); font-size: .9375rem; }
.press-dl { display: flex; flex-wrap: wrap; gap: 8px; margin: auto 8px 0 !important; padding-top: 4px; }
.press-dl a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); box-shadow: inset 0 0 0 2px currentColor; font-weight: 700; font-size: .9375rem; text-decoration: none; color: var(--black); }
.press-dl a:hover { background: var(--black); color: var(--white); }
@media (max-width: 1000px) { .press-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.press-logo-h { margin: clamp(36px, 4vw, 56px) 0 18px; font-size: clamp(1.5rem, 2.2vw, 2.25rem); }
.press-logos { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(14px, 1.4vw, 24px); grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); }
.press-logo { display: flex; flex-direction: column; gap: 12px; padding: 12px 12px 18px; border-radius: var(--r-lg); background: var(--grey-1); color: var(--black); }
.press-logo__art { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-md); background: var(--white); }
.press-logo__art img { position: absolute; inset: 20% 16%; width: 68%; height: 60%; object-fit: contain; }
.press-logo__art--ink { background: var(--black); }
.press-logo__art--orange { background: var(--orange); }
.press-logo__art--line { box-shadow: inset 0 0 0 2px var(--grey-2); }
.press-logo p { margin: 0 8px; }
.press-logo b { display: block; font-weight: 700; }
.press-logo span { color: var(--grey-4); font-size: .9375rem; }
.press-rules { margin-top: clamp(40px, 4vw, 64px); }
.press-swatches { list-style: none; padding: 0; margin: 0; display: grid; gap: clamp(14px, 1.4vw, 24px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); }
.press-swatch { display: flex; flex-direction: column; gap: 6px; padding: 12px 12px 20px; border-radius: var(--r-lg); background: var(--white); color: var(--black); }
.press-swatch__chip { aspect-ratio: 4 / 3; border-radius: var(--r-md); margin-bottom: 10px; box-shadow: inset 0 0 0 2px var(--grey-2); }
.press-swatch b, .press-swatch span, .press-swatch code { margin-inline: 8px; }
.press-swatch b { font: 700 1.125rem/1.2 var(--font-display); letter-spacing: -.02em; }
.press-swatch code { font: 600 .9375rem var(--font); }
.press-swatch span { color: var(--grey-4); font-size: .9375rem; }

/* ---------- /links: link-in-bio, white cards on the orange ground ---------- */
.links__list { list-style: none; padding: 0; margin: clamp(28px, 3vw, 44px) 0 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); }
.links__list > li { display: grid; }
.links__item { display: grid; align-content: start; gap: 8px; min-height: 64px; padding: clamp(22px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--white); color: var(--black); text-decoration: none; }
.links__item--primary { background: var(--black); color: var(--white); }
.links__item:hover .links__title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .2em; }
.links__title { font: 700 clamp(1.375rem, 1.8vw, 1.75rem)/1.1 var(--font-display); letter-spacing: -.02em; }
.links__text { font-size: 1rem; color: var(--grey-4); }
.links__item--primary .links__text { color: var(--grey-2); }

/* ---------- /thanks and /not-sent ---------- */
.thanks { display: grid; gap: clamp(20px, 2.4vw, 32px); }
.thanks .h-xl { max-width: 14ch; font-size: clamp(2.5rem, 6vw, 6rem); }
.thanks .h-xl:focus { outline: none; }
.thanks__body { display: grid; gap: .6em; max-width: 36ch; color: var(--ink); }
.thanks a { overflow-wrap: anywhere; }
.thanks__help a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; padding-block: 12px; }

/* ---------- /404 ---------- */
.nf .menu-card { justify-self: center; rotate: 2deg; }
.nf .menu-card li.is-hit span:first-child { text-decoration: line-through; text-decoration-thickness: 2px; }
.nf__links { list-style: none; padding: 0; margin: 0; }

/* ---------- /email-optin, /email-preferences ---------- */
.email-link { display: grid; align-content: start; gap: clamp(20px, 2.4vw, 32px); }
.email-link h1 { max-width: 14ch; }
.email-link__body { max-width: 40rem; }
.email-link .lede { color: var(--ink); }
.email-link a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; overflow-wrap: anywhere; padding-block: 12px; }
.email-link [data-focus]:focus { outline: none; }
.email-link__to:has([data-email-hint]:empty), .email-link__hint:has(strong:empty) { display: none; }
.email-link [aria-disabled="true"] { opacity: .7; cursor: progress; }
.email-link__topics { display: grid; gap: 12px; margin: 0; padding: 0; border: 0; min-width: 0; }
.email-link__topic { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: start; padding: 20px 22px; border-radius: var(--r-md); background: var(--white); color: var(--black); cursor: pointer; }
.email-link__topic:has(input:checked) { box-shadow: inset 0 0 0 3px var(--black); }
.email-link__topic input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--black); cursor: pointer; }
.email-link__topic input:focus-visible { outline: 3px solid var(--black); outline-offset: 2px; }
.email-link__topic strong { display: block; font: 700 1.125rem/1.2 var(--font-display); letter-spacing: -.02em; }
.email-link__topic span { color: var(--grey-4); }
.email-link__saved:empty { display: none; }
.email-link__saved { font-weight: 700; }
.email-link__rule { border: 0; border-top: 2px solid var(--ink); margin: 8px 0 0; width: 100%; }

/* ---------- The document frames: /faq, /restaurants/faq (faq-shell) and /privacy, /terms, /safety,
   /business-terms, /bot (legal-shell). The hero carries the title and stamp; the words sit on a white block
   at a reading measure, with "On this page" beside them. The body's classes come from the content API
   (api/_lib/doc-page.mjs ALLOWED_CLASSES: legal-note, faq__group, faq__item, faq__q, faq__a). ---------- */
.doc-hero h1 { max-width: 18ch; font-size: clamp(2.5rem, 5.6vw, 5.5rem); }
.doc-hero h1:empty { display: none; }
.legal__stamp { margin-top: 18px; font-weight: 600; }
.legal__stamp:empty, .legal__versions:empty { display: none; }
.doc-hero a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; padding-block: 12px; }
.legal__cta { margin-top: 24px; }

.legal { font-size: 1.125rem; }
.legal__body > * + * { margin-top: 1em; }
.legal .legal__body > h2, .legal h2 { scroll-margin-top: 24px; }
.legal code, .legal pre { font: .9em/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; background: var(--grey-1); border-radius: 8px; }
.legal code { padding: .1em .35em; overflow-wrap: anywhere; }
.legal pre { padding: 12px 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li + li { margin-top: .5em; }
.legal__versions { margin-top: 1.5em !important; font-size: 1rem; }
.legal-toc__title { font: 700 1.125rem/1.2 var(--font-display); letter-spacing: -.02em; color: var(--ink); margin-bottom: 12px; }
.legal-toc__list { border-left: 2px solid var(--line); }
.legal-toc__list a { font-size: 1rem; }
.legal-toc__list a:hover { border-left-color: var(--ink); }

/* Notes from the API: the privacy page's website-forms note, the saved-copy and new-version banners. */
.legal-note { padding: clamp(20px, 2.4vw, 32px); border-radius: var(--r-lg); background: var(--grey-1); color: var(--black); font-family: var(--font); font-size: 1rem; line-height: 1.55; }
.legal-note > * + * { margin-top: .9em; }
.legal-note h2 { margin-top: 0 !important; font-size: clamp(1.25rem, 1.1rem + .6vw, 1.5rem) !important; }
.legal-note ul { padding-left: 1.3em; }
.legal-note li + li { margin-top: .5em; }
.legal-note a { color: var(--black); }
.legal-banner { margin-bottom: 2em; background: var(--orange); }
.legal .legal__body > .legal-note:first-child { margin-bottom: 2.5em; }
/* Wide (1600px up): a note that opens the text (privacy's website-forms note) moves into the empty column right of it. */
@media (min-width: 1600px) {
  .legal { --gap: clamp(40px, 4vw, 5rem); --side: calc((100vw - 2 * var(--g) - var(--measure) - 2 * var(--gap)) / 2); }
  .legal .legal__body > .legal-note:first-child { --w: min(26rem, var(--side) - 16px); float: right; clear: right; width: var(--w); margin: 0 calc(-1 * (var(--w) + var(--gap))) 0 0; }
}

/* The FAQ frame: "On this page" (the groups) on the left, sticky from 900px; the groups on the right. */
.faq-doc { display: grid; gap: clamp(32px, 4vw, 64px); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) {
  .faq-doc { grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); }
  .faq-doc__toc { position: sticky; top: 24px; align-self: start; }
}
.faq-doc .legal-toc { display: block; position: static; max-height: none; width: auto; justify-self: start; }
@media (min-width: 900px) { .faq-doc .legal-toc { position: sticky; top: 24px; } }
.faq-doc__main { min-width: 0; }
.faq-doc__body { display: grid; gap: clamp(48px, 5vw, 80px); }
.faq__group { min-width: 0; }
.faq__group > h2 { max-width: 20ch; margin-bottom: clamp(16px, 2vw, 28px); font-size: clamp(1.75rem, 3vw, 3rem); scroll-margin-top: 24px; }
.faq__group > .faq__item:first-of-type { border-top: 3px solid var(--ink); }
.faq__item { scroll-margin-top: 24px; }
.faq__a ul, .faq__a ol { padding-left: 1.3em; }
.faq__a li + li { margin-top: .4em; }
.faq-doc__main > .legal-note { margin-bottom: 2em; }
@media (max-width: 700px) {
  .press-logos, .press-swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .press-logo, .press-swatch, .press-shot { padding: 8px 8px 14px; border-radius: 24px; }
  .press-logo p, .press-swatch b, .press-swatch span, .press-swatch code, .press-shot p { margin-inline: 4px; }
  .press-dl { margin-inline: 4px !important; gap: 6px; }
  .press-dl a { padding: 0 12px; }
  .press-logo span, .press-swatch span { font-size: .875rem; }
}
