:root {
  --bg: #0b1110;
  --bg-soft: #121a18;
  --felt: #0f5a43;
  --felt-dark: #073a30;
  --rail: #211715;
  --rail-hi: #5d3630;
  --paper: #f5ead8;
  --ink: #f8efe0;
  --muted: #b9c8bd;
  --line: rgba(245, 234, 216, 0.2);
  --red: #b5403b;
  --gold: #cba04a;
  --focus: rgba(203, 160, 74, 0.72);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100svh;
  width: 100%;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 5px;
  border-radius: 999px;
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--ink);
  background: linear-gradient(to bottom, rgba(11, 17, 16, 0.88), rgba(11, 17, 16, 0));
}

.wordmark,
nav {
  display: flex;
  align-items: center;
  gap: 14px;
}

.wordmark {
  font-weight: 700;
}

.skip-link {
  position: fixed;
  left: 18px;
  top: 14px;
  z-index: 20;
  padding: 9px 12px;
  color: #171d19;
  background: var(--paper);
  border-radius: 999px;
  font-weight: 700;
  transform: translateY(-72px);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.mark {
  display: grid;
  width: 34px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(245, 234, 216, 0.35);
  border-radius: 50%;
  background: #15201d;
  color: var(--gold);
  font-size: 12px;
}

nav a {
  color: var(--muted);
  font-size: 14px;
}

nav a:hover {
  color: var(--ink);
}

#status,
#principles {
  scroll-margin-top: 96px;
}

.hero {
  position: relative;
  display: grid;
  max-width: 100vw;
  min-height: min(820px, calc(100svh - 36px));
  padding: 124px clamp(18px, 6vw, 72px) 92px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(155deg, rgba(13, 35, 30, 0.92), rgba(11, 17, 16, 0.5) 56%, rgba(11, 17, 16, 0.95)),
    linear-gradient(90deg, #0b1110, #141817 46%, #070c0b);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  background: linear-gradient(to top, var(--bg), rgba(11, 17, 16, 0));
  z-index: -1;
}

.table-scene {
  position: absolute;
  inset: 74px -9vw 20px auto;
  width: min(74vw, 980px);
  aspect-ratio: 1.55;
  transform: rotate(-5deg);
  opacity: 0.94;
  z-index: -1;
}

.rail,
.felt {
  position: absolute;
  inset: 0;
  border-radius: 50%;
}

.rail {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0) 28%),
    linear-gradient(160deg, var(--rail-hi), var(--rail) 56%, #120b0a);
  box-shadow: 0 44px 90px rgba(0, 0, 0, 0.44);
}

.felt {
  inset: 9%;
  background:
    repeating-linear-gradient(62deg, rgba(255, 255, 255, 0.025) 0 1px, rgba(255, 255, 255, 0) 1px 9px),
    linear-gradient(135deg, #16805b, var(--felt) 42%, var(--felt-dark));
  border: 1px solid rgba(245, 234, 216, 0.18);
  box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.36);
}

.seat {
  position: absolute;
  width: 7.5%;
  aspect-ratio: 1.8;
  border: 1px solid rgba(245, 234, 216, 0.2);
  border-radius: 999px;
  background: rgba(7, 20, 17, 0.72);
}

.seat-one { left: 13%; top: 27%; }
.seat-two { left: 33%; top: 10%; }
.seat-three { right: 22%; top: 15%; }
.seat-four { right: 10%; bottom: 29%; }
.seat-five { right: 39%; bottom: 12%; }
.seat-six { left: 16%; bottom: 26%; }

.board {
  position: absolute;
  left: 50%;
  top: 48%;
  display: flex;
  gap: clamp(4px, 0.8vw, 10px);
  transform: translate(-50%, -50%);
}

.card {
  display: grid;
  width: clamp(38px, 5vw, 72px);
  aspect-ratio: 0.72;
  place-items: center;
  border-radius: 7px;
  background: var(--paper);
  color: #1d2220;
  font: 700 clamp(18px, 2vw, 28px) Georgia, serif;
  box-shadow: 0 12px 18px rgba(0, 0, 0, 0.24);
}

.card.red {
  color: var(--red);
}

.card.back {
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.12) 25%, transparent 25% 50%, rgba(255, 255, 255, 0.12) 50% 75%, transparent 75%),
    #213c6a;
  background-size: 14px 14px;
}

.pot {
  position: absolute;
  left: 50%;
  top: 66%;
  display: flex;
  transform: translateX(-50%);
}

.pot span {
  width: clamp(18px, 2.2vw, 28px);
  aspect-ratio: 1;
  margin-left: -4px;
  border: 3px solid #efe1c0;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 7px 12px rgba(0, 0, 0, 0.25);
}

.pot span:nth-child(2) {
  background: var(--gold);
}

.pot span:nth-child(3) {
  background: #263f76;
}

.dealer {
  position: absolute;
  left: 32%;
  top: 55%;
  display: grid;
  width: clamp(24px, 3vw, 40px);
  aspect-ratio: 1;
  place-items: center;
  border-radius: 50%;
  background: var(--paper);
  color: #171d19;
  font-size: 12px;
  font-weight: 800;
}

.hero-copy {
  align-self: center;
  width: 100%;
  max-width: 640px;
  min-width: 0;
  margin-top: 20px;
}

.eyebrow,
.section-kicker {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  max-width: 10ch;
  margin-bottom: 20px;
  font-size: clamp(58px, 12vw, 132px);
  line-height: 0.88;
  letter-spacing: 0;
}

.lede {
  max-width: min(620px, 100%);
  color: #dce6dc;
  font-size: clamp(18px, 2.4vw, 27px);
  line-height: 1.34;
  overflow-wrap: break-word;
}

.signals {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
  max-width: 100%;
}

.signals span {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 9px 13px;
  color: var(--muted);
  background: rgba(9, 15, 14, 0.42);
  font-size: 14px;
  overflow-wrap: break-word;
}

.scroll-cue {
  position: absolute;
  left: clamp(18px, 6vw, 72px);
  bottom: 28px;
  color: var(--muted);
  font-size: 14px;
}

.scroll-cue:hover {
  color: var(--ink);
}

.status-band {
  display: grid;
  grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.2fr);
  gap: clamp(22px, 4vw, 64px);
  padding: 68px clamp(18px, 6vw, 72px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #111816;
}

.status-band > *,
.principles article {
  min-width: 0;
}

.status-band h2,
.principles h2 {
  margin-bottom: 12px;
  font-size: clamp(26px, 4vw, 46px);
  line-height: 1;
  overflow-wrap: break-word;
}

.status-band p,
.principles p {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
  overflow-wrap: break-word;
}

.principles {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  padding: 1px;
  background: var(--line);
}

.principles article {
  min-height: 270px;
  padding: clamp(28px, 4vw, 52px);
  background: var(--bg-soft);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 6vw, 72px);
  color: var(--muted);
  font-size: 14px;
  background: #080d0c;
}

@media (max-width: 820px) {
  .site-header {
    position: absolute;
  }

  nav {
    display: none;
  }

  .hero {
    display: block;
    min-height: 760px;
    padding: 98px 28px 92px;
  }

  .lede {
    max-width: 315px;
    font-size: 18px;
  }

  .signals {
    max-width: 315px;
  }

  .table-scene {
    inset: auto -24vw 30px auto;
    width: 118vw;
    opacity: 0.72;
  }

  .hero-copy {
    width: auto;
    max-width: none;
  }

  .status-band,
  .principles {
    grid-template-columns: 1fr;
  }

  .status-band h2,
  .status-band p,
  .principles p {
    max-width: 315px;
  }

  .principles article {
    min-height: auto;
  }

  footer {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .skip-link {
    transition: none;
  }
}
