/*
 * forkpicks.com (owner 2026-11-17): the site's one stylesheet, for the home page, For Restaurants, the legal pages,
 * and the invite pages (/b/, /invite/). Dark, the app's coral accent, system fonts only (nothing third-party), mobile first:
 * the home page is one screen at any size. Shared pieces for other pages: .panel, .btn, .btn.quiet, .tag, .muted.
 *
 * Fluid (owner 2026-11-17: "website should resize with browser window"): no fixed page width and no device breakpoints
 * for sizes; every size is a clamp() of the window's width and visible height (vw, dvh), rem (the root scales a little
 * with the window), or the room left (container query units), so a window dragged narrower or wider reflows live from
 * 320px phones to 2560px+ screens, never scrolls sideways, and the home page stays one screen.
 */
:root {
  color-scheme: dark;
  --bg: #121110;
  --surface: #1d1b19;
  --raised: #282522;
  --line: #3a3632;
  --ink: #f2efea;
  --muted: #b8b1a8;
  --accent: #ff8a6b;
  --on-accent: #1c1b19;
  --brand: #c53b22;
  --gutter: clamp(16px, 4vw, 56px);
  /* The widest the header and the home page get: the whole window up to 1160px, then a share of it up to 1800px. */
  --max: clamp(1160px, 72vw, 1800px);
  /* The phone frame's bezel. */
  --ring: clamp(4px, 0.45vw + 2px, 12px);
}
* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg);
  font-size: clamp(1rem, 0.92rem + 0.22vw, 1.2rem);
}
body.site {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); overflow-wrap: break-word;
  font: 1rem/1.45 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
}
/* Home: exactly the visible height (the slideshow takes what the header, pitch and footer leave); a window too short
   for even the smallest layout grows the page (it scrolls) rather than clipping it. */
body.site.one-screen { height: 100vh; height: 100dvh; min-height: 0; }
a { color: var(--accent); }
a:focus-visible, .slides:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
img, video { max-width: 100%; }

/* Header: icon + Forkpicks (home), For Restaurants. */
.site-header {
  flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  max-width: var(--max); margin: 0 auto;
  padding: max(clamp(6px, 1.2dvh, 16px), env(safe-area-inset-top)) var(--gutter) clamp(2px, 0.6dvh, 8px);
}
.brand { display: inline-flex; align-items: center; gap: 0.55em; color: var(--ink); text-decoration: none;
  font-weight: 750; font-size: clamp(1.15rem, 0.85rem + 0.5vw, 1.75rem); letter-spacing: -0.01em; min-height: 44px; }
.brand img { width: 1.75em; height: 1.75em; border-radius: 0.44em; display: block; }
.site-header nav a { color: var(--muted); text-decoration: none; font-size: clamp(0.92rem, 0.7rem + 0.35vw, 1.3rem);
  font-weight: 600;
  display: inline-flex; align-items: center; min-height: 44px; text-align: right; }
.site-header nav a:hover, .site-footer a:hover { color: var(--ink); }

/* Footer: one tiny line, always the page's last. */
.site-footer { flex: none; width: 100%;
  padding: clamp(2px, 0.5dvh, 8px) var(--gutter) max(clamp(6px, 1dvh, 14px), env(safe-area-inset-bottom)); }
.site-footer nav { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0 2px;
  font-size: clamp(0.76rem, 0.6rem + 0.25vw, 1rem); color: var(--muted); }
.site-footer a { color: var(--muted); text-decoration: none; padding: 6px 4px; }
.site-footer .dot { opacity: 0.6; }

/* Shared pieces. */
.muted { color: var(--muted); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: clamp(46px, 6dvh, 66px);
  padding: 0 clamp(14px, 2vw, 34px); border-radius: 999px; background: var(--accent); color: var(--on-accent);
  font-weight: 750; font-size: clamp(0.95rem, 0.85rem + 0.35vw, 1.3rem); text-decoration: none; white-space: nowrap; }
.btn:hover { filter: brightness(1.06); }
.btn.quiet { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.tag { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.02em; color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: clamp(16px, 2vw, 24px);
  padding: clamp(16px, 3vw, 32px); }

/* Home: the pitch left, the phone right (on phones too, side by side), both sized from the window. */
main.hero {
  flex: 1 1 auto; width: 100%; max-width: var(--max); margin: 0 auto;
  padding: clamp(2px, 1dvh, 16px) var(--gutter);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.78fr); grid-template-rows: minmax(0, 1fr);
  column-gap: clamp(12px, 4.5vw, 96px); align-items: center;
}
.pitch { min-width: 0; }
.pitch h1 { font-size: clamp(1.45rem, min(7.4vw, 8dvh), 7rem); line-height: 1.04; letter-spacing: -0.03em;
  margin: 0 0 clamp(8px, 1.6dvh, 24px); font-weight: 800; text-wrap: balance; }
.pitch .sub { font-size: clamp(1rem, min(4.2vw, 3.4dvh), 2.1rem); color: var(--muted);
  margin: 0 0 clamp(14px, 3dvh, 44px); font-weight: 600; }
.get { display: flex; flex-wrap: wrap; align-items: center; gap: clamp(10px, 1.2vw, 18px); }
.get-icon { width: clamp(40px, min(11vw, 7dvh), 84px); height: clamp(40px, min(11vw, 7dvh), 84px);
  border-radius: 23%; flex: none; display: block; }
.get-iphone, .get-computer, .get-android { display: none; flex-wrap: wrap; align-items: center;
  gap: clamp(10px, 1.2vw, 18px); margin: 0; min-width: 0; }
.get[data-device="iphone"] .get-iphone, .get[data-device="computer"] .get-computer,
.get[data-device="android"] .get-android { display: flex; }
/* The QR code scales with the window's height, never below what a phone camera reads at arm's length. */
.get-computer .qr { width: clamp(128px, 17dvh, 232px); height: clamp(128px, 17dvh, 232px); flex: none;
  border-radius: 12px; background: #fff; padding: clamp(6px, 0.7dvh, 10px); image-rendering: pixelated; display: block; }
.get-computer p, .get-android p { margin: 0; color: var(--muted); font-size: clamp(0.9rem, 0.7rem + 0.45vw, 1.5rem);
  max-width: 14em; }
.get-android p { color: var(--ink); font-weight: 650; }
/* Owner 2026-11-20: a small, quiet App Store sign under the QR code's line (iPhone only). Apple's badge is shown as is:
   at least 40px tall (its minimum on screen), its width from its own proportions, a quarter of its height clear
   around it; until its file is added, a plain text label. */
.get-hint { display: flex; flex-direction: column; align-items: flex-start; gap: clamp(4px, 0.8dvh, 10px); min-width: 0; }
.get p.store-label { margin: 0; font-size: clamp(0.72rem, 0.62rem + 0.2vw, 0.95rem); font-weight: 600;
  letter-spacing: 0.01em; color: var(--muted); opacity: 0.8; }
.store-badge { display: inline-block; flex: none; line-height: 0; padding: 12px; margin: 0 0 -12px -12px;
  border-radius: 10px; }
.store-badge img { display: block; height: clamp(40px, 4.4dvh, 48px); width: auto; max-width: none; }
/* Owner 2026-11-21: on an iPhone the badge goes with Download, as tall as the button, and the button as wide as the
   badge (Apple's badge is 2.99:1), so on a phone's narrow column they stack as one even pair; wider, they share a row.
   The row gap gives the badge its clear space from the button. */
.get-iphone { --get-h: clamp(46px, 6dvh, 66px); gap: clamp(10px, 1.4dvh, 16px) clamp(10px, 1.2vw, 18px); }
.get-iphone .btn { min-height: var(--get-h); min-width: calc(var(--get-h) * 2.99); box-sizing: border-box; }
.get-iphone .store-badge { padding: 0; margin: 0; }
.get-iphone .store-badge img { height: var(--get-h); }
/* Owner 2026-11-17: on a computer only the QR code and its line. Owner 2026-11-21: on an iPhone the App Store badge
   takes the icon's place (the header keeps the logo). By data-device, not in the markup: site.js turns an iPad
   (which asks as a Mac) into the iPhone variant. */
.get[data-device="computer"] .get-icon { display: none; }
.get[data-device="iphone"] .get-icon { display: none; }

/* The slideshow fills its column's height; the phone is the largest 480:1078 frame that fits the stage, so it is
   bound by height on wide windows and by width on narrow ones, and is never cut. */
.show { align-self: stretch; min-width: 0; min-height: 0; display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: clamp(6px, 1.2dvh, 14px); padding: clamp(0px, 1dvh, 12px) 0 clamp(2px, 0.6dvh, 8px);
  container-type: size; }
/* As tall as the column's width allows (the caption and dots stay under the phone), shrunk to the height left. */
.stage { flex: 0 1 auto; width: 100%; min-height: 150px; height: calc((100cqw - 2 * var(--ring)) / 0.4452 + 2 * var(--ring));
  container-type: size; display: grid; place-items: center; }
.phone {
  position: relative; width: min(100%, 300px);
  width: max(64px, min(100cqw - 2 * var(--ring), (100cqh - 2 * var(--ring)) * 0.4452));
  aspect-ratio: 480 / 1078; padding: 2.6%; border-radius: 13% / 5.8%; background: #000; margin: var(--ring);
  box-shadow: 0 0 0 var(--ring) #2b2825, 0 0 0 calc(var(--ring) + 1px) #4a4540, 0 2vmin 6vmin rgba(0, 0, 0, 0.55);
}
.slides { display: flex; height: 100%; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory;
  border-radius: 10.5% / 4.7%;
  scrollbar-width: none; overscroll-behavior-x: contain; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; height: 100%; scroll-snap-align: center; scroll-snap-stop: always; margin: 0; }
.slide video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000; }
.caption { flex: none; margin: 0; font-size: clamp(0.8rem, min(3.2vw, 2.1dvh), 1.2rem); font-weight: 700;
  text-align: center; min-height: 1.4em; }
.dots { flex: none; display: flex; gap: clamp(6px, 0.8dvh, 10px); justify-content: center; }
.dots span { width: clamp(7px, 0.9dvh, 11px); height: clamp(7px, 0.9dvh, 11px); border-radius: 50%;
  background: var(--line); cursor: pointer; }
.dots span[aria-current="true"] { background: var(--accent); }

@media (min-width: 860px) {
  main.hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
/* Too narrow for two columns (under 300px): the headline, the phone right after it, then the subline and download. */
@media (max-width: 299px) {
  main.hero { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(150px, 1fr) auto auto;
    grid-template-areas: "h1" "show" "sub" "get"; row-gap: 10px; }
  main.hero .pitch { display: contents; }
  .pitch h1 { grid-area: h1; text-align: center; margin: 0; }
  .show { grid-area: show; padding: 0; }
  .pitch .sub { grid-area: sub; text-align: center; margin: 0; }
  .get { grid-area: get; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .slides { scroll-behavior: auto; }
}

/* For Restaurants. */
main.soon { flex: 1 1 auto; display: grid; place-items: center; padding: clamp(12px, 3dvh, 48px) var(--gutter); }
main.soon .panel { max-width: min(100%, max(36rem, 34vw)); width: 100%; text-align: left;
  font-size: clamp(1rem, 0.8rem + 0.4vw, 1.4rem); }
main.soon h1 { font-size: clamp(1.5rem, 1.1rem + 2.4vw, 2.6em); line-height: 1.1; letter-spacing: -0.02em;
  margin: 12px 0 10px; text-wrap: balance; }
main.soon p { margin: 0 0 8px; color: var(--muted); font-size: 1.05em; }
main.soon ul { margin: 8px 0 0; padding-left: 1.2em; color: var(--ink); }
main.soon li { margin: 4px 0; }

/* The legal pages: a readable column (about 75 characters a line at most, at any width). */
main.doc { flex: 1 1 auto; width: 100%; max-width: 48em; margin: 0 auto; font-size: clamp(1rem, 0.88rem + 0.2vw, 1.2rem);
  padding: clamp(6px, 1.5dvh, 20px) var(--gutter) clamp(24px, 5dvh, 56px); }
main.doc .tag { margin: 8px 0 4px; }
main.doc h1 { font-size: clamp(1.6rem, 1.2rem + 2.2vw, 2.6rem); line-height: 1.15; margin: 10px 0 14px;
  letter-spacing: -0.02em; text-wrap: balance; }
main.doc h2 { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem); margin: 30px 0 8px; }
main.doc h3, main.doc h4 { font-size: 1.05rem; margin: 22px 0 6px; }
main.doc p, main.doc li { color: #e4dfd8; overflow-wrap: anywhere; }
main.doc p { margin: 8px 0; }
main.doc ul, main.doc ol { padding-left: 1.3em; margin: 8px 0; }
main.doc li { margin: 5px 0; }
main.doc code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 0.9em; }
main.doc .table { overflow-x: auto; margin: 12px 0; border: 1px solid var(--line); border-radius: 12px; }
main.doc table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
main.doc th, main.doc td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
main.doc th { background: var(--surface); }
main.doc tr:last-child td { border-bottom: 0; }
main.doc nav.legal { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 26px 0 0; font-size: 0.9rem; }

/* The invite pages (/b/, /invite/; owner 2026-11-17, one design with the site): who invites, to what, a peek of their
   deck, the big App Store button that copies the link, and the code to paste. */
main.invite-page { flex: 1 1 auto; width: 100%; max-width: max(40rem, 36vw); margin: 0 auto;
  padding: clamp(6px, 1.5dvh, 24px) var(--gutter) clamp(16px, 4dvh, 48px); }
main.invite-page .panel { width: 100%; min-width: 0; }
main.invite-page h1 { font-size: clamp(1.45rem, 1.1rem + 2vw, 2.3rem); line-height: 1.15; letter-spacing: -0.02em;
  margin: 8px 0 10px; overflow-wrap: anywhere; text-wrap: balance; }
main.invite-page h2 { font-size: 1rem; margin: 0 0 2px; overflow-wrap: anywhere; }
main.invite-page p { margin: 4px 0; overflow-wrap: anywhere; }
.invite p.avatar { width: 3.5rem; height: 3.5rem; margin: 4px 0; border-radius: 50%; background: var(--accent);
  color: var(--on-accent); font-size: 1.5rem; font-weight: 800; line-height: 3.5rem; text-align: center; }
.invite p.picking { font-weight: 700; }
.invite p.value { font-size: 1.08rem; color: var(--muted); }
.invite p.more { color: var(--muted); }
.invite p.peek-label, .invite p.code-label { margin-top: 18px; color: var(--muted); font-size: 0.9rem; }
.invite ul.peek { list-style: none; padding: 0 0 4px; margin: 8px 0 12px; display: flex; gap: 10px; overflow-x: auto;
  scroll-snap-type: x proximity; scrollbar-width: thin; scrollbar-color: var(--line) transparent; }
.invite ul.peek li.card { flex: 0 0 clamp(128px, 36vw, 11rem); padding: 8px; border-radius: 14px;
  background: var(--raised); border: 1px solid var(--line); scroll-snap-align: start; }
.invite ul.peek li.card img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 9px; margin-bottom: 8px; background: var(--surface); }
.invite ul.peek li.card .kind { color: var(--muted); font-size: 0.85rem; }
.invite .cta { margin: 16px 0 8px; }
.invite .cta > p:first-child { font-weight: 700; }
.invite nav.stores { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.invite a.store { display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 0 clamp(16px, 3vw, 26px); border-radius: 999px; font-weight: 750; text-decoration: none;
  color: var(--ink); border: 1px solid var(--line); max-width: 100%; text-align: center; }
.invite a.store-ios { background: var(--accent); color: var(--on-accent); border-color: var(--accent);
  font-size: 1.08rem; min-height: 52px; }
.invite a.store:hover { filter: brightness(1.06); }
.invite p.note { color: var(--muted); font-size: 0.82rem; margin-top: 8px; }
.invite nav.actions { margin: 14px 0 0; }
.invite nav.actions a.open { display: inline-flex; align-items: center; min-height: 44px; padding: 6px 18px;
  border-radius: 999px; border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 650;
  max-width: 100%; }
.invite p.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1rem; letter-spacing: 0.04em;
  user-select: all; color: var(--ink); }
