/* Editorial shell and 2026 visual system. Page-specific interaction styles remain in styles.css. */
:root {
  --paper: #f3eee4;
  --paper-deep: #e9e1d3;
  --surface: #fbf8f1;
  --surface-strong: #fffdf8;
  --ink: #202823;
  --ink-soft: #59635d;
  --ink-faint: #7b847d;
  --rule: #d4cbbb;
  --forest: #235848;
  --forest-deep: #173e33;
  --clay: #b85238;
  --gold: #bd8b34;
  --bg-primary: var(--paper);
  --bg-secondary: var(--surface);
  --bg-tertiary: var(--paper-deep);
  --border: var(--rule);
  --border-bright: #bbae99;
  --text-primary: var(--ink);
  --text-secondary: var(--ink-soft);
  --text-muted: var(--ink-faint);
  --accent: var(--forest);
  --accent-dim: var(--forest-deep);
  --accent-glow: rgba(35, 88, 72, 0.15);
  --success: #237757;
  --warning: #a56b12;
  --danger: #a83d2d;
  --font-serif: "Newsreader", Georgia, serif;
  --font-sans: "Manrope", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --radius-sm: 0.35rem;
  --radius-md: 0.65rem;
  --radius-lg: 1rem;
}

html { background: var(--paper); }

body {
  display: block;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% 4%, rgba(255, 255, 255, 0.78), transparent 28rem),
    var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  line-height: 1.65;
}

::selection { color: var(--surface-strong); background: var(--forest); }

a { color: inherit; text-underline-offset: 0.2em; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid rgba(35, 88, 72, 0.35);
  outline-offset: 3px;
}

h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--font-serif); font-weight: 500; }

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(100% - 3rem, 1380px);
  min-height: 76px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(88, 76, 57, 0.27);
  background: rgba(243, 238, 228, 0.92);
  backdrop-filter: blur(14px);
}

.site-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.brand-monogram {
  display: grid;
  width: 2.15rem;
  height: 2.15rem;
  place-items: center;
  color: var(--surface-strong);
  background: var(--forest);
  border-radius: 50%;
  font: 600 0.67rem/1 var(--font-sans);
  letter-spacing: 0.08em;
}

.site-header .desktop-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-header .desktop-nav a {
  position: relative;
  padding: 0.65rem 0;
  color: var(--ink-soft);
  font-size: 0.79rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-header .desktop-nav a::after {
  position: absolute;
  right: 0;
  bottom: 0.35rem;
  left: 0;
  height: 1px;
  background: var(--forest);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 180ms ease;
}
.site-header .desktop-nav a:hover, .site-header .desktop-nav a[aria-current="page"] { color: var(--ink); }
.site-header .desktop-nav a:hover::after, .site-header .desktop-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  transform-origin: left;
}

.mobile-nav { display: none; }
.content { width: min(100% - 3rem, 1240px); max-width: none; margin: 0 auto; padding: 0; overflow: visible; }
.site-footer {
  display: flex;
  justify-content: space-between;
  width: min(100% - 3rem, 1380px);
  margin: 6rem auto 0;
  padding: 1.5rem 0 2.5rem;
  color: var(--ink-faint);
  border-top: 1px solid var(--rule);
  font-size: 0.75rem;
}
.site-footer nav { display: flex; gap: 1.25rem; }
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--forest); }

.btn, .btn-primary, .btn-secondary, .btn-ghost {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.1rem;
  border: 1px solid var(--forest);
  border-radius: 100px;
  font: 600 0.78rem/1 var(--font-sans);
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.btn-primary, .btn.btn-primary { color: #fffdf8; background: var(--forest); }
.btn-primary:hover, .btn.btn-primary:hover { color: #fff; background: var(--forest-deep); transform: translateY(-1px); }
.btn-secondary, .btn-ghost, .btn.btn-secondary { color: var(--forest); background: transparent; }
.btn-secondary:hover, .btn-ghost:hover, .btn.btn-secondary:hover { color: #fff; background: var(--forest); transform: translateY(-1px); }
.text-link { color: var(--forest); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.text-link span { display: inline-block; margin-left: 0.25rem; transition: transform 160ms ease; }
.text-link:hover span { transform: translateX(3px); }
.eyebrow, .section-label {
  color: var(--forest);
  font-family: var(--font-sans);
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.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;
}

/* Home */
.home { padding-top: clamp(3rem, 8vw, 7rem); }
.home-hero { padding-bottom: clamp(4rem, 9vw, 8rem); }
.home-kicker {
  display: flex;
  justify-content: space-between;
  margin-bottom: clamp(2.5rem, 6vw, 5rem);
  color: var(--ink-faint);
  font-size: 0.67rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.home-hero h1 {
  max-width: 1060px;
  font-size: clamp(3.8rem, 9vw, 8.2rem);
  line-height: 0.86;
  letter-spacing: -0.064em;
}
.home-hero h1 em { color: var(--forest); font-weight: 500; }
.home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.65fr);
  gap: 3rem;
  align-items: end;
  max-width: 930px;
  margin: clamp(2.8rem, 6vw, 5rem) 0 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.home-intro > p { max-width: 650px; color: var(--ink-soft); font-size: clamp(1rem, 1.7vw, 1.25rem); }
.home-intro nav, .feature-links { display: flex; flex-wrap: wrap; gap: 0.85rem 1.25rem; align-items: center; }

.home-feature {
  position: relative;
  display: grid;
  grid-template-columns: 70px minmax(0, 0.9fr) minmax(360px, 1.1fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  margin-bottom: clamp(5rem, 10vw, 9rem);
  padding: clamp(2rem, 5vw, 4.5rem);
  color: #ecf2eb;
  background: var(--forest-deep);
  border-radius: 1px;
  overflow: hidden;
}
.feature-number { align-self: start; color: rgba(255,255,255,.45); font: 600 0.72rem var(--font-sans); }
.feature-copy { position: relative; z-index: 2; }
.feature-copy .eyebrow { color: #b7d1c5; }
.feature-copy h2 { margin: 0.8rem 0 1.25rem; color: #fffdf8; font-size: clamp(2.4rem, 5vw, 4.6rem); line-height: 0.96; letter-spacing: -0.045em; }
.feature-copy > p { max-width: 600px; color: #cbd8d2; }
.feature-links { margin-top: 2rem; }
.feature-copy .btn-primary { color: var(--forest-deep); background: #f8f1e5; border-color: #f8f1e5; }
.feature-copy .btn-secondary { color: #f8f1e5; border-color: rgba(255,255,255,.6); }
.feature-copy .text-link { color: #d9e8e1; }
.rummikub-still-life {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(54px, 78px));
  grid-template-rows: repeat(2, minmax(78px, 106px));
  gap: 0.75rem;
  justify-content: center;
  padding: 3rem 1rem 4rem;
}
.rummikub-still-life::before {
  position: absolute;
  inset: 11% 3% 6%;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  content: "";
  transform: rotate(-9deg);
}
.still-tile {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: currentColor;
  background: #f7f0e3;
  border-radius: 0.5rem;
  box-shadow: 0 12px 22px rgba(0,0,0,.2), inset 0 0 0 1px rgba(50,40,25,.14);
  font: 600 clamp(1.5rem, 3vw, 2.25rem) var(--font-serif);
}
.still-tile:nth-child(2) { transform: translateY(12px) rotate(2deg); }
.still-tile:nth-child(3) { transform: translateY(-7px) rotate(4deg); }
.still-tile:nth-child(4) { transform: rotate(-3deg); }
.still-tile:nth-child(5) { transform: translateY(8px) rotate(1deg); }
.still-tile:nth-child(6) { transform: translateY(-4px) rotate(-2deg); }
.still-red { color: #b74535; }.still-blue { color: #315f91; }.still-black { color: #252924; }.still-orange { color: #c37827; }
.rummikub-still-life small { position: absolute; right: 0; bottom: 0; left: 0; color: rgba(255,255,255,.55); font-size: 0.66rem; text-align: center; }

.home-work, .home-notes { margin-bottom: clamp(5rem, 10vw, 9rem); }
.home-section-heading {
  display: grid;
  grid-template-columns: 1fr minmax(260px, 0.55fr);
  gap: 3rem;
  align-items: end;
  margin-bottom: 2.2rem;
}
.home-section-heading h2 { margin-top: 0.45rem; font-size: clamp(2.5rem, 5vw, 4.6rem); line-height: 0.98; letter-spacing: -0.04em; }
.home-section-heading > p { color: var(--ink-soft); }
.editorial-projects { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--ink); }
.editorial-projects article { position: relative; min-height: 330px; padding: 1.4rem 1.5rem 1.5rem 0; border-right: 1px solid var(--rule); }
.editorial-projects article + article { padding-left: 1.5rem; }
.editorial-projects article:last-child { border-right: 0; }
.project-index { float: right; color: var(--ink-faint); font-size: 0.7rem; }
.project-type { color: var(--clay); font-size: 0.66rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.editorial-projects h3 { margin: 2.5rem 0 1rem; font: 500 clamp(1.7rem, 3vw, 2.5rem)/1 var(--font-serif); letter-spacing: -.025em; }
.editorial-projects h3 a { text-decoration: none; }
.editorial-projects article > p:not(.project-type) { color: var(--ink-soft); font-size: .9rem; }
.editorial-projects .text-link { position: absolute; bottom: 1.5rem; }
.note-list { border-top: 1px solid var(--ink); }
.note-list article { display: grid; grid-template-columns: 160px 1fr 2rem; gap: 2rem; align-items: start; padding: 1.5rem 0; border-bottom: 1px solid var(--rule); }
.note-list time { color: var(--ink-faint); font-size: .72rem; }
.note-list h3 { font: 500 1.45rem/1.1 var(--font-serif); }
.note-list h3 a { text-decoration: none; }
.note-list p { max-width: 750px; margin-top: .4rem; color: var(--ink-soft); font-size: .85rem; }
.note-list article > a { color: var(--forest); font-weight: 700; text-decoration: none; }
.home-signoff { padding: clamp(3rem, 7vw, 6rem) 0; text-align: center; border-top: 1px solid var(--rule); }
.home-signoff h2 { max-width: 750px; margin: .7rem auto 1.8rem; font-size: clamp(2.7rem, 6vw, 5.4rem); line-height: .98; letter-spacing: -.045em; }

/* Blog and basic content */
.content > h1, .post > h1 { margin: 5rem 0 2.5rem; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .9; letter-spacing: -.05em; }
.posts { max-width: 900px; border-top: 1px solid var(--ink); }
.posts li { padding: 1.5rem 0; background: transparent; border: 0; border-bottom: 1px solid var(--rule); border-radius: 0; }
.posts li:hover { background: transparent; border-color: var(--ink); transform: none; }
.posts li a { font: 500 1.5rem var(--font-serif); }
.posts li small, .summary { color: var(--ink-faint); }
.post { max-width: 820px; margin: 0 auto; }
.post .post-body { padding: 2.5rem 0; background: transparent; border: 0; }
.post .post-body p { color: var(--ink-soft); }
.post .post-body code, .post .post-body pre { color: var(--ink); background: #e7dfd1; border-color: var(--rule); }

/* Rummikub editorial pages */
.rummikub-guide, .rummikub-research, .rummikub-strategies, .rummikub-replay, .remarkable-gallery, .remarkable-replay { max-width: none; }
.rummikub-breadcrumb { padding-top: 2rem; color: var(--ink-faint); }
.rummikub-breadcrumb a:hover { color: var(--forest); }
.rummikub-hero, .research-hero, .strategy-hero, .replay-hero { min-height: auto; padding: clamp(4rem, 8vw, 7rem) 0; }
.rummikub-hero h1, .research-hero h1, .strategy-hero h1, .replay-hero h1 {
  font-family: var(--font-serif);
  font-size: clamp(3.4rem, 8vw, 7rem);
  font-weight: 500;
  line-height: .9;
  letter-spacing: -.055em;
}
.rummikub-lede, .strategy-hero > p:last-child, .research-hero > p { color: var(--ink-soft); }
.finding-callout, .strategy-card, .methodology, .research-translation, .strategy-primer, .strategy-profile, .strategy-glossary, .claim-card, .provenance-panel, .table-state, .replay-analysis, .replay-outcome {
  background: rgba(255,253,248,.64);
  border-color: var(--rule);
  box-shadow: none;
}
.strategy-card:hover, .strategy-profile:hover { transform: translateY(-2px); box-shadow: 0 12px 35px rgba(52,45,34,.07); }
.rummikub-section, .strategy-family, .research-section { border-color: var(--rule); }
.match-evidence-table th { color: var(--ink-faint); background: var(--paper-deep); }
.match-evidence-table td { color: var(--ink-soft); background: var(--surface); }
.evidence-caveat { color: var(--ink-soft); background: #eee4cf; border-color: #c8ad77; }
.evidence-caveat strong { color: var(--ink); }
.replay-table { background: #285b48; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.replay-meld { background: rgba(17,54,41,.42); border-color: rgba(255,255,255,.15); }
.replay-tile { box-shadow: 0 2px 5px rgba(0,0,0,.22); }
.replay-analysis, .replay-tail { color: var(--ink-soft); }
.replay-facts, .research-facts { background: rgba(255,253,248,.55); border-color: var(--rule); }
.replay-timeline li, .manifest-list > div { border-color: var(--rule); }

/* Remarkable game record book */
.remarkable-hero { padding: clamp(4rem, 9vw, 8rem) 0 3rem; }
.remarkable-hero h1 { max-width: 1050px; margin: .7rem 0 1.5rem; font-size: clamp(3.8rem, 9vw, 8rem); line-height: .86; letter-spacing: -.06em; }
.remarkable-hero h1 em { color: var(--clay); }
.remarkable-hero > p:last-child { max-width: 740px; margin-left: auto; color: var(--ink-soft); font-size: clamp(1rem, 1.8vw, 1.2rem); }
.remarkable-caveat { margin-bottom: 3rem; }
.record-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--ink); }
.record-card { position: relative; min-height: 440px; padding: 1.5rem 2.5rem 2rem 0; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.record-card:nth-child(even) { padding-right: 0; padding-left: 2.5rem; border-right: 0; }
.record-card-top { display: flex; justify-content: space-between; color: var(--ink-faint); font-size: .65rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.record-value { display: flex; align-items: baseline; gap: .7rem; margin: 2.7rem 0 1rem; color: var(--clay); }
.record-value strong { font: 500 clamp(4.5rem, 9vw, 8rem)/.75 var(--font-serif); letter-spacing: -.06em; }
.record-value span { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.record-card h2 { font-size: clamp(1.9rem, 3.4vw, 3rem); line-height: 1; }
.record-card > p:not(.record-value) { max-width: 560px; margin-top: .8rem; color: var(--ink-soft); }
.record-card .record-scope-note { padding-left: .75rem; color: #87642b !important; border-left: 2px solid #c49a52; font-size: .7rem; }
.record-card dl { display: flex; gap: 1.5rem; margin-top: 1.3rem; }
.record-card dt { color: var(--ink-faint); font-size: .62rem; text-transform: uppercase; }
.record-card dd { font-size: .78rem; font-weight: 600; }
.record-card > a { position: absolute; bottom: 2rem; color: var(--forest); font-size: .8rem; font-weight: 700; text-decoration: none; }
.record-card > a span { margin-left: .25rem; }
.record-method { display: grid; grid-template-columns: .8fr 1fr; gap: 3rem; align-items: start; margin-top: 5rem; padding: 3rem; color: #d3dfd9; background: var(--forest-deep); }
.record-method h2 { margin-top: .5rem; color: white; font-size: clamp(2.3rem, 4vw, 3.6rem); line-height: 1; }
.record-method > p { color: #c8d6d0; }
.record-method > a { grid-column: 2; color: white; font-size: .78rem; font-weight: 700; }

.remarkable-replay-hero { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: end; padding: 4rem 0 2.5rem; }
.remarkable-replay-hero h1 { margin: .5rem 0; font-size: clamp(3.5rem, 8vw, 7rem); line-height: .9; letter-spacing: -.055em; }
.remarkable-replay-hero > div > p:last-child { max-width: 720px; color: var(--ink-soft); }
.record-hero-value { display: flex; align-items: baseline; gap: .5rem; color: var(--clay); }
.record-hero-value strong { font: 500 clamp(4rem, 8vw, 7rem)/.8 var(--font-serif); letter-spacing: -.06em; }
.record-hero-value span { font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.replay-player { overflow: hidden; background: var(--surface); border: 1px solid var(--rule); }
.replay-player-header { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--rule); }
.replay-player-header h2 { margin-top: .25rem; font-size: clamp(1.4rem, 3vw, 2.2rem); line-height: 1; }
.verified-pill { padding: .45rem .7rem; color: var(--forest); background: #e2ece6; border-radius: 100px; font-size: .66rem; font-weight: 700; white-space: nowrap; }
.replay-stage { height: clamp(390px, 56vh, 620px); padding: 1rem; overflow: auto; background: #214f3e; overscroll-behavior: contain; }
.remarkable-table { min-height: 100%; align-content: center; margin: 0; padding: 1rem; border-radius: .35rem; }
.empty-table { width: 100%; color: rgba(255,255,255,.7); font: 500 1.1rem var(--font-serif); text-align: center; }
.replay-scrubber { display: grid; grid-template-columns: 42px 42px 1fr 42px 42px; gap: .6rem; align-items: center; padding: 1rem 1.5rem .4rem; }
.replay-scrubber button { width: 42px; height: 38px; color: var(--forest); background: transparent; border: 1px solid var(--rule); border-radius: 100px; cursor: pointer; }
.replay-scrubber button:hover:not(:disabled) { color: white; background: var(--forest); border-color: var(--forest); }
.replay-scrubber button:disabled { opacity: .3; cursor: default; }
.replay-scrubber label { display: block; }
.replay-scrubber input { width: 100%; accent-color: var(--forest); }
.replay-state-meta { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding: .4rem 1.5rem 1rem; color: var(--ink-faint); font-size: .72rem; }
.replay-state-meta p:last-child { margin-left: auto; }
.replay-racks { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--rule); }
.replay-racks > div { display: grid; grid-template-columns: 1fr auto; align-items: baseline; padding: .85rem 1rem; border-right: 1px solid var(--rule); }
.replay-racks > div:last-child { border-right: 0; }
.replay-racks > div.is-featured { background: #eee4cf; }
.replay-racks span { grid-column: 1 / -1; color: var(--ink-faint); font-size: .62rem; text-transform: uppercase; }
.replay-racks strong { font: 500 1.8rem var(--font-serif); }
.replay-racks small { color: var(--ink-faint); font-size: .65rem; }
.replay-provenance { display: grid; grid-template-columns: 1fr 1fr 1.2fr; gap: 2.5rem; margin: 2.5rem 0; padding: 2rem 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.replay-provenance ol { margin-top: .65rem; list-style: none; }
.replay-provenance li { display: flex; justify-content: space-between; gap: 1rem; padding: .3rem 0; color: var(--ink-soft); font-size: .72rem; border-bottom: 1px dotted var(--rule); }
.replay-provenance > div > p:last-child { margin-top: .65rem; color: var(--ink-soft); font-size: .72rem; overflow-wrap: anywhere; }

/* Legacy special pages within the new shell */
.mcp-page { min-height: 0 !important; margin-top: 2rem; background: transparent !important; }
.mcp-page > .container { max-width: 100% !important; }
.mcp-page [style*="background: rgba(31, 41, 55"] { background: rgba(255,253,248,.78) !important; border-color: var(--rule) !important; backdrop-filter: none !important; }
.mcp-page [style*="background: #111827"] { background: #e9e1d3 !important; border-color: var(--rule) !important; }
.mcp-page [style*="background: #1f2937"] { background: #ded5c6 !important; }
.mcp-page [style*="color: white"], .mcp-page [style*="color: #e5e7eb"] { color: var(--ink) !important; }
.mcp-page [style*="color: #d1d5db"], .mcp-page [style*="color: #9ca3af"], .mcp-page [style*="color: #6b7280"] { color: var(--ink-soft) !important; }
.mcp-page [style*="color: #60a5fa"], .mcp-page [style*="color: #10b981"] { color: var(--forest) !important; }
.mcp-page [style*="color: #fbbf24"] { color: #8b5a12 !important; }
.mom-page { padding-top: 4rem; }
.mom-page h1 { font-family: var(--font-serif); color: #a84a60; }
.mom-art { background: rgba(255,253,248,.6); border: 1px solid var(--rule); }

@media (max-width: 900px) {
  .site-header { width: min(100% - 2rem, 1380px); }
  .site-header .desktop-nav { gap: 1rem; }
  .site-header .desktop-nav a { font-size: .72rem; }
  .content, .site-footer { width: min(100% - 2rem, 1240px); }
  .home-intro, .home-section-heading { grid-template-columns: 1fr; gap: 1.25rem; }
  .home-feature { grid-template-columns: 40px 1fr; }
  .rummikub-still-life { grid-column: 2; }
  .record-method { grid-template-columns: 1fr; }
  .record-method > a { grid-column: auto; }
  .replay-state-meta p:last-child { width: 100%; margin-left: 0; }
}

@media (max-width: 680px) {
  body { overflow-x: hidden; }
  .site-header { min-height: 64px; }
  .site-header .desktop-nav { display: none; }
  .mobile-nav { position: relative; display: block; }
  .mobile-nav summary { display: flex; min-width: 76px; align-items: center; justify-content: center; gap: .55rem; padding: .5rem .7rem; color: var(--ink); background: transparent; border: 1px solid var(--rule); border-radius: 100px; font: 700 .7rem var(--font-sans); list-style: none; cursor: pointer; }
  .mobile-nav summary::-webkit-details-marker { display: none; }
  .mobile-nav summary i, .mobile-nav summary i::before { display: block; width: 13px; height: 1px; background: var(--ink); content: ""; transition: transform 160ms ease; }
  .mobile-nav summary i::before { transform: translateY(4px); }
  .mobile-nav[open] summary i { transform: rotate(45deg); }
  .mobile-nav[open] summary i::before { transform: rotate(90deg); }
  .mobile-nav[open] nav { position: absolute; top: calc(100% + .55rem); right: 0; display: flex; width: min(270px, calc(100vw - 2rem)); flex-direction: column; gap: 0; padding: .5rem; background: var(--surface-strong); border: 1px solid var(--rule); border-radius: .7rem; box-shadow: 0 18px 45px rgba(48,40,28,.15); }
  .mobile-nav nav a { padding: .75rem; color: var(--ink-soft); font-size: .8rem; text-decoration: none; border-bottom: 1px solid var(--rule); }
  .mobile-nav nav a:last-child { border-bottom: 0; }
  .content { padding: 0; overflow: visible; }
  .site-footer { flex-direction: column; gap: .75rem; margin-top: 4rem; }
  .site-brand { font-size: 1.02rem; }
  .brand-monogram { width: 1.9rem; height: 1.9rem; }
  .home { padding-top: 2.8rem; }
  .home-kicker { margin-bottom: 2.5rem; }
  .home-kicker span:last-child { display: none; }
  .home-hero h1 { font-size: clamp(3.25rem, 17vw, 5rem); }
  .home-intro { margin-top: 2.6rem; }
  .home-intro nav, .feature-links { align-items: stretch; flex-direction: column; }
  .home-intro .btn, .feature-links .btn { width: 100%; }
  .home-feature { display: block; margin-right: -1rem; margin-left: -1rem; padding: 2.2rem 1rem; }
  .feature-number { margin-bottom: 2rem; }
  .rummikub-still-life { grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(2, 76px); margin-top: 2rem; padding-bottom: 3.5rem; }
  .editorial-projects { grid-template-columns: 1fr; }
  .editorial-projects article, .editorial-projects article + article { min-height: 285px; padding: 1.4rem 0; border-right: 0; border-bottom: 1px solid var(--rule); }
  .note-list article { grid-template-columns: 1fr 1.5rem; gap: .6rem 1rem; }
  .note-list time { grid-column: 1 / -1; }
  .home-signoff { text-align: left; }
  .content > h1, .post > h1 { margin-top: 3.5rem; }
  .post .post-body { padding: 1.5rem 0; }
  .rummikub-breadcrumb { flex-wrap: wrap; padding-top: 1.25rem; font-size: .64rem; }
  .rummikub-hero, .research-hero, .strategy-hero, .replay-hero { padding: 3rem 0; }
  .rummikub-hero h1, .research-hero h1, .strategy-hero h1, .replay-hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
  .remarkable-hero { padding-top: 3rem; }
  .remarkable-hero h1 { font-size: clamp(3.25rem, 16vw, 5rem); }
  .record-grid { grid-template-columns: 1fr; }
  .record-card, .record-card:nth-child(even) { min-height: 400px; padding: 1.5rem 0 2rem; border-right: 0; }
  .record-value strong { font-size: 5rem; }
  .record-card dl { flex-wrap: wrap; }
  .record-method { margin-right: -1rem; margin-left: -1rem; padding: 2.2rem 1rem; }
  .remarkable-replay-hero { grid-template-columns: 1fr; gap: 1.5rem; padding-top: 3rem; }
  .remarkable-replay-hero h1 { font-size: clamp(3.2rem, 16vw, 5rem); }
  .record-hero-value { justify-self: start; }
  .replay-player-header { align-items: flex-start; flex-direction: column; }
  .replay-stage { height: min(56vh, 480px); min-height: 330px; padding: .5rem; }
  .remarkable-table { min-height: 100%; align-content: flex-start; padding: .5rem; }
  .remarkable-table .replay-meld { flex-shrink: 0; }
  .replay-scrubber { grid-template-columns: 38px 38px 1fr 38px 38px; gap: .3rem; padding: .8rem .6rem .3rem; }
  .replay-scrubber button { width: 38px; }
  .replay-state-meta { padding: .5rem .8rem .8rem; }
  .replay-racks { grid-template-columns: 1fr 1fr; }
  .replay-racks > div:nth-child(2) { border-right: 0; }
  .replay-racks > div:nth-child(-n+2) { border-bottom: 1px solid var(--rule); }
  .replay-provenance { grid-template-columns: 1fr; gap: 1.5rem; }
  .replay-footer { flex-direction: column-reverse; }
  .replay-footer .btn { width: 100%; }
}

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