/* NoahWhenToQuit — modern minimal, quiet slot-machine nods
   Soft near-white base, charcoal type, one deep-green accent.
   Motifs are thin geometric accents only — not neon, not felt lounge. */

:root {
  --bg: #f3ecdf;
  --bg-soft: #e9dfcf;
  --surface: #fffdf8;
  --surface-muted: #faf6ee;
  --ink: #1a1c1b;
  --ink-soft: #3d413f;
  --muted: #4e5451;
  --muted-soft: #4e5551;
  --line: #e3d5bf;
  --line-strong: #d2c0a2;

  /* Single restrained accent — deep green (quiet floor nod) */
  --accent: #1f5c48;
  --accent-hover: #174838;
  --accent-soft: rgba(31, 92, 72, 0.08);
  --accent-mid: rgba(31, 92, 72, 0.14);

  /* Sparse warm hint for motifs only (not a second brand color flood) */
  --motif: #a6843d;
  --motif-soft: rgba(166, 132, 61, 0.35);
  --gold: #c6a15a;
  --gold-deep: #a6843d;
  --cabinet: #3f3428;

  /* Responsible-play note — calm, not chip-red loud */
  --note: #4a3d36;
  --note-bg: #f3ebe6;
  --note-line: #e0d2c8;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(26, 28, 27, 0.04), 0 8px 24px rgba(26, 28, 27, 0.05);
  --shadow-hover: 0 2px 4px rgba(26, 28, 27, 0.05), 0 12px 28px rgba(26, 28, 27, 0.08);

  --font: "DM Sans", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --max: 720px;
  --wide: 1000px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink-soft);
  line-height: 1.65;
  font-size: 1.05rem;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--accent-hover); }

h1, h2, h3, h4 {
  font-family: var(--font);
  line-height: 1.22;
  font-weight: 650;
  letter-spacing: -0.025em;
  color: var(--ink);
}
h1 { font-size: clamp(1.85rem, 4.5vw, 2.65rem); margin: 0 0 0.75rem; font-weight: 700; }
h2 { font-size: clamp(1.3rem, 2.8vw, 1.65rem); margin: 0 0 1rem; }
h3 { font-size: 1.08rem; margin: 0 0 0.45rem; font-weight: 650; }
p { margin: 0 0 1rem; }
ul, ol { margin: 0 0 1.25rem; padding-left: 1.25rem; }
li { margin-bottom: 0.4rem; }
code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 5px;
  border: 1px solid var(--line);
  color: var(--ink);
}

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

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(12px);
  background: rgba(243, 236, 223, 0.92);
  border-bottom: 1px solid var(--line);
}
.site-header .inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.brand {
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--accent); }
.brand:hover { color: var(--ink); }
.nav { display: flex; flex-wrap: wrap; gap: 0.3rem 1.05rem; }
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-height: 44px;
  padding: 0.2rem 0.15rem;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after {
  content: "";
  display: block;
  height: 2px;
  margin-top: 3px;
  background: var(--accent);
  border-radius: 2px;
}

/* ——— Hero + sparse slot motif ——— */
.hero {
  padding: 3.25rem 0 2.5rem;
  border-bottom: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}
/* Two-column layout only on the homepage (reel present).
   Other heroes stay one column so the lead doesn't sit beside the title. */
.hero .wrap:has(.slot-motif) {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 860px) {
  .hero .wrap:has(.slot-motif) {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 2.5rem;
  }
  .hero-copy { max-width: 38rem; }
}

/* Thin geometric “reel window” accent — decorative only */
.slot-motif {
  display: none;
  width: 140px;
  flex-shrink: 0;
}
@media (min-width: 860px) {
  .slot-motif { display: block; }
}
.slot-motif svg {
  width: 100%;
  height: auto;
  opacity: 0.85;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.85rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border: 1px solid var(--accent-mid);
}
.lead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 36rem;
}
.cta-row { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.35rem; }

/* ——— Buttons (quiet, not shoppy) ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  min-height: 44px;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}
.btn-ghost {
  background: transparent;
  color: var(--ink-soft);
  border-color: var(--line-strong);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-soft);
}

/* ——— Sections ——— */
.section { padding: 2.5rem 0; }
.section + .section { border-top: 1px solid var(--line); }

/* Thin geometric divider with tiny BAR mark */
.section-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 0.25rem 0;
  color: var(--motif);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}
.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  max-width: 5rem;
  height: 1px;
  background: var(--line-strong);
}

.card-grid {
  display: grid;
  gap: 1rem;
}
.card-grid.two { grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .card-grid.two { grid-template-columns: 1fr 1fr; }
  .card-grid.three { grid-template-columns: repeat(3, 1fr); }
}

.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.2rem 1.25rem;
  box-shadow: var(--shadow);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.card h3 a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
.card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}
.card h3 a { color: var(--ink); text-decoration: none; }
.card h3 a:hover { color: var(--accent); }
.card p:last-child { margin-bottom: 0; color: var(--muted); }

.meta {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
}

.rg-box {
  background: var(--note-bg);
  border: 1px solid var(--note-line);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--note);
  font-size: 0.95rem;
}
.rg-box strong { color: var(--ink); }
.rg-box a { color: var(--ink); }
.rg-box a:hover { color: var(--accent); }

.soft-note {
  background: var(--accent-soft);
  border: 1px solid var(--accent-mid);
  border-radius: var(--radius);
  padding: 1rem 1.15rem;
  color: var(--muted);
}
.soft-note strong { color: var(--ink); }

.cta-band {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  padding: 1.65rem;
  text-align: left;
  box-shadow: var(--shadow);
}
.cta-band p { color: var(--muted); }

.disclosure-inline {
  margin-top: 1.4rem;
  font-size: 0.86rem;
  color: var(--muted-soft);
}

.prose { max-width: var(--max); }
.prose h2 { margin-top: 2rem; }
.prose .outline-block {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 1rem 1.15rem;
  margin: 1.2rem 0;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.prose .outline-block h3 {
  margin-top: 0;
  color: var(--accent);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.breadcrumb {
  font-size: 0.86rem;
  color: var(--muted);
  margin-bottom: 1.15rem;
}
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent); }

.table-wrap {
  overflow-x: auto;
  margin: 1rem 0 1.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}
th, td {
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
tr:last-child td { border-bottom: none; }
th {
  color: var(--accent);
  font-weight: 650;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-soft);
}
td { color: var(--muted); }
td strong { color: var(--ink); }

/* ——— Footer ——— */
.site-footer {
  margin-top: 1.5rem;
  padding: 2.25rem 0 2.75rem;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
  color: var(--muted);
  font-size: 0.9rem;
}
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }
.site-footer .social { display: flex; flex-wrap: wrap; gap: 0.35rem 1.1rem; margin: 0.75rem 0 0.25rem; }
.site-footer .social a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-legal {
  margin-top: 1.15rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  font-size: 0.8rem;
}
.footer-legal p { margin-bottom: 0.45rem; }

/* ——— Tags (simple pills, not poker chips) ——— */
.chip-row { display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 1.1rem 0 0; }
.chip {
  display: inline-block;
  padding: 0.28rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.76rem;
  font-weight: 500;
  color: var(--muted);
}

@media (max-width: 520px) {
  .site-header .inner { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 2.25rem; }
}

/* ——— Full-site utilities (approved light theme) ——— */
.text-muted { color: var(--muted); }
.text-ink { color: var(--ink); }
.lead.text-muted, p.lead { color: var(--muted); }

.video-embed {
  position: relative;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: var(--shadow);
  margin: 1.25rem 0 1.5rem;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.content-ready {
  margin-top: 1.5rem;
}
.content-ready > .outline-block:first-child { margin-top: 0; }

.status-pill {
  display: inline-block;
  margin: 0 0 1rem;
  padding: 0.25rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1rem;
}

/* Guide body — checklist rows */
.prose ul li.check {
  list-style: none;
  position: relative;
  padding-left: 0.15rem;
  margin-left: 0;
}
.prose ul li.check::before {
  content: "☐ ";
  color: var(--accent);
  font-weight: 600;
  margin-right: 0.25rem;
}
.prose h2 { margin-top: 2rem; }
.prose h3 { margin-top: 1.35rem; color: var(--ink); }

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 80;
  padding: 0.65rem 0.9rem;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus {
  transform: none;
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.prose, .lead, h1, h2, h3, p, li, td {
  overflow-wrap: break-word;
}
.placeholder-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.placeholder-list li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  margin-bottom: 0.65rem;
}
.placeholder-list strong { color: var(--ink); }
@media (max-width: 640px) {
  .wrap, .wrap-narrow { width: min(100% - 1.5rem, var(--wide)); }
  .site-header .inner { gap: 0.35rem; padding: 0.45rem 0 0.55rem; }
  .nav { width: 100%; gap: 0 0.15rem; }
  .nav a { font-size: 0.95rem; padding: 0.15rem 0.4rem; }
  .hero { padding: 1.75rem 0 1.6rem; }
  .section { padding: 1.85rem 0; }
  .card-grid { gap: 0.85rem; }
  h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
  .lead { font-size: 1.05rem; }
  .cta-row .btn { width: 100%; }
  table { min-width: 34rem; }
  .disclosure-inline { font-size: 0.95rem; }
}

/* Warmer cabinet atmosphere — quiet reels, not neon */
body {
  background-color: var(--bg);
  background-image:
    radial-gradient(ellipse 80% 42% at 110% -8%, rgba(198, 161, 90, 0.16), transparent 52%),
    radial-gradient(ellipse 45% 30% at -8% 8%, rgba(31, 92, 72, 0.06), transparent 50%);
}
.site-header::after {
  content: "";
  display: block;
  height: 4px;
  background: linear-gradient(90deg,
    var(--accent) 0 14%,
    var(--gold) 14% 16.5%,
    var(--accent) 16.5% 83.5%,
    var(--gold) 83.5% 86%,
    var(--accent) 86% 100%);
}
.hero {
  background-image:
    linear-gradient(180deg, rgba(198, 161, 90, 0.1), transparent 72%),
    repeating-linear-gradient(90deg,
      transparent 0 42px,
      rgba(63, 52, 40, 0.035) 42px 43px);
}
.card {
  border-top: 3px solid var(--gold);
  background: var(--surface);
}
.chip {
  border-color: rgba(166, 132, 61, 0.45);
  background: rgba(255, 253, 248, 0.85);
}
.brand span { color: var(--accent); }
.section-divider { color: var(--gold-deep); }
