/* Solid State Strategies: staging design system
   Cream paper + deep ink + rust (DIRT) + olive (BGT)
   Mobile-first. Color is never the only channel. */

:root {
  --paper: #F4EFE4;
  --paper-2: #EAE3D3;
  --paper-3: #DED5C2;
  --ink: #1B1814;
  --ink-soft: #3A342C;
  --muted: #5E574C;
  --line: #C8BDA8;
  --line-strong: #A89880;
  --rust: #7C3A22;
  --rust-mid: #A24E30;
  --rust-soft: #E8C4B4;
  --olive: #4A4E2C;
  --olive-mid: #6B7040;
  --olive-soft: #D5D4B8;
  --slate: #3A4548;
  --slate-soft: #C9D0D1;
  --focus: #7C3A22;
  --danger: #7A2A22;
  --ok: #2F4A32;
  --white: #FFFcf6;
  --shadow: 0 1px 2px rgba(27, 24, 20, 0.06), 0 8px 24px rgba(27, 24, 20, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --max: 72rem;
  --narrow: 42rem;
  --font-serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --font-sans: "Source Sans 3", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4.5rem;
  --step-0: 1.05rem;
  --step-1: 1.25rem;
  --step-2: 1.6rem;
  --step-3: 2.05rem;
  --step-4: 2.65rem;
  --step-5: 3.3rem;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--step-0);
  line-height: 1.55;
  min-height: 100vh;
}

img, svg { max-width: 100%; height: auto; }
a { color: var(--rust); text-underline-offset: 0.15em; }
a:hover { color: var(--ink); }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -4rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.5rem 0.85rem;
  z-index: 1000;
}
.skip-link:focus { top: 0.75rem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.5rem;
}

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 560;
  line-height: 1.18;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin: 0 0 0.7rem;
}
h1 { font-size: clamp(2rem, 5vw, var(--step-5)); }
h2 { font-size: clamp(1.55rem, 3.4vw, var(--step-3)); }
h3 { font-size: clamp(1.2rem, 2.2vw, var(--step-2)); }
h4 { font-size: 1.1rem; font-family: var(--font-sans); font-weight: 650; }

p { margin: 0 0 1rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.muted { color: var(--muted); }
.small { font-size: 0.92rem; }

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}
.wrap-narrow { width: min(100% - 2rem, var(--narrow)); margin-inline: auto; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(244, 239, 228, 0.92);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 50;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  min-height: 4rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
  font-weight: 650;
  letter-spacing: -0.02em;
}
.brand-mark { width: 32px; height: 32px; flex: 0 0 auto; }
.brand-name { font-family: var(--font-serif); font-size: 1.05rem; line-height: 1.15; }
.brand-name span { display: block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 360px) {
  .brand-name span { display: none; }
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: var(--radius-sm);
  color: var(--ink);
  cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

.site-nav {
  display: none;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0 0 1rem;
}
.site-nav.open { display: flex; flex: 1 0 100%; }
.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 0.65rem 0.4rem;
  border-radius: 6px;
  font-weight: 560;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--paper-2); color: var(--rust); }
.nav-cta {
  background: var(--ink) !important;
  color: var(--paper) !important;
  text-align: center;
  margin-top: 0.35rem;
}

@media (min-width: 960px) {
  .nav-toggle { display: none; }
  .header-inner { min-height: 4.4rem; }
  .site-nav {
    display: flex;
    flex: 0 1 auto;
    flex-direction: row;
    align-items: center;
    gap: 0.15rem;
    padding: 0;
  }
  .site-nav a { padding: 0.45rem 0.6rem; font-size: 0.95rem; }
  .nav-cta { margin-top: 0; margin-left: 0.4rem; padding-inline: 0.9rem !important; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 44px;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font: 600 1rem var(--font-sans);
  text-decoration: none;
  cursor: pointer;
}
.btn-primary { background: var(--ink); color: var(--paper); }
.btn-primary:hover { background: var(--ink-soft); color: var(--paper); }
.btn-dirt { background: var(--rust); color: #fff8f3; }
.btn-dirt:hover { background: #632d19; color: #fff8f3; }
.btn-bgt { background: var(--olive); color: #f7f6ea; }
.btn-bgt:hover { background: #383c20; color: #f7f6ea; }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: var(--paper-2); color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin: 1.1rem 0; }

/* Layout blocks */
.hero-visual { margin: 1.5rem 0 0; max-width: 52rem; }
.hero-visual img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
}

.hero {
  padding: 3rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1200px 400px at 10% -10%, rgba(124, 58, 34, 0.08), transparent 50%),
    radial-gradient(900px 360px at 100% 0%, rgba(74, 78, 44, 0.08), transparent 45%),
    var(--paper);
}
.section { padding: 3rem 0; }
.section + .section { border-top: 1px solid var(--line); }
.band-ink { background: var(--ink); color: var(--paper); }
.band-ink h2, .band-ink h3 { color: var(--paper); }
.band-ink .muted, .band-ink .eyebrow { color: #C9C0B0; }
.band-ink a { color: #F0C9B4; }
.band-2 { background: var(--paper-2); }

.grid-3, .grid-2, .grid-4 {
  display: grid;
  gap: 1rem;
}
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
.grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) {
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 960px) {
  .grid-3 { grid-template-columns: 1fr 1fr 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
}

.card {
  position: relative;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.92) 0%, var(--white) 48%, var(--paper) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 10px 28px rgba(27, 24, 20, 0.07),
    0 2px 6px rgba(27, 24, 20, 0.04);
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  pointer-events: none;
}
.card.dirt::before { background: var(--rust); }
.card.bgt::before { background: var(--olive); }
.card.sys::before { background: var(--slate); }
.card h3 { margin-top: 0.2rem; }
.card.lane-people { border-top: 4px solid var(--olive); }
.card.lane-decisions { border-top: 4px solid var(--rust); }
.card.lane-systems { border-top: 4px solid var(--slate); }
.card.dirt { border-top: 4px solid var(--rust); }
.card.bgt { border-top: 4px solid var(--olive); }
.card.sys { border-top: 4px solid var(--slate); }

.pill {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  color: var(--ink-soft);
}
.pill-soon { background: var(--paper-2); }
.pill-dirt { border-color: var(--rust); color: var(--rust); }
.pill-bgt { border-color: var(--olive); color: var(--olive); }

.note, .callout {
  border-left: 4px solid var(--rust);
  background: var(--paper-2);
  padding: 0.9rem 1rem;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin: 1.2rem 0;
}
.callout-olive { border-left-color: var(--olive); }
.callout-slate { border-left-color: var(--slate); }

.prose h2 { margin-top: 2rem; }
.prose ul, .prose ol { padding-left: 1.2rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.35rem; }

dl.pair { display: grid; gap: 0.75rem; }
dl.pair dt { font-family: var(--font-mono); font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
dl.pair dd { margin: 0.15rem 0 0; }

table.plain {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}
table.plain th, table.plain td {
  text-align: left;
  border-bottom: 1px solid var(--line);
  padding: 0.55rem 0.4rem;
  vertical-align: top;
}
table.plain th { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 550; }

.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 1rem; }
.crumbs a { color: var(--muted); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem 0 2rem;
  background: var(--paper-2);
  margin-top: 2rem;
}
.footer-grid {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 800px) {
  .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; }
}
.site-footer a { color: var(--ink-soft); text-decoration: none; }
.site-footer a:hover { color: var(--rust); text-decoration: underline; }
.site-footer h4 { margin-bottom: 0.45rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.28rem 0; }
.legal-row { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--muted); }

/* Forms */
label { display: block; font-weight: 620; margin-bottom: 0.3rem; }
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--ink);
  border-radius: var(--radius-sm);
  padding: 0.55rem 0.7rem;
  font: 1rem var(--font-sans);
  margin-bottom: 0.9rem;
}
textarea { min-height: 8rem; resize: vertical; }
.hp { position: absolute; left: -9999px; }

/* Diagrams */
.diagram {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 1.25rem 0;
}
.diagram figcaption { font-size: 0.88rem; color: var(--muted); margin-top: 0.55rem; }

/* Shop stubs */
.coming {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

/* DIRT tool */
.tool-shell { padding: 1.4rem 0 3rem; }
.tool-progress {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.2rem;
}
.tool-progress button {
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink-soft);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.35rem 0.7rem;
  font: 560 0.82rem var(--font-mono);
  letter-spacing: 0.04em;
  cursor: pointer;
}
.tool-progress button[aria-current="step"] {
  background: var(--ink);
  color: var(--paper);
  border-color: var(--ink);
}
.tool-progress button:disabled { opacity: 0.45; cursor: not-allowed; }

/* Tactile plate well (Empty leap): ceramic rim + paper field */
.plate-well {
  position: relative;
  margin: 1.1rem 0 1.4rem;
  padding: 0.7rem 0.7rem 0.85rem;
  border-radius: 32px;
  background:
    radial-gradient(ellipse 85% 70% at 50% 38%, rgba(255, 252, 246, 0.98) 0%, transparent 62%),
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 3px,
      rgba(27, 24, 20, 0.015) 3px,
      rgba(27, 24, 20, 0.015) 4px
    ),
    linear-gradient(165deg, var(--paper-2) 0%, var(--paper-3) 100%);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.55) inset,
    0 16px 36px rgba(27, 24, 20, 0.1),
    0 2px 0 rgba(27, 24, 20, 0.04);
}
.plate-well::before {
  content: "";
  position: absolute;
  inset: 0.35rem;
  border-radius: 26px;
  border: 1px solid color-mix(in srgb, var(--line-strong) 55%, transparent);
  pointer-events: none;
}
.plate-count-line {
  position: relative;
  z-index: 1;
  margin: 0.15rem 0.55rem 0.55rem;
}
.plate-box {
  position: relative;
  z-index: 1;
  background:
    radial-gradient(ellipse 78% 68% at 50% 42%, #FFFEF8 0%, var(--paper) 58%, var(--paper-2) 100%);
  border: 3px solid color-mix(in srgb, var(--line-strong) 72%, var(--rust) 28%);
  box-shadow:
    inset 0 2px 0 rgba(255, 255, 255, 0.72),
    inset 0 -10px 22px rgba(27, 24, 20, 0.05),
    0 10px 22px rgba(27, 24, 20, 0.1),
    0 2px 0 rgba(27, 24, 20, 0.05);
  border-radius: 50% / 44%;
  min-height: min(52vw, 22rem);
  padding: 1.65rem 1.45rem 1.75rem;
}
@media (max-width: 640px) {
  .plate-well {
    margin: 0.95rem -0.15rem 1.25rem;
    padding: 0.55rem;
    border-radius: 24px;
  }
  .plate-box {
    border-radius: 22px;
    min-height: 16.5rem;
    padding: 1.15rem 1rem 1.25rem;
  }
}
.plate-step .plate-helper {
  margin: 0 0 0.7rem;
  font-size: 1.08rem;
  color: var(--ink-soft);
}
.plate-step .tag-hint { margin: 0.2rem 0 0.75rem; }
.plate-step h1 { margin-bottom: 0.35rem; }
.plate-empty-msg { text-align: center; margin: 2.8rem 0.5rem; font-size: 1.02rem; }

/* Item chips read as blank cards with edge + soft thickness */
.item-chip {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.6rem;
  background:
    linear-gradient(180deg, #FFFEF9 0%, var(--paper) 72%, var(--paper-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  margin-bottom: 0.5rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 1px 0 rgba(27, 24, 20, 0.04),
    0 6px 14px rgba(27, 24, 20, 0.08),
    2px 3px 0 rgba(27, 24, 20, 0.05);
}
.item-chip .meta { font-size: 0.78rem; color: var(--muted); font-family: var(--font-mono); }
.item-chip .chip-full {
  font-family: var(--font-sans);
  color: var(--ink-soft);
  margin-top: 0.15rem;
  line-height: 1.35;
}
.item-chip-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex-shrink: 0;
}
@media (max-width: 560px) {
  .item-chip {
    flex-direction: column;
    align-items: stretch;
  }
  .item-chip-actions .btn { min-height: 40px; }
}

.classify-card {
  background:
    linear-gradient(180deg, #FFFEF9 0%, var(--white) 45%, var(--paper) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.3rem;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 10px 26px rgba(27, 24, 20, 0.07),
    2px 3px 0 rgba(27, 24, 20, 0.04);
}
.choice-grid { display: grid; gap: 0.55rem; }
@media (min-width: 560px) { .choice-grid.cols-2 { grid-template-columns: 1fr 1fr; } }
.choice {
  border: 1px solid var(--line-strong);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.75rem 0.85rem;
  text-align: left;
  cursor: pointer;
  font: 560 1rem var(--font-sans);
  color: var(--ink);
}
.choice[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.scale { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.scale button {
  width: 44px; height: 44px;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--white);
  font-weight: 650;
  cursor: pointer;
}
.scale button[aria-pressed="true"] { background: var(--rust); color: #fff; border-color: var(--rust); }

.target-wrap {
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 2px,
      rgba(27, 24, 20, 0.012) 2px,
      rgba(27, 24, 20, 0.012) 3px
    ),
    linear-gradient(180deg, #FFFEF9 0%, var(--paper) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 0.75rem;
  overflow: auto;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 8px 22px rgba(27, 24, 20, 0.06);
}
.target-svg { width: 100%; max-width: 640px; height: auto; display: block; margin: 0 auto; }
.target-chip {
  cursor: pointer;
}
.target-chip:focus {
  outline: none;
}
.target-chip:focus-visible circle {
  stroke: #7C3A22;
  stroke-dasharray: 3 2;
}
.table-wrap { overflow-x: auto; }
.legend-row { display: flex; flex-wrap: wrap; gap: 0.8rem; font-size: 0.85rem; color: var(--muted); margin: 0.7rem 0; }

.view-toggle { display: flex; gap: 0.4rem; margin: 0.8rem 0; }
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0.6rem 0 1rem; }
.filter-bar select { width: auto; min-height: 44px; margin: 0; }

.sight { background: var(--paper-2); border-radius: var(--radius); padding: 1.1rem 1.2rem; margin: 0.7rem 0; }
.protocol-tabs { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.8rem 0; }
.protocol-tabs button {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  min-height: 44px;
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}
.protocol-tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); }

.privacy-banner {
  border: 1px solid var(--line-strong);
  background: var(--paper-2);
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  border: 0;
}

@media print {
  .site-header, .site-footer, .nav-toggle, .skip-link, .no-print { display: none !important; }
  body { background: white; }
  .card, .classify-card, .target-wrap { box-shadow: none; }
}

/* Revision 2 additions */
.outcome-line {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin: 0 0 1rem;
}
.draft-banner {
  border-left: 4px solid var(--line-strong);
  padding: 0.45rem 0.75rem;
  background: var(--paper-2);
}
.form-success {
  border: 2px solid var(--ok);
  background: #eef4ee;
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1.2rem;
}
.form-success:focus { outline: 3px solid var(--focus); outline-offset: 2px; }

.living-banner {
  border: 1px solid var(--line-strong);
  background: var(--white);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.living-banner .when { font-family: var(--font-mono); font-size: 0.82rem; color: var(--muted); }

.checkin-list { display: grid; gap: 0.55rem; margin: 0.8rem 0; }
.checkin-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.75rem;
}
.checkin-actions { display: flex; flex-wrap: wrap; gap: 0.35rem; }

.what-else {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin: 1rem 0;
  background: var(--paper-2);
}
.prompt-chips,
.tag-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.55rem 0;
}
.prompt-chips button,
.tag-chip {
  min-height: 44px;
  border: 2px solid color-mix(in srgb, var(--line-strong) 80%, var(--rust) 20%);
  background:
    radial-gradient(ellipse 120% 80% at 50% 20%, #FFFEF9 0%, var(--paper) 55%, var(--paper-2) 100%);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font: 560 0.92rem var(--font-sans);
  color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 2px 0 rgba(27, 24, 20, 0.06),
    0 5px 12px rgba(27, 24, 20, 0.08);
  transition: background-color 150ms ease, color 150ms ease, border-color 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.prompt-chips button[aria-pressed="true"],
.tag-chip[aria-pressed="true"] {
  background:
    radial-gradient(ellipse 120% 80% at 50% 25%, var(--ink-soft) 0%, var(--ink) 100%);
  color: var(--paper);
  border-color: var(--ink);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.12) inset,
    0 2px 0 rgba(27, 24, 20, 0.2),
    0 4px 10px rgba(27, 24, 20, 0.18);
}
.tag-chip:active {
  transform: translateY(1px) scale(0.98);
}
.tag-chip-more {
  border-style: dashed;
  font-weight: 650;
}
.tag-chip-more-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  flex-basis: 100%;
  width: 100%;
  margin-top: 0.15rem;
}
@media (max-width: 560px) {
  .tag-chip,
  .prompt-chips button {
    font-size: 0.88rem;
    padding: 0.4rem 0.7rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tag-chip { transition: none; }
  .tag-chip:active { transform: none; }
}

.dirt-dialog-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(27, 24, 20, 0.45);
  z-index: 80;
}
.dirt-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(36rem, calc(100vw - 2rem));
  max-height: calc(100vh - 2rem);
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  z-index: 90;
  box-shadow: var(--shadow);
}
.dirt-dialog h2 { margin-top: 0; }
.dirt-dialog textarea { min-height: 6rem; }
.archived-list { margin: 1rem 0; }
.archived-list li { margin: 0.35rem 0; }

.protocol-tabs [role="tab"] { font: 560 0.92rem var(--font-sans); }
.protocol-panel { margin-top: 0.8rem; }

.notice { font-size: 0.92rem; color: var(--ink-soft); }

@media (max-width: 720px) {
  .view-toggle .map-switch { font-weight: 650; }
}

@media (prefers-reduced-motion: reduce) {
  .dirt-dialog, .dirt-dialog-backdrop { transition: none; }
}

/* Revision 3: next moves, icons, PWA, habit */
.dirt-icon {
  width: 24px;
  height: 24px;
  vertical-align: middle;
  display: inline-block;
}
.icon-label { vertical-align: middle; }
.next-move-card h4 { display: flex; align-items: center; gap: 0.4rem; }
.move-builder {
  margin-top: 0.9rem;
  padding-top: 0.8rem;
  border-top: 1px dashed var(--line);
}
.moves-list { display: grid; gap: 0.75rem; margin: 1rem 0; }
.moves-empty {
  background: var(--paper-2);
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
  margin: 1rem 0;
}
.utility-bar { margin: 0.6rem 0 1rem; }
.utility-menu { margin-top: 0.7rem; }
.habit-panel { margin: 1.4rem 0; }
.habit-panel .choice[aria-pressed="true"] { background: var(--ink); color: var(--paper); }

.status-row { display: flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }

.install-hint {
  font-size: 0.92rem;
  color: var(--ink-soft);
}

#dirt-update-bar { margin-bottom: 1rem; }

.choice .dirt-icon { margin-right: 0.2rem; }

@media (max-width: 560px) {
  .move-builder .grid-2 { grid-template-columns: 1fr; }
}

/* BGT-0006: unsorted / empty map callout; keep existing callout look inside the target */
.target-wrap .target-empty-callout {
  margin: 0.25rem 0.25rem 0.85rem;
}

/* BGG game photos: self-hosted + required visible credit (Sean 2026-09-09).
   Never hotlink geekdo-static. Credit line must stay visible on mobile. */
.game-photo {
  margin: 1.2rem 0 1.6rem;
  max-width: 40rem;
}
.game-photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.game-photo figcaption {
  margin-top: 0.55rem;
}
.game-photo-credit {
  display: block;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--muted);
}
.game-photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 0.12em;
}
.game-photo[data-permission="omit"],
.game-photo[data-permission="pending"] {
  /* empty slot: keep layout when Claude copy includes a figure before assets clear */
  min-height: 0;
}
.game-photo[data-permission="pending"]:not(:has(img[src]:not([src=""]))) {
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  background: var(--paper-2);
}



/* Plate→Table motion vocabulary (progressive). No-JS: content fully visible.
   Only dim when html.js.has-motion will enhance; reduced-motion keeps content shown. */
html.js.has-motion [data-sss-reveal]:not(.sss-reveal-visible) {
  opacity: 0;
  transform: translateY(1.1rem);
}
html.js.has-motion [data-sss-reveal].sss-reveal-visible {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) {
  html.js.has-motion [data-sss-reveal],
  html.js.has-motion [data-sss-reveal]:not(.sss-reveal-visible) {
    opacity: 1 !important;
    transform: none !important;
  }
  [data-sss-parallax] {
    transform: none !important;
  }
}

/* ---- Depth slice: 4-layer tabletop parallax + glance labels ---- */
.hero-depth {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}
.hero-depth-stage {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.hero-depth .wrap,
.hero-depth .hero-depth-copy {
  position: relative;
  z-index: 50;
}
.depth-layer {
  position: absolute;
  will-change: transform, opacity;
}
.depth-layer img,
.depth-layer svg {
  display: block;
  width: 100%;
  height: auto;
}
.depth-l1 {
  inset: -8% -4% -4%;
  z-index: 1;
  opacity: 0.85;
}
.depth-l1 img,
.depth-l1 svg {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.depth-l2 {
  left: 4%;
  right: 4%;
  bottom: 0;
  top: auto;
  z-index: 12;
  max-width: 56rem;
  margin: 0 auto;
}
.depth-l3 {
  inset: 8% 6% auto;
  z-index: 30;
  max-width: 56rem;
  margin: 0 auto;
  opacity: 1; /* no-JS / RM: meaning visible */
}
.depth-l4 {
  z-index: 40;
  width: 4.5rem;
  opacity: 0.82;
}
.depth-l4.is-card { width: 3.6rem; }
.depth-accent-a { right: 4%; bottom: 12%; }
.depth-accent-b { left: 3%; top: 28%; }

.hero-visual {
  position: relative;
}
.hero-visual img,
.hero-visual picture img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow:
    0 14px 36px rgba(27, 24, 20, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.4) inset;
}
.hero-glance {
  margin: 0.65rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.4;
}
.hero-glance-note {
  margin: 0.25rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}
.hero-depth .hero-visual {
  margin-top: 1.35rem;
  max-width: 52rem;
}
/* When pieces live in depth stage, keep in-flow figure for no-JS/LCP as well */
.hero-depth.has-stage-pieces .hero-visual-inline {
  /* keep visible: image is the readable still; stage accents add motion */
}

.section-depth-deco {
  position: relative;
}
.section-depth-deco .depth-drift {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
  width: 3.2rem;
}
.section-depth-deco .wrap {
  position: relative;
  z-index: 1;
}
.depth-drift-token { right: 6%; top: 1.5rem; }
.depth-drift-card { left: 5%; bottom: 1rem; width: 2.6rem; }

html.js.has-motion [data-sss-depth] [data-depth="meaning"]:not(.sss-depth-static *) {
  /* meaning starts dimmed only when motion will scrub it in; set via GSAP */
}

.sss-depth-static [data-depth],
.sss-reduced-motion [data-depth] {
  transform: none !important;
  opacity: 1 !important;
}
.sss-depth-static .depth-l4,
.sss-reduced-motion .depth-l4 {
  opacity: 0.75 !important;
}

@media (max-width: 767px) {
  .depth-l4 { display: none; } /* accents off on phone to avoid clip */
  .depth-l1 {
    opacity: 0.82;
    inset: -6% 0 -2%;
  }
  .depth-l3 {
    inset: 0 0 auto;
    opacity: 0.9;
  }
  .section-depth-deco .depth-drift { display: none; }
  .hero-depth {
    padding-bottom: 0;
    overflow: hidden;
  }
  /* Full-bleed WINNER hero still on phone: escape .wrap */
  .hero-depth .hero-visual {
    margin: 1.1rem calc(50% - 50vw) 0;
    width: 100vw;
    max-width: 100vw;
  }
  .hero-depth .hero-visual img,
  .hero-depth .hero-visual picture img {
    border-radius: 0;
    border-left: none;
    border-right: none;
    border-color: color-mix(in srgb, var(--line-strong) 65%, var(--rust) 35%);
    box-shadow:
      0 18px 40px rgba(27, 24, 20, 0.16),
      0 1px 0 rgba(255, 255, 255, 0.28) inset;
  }
  .hero-depth .hero-glance,
  .hero-depth .hero-glance-note {
    padding-inline: max(1rem, calc(50vw - 50%));
  }
  .hero-glance {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }
  .hero.hero-depth {
    min-height: auto;
    padding-bottom: 1.25rem;
  }
  .grid-3 .card {
    padding: 1.15rem 1.15rem 1.25rem;
  }
}

/* RM soft-watch: depth layers static via CSS alone (no JS class required) */
@media (prefers-reduced-motion: reduce) {
  .depth-layer,
  [data-depth],
  [data-sss-drift],
  [data-sss-parallax],
  [data-sss-depth] [data-depth] {
    transform: none !important;
    animation: none !important;
    transition: none !important;
    will-change: auto !important;
  }
  [data-depth="meaning"],
  .depth-l3 {
    opacity: 1 !important;
  }
  .depth-l4 {
    opacity: 0.75 !important;
  }
  html.js.has-motion [data-sss-depth] [data-depth="meaning"] {
    opacity: 1 !important;
    transform: none !important;
  }
}
