/* Home page (items 194, 492: the first screen is a gallery of people, picture docs/design/sketches/492g.html option A). Plain and Large & clear, light and dark, by token:
   <html data-theme="plain|large"> from the middleware, dark from the phone. Colours only here, on token lines. */
:root, [data-theme="plain"] {
  --bg: #f2f2f7; --surface: #ffffff; --ink: #1d1d1f; --muted: #6e6e73; --line: #d8d8de; --field: #8e8e93;
  --accent: #c8372d; --on-accent: #ffffff;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, sans-serif;
  --serif: ui-serif, "New York", "Iowan Old Style", Georgia, serif;
  --body: 17px; --small: 15px; --tap: 44px; --btn: 52px;
  --season-1: #c8742d; --season-2: #a8462a; --season-3: #d9a441;
  --sign-bg: #ffd23f; --sign-ink: #1d1a10; --pin-1: #ff8a7a; --pin-2: #c8372d; --pin-3: #8e2219;
  --badge-bg: rgba(0,0,0,.66); --badge-ink: #ffffff; --lb-bg: #000000; --lb-ink: #f5f5f7; --lb-x: #3a3a3c;
  --shadow-sm: 0 2px 3px rgba(0,0,0,.14); --shadow-sign: 0 8px 18px -8px rgba(0,0,0,.35); --shadow-screen: 0 18px 40px -18px rgba(0,0,0,.35);
  --rule: var(--line); --scrim: rgba(0,0,0,.35); --shadow-up: 0 -8px 30px rgba(0,0,0,.2); --surface-2: #ececf1; --note: #fff3b0; --note-ink: #1d1a10; --bulb-1: #ffcf5a; --bulb-3: #3fa34d; --bulb-4: #5aa9ff; --screen-w: 264px;
}
@media (prefers-color-scheme: dark) {
  :root, [data-theme="plain"] { --bg: #000000; --surface: #1c1c1e; --ink: #f5f5f7; --muted: #98989f; --line: #38383a; --field: #76767c;
    --accent: #ff5a4a; --on-accent: #1a0604; --season-1: #b8682a; --season-2: #8f3d25; --season-3: #b98a35; --sign-bg: #e6bb2e; --shadow-screen: 0 0 0 1px var(--line); --surface-2: #2c2c2e; --note: #5a4a12; --note-ink: #fff3c4; }
}
/* Large & clear: bigger type, 7:1, 56 px buttons. Red text 7.23:1 on the page (light), 8.81:1 (dark). */
[data-theme="large"] { --ink: #000000; --muted: #3a3a3f; --accent: #98241c; --line: #9a9aa2; --field: #7c7c84; --body: 20px; --small: 18px; --tap: 56px; --btn: 60px; --screen-w: 320px; }
@media (prefers-color-scheme: dark) {
  [data-theme="large"] { --bg: #000000; --surface: #1c1c1e; --ink: #ffffff; --muted: #d6d6dc; --accent: #ff8475; --on-accent: #000000; --line: #6a6a70; --field: #76767c;
    --season-1: #b8682a; --season-2: #8f3d25; --season-3: #b98a35; --sign-bg: #e6bb2e; --shadow-screen: 0 0 0 1px var(--line); }
}

* { box-sizing: border-box; margin: 0; }
html { -webkit-tap-highlight-color: transparent; -webkit-text-size-adjust: 100%; }
body.home { position: relative; background: var(--bg); color: var(--ink); font: var(--body)/1.45 var(--ui); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
.home ::selection { background: color-mix(in srgb, var(--accent) 25%, transparent); }
.home a { color: inherit; }
.home a.start, .home a.g-big { color: var(--on-accent); } /* 1455: the red buttons that are links keep their white words */
.home :focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }


/* the signature: pain -> pin. The "a" lifts out of the slot, drops, and rests under the gap it left (the still reads pain -> pin). */
.sig { font: 700 var(--sig, 148px)/.9 var(--serif); letter-spacing: -.035em; display: inline-flex; align-items: baseline; position: relative; padding-top: .18em; padding-bottom: .46em; direction: ltr; }
.sig .slot { display: inline-block; width: .5em; position: relative; animation: slot 1s cubic-bezier(.2,.8,.2,1) .35s both; }
.sig .a { position: absolute; left: 0; bottom: 0; color: var(--accent); display: inline-block; transform-origin: 50% 80%; animation: a-out 1s cubic-bezier(.2,.8,.2,1) .35s both; }
@keyframes slot { 0%, 35% { width: .5em } 100% { width: .07em } }
@keyframes a-out {
  0% { transform: translate(0, -.12em) rotate(-12deg); }
  30% { transform: translate(.02em, -.42em) rotate(-22deg); }
  100% { transform: translate(-.2em, .5em) rotate(-14deg) scale(.58); }
}
@media (prefers-reduced-motion: reduce) { .sig .slot, .sig .a, .sign { animation-duration: 1ms !important; animation-delay: 0s !important; } }

.join { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }
.join[hidden] { display: none; }
.join input { height: var(--btn); border-radius: 12px; border: 1.5px solid var(--field); background: var(--surface); color: var(--ink);
  font: 400 max(17px, var(--body))/1 var(--ui); padding: 0 16px; width: 100%; }
.join input::placeholder { color: var(--muted); }
.join input[aria-invalid="true"] { border-color: var(--accent); }
.join input:read-only { color: var(--muted); }
.join button, .start { height: var(--btn); border-radius: 12px; border: 0; background: var(--accent); color: var(--on-accent);
  font: 600 max(18px, var(--body))/1 var(--ui); padding: 0 22px; touch-action: manipulation; user-select: none; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.join button:active { transform: scale(.98); }
.join button.busy { cursor: progress; } .join button.busy:active { transform: none; }
.join small { font-size: var(--small); color: var(--muted); }
.join .msg { font-size: var(--small); color: var(--accent); font-weight: 600; }
.join .msg:empty { display: none; }
.joined { display: grid; gap: 4px; margin-top: 18px; padding: 16px 18px; border-radius: 14px; background: var(--surface); border: 1.5px solid var(--line); }
.joined b { font-size: max(18px, var(--body)); line-height: 1.35; overflow-wrap: anywhere; }
.joined button { justify-self: start; min-height: var(--tap); padding: 0; border: 0; background: none; color: var(--accent); font: 600 var(--small)/1 var(--ui); touch-action: manipulation; }

/* the sign: hangs from two strings, swings once, leads to the field */
.sign { position: absolute; z-index: 2; top: 52px; right: 18px; width: 156px; padding-top: 30px; text-decoration: none; transform-origin: 50% 0; animation: swing 1.3s cubic-bezier(.3,.7,.3,1) .1s both; }
[data-theme="large"] .sign { width: 180px; }
.sign .strings { position: absolute; top: 0; left: 0; width: 100%; height: 34px; overflow: visible; }
.sign .strings path { stroke: var(--muted); stroke-width: 1.5; fill: none; vector-effect: non-scaling-stroke; }
.sign .pinhead { position: absolute; top: -6px; left: 50%; margin-left: -6px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, var(--pin-1), var(--pin-2) 60%, var(--pin-3)); }
.sign .board { display: block; position: relative; background: var(--sign-bg); color: var(--sign-ink); border-radius: 6px; padding: 12px 10px 8px; text-align: center; box-shadow: var(--shadow-sm), var(--shadow-sign); font: 700 14px/1.15 var(--ui); }
.sign .board::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px 6px 0 0; background: repeating-linear-gradient(-45deg, var(--sign-ink) 0 6px, var(--sign-bg) 6px 12px); }
.sign .board span { display: block; font-weight: 500; font-size: 13px; margin-top: 2px; }
[data-theme="large"] .sign .board { font-size: 17px; } [data-theme="large"] .sign .board span { font-size: 16px; }
@keyframes swing { 0% { transform: rotate(7deg) } 35% { transform: rotate(-4deg) } 62% { transform: rotate(2deg) } 82% { transform: rotate(-.6deg) } 100% { transform: rotate(0) } }
html[dir="rtl"] .sign { right: auto; left: 18px; }

/* season token: leaves in autumn, lights in December; at an edge, never over words, never moving */
.season { position: absolute; pointer-events: none; display: none; }
html[data-season] .season { display: block; }
.season svg { position: absolute; width: 26px; height: 26px; }
.season .leaf { fill: var(--season-1); } .season .l2 { fill: var(--season-2); } .season .l3 { fill: var(--season-3); }
.season .vein { stroke: currentColor; }
.season .wire { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.season .wire path { fill: none; stroke: var(--muted); stroke-width: 1.2; opacity: .7; }
.season .bulb { position: absolute; top: 11px; width: 9px; height: 13px; border-radius: 50% 50% 45% 45%; transform-origin: 50% 0; background: currentColor; box-shadow: 0 0 10px 1px currentColor; }
.season .bulb:nth-of-type(4n+1) { color: var(--bulb-1); } .season .bulb:nth-of-type(4n+2) { color: var(--accent); }
.season .bulb:nth-of-type(4n+3) { color: var(--bulb-3); } .season .bulb:nth-of-type(4n) { color: var(--bulb-4); }
.footbox { position: relative; margin-top: 20px; }
.footbox .season { left: 16px; right: 16px; top: -14px; height: 26px; }

.zoom { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; color: inherit; font: inherit; text-align: inherit; touch-action: manipulation; }

.lb { position: fixed; inset: 0; z-index: 20; background: var(--lb-bg); display: grid; grid-template-rows: 1fr auto; justify-items: center; align-items: center; padding: calc(64px + env(safe-area-inset-top, 0px)) 0 env(safe-area-inset-bottom, 0px); }
.lb[hidden] { display: none; }
.lb img { max-width: 100vw; max-height: calc(100dvh - 140px); object-fit: contain; }
.lb .x { position: absolute; top: calc(10px + env(safe-area-inset-top, 0px)); right: 12px; width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; background: var(--lb-x); color: var(--lb-ink); display: grid; place-items: center; }
.lb .x svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 2.4; fill: none; }
.lb p { justify-self: stretch; padding: 14px 16px 18px; color: var(--lb-ink); font-size: var(--small); line-height: 1.35; }
.lb.tall { overflow-y: auto; align-items: start; overscroll-behavior: contain; }
.lb.tall img { width: min(100vw, 430px); max-width: none; max-height: none; height: auto; }
.lb.tall .x { position: fixed; }

.foot2 { padding: 28px 16px 40px; color: var(--muted); font-size: calc(var(--small) - 1px); border-top: 1px solid var(--line); display: grid; gap: 12px; }
.foot2 p { margin: 0; } .foot2 address { font-style: normal; margin-top: 4px; }
.foot2 nav { display: flex; flex-wrap: wrap; gap: 0 12px; }
.foot2 a { color: inherit; display: inline-flex; min-height: var(--tap); min-width: var(--tap); justify-content: center; align-items: center; padding: 0 2px; }
html[dir="rtl"] .join input[type="email"] { direction: ltr; text-align: right; }


/* 1023: Thanksgiving on the home page (tg- parts); tokens per scheme */
:root { --tg-crust: #d9a441; --tg-crust2: #b9772e; --tg-fill: #c8742d; --tg-dish: #e7e1d6; --tg-g1: #d9a441; --tg-g2: #c8742d; --tg-stem: #6b4a2a;
  --tg-bg1: #fdf1dc; --tg-bg2: #f6e6dc; --tg-bg3: #efe9dd; --tg-paper: #ffffff; --tg-pen: #8a8a90; --tg-hi-ink: #7a3b14; }
@media (prefers-color-scheme: dark) { :root { --tg-dish: #3a3632; --tg-bg1: #2c2418; --tg-bg2: #2c201c; --tg-bg3: #26231e; --tg-paper: #efe9dd; --tg-hi-ink: #f2b27a; } }
[data-theme="large"] { --tg-hi-ink: #5e2a0b; }
@media (prefers-color-scheme: dark) { [data-theme="large"] { --tg-hi-ink: #ffc394; } }
.tg-dish { fill: var(--tg-dish); } .tg-crust2 { fill: var(--tg-crust2); } .tg-fill { fill: var(--tg-fill); }
.tg-lat { fill: none; stroke: var(--tg-crust); stroke-width: 4; stroke-linecap: round; } .tg-rim { fill: none; stroke: var(--tg-crust); stroke-width: 5; stroke-linecap: round; }
.tg-g1 { fill: var(--tg-g1); } .tg-g2 { fill: var(--tg-g2); } .tg-stem { fill: none; stroke: var(--tg-stem); stroke-width: 3; stroke-linecap: round; } .tg-crease { stroke: #fff; stroke-width: 1.2; opacity: .6; }
.tg-leaf { position: absolute; width: 26px; height: 26px; } .tg-leaf.l1 path { fill: var(--season-1); } .tg-leaf.l2 path { fill: var(--season-2); } .tg-leaf.l3 path { fill: var(--season-3); }
.tg-bg1 { fill: var(--tg-bg1); } .tg-bg2 { fill: var(--tg-bg2); } .tg-bg3 { fill: var(--tg-bg3); } .tg-paper { fill: var(--tg-paper); }
.tg-az { font: 700 14px var(--serif); fill: var(--season-2); } .tg-pen { stroke: var(--tg-pen); stroke-width: 2.4; stroke-linecap: round; }
.tg-pencil { fill: var(--tg-crust); } .tg-phone { fill: #1d1d1f; } .tg-shot1 { fill: var(--season-3); } .tg-shot2 { fill: var(--season-1); } .tg-shot3 { fill: var(--season-2); }
.tg-arrow { fill: none; stroke: var(--muted); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; } .tg-heart { fill: var(--accent); }
.tg-frame { fill: #3b2a1c; } .tg-mat { fill: #fbf7ef; } .tg-hill { fill: var(--season-1); } .tg-sun { fill: var(--season-3); } .tg-bow { fill: var(--accent); }

.tg-hi { margin: 0 0 6px; }
/* B: a drawn runner under the top bar; rows after Join */
.tg-runner { display: flex; align-items: center; gap: 8px; max-width: 480px; margin: -6px auto 2px; padding: 0 16px; min-height: 48px; }
/* B pays for its runner with the photo: 2:1 today instead of 3:2, so Join stays on the first screen */
html[data-holiday] .g-hero { aspect-ratio: 2 / 1; } html[data-holiday] .g-over { padding-top: 24px; }
.tg-runner .tg-art { position: relative; flex: none; width: 104px; height: 44px; }
.tg-runner .tg-gourd, .tg-runner .tg-leaf.l2 { display: none; }
.tg-runner .tg-pie { position: absolute; left: 20px; top: 2px; width: 74px; height: auto; }
.tg-runner .tg-gourd { position: absolute; left: 92px; top: 10px; width: 34px; height: 31px; }
.tg-runner .tg-leaf.l2 { left: 126px !important; top: 14px !important; }
.tg-runner .tg-hi { margin: 0; color: var(--tg-hi-ink); font: 700 max(21px, var(--body))/1.1 var(--serif); }
[data-theme="large"] .tg-runner .tg-art { width: 120px; } [data-theme="large"] .tg-runner .tg-leaf.l2, [data-theme="large"] .tg-runner .tg-gourd { display: none; }
.tg-list { margin-top: 14px; } .tg-list .tg-h { margin: 0 0 8px; }
.tg-row { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 8px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; touch-action: manipulation; }
.tg-row:active { opacity: .7; }
.tg-th { flex: none; width: 72px; height: 54px; border-radius: 10px; overflow: hidden; } .tg-th svg { display: block; width: 100%; height: 100%; }
[data-theme="large"] .tg-th { width: 88px; height: 66px; }
.tg-tx { flex: 1; min-width: 0; } .tg-tx b { display: block; font-weight: 650; line-height: 1.25; } .tg-tx span { display: block; color: var(--muted); font-size: var(--small); line-height: 1.3; }
.tg-chev { flex: none; width: 20px; height: 20px; color: var(--muted); } html[dir="rtl"] .tg-chev { transform: scaleX(-1); }

html[data-holiday] .g-door small { display: none; } .tg-list { margin-top: 10px; }

/* 492: the gallery of people. Tokens above; every part prefixed g-. */
#grid, .g-cards, .g-head, .g-join, .g-more { max-width: 480px; margin-inline: auto; }
/* 788: the vision line over the kept photo; the scrim starts low so the top of the photo stays */
.g-hero { position: relative; width: min(100% - 32px, 480px); margin: 4px auto 8px; border-radius: 18px; overflow: hidden; background: var(--surface); aspect-ratio: 3/2; }
.g-hero img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-over { position: absolute; inset: auto 0 0 0; padding: 72px 16px 14px; background: linear-gradient(transparent, rgba(8,12,18,.78) 75%); color: rgba(255,255,255,1); }
.g-vision { margin: 0; font: 700 clamp(30px, 9vw, 38px)/1.05 var(--serif); letter-spacing: -.025em; text-wrap: balance; text-shadow: 0 1px 8px rgba(8,12,18,.5); }
.g-vk { margin: 8px 0 0; font: 600 max(var(--small), 15px)/1.3 var(--ui); color: rgba(255,255,255,.95); }
[data-theme="large"] .g-vision { font-size: 36px; }
.g-head { position: relative; padding: 4px 16px 8px; }
.g-sigrow { position: relative; --sig: 76px; min-height: 100px; }
.g-sigrow .sign { top: -4px; right: 0; }
html[dir="rtl"] .g-sigrow .sign { right: auto; left: 0; }
.g-head .season { left: 0; top: 4px; width: 120px; height: 30px; }
/* 640: the mission line in view, then the one Join box (type + 1 tap) on the first screen */
.g-line { font: 600 max(17px, var(--body))/1.3 var(--ui); color: var(--ink); letter-spacing: -.005em; text-wrap: balance; }
.g-door .join { margin-top: 12px; }
.g-door > .start { display: flex; width: 100%; max-width: 480px; margin: 12px auto 0; align-items: center; justify-content: center; text-decoration: none; }
.g-door.docked .join { position: fixed; z-index: 10; inset-inline: 0; bottom: 0; max-width: 480px; margin: 0 auto; gap: 8px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px)); background: var(--bg); box-shadow: var(--shadow-up); }
.g-door.docked .join small { display: none; }
body.g-docked { padding-bottom: 160px; } body.g-docked .g-join [data-a="door"] { display: none; }
.g-grid { padding: 0 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
[data-theme="large"] .g-grid { grid-template-columns: 1fr; }
.g-tile { display: block; border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; text-decoration: none; color: var(--ink); touch-action: manipulation; }
.g-tile:active { transform: scale(.98); }
.g-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
[data-theme="large"] .g-tile img { aspect-ratio: 16 / 9; }
/* equal edges (640): tiles in a row share a height; a last tile alone takes the whole row */
.g-tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 899px) { :root:not([data-theme="large"]) .g-tile:last-child:nth-child(odd) img { aspect-ratio: 2 / 1; } }
.g-tile .g-t { padding: 10px 12px 12px; display: grid; gap: 3px; }
.g-tile b { font-size: var(--body); line-height: 1.2; }
.g-tile .g-t span { font-size: var(--small); color: var(--muted); line-height: 1.35; }
.g-card { margin: 0 12px 14px; background: var(--surface); border-radius: 18px; overflow: hidden; box-shadow: 0 0 0 1px var(--line) inset; }
.g-card[hidden] { display: none; }
.g-card img { display: block; width: 100%; height: auto; max-height: 300px; object-fit: cover; }
[data-theme="large"] .g-card img { max-height: 200px; }
.g-card .g-t { padding: 12px 14px 4px; }
.g-card h2 { font-size: calc(var(--body) + 3px); line-height: 1.2; margin: 0 0 4px; letter-spacing: -.01em; }
.g-card p { color: var(--muted); font-size: var(--body); text-wrap: pretty; }
.g-ex { margin: 12px 14px 0; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); display: grid; gap: 6px; font-size: var(--small); }
.g-ex small { color: var(--muted); font-size: calc(var(--small) - 2px); }
.g-find { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: 10px; background: var(--surface); box-shadow: 0 0 0 1px var(--line) inset; }
.g-find svg { width: 18px; height: 18px; flex: none; } .g-find i { font-style: normal; font-weight: 600; }
.g-link { font-weight: 600; word-break: break-all; }
.g-nt { background: var(--note); color: var(--note-ink); padding: 8px 10px; border-radius: 8px; }
.g-row { display: flex; align-items: center; gap: 2px; padding: 6px 8px 10px; flex-wrap: wrap; }
.g-q { min-width: var(--tap); min-height: var(--tap); display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0; border: 0; background: none; color: var(--muted); font: 600 var(--small)/1 var(--ui); touch-action: manipulation; border-radius: 10px; }
.g-q svg { width: 26px; height: 26px; }
.g-q .g-w { display: none; }
[data-theme="large"] .g-q { padding: 0 12px; } [data-theme="large"] .g-q .g-w { display: inline; }
.g-q:active { background: var(--surface-2); }
.g-keep { margin-inline-start: auto; min-height: var(--btn); padding: 0 16px; border: 0; border-radius: 12px; background: var(--accent); color: var(--on-accent); font: 700 var(--small)/1 var(--ui); touch-action: manipulation; }
.g-keep:active { transform: scale(.97); }
.g-more { padding: 6px 16px 8px; font-size: var(--small); color: var(--muted); font-weight: 600; }
.g-more[hidden] { display: none; }
.g-back { min-height: var(--tap); min-width: var(--tap); display: inline-flex; align-items: center; gap: 4px; border: 0; background: none; color: var(--accent); font: 600 var(--small)/1 var(--ui); padding: 0 8px 0 0; touch-action: manipulation; }
.g-back[hidden] { display: none; }
.g-back svg { width: 22px; height: 22px; } html[dir="rtl"] .g-back svg { transform: scaleX(-1); }
.g-sheetbg { position: fixed; inset: 0; background: var(--scrim); z-index: 20; } .g-sheetbg[hidden] { display: none; }
.g-sheet { position: fixed; inset-inline: 0; bottom: 0; z-index: 21; background: var(--surface); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 12px; box-shadow: var(--shadow-up); max-height: 92vh; overflow-y: auto; max-width: 480px; margin-inline: auto; }
.g-sheet[hidden] { display: none; }
.g-sheet h3 { font-size: calc(var(--body) + 3px); letter-spacing: -.01em; padding-inline-end: 52px; }
.g-sheet p { color: var(--muted); font-size: var(--body); }
.g-x { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; width: 48px; height: 48px; border: 0; border-radius: 50%; background: none; color: var(--muted); font-size: 24px; touch-action: manipulation; }
.g-sheet input { width: 100%; border: 1.5px solid var(--field); border-radius: 12px; background: var(--surface); color: var(--ink); font: max(16px, var(--body))/1.4 var(--ui); padding: 12px; min-height: var(--btn); }
.g-big, .g-alt { min-height: var(--btn); border-radius: 12px; font: 700 var(--body)/1 var(--ui); padding: 0 16px; touch-action: manipulation; width: 100%; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.g-big { border: 0; background: var(--accent); color: var(--on-accent); }
.g-alt { border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 600; justify-content: flex-start; }
.g-err { color: var(--accent); font-weight: 600; font-size: var(--small); } .g-err:empty { display: none; }
.g-toast { position: fixed; inset-inline: 16px; bottom: 16px; z-index: 30; background: var(--ink); color: var(--bg); padding: 14px 16px; border-radius: 12px; font-size: var(--small); font-weight: 600; max-width: 448px; margin-inline: auto; } .g-toast[hidden] { display: none; }
.g-join { padding: 14px 16px 40px; }
.g-head .what { font-size: var(--small); color: var(--muted); margin: 12px 16px 0; text-align: center; }
.g-head .what a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; display: inline-block; padding: 12px 4px; margin: -12px -4px; }
.g-join .start { margin-top: 12px; }
.home.g-open .g-head, .home.g-open #grid .g-tile[hidden] { display: none; }
.home.g-open .g-join, .home.g-open .footbox { display: none; }
.home.g-open .logo { display: none; }
.home .g-cards { padding-top: 6px; }
.g-open .g-more:not([hidden]) { padding-top: 4px; }
@media (min-width: 900px) {
  #grid, .g-cards, .g-head, .g-join, .g-more { max-width: 1100px; }
  .g-head { padding-inline: 28px; } .g-sigrow { --sig: 130px; min-height: 150px; }
  .g-line { font-size: max(22px, var(--body)); } .g-door { max-width: 480px; }
  .g-grid { grid-template-columns: repeat(3, 1fr); } .g-tile img { aspect-ratio: 4 / 3; } .g-tile:last-child:nth-child(odd) img { aspect-ratio: 3 / 1; }
  [data-theme="large"] .g-grid { grid-template-columns: repeat(2, 1fr); }
  .g-card { max-width: 560px; margin-inline: auto; }
  .g-sheet { border-radius: 20px; bottom: 24px; }
  .foot2 { padding: 28px 40px 48px; grid-template-columns: 1fr auto; align-items: start; gap: 24px; } .foot2 nav { justify-content: flex-end; max-width: 640px; }
}

/* 778: one kept photo, three things it becomes (print, card, moving picture) under the hero */
.g-once { max-width: 480px; margin: 0 auto; padding: 4px 16px 22px; }
.g-outs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.g-outs.two { grid-template-columns: repeat(2, 1fr); }
.g-out { display: grid; gap: 6px; justify-items: center; align-content: start; color: var(--ink); text-decoration: none; font: 600 var(--small)/1.2 var(--ui); text-align: center; touch-action: manipulation; min-height: var(--tap); }
a.g-out:active { transform: scale(.97); }
.g-th { position: relative; width: 100%; aspect-ratio: 1 / 1; border-radius: 14px; background: var(--surface-2); box-shadow: 0 0 0 1px var(--line) inset; display: grid; place-items: center; overflow: hidden; }
[data-theme="large"] .g-th { aspect-ratio: 3 / 2; }
.g-th img { display: block; width: 100%; height: 100%; object-fit: cover; }
.g-lb { overflow-wrap: anywhere; hyphens: auto; padding-inline: 2px; }
.g-frame { width: 70%; aspect-ratio: 3 / 2; background: var(--surface); padding: 5%; box-shadow: 0 5px 10px -4px rgba(0,0,0,.4), 0 0 0 1px var(--line); }
.g-fold { position: relative; width: 74%; aspect-ratio: 3 / 2.2; }
.g-in { position: absolute; inset: 0 0 0 14%; background: var(--surface); border-radius: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.3); }
.g-fr { position: absolute; inset: 0 18% 0 0; background: var(--surface); padding: 5%; border-radius: 4px; box-shadow: 0 4px 10px -3px rgba(0,0,0,.45); transform: rotate(-3deg); transform-origin: left bottom; }
.g-mv .g-play { position: absolute; inset: 0; margin: auto; width: 34%; max-width: 46px; aspect-ratio: 1; border-radius: 50%; background: rgba(8,12,18,.6); display: grid; place-items: center; }
.g-play::after { content: ""; margin-inline-start: 12%; border-inline-start: 11px solid rgba(255,255,255,1); border-block: 7px solid transparent; }
html[dir=rtl] .g-play::after { border-inline-start-color: transparent; border-inline-end: 11px solid rgba(255,255,255,1); }
.g-idea { font: 700 calc(var(--body) + 3px)/1.2 var(--ui); letter-spacing: -.01em; text-wrap: balance; margin: 12px 0 0; }
.home.g-open .g-once { display: none; }
.g-outs.two .g-th { aspect-ratio: 7 / 5; }
[data-theme="large"] .g-outs.two .g-th { aspect-ratio: 3 / 2; }

/* 1017 step 1: drawn placeholder where the photos were */
.g-ph { display: grid; place-items: center; background: var(--surface-2); color: var(--accent); width: 100%; aspect-ratio: 1 / 1; }
.g-ph svg { width: 34%; max-width: 96px; height: auto; }
.g-hero .g-ph { height: 100%; aspect-ratio: auto; }
.g-hero .g-ph { align-items: start; padding-top: 12%; }
.g-hero .g-ph svg { width: 18%; }
.g-card .g-ph { aspect-ratio: 16 / 9; max-height: 300px; }
[data-theme="large"] .g-tile .g-ph { aspect-ratio: 16 / 9; }
.g-th .g-ph { height: 100%; }
.g-th .g-ph svg { width: 40%; }
.g-mv .g-ph { display: none; }

/* 1455: white on the deep red in dark (black on coral read as hard to see) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="large"]) .join button, :root:not([data-theme="large"]) .start, :root:not([data-theme="large"]) .h7-btn, :root:not([data-theme="large"]) .g-keep, :root:not([data-theme="large"]) .g-big { background: #c8372d; color: #fff; }
}
