/* ==========================================================================
   Hannah Friedman: site styles
   Quality bar: Notion + Stripe. One accent (Islanders/Mets orange) on navy ink.
   ========================================================================== */

@font-face { font-family: "Bricolage Grotesque"; src: url("fonts/bricolage.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Schibsted Grotesk"; src: url("fonts/schibsted.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }
@font-face { font-family: "Fragment Mono"; src: url("fonts/fragment-mono.woff2") format("woff2"); font-weight: 400; font-display: swap; }
/* Little Athens: Pixelify Sans for letters, Jersey 10 for digits (Pixelify's 2, 5, and 8 look too alike at small sizes). */
@font-face { font-family: "Pixelify Sans"; src: url("fonts/pixelify.woff2") format("woff2"); font-weight: 400 700; font-display: swap; unicode-range: U+0000-002F, U+003A-10FFFF; }
@font-face { font-family: "Pixel Digits"; src: url("fonts/jersey10-digits.woff2") format("woff2"); font-display: swap; unicode-range: U+0030-0039; size-adjust: 128%; }

:root {
  color-scheme: light;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --surface-2: #eef2f7;
  --hairline: #e3e8ef;
  --hairline-strong: #cbd3de;
  --ink: #0f1e33;
  --ink-2: #33415a;
  --ink-3: #5a677c;
  --accent: #f26b21;
  --accent-ink: #b0440b;
  --accent-soft: #fff1e7;
  --on-accent: #1a0d04;
  --primary: #0f1e33;
  --on-primary: #ffffff;
  --primary-hover: #1d3354;

  --tint-quant: #e3effb;  --tint-quant-ink: #1b5591;
  --tint-ai: #ece8fb;     --tint-ai-ink: #533fa3;
  --tint-sports: #dff3e6; --tint-sports-ink: #1d6b3c;
  --tint-butter: #fbf2d3; --tint-butter-ink: #7a5a06;
  --tint-rose: #fbe4ea;   --tint-rose-ink: #9a2a48;

  --shadow-1: 0 1px 2px rgba(15, 30, 51, .06);
  --shadow-2: 0 1px 2px rgba(15, 30, 51, .05), 0 8px 24px rgba(15, 30, 51, .08);
  --shadow-3: 0 2px 6px rgba(15, 30, 51, .06), 0 28px 56px -16px rgba(15, 30, 51, .28);

  --r-sm: 6px; --r-md: 8px; --r-lg: 12px; --r-xl: 16px;
  --font-display: "Bricolage Grotesque", "Schibsted Grotesk", system-ui, sans-serif;
  --font-body: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "Fragment Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --font-pixel: "Pixelify Sans", "Pixel Digits", ui-monospace, monospace;

  --container: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(72px, 10vw, 128px);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --band-sky: #e8f0fa; --band-mist: #eef3f9; --band-butter: #fdf5df; --band-peach: #fff0e5; --band-mint: #e4f3e8;
  --band-navy: #0f1e33; --on-navy: #e9eef6; --on-navy-2: #b8c4d6;
  --portrait-block: #ffd2b4;
  --edu-card: #fdeaea; --edu-border: #efbcbc; --selection: #bcd8f7;
  --globe-ocean: #cfe2f6; --globe-land: #50617d;
  --z-nav: 20; --z-overlay: 40; --z-toast: 50;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0b1424; --surface: #111c2f; --surface-2: #17243a;
    --hairline: #1f2c43; --hairline-strong: #2e3d57;
    --ink: #e9eef6; --ink-2: #bcc7d7; --ink-3: #8e9bb0;
    --accent: #ff8a4c; --accent-ink: #ff9d66; --accent-soft: #2a1a12; --on-accent: #1a0d04;
    --primary: #e9eef6; --on-primary: #0b1424; --primary-hover: #ffffff;
    --tint-quant: #13263d;  --tint-quant-ink: #8cc1f2;
    --tint-ai: #1d1a38;     --tint-ai-ink: #b9adf5;
    --tint-sports: #12291d; --tint-sports-ink: #86d6a5;
    --tint-butter: #2a2412; --tint-butter-ink: #f0d27a;
    --tint-rose: #2c1620;   --tint-rose-ink: #f2a3b8;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 56px -16px rgba(0, 0, 0, .6);
    --band-sky: #0f1d33; --band-mist: #0e192b; --band-butter: #1b1912; --band-peach: #1f160f; --band-mint: #0f1f17;
    --band-navy: #050b16; --portrait-block: #3a2215; --edu-card: #2a1517; --edu-border: #5a2a2e; --selection: #2c5282; --edu-card: #2a1517; --edu-border: #5a2a2e; --selection: #2c5282;
    --globe-ocean: #16263d; --globe-land: #9fb2cc;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0b1424; --surface: #111c2f; --surface-2: #17243a;
  --hairline: #1f2c43; --hairline-strong: #2e3d57;
  --ink: #e9eef6; --ink-2: #bcc7d7; --ink-3: #8e9bb0;
  --accent: #ff8a4c; --accent-ink: #ff9d66; --accent-soft: #2a1a12; --on-accent: #1a0d04;
  --primary: #e9eef6; --on-primary: #0b1424; --primary-hover: #ffffff;
  --tint-quant: #13263d;  --tint-quant-ink: #8cc1f2;
  --tint-ai: #1d1a38;     --tint-ai-ink: #b9adf5;
  --tint-sports: #12291d; --tint-sports-ink: #86d6a5;
  --tint-butter: #2a2412; --tint-butter-ink: #f0d27a;
  --tint-rose: #2c1620;   --tint-rose-ink: #f2a3b8;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .35);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 56px -16px rgba(0, 0, 0, .6);
  --band-sky: #0f1d33; --band-mist: #0e192b; --band-butter: #1b1912; --band-peach: #1f160f; --band-mint: #0f1f17;
  --band-navy: #050b16; --portrait-block: #3a2215; --edu-card: #2a1517; --edu-border: #5a2a2e; --selection: #2c5282;
  --globe-ocean: #16263d; --globe-land: #9fb2cc;
}

/* Hannah Mode (unlocked by the house password): Gryffindor scarlet and gold */
:root.hannah-mode { --accent: #b3263a; --accent-ink: #9b1b30; --accent-soft: #fbe9ec; --on-accent: #ffffff; }
@media (prefers-color-scheme: dark) { :root.hannah-mode:not([data-theme="light"]) { --accent: #e0b44c; --accent-ink: #e8c264; --accent-soft: #2a2310; --on-accent: #1a1404; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 17px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, canvas, svg { display: block; max-width: 100%; }
body { min-height: 100dvh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
button { font: inherit; color: inherit; }
::selection { background: var(--selection); color: var(--ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
html { scrollbar-color: var(--hairline-strong) transparent; }
.tnum { font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: currentColor; }

.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: var(--primary); color: var(--on-primary); padding: 8px 14px; border-radius: var(--r-md); text-decoration: none; }
.skip-link:focus { top: 12px; }

.container { width: min(var(--container), 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section) calc(var(--section) * .85); }

h1, h2, h3 { font-family: var(--font-display); color: var(--ink); text-wrap: balance; margin: 0; }
h1 { font-size: clamp(2.9rem, 7vw, 5.25rem); font-weight: 650; letter-spacing: -0.035em; line-height: .98; }
h2 { font-size: clamp(2rem, 3.6vw, 2.75rem); font-weight: 620; letter-spacing: -0.028em; line-height: 1.06; }
h3 { font-size: 1.2rem; font-weight: 620; letter-spacing: -0.012em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.section-head { max-width: 62ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 1.1rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; height: 46px; padding: 0 20px;
  border-radius: var(--r-md); border: 1px solid transparent; font-size: .97rem; font-weight: 550;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .2s var(--ease-out), border-color .2s var(--ease-out), transform .12s var(--ease-out), box-shadow .2s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-1); }
.btn-primary:hover { background: var(--primary-hover); box-shadow: var(--shadow-2); }
.btn-secondary { background: var(--bg); color: var(--ink); border-color: var(--hairline-strong); }
.btn-secondary:hover { border-color: var(--ink-3); background: var(--surface); }
.btn-ghost { background: transparent; color: var(--ink-2); padding: 0 12px; height: 38px; }
.btn-ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn-sm { height: 36px; padding: 0 14px; font-size: .9rem; gap: 7px; }
.text-link { color: var(--ink); font-weight: 550; text-decoration: underline; text-decoration-color: var(--hairline-strong); display: inline-flex; align-items: center; gap: 4px; }
.text-link:hover { text-decoration-color: var(--accent); }

.tag { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border-radius: var(--r-sm); font-size: .78rem; font-weight: 600; letter-spacing: .01em; white-space: nowrap; }
.tag-quant { background: var(--tint-quant); color: var(--tint-quant-ink); }
.tag-ai { background: var(--tint-ai); color: var(--tint-ai-ink); }
.tag-sports { background: var(--tint-sports); color: var(--tint-sports-ink); }
.tag-risk { background: var(--tint-rose); color: var(--tint-rose-ink); }
.tag-vc { background: var(--tint-butter); color: var(--tint-butter-ink); }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: var(--z-nav); background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--hairline); }
.nav-inner { height: 64px; display: flex; align-items: center; gap: 28px; }
.wordmark { font-family: var(--font-display); font-weight: 650; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; margin-inline-end: auto; white-space: nowrap; }
.nav-links { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav-links a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: var(--r-md); text-decoration: none; color: var(--ink-2); font-size: .95rem; font-weight: 500; transition: background-color .15s, color .15s; }
.nav-links a:hover, .nav-links a[aria-current="true"] { background: var(--surface-2); color: var(--ink); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.egg-btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--bg); cursor: pointer; font-size: .88rem; font-weight: 600; transition: border-color .15s, background-color .15s; }
.egg-btn:hover { border-color: var(--accent); background: var(--accent-soft); }
.egg-btn .icon { color: var(--accent-ink); }
.egg-btn.bump { animation: bump .5s var(--ease-out); }
@keyframes bump { 30% { transform: scale(1.12); } }

/* ---------- Hero ---------- */
.hero { padding-block: clamp(32px, 6vw, 80px) clamp(48px, 7vw, 88px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 88px); align-items: center; }
.hero-copy .lede { margin-top: 24px; max-width: 34ch; font-size: clamp(1.15rem, 1.8vw, 1.4rem); line-height: 1.5; color: var(--ink-2); }
.hero-copy .lede strong { color: var(--ink); font-weight: 600; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }
.portrait { margin: 0; position: relative; justify-self: end; width: min(100%, 420px); isolation: isolate; }
.portrait::before { content: ''; position: absolute; inset: 22px -22px -22px 22px; border-radius: var(--r-xl); background: var(--portrait-block); z-index: -1; transform: rotate(2.5deg); }
.portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; object-position: 50% 30%; border-radius: var(--r-xl); box-shadow: var(--shadow-3); background: var(--surface-2); }

.reveal { opacity: 0; transform: translateY(14px); }
.is-ready .reveal { opacity: 1; transform: none; transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }

/* ---------- Experience ---------- */
.jobs { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--hairline-strong); }
.job { border-bottom: 1px solid var(--hairline-strong); }
.job summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 132px minmax(0, 1fr) 24px; gap: 8px 28px; align-items: baseline; padding: 22px 4px; border-radius: var(--r-md); transition: background-color .15s; }
.job summary::-webkit-details-marker { display: none; }
.job summary:hover { background: var(--surface); }
.job-when { color: var(--ink-3); font-size: .92rem; }
.job-org { font-family: var(--font-display); font-size: 1.28rem; font-weight: 620; letter-spacing: -0.015em; }
.job-role { color: var(--ink-3); font-size: .95rem; margin-left: 4px; }
.job-line { grid-column: 2; color: var(--ink-2); max-width: 62ch; }
.job-chev { grid-column: 3; grid-row: 1; align-self: center; width: 18px; height: 18px; color: var(--ink-3); transition: transform .25s var(--ease-out); }
.job[open] .job-chev { transform: rotate(180deg); color: var(--accent-ink); }
.job-detail { padding: 0 4px 24px calc(132px + 28px + 4px); }
.job-detail ul { margin: 0; padding-left: 18px; color: var(--ink-2); display: grid; gap: 6px; max-width: 70ch; }
.job-detail li::marker { color: var(--accent); }

.also { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 48px; border: 1px solid var(--hairline); border-radius: var(--r-lg); overflow: hidden; }
.also > div { padding: 22px 24px; background: var(--surface); }
.also > div + div { border-left: 1px solid var(--hairline); }
.also h3 { font-size: 1rem; margin-bottom: 6px; }
.also p { color: var(--ink-2); font-size: .95rem; }
.edu { margin-top: 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--ink-3); font-size: .95rem; }
.edu strong { color: var(--ink); font-weight: 600; }

/* ---------- Projects bento ---------- */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-rows: minmax(200px, auto); gap: 16px; }
.tile { position: relative; border-radius: var(--r-xl); padding: 26px; background: var(--surface); border: 1px solid var(--hairline); display: flex; flex-direction: column; gap: 10px; overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), border-color .25s; }
a.tile { text-decoration: none; }
a.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); border-color: transparent; }
.tile p { color: var(--ink-2); font-size: .98rem; }
.tile .tile-foot { margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: .9rem; color: var(--ink-3); }
.tile .go { margin-inline-start: auto; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--hairline); color: var(--ink); transition: background-color .2s, color .2s; }
a.tile:hover .go { background: var(--accent); color: var(--on-accent); border-color: transparent; }
.tile-mc { grid-column: span 2; grid-row: span 2; background: var(--bg); border-color: transparent; box-shadow: var(--shadow-2); }
.tile-nba { background: #0f1e33; border-color: #0f1e33; color: #e9eef6; }
.tile-nba h3 { color: #fff; }
.tile-nba p { color: #b8c4d6; }
.tile-nba .tile-foot { color: #8e9bb0; }
:root[data-theme="dark"] .tile-nba { background: #050b16; border-color: var(--hairline); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tile-nba { background: #050b16; border-color: var(--hairline); } }
.tile-bracket { background: var(--tint-butter); border-color: transparent; }

.mc-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.mc-canvas-wrap { position: relative; margin: 6px -6px 0; flex: 1; min-height: 240px; }
.mc-canvas-wrap canvas { width: 100%; height: 100%; min-height: 240px; }
.mc-stats { display: grid; grid-template-columns: repeat(3, auto) 1fr; gap: 6px 28px; align-items: end; }
.mc-stat dt { font-size: .8rem; color: var(--ink-3); }
.mc-stat dd { margin: 0; font-family: var(--font-display); font-size: 1.45rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.mc-stats .btn { justify-self: end; }

/* ---------- Music ---------- */
.music-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.deck { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-xl); background: radial-gradient(120% 90% at 50% 15%, var(--surface) 0%, var(--surface-2) 100%); border: 1px solid var(--hairline); overflow: hidden; }
.deck canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }
.deck-hint { position: absolute; left: 18px; bottom: 16px; font-size: .85rem; color: var(--ink-3); pointer-events: none; transition: opacity .3s; }
.deck.is-playing .deck-hint { opacity: 0; }
.deck-fallback { position: absolute; inset: 0; display: grid; place-items: center; color: var(--ink-3); font-size: .95rem; padding: 24px; text-align: center; }
.tracks { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.tracks button { width: 100%; display: grid; grid-template-columns: 28px 1fr auto; gap: 12px; align-items: center; text-align: left; padding: 12px 12px; border: 0; background: transparent; border-radius: var(--r-md); cursor: pointer; transition: background-color .15s; }
.tracks button:hover { background: var(--surface); }
.tracks .n { color: var(--ink-3); font-size: .88rem; }
.tracks .t { font-weight: 550; }
.tracks .a { display: block; color: var(--ink-3); font-size: .88rem; font-weight: 400; }
.tracks .eq { display: none; gap: 2px; align-items: end; height: 14px; }
.tracks .eq i { width: 3px; background: var(--accent); border-radius: 1px; animation: eq 1s ease-in-out infinite; }
.tracks .eq i:nth-child(2) { animation-delay: -.3s; } .tracks .eq i:nth-child(3) { animation-delay: -.6s; }
@keyframes eq { 0%, 100% { height: 4px; } 50% { height: 14px; } }
.tracks [aria-current="true"] { background: var(--accent-soft); }
.tracks [aria-current="true"] .n { color: var(--accent-ink); }
.is-playing .tracks [aria-current="true"] .eq { display: flex; }
.transport { display: flex; align-items: center; gap: 6px; margin-top: 18px; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--hairline-strong); background: var(--bg); cursor: pointer; transition: background-color .15s, border-color .15s; }
.icon-btn:hover { border-color: var(--ink-3); }
.icon-btn.big { width: 48px; height: 48px; background: var(--primary); color: var(--on-primary); border-color: transparent; }
.icon-btn.big:hover { background: var(--primary-hover); }
.progress { flex: 1; display: grid; gap: 4px; margin-left: 10px; }
.progress input { width: 100%; accent-color: var(--accent); }
.progress .times { display: flex; justify-content: space-between; font-size: .78rem; color: var(--ink-3); }
.track-note { margin: 12px 0 0; font-size: .82rem; color: var(--ink-3); min-height: 1.4em; }
.track-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 2px; }
.track-note a:hover { color: var(--accent-ink); }

/* ---------- Play promo ---------- */
.play-card { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--hairline); background: var(--surface); }
.play-card .copy { padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.play-card .copy p { color: var(--ink-2); max-width: 46ch; }
.play-card .shot { position: relative; min-height: 280px; background: #a9c46a; image-rendering: pixelated; }
.play-card .shot canvas { position: absolute; inset: 0; width: 100%; height: 100%; image-rendering: pixelated; }
.inside { display: flex; flex-wrap: wrap; gap: 8px; }
.inside span { font-size: .85rem; padding: 4px 10px; border-radius: var(--r-sm); background: var(--bg); border: 1px solid var(--hairline); color: var(--ink-2); }

/* ---------- Off the clock ---------- */
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.fact { border-radius: var(--r-lg); padding: 22px 22px 24px; display: grid; gap: 6px; align-content: start; border: 0; text-align: left; font: inherit; color: inherit; }
.fact h3 { font-size: 1.06rem; }
.fact p { font-size: .97rem; color: var(--ink-2); }
.fact:nth-child(1) { background: var(--tint-quant); }
.fact:nth-child(2) { background: var(--tint-butter); }
.fact:nth-child(3) { background: var(--tint-ai); }
.fact:nth-child(4) { background: var(--tint-sports); }
.fact:nth-child(5) { background: var(--tint-rose); }
.fact:nth-child(6) { background: var(--surface-2); }
.facts { grid-template-areas: "isl song greek" "piano q q" "sports q q"; }
.fact:nth-child(1) { grid-area: isl; } .fact:nth-child(2) { grid-area: song; } .fact:nth-child(3) { grid-area: greek; }
.fact:nth-child(4) { grid-area: piano; } .fact:nth-child(5) { grid-area: sports; }
.fact.fact-quantum { grid-area: q; background: var(--tint-quant); grid-template-columns: minmax(0, 1fr) auto; align-items: start; align-content: center; gap: 12px 32px; }
.q-text { display: grid; gap: 6px; max-width: 70ch; }
.q-link { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--tint-quant-ink) 45%, transparent); text-underline-offset: 3px; display: inline-flex; align-items: center; gap: 4px; }
.q-link:hover { color: var(--tint-quant-ink); text-decoration-color: currentColor; }
.q-link .icon { width: 15px; height: 15px; }
.fact p.q-goal { color: var(--ink); font-weight: 600; font-size: .95rem; }
.fact p.q-status { color: var(--tint-quant-ink); font-weight: 600; font-size: .92rem; }
.q-game { display: grid; gap: 10px; justify-items: start; }
.q-board { --n: 5; --sq: 42px; position: relative; display: grid; grid-template-columns: repeat(var(--n), var(--sq)); grid-auto-rows: var(--sq); border-radius: var(--r-md); overflow: hidden; box-shadow: 0 0 0 1px color-mix(in srgb, var(--tint-quant-ink) 30%, transparent); }
.q-sq { position: relative; padding: 0; border: 0; background: var(--bg); cursor: pointer; }
.q-sq.dk { background: color-mix(in srgb, var(--tint-quant-ink) 24%, var(--bg)); }
.q-sq:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; z-index: 1; }
.q-sq.sel { box-shadow: inset 0 0 0 3px var(--accent); }
.q-sq.first { background: color-mix(in srgb, var(--accent) 30%, var(--bg)); }
.q-sq.target::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: color-mix(in srgb, var(--accent) 70%, transparent); }
.q-sq.target.cap::after { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: none; border: 3px solid color-mix(in srgb, var(--accent) 75%, transparent); }
.q-rank, .q-file { position: absolute; font: 600 .55rem/1 var(--font-body); color: color-mix(in srgb, var(--tint-quant-ink) 75%, transparent); pointer-events: none; }
.q-rank { left: 3px; top: 3px; } .q-file { right: 3px; bottom: 3px; }
.q-layer { position: absolute; inset: 0; pointer-events: none; }
.q-piece { --p: 1; position: absolute; left: 0; top: 0; width: calc(100% / var(--n)); height: calc(100% / var(--n)); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; transition: transform .45s cubic-bezier(.3, .7, .2, 1), opacity .35s; }
.q-piece .icon { width: 28px; height: 28px; position: relative; }
.q-knight .icon { color: #fbfaf5; opacity: calc(.4 + .6 * var(--p)); filter: drop-shadow(1px 0 0 #1b2233) drop-shadow(-1px 0 0 #1b2233) drop-shadow(0 1px 0 #1b2233) drop-shadow(0 -1px 0 #1b2233); }
.q-knight::before { content: ""; position: absolute; inset: 8%; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--tint-quant-ink) 40%, transparent), transparent 70%); opacity: 0; transition: opacity .35s; }
.q-knight.ghost::before { opacity: calc(.4 + var(--p)); animation: q-cloud 1.6s ease-in-out infinite alternate; }
.q-knight.ghost .icon { animation: q-shimmer 1.3s ease-in-out infinite alternate; }
.q-knight.gone { opacity: 0; }
.q-knight.gone .icon { transform: scale(.3); transition: transform .35s; }
.q-pawn .icon { color: #1b2233; width: 26px; height: 26px; filter: drop-shadow(0 0 1px rgba(255, 255, 255, .7)); }
.q-pawn.shake { animation: q-shake .35s; }
.q-pawn.taken { opacity: 0; }
.q-p { position: relative; font: 600 11px/1 var(--font-body); color: var(--tint-quant-ink); font-variant-numeric: tabular-nums; }
.q-knight:not(.ghost) .q-p { display: none; }
.q-ring { position: absolute; left: 0; top: 0; width: calc(100% / var(--n)); height: calc(100% / var(--n)); border-radius: 50%; border: 2px solid var(--accent); pointer-events: none; }
.q-spark { position: absolute; width: 4px; height: 4px; margin: -2px 0 0 -2px; border-radius: 50%; background: var(--tint-quant-ink); pointer-events: none; }
.q-controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.q-mode { display: inline-flex; padding: 3px; border-radius: 8px; background: color-mix(in srgb, var(--tint-quant-ink) 14%, transparent); }
.q-mode button, .q-btn { height: 30px; padding: 0 12px; border: 0; border-radius: 6px; background: transparent; color: var(--ink-2); font: 600 .85rem var(--font-body); cursor: pointer; }
.q-mode [aria-checked="true"] { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-1); }
.q-btn { border: 1px solid color-mix(in srgb, var(--tint-quant-ink) 35%, transparent); background: color-mix(in srgb, var(--bg) 60%, transparent); }
.q-btn:hover, .q-mode button:hover { color: var(--ink); }
.q-btn:disabled { opacity: .45; cursor: not-allowed; }
.q-levels { display: flex; gap: 6px; }
.q-levels button { width: 30px; height: 30px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--tint-quant-ink) 35%, transparent); background: transparent; color: var(--ink-2); font: 600 .85rem var(--font-body); cursor: pointer; }
.q-levels button.done { background: color-mix(in srgb, var(--tint-quant-ink) 18%, transparent); color: var(--ink); }
.q-levels button[aria-current="true"] { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.q-sq.goal { box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--accent) 80%, transparent); }
.q-sq.goal.sel { box-shadow: inset 0 0 0 3px var(--accent); }
.q-next { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.q-next:hover { color: var(--bg); opacity: .9; }
.q-score { display: flex; gap: 14px; color: var(--ink-3); font-size: .85rem; }
.q-score b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
@keyframes q-shimmer { from { opacity: calc(.25 + .5 * var(--p)); } to { opacity: calc(.55 + .45 * var(--p)); } }
@keyframes q-cloud { from { transform: scale(.85); } to { transform: scale(1.12); } }
@keyframes q-shake { 0%, 100% { translate: 0; } 25% { translate: -3px; } 75% { translate: 3px; } }
@media (prefers-reduced-motion: reduce) { .q-piece { transition: none; } .q-knight.ghost .icon, .q-knight.ghost::before, .q-pawn.shake { animation: none; } }
button.fact { cursor: pointer; transition: transform .15s var(--ease-out); }
button.fact:active { transform: scale(.985); }
.fact .cups { display: flex; gap: 6px; margin-top: 6px; height: 18px; }
.fact .cups i { width: 14px; height: 18px; border-radius: 3px 3px 6px 6px; border: 2px solid var(--tint-quant-ink); opacity: .25; transition: opacity .2s, background-color .2s; }
.fact .cups i.on { opacity: 1; background: var(--accent); border-color: var(--accent); }
.hm-only { display: none; }
.hannah-mode .hm-only { display: grid; grid-column: 1 / -1; background: linear-gradient(90deg, #fbe9e6, #fdf3df); }

/* ---------- Contact ---------- */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 32px; align-items: end; }
.contact .addr { font-family: var(--font-display); font-size: clamp(1.6rem, 4.4vw, 3rem); font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; margin-top: 18px; display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; overflow-wrap: anywhere; }
.contact .addr a { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 6px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding-block: 28px 40px; color: var(--ink-3); font-size: .9rem; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer button { background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--hairline-strong); text-underline-offset: 3px; }
.footer button:hover { text-decoration-color: var(--accent); }
.footer .spacer { margin-inline-start: auto; }

/* ---------- Overlays: egg panel, terminal, diary, game modals ---------- */
dialog { border: 0; padding: 0; background: transparent; color: var(--ink); max-width: none; max-height: none; }
dialog:not([open]) { display: none !important; }
dialog::backdrop { background: rgba(8, 15, 28, .45); backdrop-filter: blur(2px); }
.sheet { position: fixed; inset: 0 0 0 auto; height: 100dvh; width: min(420px, 100vw); margin: 0; background: var(--bg); border: 0; box-shadow: var(--shadow-3); display: flex; flex-direction: column; }
.sheet[open] { animation: slide-in .35s var(--ease-out); }
@keyframes slide-in { from { transform: translateX(24px); opacity: 0; } }
.sheet-head { display: flex; align-items: center; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--hairline); }
.sheet-head h2 { font-size: 1.35rem; margin-inline-end: auto; }
.sheet-body { overflow: auto; padding: 16px 20px 28px; }
.egg-progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 6px 0 18px; }
.egg-progress span { display: block; height: 100%; width: 100%; transform: scaleX(0); transform-origin: left; background: var(--accent); border-radius: 4px; transition: transform .6s var(--ease-out); }
.egg-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.egg-list li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); }
.egg-list .badge { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--bg); border: 1px solid var(--hairline); color: var(--ink-3); }
.egg-list .found .badge { background: var(--accent); border-color: transparent; color: var(--on-accent); }
.egg-list h3 { font-size: .98rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.egg-list p { font-size: .9rem; color: var(--ink-2); }
.egg-list .found p { color: var(--ink-3); }

.modal { position: fixed; inset: 0; margin: auto; width: min(640px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); background: var(--bg); border-radius: var(--r-xl); border: 0; box-shadow: var(--shadow-3); display: flex; flex-direction: column; overflow: hidden; }
.modal[open] { animation: pop .3s var(--ease-out); }
@keyframes pop { from { transform: scale(.97) translateY(8px); opacity: 0; } }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 14px 14px 14px 20px; border-bottom: 1px solid var(--hairline); }
.modal-head h2 { font-size: 1.15rem; margin-inline-end: auto; }
.modal-body { overflow: auto; padding: 20px; }

.terminal { background: #0b1424; color: #d7e1ef; font-family: var(--font-mono); }
.terminal .modal-head { border-color: #1f2c43; }
.terminal .modal-head h2 { color: #e9eef6; font-family: var(--font-mono); font-size: .95rem; font-weight: 500; }
.terminal .btn-ghost { color: #8e9bb0; } .terminal .btn-ghost:hover { background: #17243a; color: #fff; }
.term-out { height: min(360px, 50dvh); overflow: auto; padding: 16px 20px 6px; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; }
.term-out .dim { color: #7d8ba1; } .term-out .hi { color: #ffb38a; } .term-out .ok { color: #86d6a5; } .term-out .err { color: #f2a3b8; } .term-out .cmd { color: #8cc1f2; }
.term-in { display: flex; gap: 10px; align-items: center; padding: 12px 20px 18px; font-size: .9rem; }
.term-in label { color: #ffb38a; }
.term-in input { flex: 1; background: transparent; border: 0; color: #fff; font: inherit; outline: none; caret-color: #ff8a4c; }

.diary { background: #f4ecd8; color: #2b2116; }
.diary .modal-head { border-color: #d9c9a3; }
.diary .modal-head h2 { font-family: var(--font-display); color: #2b2116; }
.diary-page { min-height: 220px; max-height: 46dvh; overflow: auto; padding: 22px 26px; font-family: "Snell Roundhand", "Segoe Script", "Bradley Hand", cursive; font-size: 1.2rem; line-height: 1.7; }
.diary-page .you { color: #1b3a7a; transition: opacity 1.6s ease, filter 1.6s ease; } .diary-page .you.sunk { opacity: .3; filter: blur(.4px); } .diary-page .tom { color: #2b2116; }
@keyframes ink { to { opacity: 1; } }
.diary-in { display: flex; gap: 10px; padding: 14px 20px 18px; border-top: 1px solid #d9c9a3; }
.diary-in input { flex: 1; height: 42px; border-radius: var(--r-md); border: 1px solid #c9b78f; background: #fbf6e8; padding: 0 12px; font: inherit; color: #2b2116; }
.diary-in .btn-primary { background: #2b2116; color: #f4ecd8; }

/* ---------- Toast ---------- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: var(--z-toast); display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); pointer-events: none; }
.toast { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; border-radius: var(--r-lg); background: var(--primary); color: var(--on-primary); box-shadow: var(--shadow-3); animation: toast-in .45s var(--ease-out); pointer-events: auto; }
.toast .badge { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); }
.toast b { display: block; font-size: .95rem; }
.toast span { font-size: .85rem; opacity: .75; }
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-in { from { transform: translateY(16px) scale(.98); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(8px); opacity: 0; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: var(--z-toast); }
.konami-trail { position: fixed; left: 50%; top: calc(76px + env(safe-area-inset-top)); z-index: var(--z-toast); display: flex; gap: 7px; padding: 8px 14px; border-radius: 999px; background: var(--primary); color: var(--on-primary); font: 700 15px/1 var(--font-display); box-shadow: var(--shadow-2); opacity: 0; transform: translate(-50%, -10px); transition: opacity .2s, transform .2s var(--ease-out); pointer-events: none; }
.konami-trail.show { opacity: 1; transform: translate(-50%, 0); }
.konami-trail span { opacity: .35; }
.konami-trail span.on { opacity: 1; color: var(--accent); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-mc { grid-column: span 2; grid-row: auto; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "isl song" "greek piano" "sports sports" "q q"; }
}
@media (max-width: 820px) {
  .nav-links .opt { display: none; }
  .hero-grid { grid-template-columns: 1fr; }
  .portrait { order: -1; width: min(300px, 70%); justify-self: start; }
  .music-grid, .play-card, .contact { grid-template-columns: 1fr; }
  .play-card .shot { min-height: 220px; order: -1; }
  .also { grid-template-columns: 1fr; }
  .also > div + div { border-left: 0; border-top: 1px solid var(--hairline); }
  .job summary { grid-template-columns: minmax(0, 1fr) 20px; gap: 4px 12px; padding: 18px 2px; }
  .job-when { grid-column: 1 / -1; order: -1; font-size: .85rem; }
  .job-org { grid-column: 1; }
  .job-line { grid-column: 1 / -1; }
  .job-chev { grid-column: 2; grid-row: 2; }
  .job-detail { padding: 0 2px 20px; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .bento { grid-template-columns: 1fr; }
  .tile-mc { grid-column: auto; }
  .facts { grid-template-columns: 1fr; }
  .facts { grid-template-areas: none; }
  .facts .fact { grid-area: auto; }
  .fact.fact-quantum { grid-template-columns: 1fr; }
  .mc-stats { grid-template-columns: repeat(3, auto); }
  .mc-stats .btn { grid-column: 1 / -1; justify-self: start; }
  .nav-inner { gap: 10px; }
  .machine-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .nav-links a:has(.play-label) .icon { display: none; }
  .nav-links a { padding: 0 10px; }
  .footer .spacer { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   Play page
   ========================================================================== */
.play-page { background: var(--surface); }
.game-wrap { padding-block: 24px 48px; }
.game-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.game-title { font-size: clamp(1.8rem, 3.4vw, 2.4rem); letter-spacing: -0.025em; line-height: 1.1; }
.game-sub { color: var(--ink-2); margin-top: 6px; max-width: 80ch; }
.game-head > div { flex: 1 1 480px; }
.game { display: grid; gap: 16px; }
.screen { position: relative; aspect-ratio: 3 / 2; width: min(100%, calc((100dvh - 250px) * 1.5)); margin-inline: auto; border-radius: var(--r-xl); overflow: hidden; background: #8aa850; box-shadow: var(--shadow-3); outline: none; }
.screen:focus-visible { box-shadow: var(--shadow-3), 0 0 0 2px var(--accent); }
.screen canvas { width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; }
.dlg { position: absolute; left: 3%; right: 3%; bottom: 4%; background: #fbfaf5; color: #1f2433; border: 3px solid #2a2f3d; border-radius: 10px; box-shadow: inset 0 0 0 3px #e3dcc6, 0 6px 0 rgba(0,0,0,.18); padding: 16px 20px 18px; font-family: var(--font-pixel); font-size: clamp(15px, 2.1vw, 20px); line-height: 1.45; }
.dlg-text { white-space: pre-line; min-height: 2.9em; }
.dlg-choices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.dlg-choices:empty { display: none; }
.dlg-choices button { font: inherit; font-size: .85em; padding: 6px 12px; border-radius: 6px; border: 2px solid #2a2f3d; background: #fff; color: #1f2433; cursor: pointer; }
.dlg-choices button:hover, .dlg-choices button:focus-visible { background: #2a2f3d; color: #fff; outline: none; }
.dlg-amount { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dlg-amount-err { flex-basis: 100%; font-size: .78em; color: #b02a37; }
.dlg-amount-err:empty { display: none; }
.dlg-amount input { width: 8.5em; font: inherit; font-size: .85em; padding: 6px 10px; border-radius: 6px; border: 2px solid #2a2f3d; background: #fff; color: #1f2433; }
.dlg-amount input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.dlg-amount.bad input { border-color: #c0303f; animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.dlg-more { position: absolute; right: 14px; bottom: 10px; width: 16px; height: 16px; animation: nudge 1s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(3px); } }
.place { position: absolute; left: 14px; top: 14px; padding: 6px 12px; border-radius: 8px; background: rgba(251, 250, 245, .92); color: #1f2433; border: 2px solid #2a2f3d; font-family: var(--font-pixel); font-size: 15px; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; pointer-events: none; }
.place.show { opacity: 1; transform: none; }
.place.caption { top: auto; bottom: 14px; right: 14px; text-align: center; font-size: 14px; line-height: 1.35; }
.pad { display: none; justify-content: space-between; align-items: center; padding: 4px 8px; user-select: none; -webkit-user-select: none; }
.stick { position: relative; width: 136px; height: 136px; border-radius: 50%; background: var(--surface-2); box-shadow: inset 0 0 0 2px var(--hairline-strong); display: grid; place-items: center; touch-action: none; cursor: grab; }
.stick-marks { position: absolute; inset: 0; width: 100%; height: 100%; fill: var(--ink-3); pointer-events: none; }
.stick-knob { width: 58px; height: 58px; border-radius: 50%; background: var(--primary); box-shadow: var(--shadow-2); transition: transform .14s var(--ease-out); pointer-events: none; }
.stick.active .stick-knob { transition: none; background: var(--accent); }
.abtn { touch-action: none; border: 0; background: var(--primary); color: var(--on-primary); display: grid; place-items: center; cursor: pointer; }
.abtn:active { background: var(--accent); color: var(--on-accent); }
/* Instructions that depend on the device: keyboard words on computers, touch words on phones. */
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) { .touch-only { display: inline; } .keys-only { display: none; } }
.abtn { width: 76px; height: 76px; border-radius: 50%; font-family: var(--font-pixel); font-size: 26px; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; }
.ab { display: flex; align-items: flex-end; gap: 12px; }
.ab #abtn { margin-bottom: 34px; }
.bbtn { width: 64px; height: 64px; font-size: 22px; }
@media (pointer: coarse) { .pad { display: flex; } .screen { width: min(100%, calc((100dvh - 360px) * 1.5)); } }
/* Phones and narrow windows: conversations sit under the game view, like a handheld's second screen, so long ones never get cut off. */
@media (pointer: coarse), (max-width: 600px) {
  .screen { aspect-ratio: auto; }
  .screen canvas { display: block; height: auto; aspect-ratio: 3 / 2; }
  .dlg { position: relative; left: auto; right: auto; bottom: auto; border-width: 3px 0 0; border-radius: 0; box-shadow: inset 0 3px 0 #e3dcc6; padding: 14px 16px 16px; font-size: 15px; }
  .dlg-choices button { flex: 1 1 auto; }
}

.modal-wide { width: min(760px, calc(100vw - 24px)); }
/* The Athenian Exchange (Little Athens bank) */
.ex-intro { margin: 0 0 12px; color: var(--ink-2); font-size: .95rem; }
.ex-summary { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--surface); font-size: .92rem; color: var(--ink-2); }
.ex-summary b { color: var(--ink); font-family: var(--font-display); font-variant-numeric: tabular-nums; }
.ex-summary .coin { display: inline-block; vertical-align: -2px; margin-right: 6px; }
.ex-note { margin: 0 0 12px; font-size: .9rem; color: var(--ink-2); }
.ex-note.ok { color: var(--tint-sports-ink); }
.ex-note.ex-closed { padding: 10px 14px; border-radius: var(--r-md); background: var(--tint-rose); color: var(--tint-rose-ink); font-weight: 600; }
.ex-season { margin: 0 0 12px; padding: 10px 14px; border-radius: var(--r-md); background: var(--tint-butter); color: var(--tint-butter-ink); font-size: .9rem; }
.ex-season h3 { margin: 0 0 2px; font-size: .95rem; color: inherit; }
.ex-season p { margin: 0; }
.ex-news { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-md); border: 1px solid var(--hairline); }
.ex-news h3 { margin: 0; font-size: .95rem; }
.ex-news h4 { margin: 10px 0 0; font-size: .82rem; color: var(--ink-3); font-weight: 600; }
.ex-news ul { margin: 6px 0 0; padding-left: 18px; font-size: .9rem; color: var(--ink-2); display: grid; gap: 4px; }
.ex-news li.ex-good::marker { color: var(--tint-sports-ink); }
.ex-news li.ex-bad::marker { color: var(--tint-rose-ink); }
.ex-news details { margin-top: 8px; }
.ex-news summary { cursor: pointer; font-size: .88rem; font-weight: 600; color: var(--ink-2); }
.ex-list { display: grid; gap: 12px; }
.ex-co { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r-lg); border: 1px solid var(--hairline); background: var(--bg); }
.ex-co.today { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.ex-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.ex-top h3 { margin: 0; margin-inline-end: auto; font-size: 1.02rem; }
.ex-day { font-size: .8rem; color: var(--ink-3); }
.ex-co.today .ex-day { color: var(--accent-ink); font-weight: 600; }
.ex-price { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.ex-price b { font-family: var(--font-display); font-size: 1.45rem; font-variant-numeric: tabular-nums; }
.ex-price > span { font-size: .9rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.ex-spark { width: 120px; height: 32px; }
.ex-price .ex-chart-note { font-size: .74rem; font-weight: 400; color: var(--ink-3); }
.ex-up { color: var(--tint-sports-ink); }
.ex-down { color: var(--tint-rose-ink); }
.ex-how, .ex-facts { margin: 0; font-size: .88rem; color: var(--ink-2); }
.ex-how b { color: var(--ink); }
.ex-facts:empty { display: none; }
.ex-trade { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--hairline); }
.ex-own { margin-inline-end: auto; font-size: .9rem; color: var(--ink-2); }
.ex-own b { color: var(--ink); }
.ex-trade input { width: 6.5em; height: 34px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--hairline-strong); background: var(--bg); color: var(--ink); font: inherit; font-size: .9rem; }
.ex-trade input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.ex-msg { flex-basis: 100%; font-size: .84rem; }
.ex-msg:empty { display: none; }
.ex-msg.bad { color: var(--tint-rose-ink); }
@media (max-width: 480px) { .ex-own { flex-basis: 100%; } .ex-trade input { flex: 1; } }
/* Your money (Little Athens bank) */
.mo-total { margin: 0 0 10px; font-size: 1rem; color: var(--ink-2); }
.mo-total b { color: var(--ink); font-family: var(--font-display); font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.mo-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--surface-2); margin: 0 0 14px; }
.mo-bar span { flex-basis: 0; min-width: 3px; }
.mo-purse { background: #e0b44c; } .mo-bank { background: #5f7896; } .mo-bonds { background: #6b8f4e; } .mo-shares { background: var(--accent); }
.mo-dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
.mo-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.mo-table th, .mo-table td { padding: 8px 6px; border-top: 1px solid var(--hairline); text-align: left; vertical-align: top; }
.mo-table th { font-weight: 600; color: var(--ink); white-space: nowrap; }
.mo-table thead th { font-size: .78rem; font-weight: 600; color: var(--ink-3); border-top: 0; }
.mo-num { text-align: right !important; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mo-note { color: var(--ink-2); font-size: .84rem; }
.mo-h { margin: 18px 0 6px; font-size: .95rem; }
.mo-list { margin: 0; padding-left: 18px; font-size: .9rem; color: var(--ink-2); }
.mo-holdings th { white-space: normal; }
@media (max-width: 480px) { .mo-table:not(.mo-holdings) tr { display: grid; grid-template-columns: 1fr auto auto; } .mo-table:not(.mo-holdings) td.mo-note { grid-column: 1 / -1; border-top: 0; padding-top: 0; } .mo-holdings .mo-pct { display: none; } }

.ms-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; font-size: .95rem; color: var(--ink-2); }
.ms-bar b { color: var(--ink); font-family: var(--font-display); font-size: 1.2rem; }
.ms-grid { display: grid; grid-template-columns: repeat(9, 1fr); gap: 4px; max-width: 420px; margin-inline: auto; }
.ms-cell { aspect-ratio: 1; border: 0; border-radius: 6px; background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--hairline-strong); font-family: var(--font-display); font-weight: 700; font-size: clamp(14px, 3.6vw, 18px); cursor: pointer; display: grid; place-items: center; padding: 0; color: var(--ink); }
.ms-cell:hover { background: var(--hairline); }
.ms-cell.open { background: var(--bg); box-shadow: inset 0 0 0 1px var(--hairline); cursor: default; }
.ms-cell.boom { background: var(--tint-rose); }
.ms-cell[data-n="1"] { color: #2563c4; } .ms-cell[data-n="2"] { color: #1d7a45; } .ms-cell[data-n="3"] { color: #c2334d; } .ms-cell[data-n="4"] { color: #5b3fb0; } .ms-cell[data-n="5"] { color: #a1520b; }
.ms-cell .icon { width: 60%; height: 60%; }
.ms-note { text-align: center; color: var(--ink-3); font-size: .9rem; margin-top: 14px; }
.race-hud { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.race-prog { position: relative; flex: 1; height: 10px; border-radius: 5px; background: var(--surface-2); }
.race-prog i { position: absolute; top: 50%; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; transform: translateY(-50%); border: 2px solid var(--bg); }
.race-prog .you { background: var(--accent); z-index: 1; }
.race-prog .him { background: #8e4234; }
.race-stakes { margin: -2px 0 10px; color: var(--ink-2); font-size: .9rem; }
.race-time { font-family: var(--font-pixel); font-size: 1.1rem; min-width: 6ch; text-align: right; }
.race-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 2px #2a2f3d; }
.race-frame canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.race-call { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(.9); padding: 6px 16px; border-radius: 8px; background: rgba(251, 250, 245, .96); border: 2px solid #2a2f3d; color: #1f2433; font: clamp(16px, 3vw, 24px)/1.2 var(--font-pixel); white-space: nowrap; opacity: 0; transition: opacity .15s, transform .15s; pointer-events: none; }
.race-call.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.race-controls { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.race-feet { display: flex; gap: 10px; }
.race-foot { width: 84px; height: 52px; border-radius: 10px; border: 2px solid #2a2f3d; background: #fbfaf5; color: #1f2433; font: 16px var(--font-pixel); cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; -webkit-tap-highlight-color: transparent; transition: transform .06s, background-color .06s; }
.race-foot.hit { transform: translateY(2px); background: #fff1e7; }
.race-help { margin-top: 10px; color: var(--ink-3); font-size: .88rem; }
.race-result { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); color: var(--ink-2); }
.race-verdict { font-family: var(--font-display); font-size: 1.15rem; color: var(--ink); }
.race-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 10px 0; }
.race-stats dt { color: var(--ink-3); font-size: .8rem; }
.race-stats dd { margin: 0; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); font-variant-numeric: tabular-nums; }
.race-prize { color: var(--ink); }
@media (max-width: 600px) { .race-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .race-foot { width: 76px; height: 56px; } }
/* Phones: Line up on its own row, then two big pads, one under each thumb. */
@media (hover: none) and (pointer: coarse) {
  .race-controls { flex-direction: column; align-items: stretch; }
  .race-feet { gap: 12px; }
  .race-foot { flex: 1; width: auto; height: 96px; font-size: 20px; }
  #race-start { justify-content: center; }
}
.school-frame { position: relative; }
.school-frame canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.school-spots { position: absolute; inset: 0; }
.school-spot { position: absolute; padding: 0; border: 0; border-radius: 3px; background: transparent; cursor: pointer; transition: box-shadow .15s, background-color .15s; }
.school-spot:hover { background: rgba(255, 255, 255, .22); box-shadow: 0 0 0 2px rgba(255, 255, 255, .95); }
.school-spot:focus-visible { outline: none; box-shadow: 0 0 0 2px var(--accent); }
.school-spot.on { box-shadow: 0 0 0 2px var(--accent); background: rgba(242, 107, 33, .12); }
.school-info { margin-top: 14px; min-height: 7.5em; color: var(--ink-2); }
.school-info h3 { font-size: 1.15rem; color: var(--ink); }
.school-info .school-where { margin: 2px 0 6px; color: var(--ink-3); font-size: .88rem; }
.school-info .school-reward { margin-top: 10px; padding: 10px 12px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); font-size: .93rem; }
.school-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; }
.school-count { color: var(--ink-3); font-size: .9rem; }
.select { height: 36px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--bg); color: var(--ink); padding: 0 10px; font: inherit; font-size: .9rem; }

/* ==========================================================================
   Section bands (one light family, one navy close)
   ========================================================================== */
.band { background: var(--bg); }
.band-sky { background: var(--band-sky); }
.band-mist { background: var(--band-mist); }
.band-butter { background: var(--band-butter); }
.band-peach { background: var(--band-peach); }
.band-mint { background: var(--band-mint); }
.band-navy { background: var(--band-navy); color: var(--on-navy); }
.band-navy h2, .band-navy .addr a { color: #fff; }
.band-navy .contact-note { margin-top: 12px; color: var(--on-navy-2); max-width: 52ch; }
.band-navy .btn-secondary { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.band-navy .btn-secondary:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .6); }
.band-navy .icon-btn { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .32); }
.band-navy :focus-visible { outline-color: #ff9d66; }
.footer-navy { background: var(--band-navy); color: var(--on-navy-2); border-top: 1px solid rgba(255, 255, 255, .08); }
.footer-navy button, .footer-navy a { color: var(--on-navy); text-decoration-color: rgba(255, 255, 255, .3); }
.footer-navy a { text-decoration: underline; text-underline-offset: 3px; }
.band-peach .deck { background: radial-gradient(120% 90% at 50% 15%, var(--bg) 0%, var(--surface) 100%); }
.band-mint .play-card { background: var(--bg); border-color: transparent; box-shadow: var(--shadow-1); }

/* Project tiles: one tint each, the featured one plain */
.tile-kalshi { background: var(--tint-sports); border-color: transparent; }
.tile-ik { grid-column: span 2; background: var(--tint-ai); border-color: transparent; }
.tile-poker { background: var(--tint-rose); border-color: transparent; }
.tile-blotto { background: var(--surface-2); border-color: transparent; }
.tile-quantum { background: var(--tint-quant); border-color: transparent; }
.tile-heart { grid-column: span 2; background: var(--tint-rose); border-color: transparent; }
.tile-kosher { background: var(--accent-soft); border-color: transparent; }
.tile-ik .tile-foot span + span::before { content: ""; display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin: 0 10px 3px 0; opacity: .5; }

/* Research */
.papers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.paper { background: var(--bg); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px); box-shadow: var(--shadow-1); display: flex; flex-direction: column; gap: 10px; }
.paper-meta { font-size: .85rem; color: var(--ink-3); }
.paper h3 { font-size: clamp(1.4rem, 2.2vw, 1.7rem); letter-spacing: -0.02em; }
.paper-sub { color: var(--ink-2); font-style: italic; margin-top: -4px; }
.paper p:not(.paper-meta):not(.paper-sub) { color: var(--ink-2); }
.paper strong { color: var(--accent-ink); font-weight: 650; }
.paper-foot { margin-top: auto; padding-top: 10px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.paper-foot .btn { margin-inline-start: auto; }

/* Travel globe */
.travel-grid { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.globe { position: relative; aspect-ratio: 1; max-height: 640px; width: 100%; border-radius: 50%; background: radial-gradient(closest-side, var(--band-sky) 70%, transparent 100%); touch-action: pan-y; }
.globe canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; }
.globe canvas:active { cursor: grabbing; }
.globe .deck-fallback { border-radius: 50%; }
.globe-hint { position: absolute; left: 50%; bottom: 2%; transform: translateX(-50%); font-size: .85rem; color: var(--ink-3); white-space: nowrap; pointer-events: none; }
.travel-side { display: grid; gap: 18px; }
.place-card { margin: 0; border-radius: var(--r-xl); overflow: hidden; background: var(--bg); box-shadow: var(--shadow-2); }
.place-photo { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface-2); }
.place-photo img { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .35s var(--ease-out); }
.place-photo .bg { object-fit: cover; filter: blur(22px) saturate(1.15); transform: scale(1.15); opacity: .55; }
.place-photo .fg { object-fit: contain; }
.place-card.swapping img { opacity: .3; }
.place-card figcaption { padding: 14px 18px 16px; display: grid; gap: 2px; }
.place-card .place-name { font-family: var(--font-display); font-size: 1.15rem; font-weight: 620; letter-spacing: -0.01em; }
.place-card .place-caption { color: var(--ink-2); font-size: .95rem; }
.places { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.places button { height: 34px; padding: 0 12px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--bg); font-size: .88rem; font-weight: 550; cursor: pointer; transition: background-color .15s, border-color .15s; }
.places button:hover { border-color: var(--ink-3); }
.places button[aria-current="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }

/* Blog */
.blog-hero { padding-block: clamp(40px, 7vw, 88px) clamp(32px, 5vw, 56px); }
.blog-hero h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); }
.blog-hero p { margin-top: 18px; max-width: 56ch; font-size: 1.15rem; color: var(--ink-2); }
.posts { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.posts a { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 24px; padding: 22px 24px; border-radius: var(--r-lg); background: var(--bg); text-decoration: none; box-shadow: var(--shadow-1); transition: box-shadow .2s, transform .2s var(--ease-out); }
.posts a:hover { box-shadow: var(--shadow-2); transform: translateY(-1px); }
.posts time { color: var(--ink-3); font-size: .9rem; }
.posts h2 { font-size: 1.3rem; letter-spacing: -0.015em; }
.posts p { grid-column: 2; color: var(--ink-2); }
.empty-post { border-radius: var(--r-xl); background: var(--bg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-1); display: grid; gap: 10px; max-width: 720px; }
.empty-post h2 { font-size: 1.5rem; }
.empty-post p { color: var(--ink-2); }
.post { max-width: 68ch; margin-inline: auto; padding-block: clamp(40px, 7vw, 88px); }
.post h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); }
.post .post-meta { color: var(--ink-3); margin-top: 12px; }
.post .post-body { margin-top: 32px; display: grid; gap: 18px; font-size: 1.1rem; line-height: 1.75; }
.post .post-body h2 { font-size: 1.6rem; margin-top: 18px; }
.post .post-body blockquote { margin: 0; padding: 4px 0 4px 20px; border-left: 1px solid var(--hairline-strong); color: var(--ink-2); font-style: italic; }

@media (max-width: 980px) {
  .tile-ik { grid-column: span 2; }
  .tile-heart { grid-column: auto; }
  .papers { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .travel-grid { grid-template-columns: 1fr; }
  .globe { max-width: 520px; margin-inline: auto; }
}
@media (max-width: 600px) {
  .tile-ik { grid-column: auto; }
  .posts a { grid-template-columns: 1fr; }
  .posts p { grid-column: 1; }
  .portrait::before { inset: 14px -14px -14px 14px; }
}

.band-peach .tracks [aria-current="true"] { background: var(--bg); box-shadow: var(--shadow-1); }

/* Education */
.degrees { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.degree { background: var(--edu-card); border-radius: var(--r-xl); padding: clamp(24px, 3vw, 34px); display: grid; gap: 6px; align-content: start; }
.degree-school { font-size: .9rem; font-weight: 600; color: var(--ink-3); }
.degree h3 { font-size: clamp(1.5rem, 2.6vw, 2rem); letter-spacing: -0.022em; }
.degree-field { color: var(--ink-2); font-size: 1.05rem; }
.degree-facts { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 14px 0 0; }
.degree-facts dt { font-size: .82rem; color: var(--ink-3); }
.degree-facts dd { margin: 0; font-family: var(--font-display); font-size: 1.35rem; font-weight: 620; letter-spacing: -0.015em; }
.coursework { margin-top: 28px; }
.coursework h3 { font-size: 1.05rem; margin-bottom: 12px; }
.course-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.course-list li { padding: 7px 14px; border-radius: var(--r-md); border: 1px solid var(--edu-border); font-size: .93rem; color: var(--ink); background: var(--edu-card); }
.band-mist .also > div { background: var(--bg); }
.band-mist .job summary:hover { background: var(--bg); }
@media (max-width: 820px) { .degrees { grid-template-columns: 1fr; } }

/* Play: coins and blackjack */
.coin { display: inline-block; width: 16px; height: 16px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe28a 0 30%, #f2b632 31% 62%, #c98a12 63%); box-shadow: inset 0 0 0 1.5px #9a6a0c; flex: none; }
.hud { position: absolute; right: 14px; top: 14px; display: flex; gap: 8px; align-items: stretch; }
.hud-btn { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 8px; background: rgba(251, 250, 245, .94); color: #1f2433; border: 2px solid #2a2f3d; font-family: var(--font-pixel); font-size: 16px; cursor: pointer; }
.hud-btn .icon { width: 18px; height: 18px; }
.hud-btn:hover { background: #fff; }
.hud-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.coins { position: relative; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 8px; background: rgba(251, 250, 245, .94); color: #1f2433; border: 2px solid #2a2f3d; font-family: var(--font-pixel); font-size: 16px; }
.coins.bump { animation: bump .5s var(--ease-out); }
.map-frame { position: relative; border-radius: var(--r-lg); overflow: hidden; box-shadow: 0 0 0 2px #2a2f3d; }
.map-frame canvas { display: block; width: 100%; height: auto; image-rendering: pixelated; image-rendering: crisp-edges; }
.map-pins { position: absolute; inset: 0; }
.map-pin { position: absolute; transform: translate(-50%, -50%); padding: 3px 8px; border-radius: 6px; background: rgba(251, 250, 245, .95); color: #1f2433; border: 2px solid #2a2f3d; font: 14px/1.1 var(--font-pixel); white-space: nowrap; cursor: pointer; transition: transform .15s var(--ease-out), background-color .15s; }
.map-pin:hover, .map-pin:focus-visible { background: #fff3d6; transform: translate(-50%, -50%) scale(1.06); }
.map-pin:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.map-you { position: absolute; width: 0; height: 0; pointer-events: none; }
.map-you::before { content: ""; position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; border: 3px solid var(--accent); animation: you-ping 1.6s ease-out infinite; }
.map-you span { position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%); padding: 1px 6px; border-radius: 5px; background: var(--accent); color: var(--on-accent); font: 12px/1.3 var(--font-pixel); white-space: nowrap; }
@keyframes you-ping { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(1.5); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .map-you::before { animation: none; } }
.map-note { margin-top: 12px; color: var(--ink-3); font-size: .9rem; }
.map-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.map-list button { width: 100%; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border-radius: var(--r-md); border: 1px solid var(--hairline-strong); background: var(--bg); color: var(--ink); font: inherit; cursor: pointer; }
.map-list button:hover { background: var(--surface); }
.map-list b { font-weight: 600; font-size: .95rem; }
.map-list span { color: var(--ink-3); font-size: .85rem; }
@media (max-width: 600px) { .map-pin { font-size: 10px; padding: 2px 4px; border-width: 1.5px; } .map-you span { font-size: 10px; bottom: 16px; } .map-you::before { left: -10px; top: -10px; width: 20px; height: 20px; border-width: 2px; } }
.coin-float { position: absolute; right: 10px; top: 100%; font-family: var(--font-pixel); font-size: 15px; color: #1d6b3c; background: #fbfaf5; border: 2px solid #2a2f3d; border-radius: 6px; padding: 1px 8px; animation: coin-up 1.4s var(--ease-out) forwards; pointer-events: none; }
@keyframes coin-up { 0% { opacity: 0; transform: translateY(4px); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(18px); } }
.bj-rail { padding: 14px; border-radius: 26px 26px 50% 50% / 26px 26px 34% 34%; background: linear-gradient(180deg, #5a3a22 0%, #3d2614 100%); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .15), inset 0 -3px 6px rgba(0, 0, 0, .4), 0 10px 24px rgba(15, 30, 51, .25); }
.bj-felt { position: relative; border-radius: 14px 14px 50% 50% / 14px 14px 32% 32%; padding: 12px clamp(14px, 3vw, 28px) 30px; background: radial-gradient(90% 70% at 50% 35%, #267550 0%, #1f6644 55%, #185035 100%); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .25), inset 0 0 40px rgba(0, 0, 0, .35); color: #f3efe2; display: grid; gap: 4px; justify-items: center; --ch: clamp(80px, 12.5dvh, 104px); --cw: calc(var(--ch) * .72); }
.bj-props { width: 100%; display: flex; justify-content: space-between; align-items: flex-start; }
.bj-tray { display: flex; gap: 3px; padding: 5px 7px; border-radius: 6px; background: linear-gradient(#2a1a10, #44301f); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .6); }
.bj-tray i { width: 12px; height: 22px; border-radius: 3px; background: repeating-linear-gradient(180deg, var(--c) 0 3px, rgba(0, 0, 0, .25) 3px 4px); }
.bj-shoe { width: 56px; height: 34px; border-radius: 6px 14px 6px 6px; background: linear-gradient(135deg, #3a2a1c, #1d140d); position: relative; transform: rotate(-8deg); box-shadow: 0 4px 8px rgba(0, 0, 0, .35); }
.bj-shoe span { position: absolute; left: 7px; top: 5px; width: 30px; height: 22px; border-radius: 3px; background: #0f1e33; box-shadow: inset 0 0 0 2px #fffdf8, inset 0 0 0 3px #c0303f; }
.bj-discard { width: 46px; height: 34px; position: relative; }
.bj-discard span { position: absolute; inset: 0; width: 30px; height: 22px; margin: auto; border-radius: 3px; background: #0f1e33; box-shadow: inset 0 0 0 2px #fffdf8, inset 0 0 0 3px #c0303f, 0 1px 2px rgba(0, 0, 0, .4); }
.bj-discard span:nth-child(2) { transform: translate(2px, -2px) rotate(4deg); } .bj-discard span:nth-child(3) { transform: translate(4px, -4px) rotate(-3deg); }
.bj-row { display: grid; justify-items: center; gap: 4px; }
.bj-label { font-size: .8rem; letter-spacing: .04em; color: #e8f2ea; }
.bj-label b { color: #fff; margin-left: 6px; font-size: .95rem; }
.hand { display: flex; justify-content: center; min-height: var(--ch); }
.hand .pcard + .pcard { margin-left: calc(var(--cw) * -.36); }
.hands { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; min-height: var(--ch); }
.hands.multi .pcard + .pcard { margin-left: calc(var(--cw) * -.55); }
.hand-group { display: grid; justify-items: center; gap: 4px; padding: 4px; border-radius: 10px; transition: background-color .2s, box-shadow .2s; }
.hand-group.active { background: rgba(255, 255, 255, .1); box-shadow: 0 0 0 2px #e9c46a; }
.hand-tag { display: flex; align-items: center; gap: 6px; font-size: .78rem; color: #e8f2ea; }
.hand-tag b { color: #fff; font-size: .9rem; }
.hand-tag .res { padding: 1px 7px; border-radius: 6px; font-weight: 600; background: rgba(0, 0, 0, .25); }
.hand-tag .res.win, .hand-tag .res.blackjack { background: #e9c46a; color: #1b2233; }
.bj-arc { width: min(100%, 480px); height: auto; margin: -2px 0 -8px; }
.bj-arc .arc-big { fill: #e9c46a; font: 700 22px var(--font-display); letter-spacing: .14em; opacity: .9; }
.bj-arc .arc-small { fill: #d9e9de; font: 600 11px var(--font-body); letter-spacing: .2em; opacity: .7; }
.bj-msg { text-align: center; font-family: var(--font-display); font-size: 1rem; color: #ffe9b8; min-height: 1.5em; max-width: 46ch; }
.bj-spot { width: 70px; height: 70px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .55); display: grid; place-items: center; margin-top: 4px; position: relative; }
.bj-spot::after { content: "BET"; position: absolute; bottom: -18px; font: 600 10px var(--font-body); letter-spacing: .2em; color: rgba(255, 255, 255, .6); }
.chip-stack { position: relative; width: 44px; height: 44px; }
.chip-stack i { position: absolute; left: 0; width: 44px; height: 14px; border-radius: 50%; background: var(--c); box-shadow: inset 0 -2px 0 rgba(0, 0, 0, .35), inset 0 0 0 2px rgba(255, 255, 255, .55); }
.chip-stack b { position: absolute; left: calc(100% + 24px); top: 14px; font: 700 .8rem var(--font-display); color: #fff; white-space: nowrap; }

/* Playing cards */
.pcard { position: relative; width: var(--cw, 76px); height: var(--ch, 106px); border-radius: 8px; background: linear-gradient(180deg, #fffefb, #f6f1e6); box-shadow: 0 1px 0 rgba(0, 0, 0, .2), 0 6px 14px rgba(0, 0, 0, .3), inset 0 0 0 1px rgba(0, 0, 0, .08); font-family: var(--font-display); font-weight: 650; flex: none; }
.pcard.red { color: #c0303f; } .pcard.black { color: #1b2233; }
.pcard .corner { position: absolute; left: 5px; top: 4px; font-size: .82rem; line-height: .95; text-align: center; }
.pcard .corner.flip { left: auto; top: auto; right: 5px; bottom: 4px; transform: rotate(180deg); }
.pcard .pip { position: absolute; transform: translate(-50%, -50%); font-size: 1rem; line-height: 1; }
.pcard .pip.down { transform: translate(-50%, -50%) rotate(180deg); }
.pcard .pip.ace { font-size: 2.4rem; }
.pcard .face { position: absolute; inset: 15% 17%; border-radius: 4px; border: 1.5px solid currentColor; background: linear-gradient(160deg, #fbf3df, #f1e2bf); display: grid; place-items: center; align-content: center; gap: 0; }
.pcard .face b { font-size: 1.7rem; line-height: 1; }
.pcard .face span { font-size: 1.05rem; line-height: 1; }
.pcard.back { background: #0f1e33; box-shadow: inset 0 0 0 4px #fffdf8, inset 0 0 0 6px #c0303f, 0 6px 14px rgba(0, 0, 0, .3); display: grid; place-items: center; color: #e0414f; font-size: .9rem; letter-spacing: .08em; }
.pcard.back::before { content: ""; position: absolute; inset: 9px; border-radius: 4px; background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .06) 0 4px, transparent 4px 8px), repeating-linear-gradient(-45deg, rgba(255, 255, 255, .06) 0 4px, transparent 4px 8px); }
.pcard.back span { position: relative; }
.pcard.deal { animation: deal .45s var(--ease-out) both; }
#bj-player .pcard.deal { animation-name: deal-player; }
@keyframes deal { from { opacity: 0; transform: translate(220px, -40px) rotate(18deg); } }
@keyframes deal-player { from { opacity: 0; transform: translate(220px, -220px) rotate(18deg); } }
.modal-table { width: min(1100px, calc(100vw - 24px)); }
.modal-table .modal-body { display: grid; gap: 16px; padding: 18px; }
.bj-side { display: grid; gap: 12px; align-content: start; }
@media (min-width: 900px) {
  .modal-table .modal-body { grid-template-columns: minmax(0, 1fr) 236px; align-items: start; }
  .bj-side .bj-chips { display: grid; grid-template-columns: repeat(4, 1fr); justify-items: center; }
  .bj-side .bj-chips .chip-all { grid-column: span 2; justify-self: stretch; height: 40px; }
  .bj-side .bj-chips #bj-clear { grid-column: span 2; justify-self: stretch; }
  .bj-side .bj-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .bj-side .bj-actions #bj-deal { grid-column: span 2; }
  .bj-side .bj-actions .btn { justify-content: center; }
  .bj-wallet { padding-bottom: 12px; border-bottom: 1px solid var(--hairline); }
}
.bj-wallet { display: flex; align-items: center; gap: 8px; color: var(--ink-2); }
.bj-wallet b { color: var(--ink); font-family: var(--font-display); font-size: 1.15rem; }
.bj-sep { width: 1px; height: 16px; background: var(--hairline-strong); margin: 0 6px; }
.bj-chips, .bj-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chip { --c: #c0303f; width: 54px; height: 54px; border-radius: 50%; border: 0; cursor: pointer; font-family: var(--font-display); font-weight: 700; font-size: .85rem; color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .35); background: radial-gradient(circle, var(--c) 0 50%, rgba(255, 255, 255, .9) 51% 54%, var(--c) 55% 64%, transparent 65%), repeating-conic-gradient(from 8deg, #fff 0 16deg, var(--c) 16deg 60deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .25), 0 4px 8px rgba(0, 0, 0, .15); transition: transform .12s; }
.chip[data-chip="25"] { --c: #1d6b3c; }
.chip[data-chip="100"] { --c: #1b2233; }
.chip[data-chip="500"] { --c: #6b3fa0; }
.chip.chip-all { width: auto; padding: 0 14px; border-radius: 26px; background: var(--accent); color: var(--on-accent); box-shadow: 0 2px 0 rgba(0, 0, 0, .2); }
.chip:active { transform: translateY(1px); }
.chip:disabled, .bj-actions .btn:disabled { opacity: .4; cursor: not-allowed; }
.bj-broke { padding: 12px 14px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--ink); font-size: .93rem; }
.bj-rules { color: var(--ink-3); font-size: .85rem; line-height: 1.5; }
@media (max-width: 600px) { .bj-felt { --ch: 78px; --cw: 55px; } .pcard .pip { font-size: .75rem; } .pcard .pip.ace { font-size: 1.7rem; } .pcard .corner { font-size: .7rem; } .pcard .face b { font-size: 1.2rem; } .chip { width: 42px; height: 42px; font-size: .78rem; } .bj-chips, .bj-actions { gap: 6px; } .bj-tray { display: none; } .modal-table .modal-body { padding: 12px; }
  .bj-props { position: absolute; inset: 10px 14px auto; width: auto; }
  .bj-felt { padding-top: 14px; border-radius: 14px 14px 40% 40% / 14px 14px 18% 18%; }
  .bj-side .bj-actions { display: grid; grid-template-columns: repeat(4, 1fr); }
  .bj-side .bj-actions .btn { padding: 0 4px; justify-content: center; }
  .bj-side .bj-actions #bj-deal { grid-column: span 4; } }
@media (max-width: 600px) and (max-height: 760px) { .bj-felt { --ch: 66px; --cw: 47px; } .pcard .pip { font-size: .62rem; } .pcard .face b { font-size: 1rem; } .bj-arc { display: none; } .bj-felt { padding-bottom: 24px; } .bj-spot { width: 58px; height: 58px; } }

.post-figure { margin: 32px 0 0; }
.post-figure img { width: 100%; height: auto; border-radius: var(--r-lg); box-shadow: var(--shadow-2); }
.post-figure figcaption { margin-top: 10px; font-size: .88rem; color: var(--ink-3); }
.post-figure figcaption a { color: inherit; }
.post-note { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--hairline); font-size: .92rem; color: var(--ink-3); }
.post-note a { color: inherit; }

/* Play: Agora market */
.pixel-preview { image-rendering: pixelated; image-rendering: crisp-edges; width: 64px; height: 80px; }
.pixel-preview.big { width: 200px; height: 100px; }
.shop-top { display: flex; gap: 20px; align-items: center; margin-bottom: 18px; }
.shop-stage { flex: none; border-radius: var(--r-lg); background: radial-gradient(120% 100% at 50% 20%, #c9dca0 0%, #a9c46a 100%); padding: 10px 14px; box-shadow: inset 0 0 0 2px #2a2f3d; }
.shop-wallet { display: flex; align-items: center; gap: 8px; font-size: 1rem; color: var(--ink-2); }
.shop-wallet b { color: var(--ink); font-family: var(--font-display); font-size: 1.3rem; }
.shop-note { margin-top: 6px; color: var(--ink-3); font-size: .9rem; max-width: 48ch; }
.shop-group + .shop-group { margin-top: 18px; }
.shop-group h3 { font-size: .95rem; margin-bottom: 10px; color: var(--ink-2); }
.shop-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.shop-item { display: grid; grid-template-columns: 64px minmax(0, 1fr); grid-template-rows: auto auto; gap: 4px 14px; align-items: center; padding: 12px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid transparent; transition: border-color .15s, background-color .15s; }
.shop-item:hover { border-color: var(--hairline-strong); }
.shop-item.on { background: var(--accent-soft); border-color: var(--accent); }
.shop-item .pixel-preview { grid-row: span 2; background: #c9dca0; border-radius: 8px; }
.shop-info h4 { font-family: var(--font-display); font-size: 1rem; font-weight: 620; margin: 0; }
.shop-info p { font-size: .85rem; color: var(--ink-2); margin: 2px 0 0; }
.shop-buy { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.shop-buy .price { display: inline-flex; align-items: center; gap: 6px; font-weight: 650; }
@media (max-width: 600px) { .shop-grid { grid-template-columns: 1fr; } .shop-top { flex-direction: column; align-items: flex-start; } }

/* Monte Carlo explainer */
.mc-explain { border-top: 1px solid var(--hairline); padding-top: 12px; margin-top: 4px; }
.mc-explain summary { cursor: pointer; font-weight: 600; font-size: .95rem; color: var(--ink); list-style: none; display: inline-flex; align-items: center; gap: 8px; }
.mc-explain summary::-webkit-details-marker { display: none; }
.mc-explain summary::before { content: "+"; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--hairline-strong); font-size: .85rem; transition: transform .2s var(--ease-out); }
.mc-explain[open] summary::before { content: "\2212"; }
.mc-explain-body { display: grid; gap: 10px; margin-top: 12px; max-width: 72ch; }
.mc-explain-body p { font-size: .95rem; color: var(--ink-2); }
.mc-explain-body b { color: var(--ink); }
.mc-key { font-weight: 600; padding: 0 4px; border-radius: 4px; }
.mc-key.orange { color: var(--accent-ink); background: var(--accent-soft); }
.mc-key.grey { color: var(--ink-2); background: var(--surface-2); }
.mc-key.red { color: var(--tint-rose-ink); background: var(--tint-rose); }

/* Blog index: post card with thumbnail */
.posts a.has-thumb { grid-template-columns: 220px minmax(0, 1fr); grid-template-rows: auto auto 1fr; align-items: start; }
.posts a.has-thumb .post-thumb { grid-row: 1 / 4; width: 100%; height: 100%; min-height: 130px; object-fit: cover; border-radius: var(--r-md); }
.posts a.has-thumb time, .posts a.has-thumb h2, .posts a.has-thumb p { grid-column: 2; }
@media (max-width: 600px) { .posts a.has-thumb { grid-template-columns: 1fr; } .posts a.has-thumb .post-thumb { grid-row: auto; height: auto; aspect-ratio: 16 / 9; } .posts a.has-thumb time, .posts a.has-thumb h2, .posts a.has-thumb p { grid-column: 1; } }

/* ---------- Machine Room: menu tab and factory-settings notice ---------- */
.nav-machine a { color: var(--ink-2); }
.nav-machine a[aria-current="true"] { color: var(--ink); }
@media (max-width: 1180px) { .machine-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
.factory-note { position: fixed; left: 16px; bottom: 16px; z-index: var(--z-toast); display: inline-flex; align-items: center; gap: 9px; max-width: calc(100vw - 32px); padding: 9px 14px 9px 12px; border-radius: 10px; background: #1a1d22; color: #e8ebf0; font: 500 .82rem/1.3 var(--font-mono); text-decoration: none; box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 8px 24px rgba(0, 0, 0, .28); }
.factory-note:hover { background: #23272e; }
.factory-note .led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #ffb547; box-shadow: 0 0 0 3px rgba(255, 181, 71, .18); animation: led 1.6s ease-in-out infinite; }
@keyframes led { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .factory-note .led { animation: none; } }

/* ---------- Hannah Mode: scarlet and gold, a house banner, house points, wand sparks ---------- */
:root.hannah-mode { --band-sky: #fbe9e6; --band-mist: #fdf3df; --band-butter: #fbeede; --band-peach: #f9e4e1; --band-mint: #fcf1d8; --portrait-block: #e0b44c; }
@media (prefers-color-scheme: dark) { :root.hannah-mode:not([data-theme="light"]) { --band-sky: #2a1316; --band-mist: #241c10; --band-butter: #261d10; --band-peach: #2a1416; --band-mint: #241d0f; --portrait-block: #6e1b26; } }
:root.hannah-mode[data-theme="dark"] { --band-sky: #2a1316; --band-mist: #241c10; --band-butter: #261d10; --band-peach: #2a1416; --band-mint: #241d0f; --portrait-block: #6e1b26; --accent: #e0b44c; --accent-ink: #e8c264; --accent-soft: #2a2310; --on-accent: #1a1404; }
:root.hannah-mode { --hairline: #e3c98f; --hairline-strong: #cfae6a; }
@media (prefers-color-scheme: dark) { :root.hannah-mode:not([data-theme="light"]) { --hairline: #4a3a1c; --hairline-strong: #6b5428; } }
:root.hannah-mode[data-theme="dark"] { --hairline: #4a3a1c; --hairline-strong: #6b5428; }
.hannah-mode .job-when, .hannah-mode .job-role, .hannah-mode .job-chev { color: #6b5636; }
@media (prefers-color-scheme: dark) { :root.hannah-mode:not([data-theme="light"]) .job-when, :root.hannah-mode:not([data-theme="light"]) .job-role, :root.hannah-mode:not([data-theme="light"]) .job-chev { color: #c9b68f; } }
.hannah-mode .btn-primary { background: #9b1b30; }
.hannah-mode .btn-primary:hover { background: #b3263a; }
.hannah-mode .footer-navy, .hannah-mode .band-navy { background: #3a0f17; }
.hm-banner { display: none; }
.hannah-mode .hm-banner { display: grid; place-items: center; position: absolute; z-index: 2; top: -18px; left: -30px; width: 78px; height: 120px; padding-bottom: 22px; background: linear-gradient(90deg, #7d1424, #b3263a 50%, #8e1a2b); clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 82%, 0 100%); box-shadow: inset 0 6px 0 #e0b44c; transform: rotate(-4deg); filter: drop-shadow(0 8px 12px rgba(0, 0, 0, .25)); }
.hm-banner svg { width: 52px; height: 52px; }
.house-points { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 12px 0 8px; margin-right: 8px; border-radius: var(--r-md); background: #7d1424; color: #f6e2a8; font: 600 .85rem var(--font-body); }
.house-points .hp-stripe { width: 14px; height: 18px; border-radius: 2px; background: repeating-linear-gradient(180deg, #b3263a 0 4px, #e0b44c 4px 8px); }
.hm-spark { position: fixed; z-index: 9999; width: 5px; height: 5px; border-radius: 50%; pointer-events: none; box-shadow: 0 0 6px currentColor; }
@media (max-width: 820px) { .hannah-mode .hm-banner { left: auto; right: -12px; top: -14px; width: 60px; height: 92px; } .hm-banner svg { width: 40px; height: 40px; } .house-points { margin-right: 4px; padding: 0 9px 0 6px; } }
/* Phones: the menu has to fit the wordmark, Blog, Play, the Machine Room tab, and the egg counter on one line. */
@media (max-width: 440px) {
  .nav-inner { gap: 6px; }
  .wordmark { font-size: .98rem; }
  .nav-links { gap: 0; }
  .nav-links a { padding: 0 7px; }
  .egg-btn { padding: 0 9px; }
  .house-points { display: none; }
}


/* While a homepage translation loads, keep the English text from flashing. */
.i18n-pending main, .i18n-pending .nav-links { visibility: hidden; }

/* ---------- Cursor birds: a custom arrow (so it can tilt) and the birds riding on it ---------- */
html.birds-on { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cg transform='translate(3 1)'%3E%3Cpath d='M3 2v17l4.5-4.2 3 6.7 2.5-1.1-3-6.6H16z' fill='white' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 6 3, auto; }
html.birds-heavy { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28'%3E%3Cg transform='translate(3 1) rotate(16 3 2)'%3E%3Cpath d='M3 2v17l4.5-4.2 3 6.7 2.5-1.1-3-6.6H16z' fill='white' stroke='black' stroke-width='1.3' stroke-linejoin='round'/%3E%3C/g%3E%3C/svg%3E") 6 3, auto; }
.cbirds { position: fixed; inset: 0; z-index: 2147483000; pointer-events: none; overflow: hidden; }
.cbird { position: absolute; left: 0; top: 0; width: 17px; height: 14px; will-change: transform; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .35)); }
.cbird svg { display: block; width: 100%; height: 100%; overflow: visible; }
.cbird .wing { transform-box: fill-box; transform-origin: 30% 60%; }
.cbird.flying .wing { animation: cbird-flap .14s steps(2) infinite; }
.cbird.flying .feet { display: none; }
@keyframes cbird-flap { 50% { transform: rotate(-40deg) scaleY(.6); } }
@media (prefers-reduced-motion: reduce) { .cbird.flying .wing { animation: none; } }
/* A small lock for projects whose code is in a private repository. */
.private-repo { display: inline-flex; align-items: center; gap: 5px; }
.private-repo .icon { width: 13px; height: 13px; }
/* Translated homepage: counters and the factory notice stay left to right inside Hebrew, and Ancient Greek gets a serif with full accent support. */
.egg-btn, .factory-note, .house-points { direction: ltr; unicode-bidi: isolate; }
html[lang="grc"] :is(main, .nav, footer) :is(h1, h2, h3, h4, p, li, a, span, button, dt, dd, b, strong, figcaption, summary) { font-family: "Noto Serif", "Gentium Plus", "GFS Didot", "Palatino Linotype", Palatino, "Times New Roman", serif; }
html[lang="grc"] .hero h1 { letter-spacing: -.01em; font-weight: 700; }
