/* Felt — feltpoker.uk marketing site.
   World: CHIP DRENCH. Poker's own colour system — chip red, green, gold, blue,
   ivory, black — as full-viewport matte fields. Edge-spot rings, chip-edge
   divider strips, stacked-chip graphics, poster-weight condensed display type.
   No felt textures, no card suits, no gradients-as-decoration. See /BRAND.md. */

@font-face {
  font-family: "Libre Franklin";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/libre-franklin-var.woff2") format("woff2");
}
@font-face {
  font-family: "Big Shoulders";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/big-shoulders-var.woff2") format("woff2");
}
@font-face {
  font-family: "Fragment Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/fragment-mono.woff2") format("woff2");
}

:root {
  /* Generated from @felt/design; run `bun run tokens` after changing it there. */
  /* @felt/design:begin marketing */
  --ink: #1a1611;
  --cream: #f6f1e6;
  --red: #bc2f21;
  --green: #0f6b41;
  --gold: #e8a020;
  --blue: #24549e;
  --black: #1b1917;
  --display: "Big Shoulders", "Libre Franklin", system-ui, sans-serif;
  --sans: "Libre Franklin", system-ui, sans-serif;
  --mono: "Fragment Mono", ui-monospace, monospace;
/* @felt/design:end */

  --measure: 66ch;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  caret-color: var(--red);
}

/* Each field owns the page while you're in it. Text colour follows the field. */
.field { --fg: var(--ink); --bg: var(--cream); --accent: var(--red);
  background: var(--bg); color: var(--fg); }
.field--red   { --bg: var(--red);   --fg: var(--cream); --accent: var(--cream); }
.field--green { --bg: var(--green); --fg: var(--cream); --accent: var(--gold); }
.field--gold  { --bg: var(--gold);  --fg: var(--ink);   --accent: var(--ink); }
.field--blue  { --bg: var(--blue);  --fg: var(--cream); --accent: var(--gold); }
.field--black { --bg: var(--black); --fg: var(--cream); --accent: var(--gold); }
.field--cream { --bg: var(--cream); --fg: var(--ink);   --accent: var(--red); }

::selection { background: var(--ink); color: var(--cream); }
.field--black ::selection, .field--red ::selection, .field--green ::selection,
.field--blue ::selection { background: var(--cream); color: var(--ink); }

:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; border-radius: 2px; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 2px;
  text-underline-offset: 0.22em; text-decoration-color: var(--accent); }
a:hover { text-decoration-thickness: 3px; }

strong { font-weight: 800; }
em { font-style: normal; font-weight: 700; }

/* Display voice: poster-weight condensed caps. */
h1, h2 {
  font-family: var(--display);
  font-weight: 850;
  text-transform: uppercase;
  line-height: 0.92;
  letter-spacing: 0.005em;
  text-wrap: balance;
}
h1 { font-size: clamp(3.4rem, 9.5vw, 6rem); }
h2 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h3 { font-weight: 800; font-size: 1.2rem; line-height: 1.25; letter-spacing: -0.01em; }

p { max-width: var(--measure); }
p + p { margin-top: 0.9em; }

.wrap { width: min(1160px, calc(100% - 2.5rem)); margin-inline: auto; }
@media (max-width: 640px) { .wrap { width: calc(100% - 2.25rem); } }

/* ---------- chip-edge divider: a chip seen from the side ---------- */

.chip-edge {
  height: 20px;
  background: repeating-linear-gradient(90deg,
    var(--edge-a, var(--cream)) 0 56px,
    var(--edge-b, var(--red)) 56px 112px);
}

/* ---------- header: sits inside the hero's red field ---------- */

.site-head { padding-top: 1.5rem; }
.site-head .wrap { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; }
.site-nav { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.site-nav a { font-weight: 700; font-size: 0.98rem; text-decoration: none; }
.site-nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.site-nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
@media (max-width: 560px) {
  .site-nav { gap: 1.05rem; margin-left: 0; }
  .site-nav .btn { margin-left: auto; }
}

/* the mark: table rail / rubber stamp, in the field's own ink */
.wordmark {
  display: inline-flex; align-items: center; justify-content: center;
  border: 3px solid currentColor;
  border-radius: 999px;
  padding: 0.3em 0.95em 0.36em;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.16em;
  text-decoration: none;
  color: inherit;
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 3.5px currentColor;
}
a.wordmark:hover { text-decoration: none; transform: rotate(-2deg); }

/* ---------- buttons ---------- */

.btn {
  display: inline-block;
  background: var(--fg);
  color: var(--bg);
  font-weight: 800;
  font-size: 1.02rem;
  padding: 0.78em 1.5em;
  border: 3px solid var(--fg);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}
.btn:hover { transform: rotate(-1.5deg) scale(1.03); }
.btn--ghost { background: transparent; color: inherit; }
.btn--sm { font-size: 0.9rem; padding: 0.55em 1.15em; border-width: 2.5px; }
.field--cream .btn { background: var(--red); border-color: var(--red); color: var(--cream); }
.field--cream .btn--ghost { background: transparent; color: var(--red); }

/* ---------- sections ---------- */

.section { padding-block: clamp(4.5rem, 9vw, 7.5rem); }
.section--tight { padding-block: clamp(3rem, 6vw, 5rem); }
.section-head { max-width: 56ch; margin-bottom: clamp(2.2rem, 4vw, 3.5rem); }
.section-head p { margin-top: 1.2rem; font-size: 1.1rem; }

/* ---------- hero ---------- */

.hero { padding-block: clamp(2.6rem, 6vw, 5rem) clamp(4rem, 8vw, 6.5rem); }
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}
@media (max-width: 900px) { .hero .wrap { grid-template-columns: 1fr; } }
.hero-copy p.lede { margin-top: 1.5rem; font-size: 1.22rem; line-height: 1.55; }
.hero-ctas { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; margin-top: 2.1rem; }
.hero-note { margin-top: 1.2rem; font-size: 0.92rem; max-width: 46ch; }

/* ---------- the chip clock: the product as a poker chip ---------- */

.chip-clock { display: block; width: min(440px, 86vw); margin-inline: auto; }
.chip-clock .spots { transform-origin: 50% 50%; animation: chip-spin 90s linear infinite; }
@keyframes chip-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .chip-clock .spots { animation: none; } }
.chip-clock .clock-time {
  font-family: var(--display);
  font-weight: 800;
  font-size: 96px;
  font-variant-numeric: tabular-nums;
}
.chip-clock .clock-level { font-family: var(--mono); font-size: 15px; letter-spacing: 0.22em; }
.chip-clock .clock-blinds { font-family: var(--display); font-weight: 600; font-size: 27px; letter-spacing: 0.04em; }
.chip-clock .clock-note { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; }

/* ---------- the sheet (live structure sheet, now a chip-card) ---------- */

.sheet {
  background: #fffdf6;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 14px;
  box-shadow: 0 3px 0 var(--ink), 0 14px 34px rgba(26, 22, 17, 0.18);
  overflow: hidden;
}
.sheet-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 1rem;
  padding: 0.95rem 1.2rem 0.8rem;
  border-bottom: 3px solid var(--ink);
  background: var(--gold);
}
.sheet-title { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; white-space: nowrap; }
.sheet-meta { font-family: var(--mono); font-size: 0.72rem; text-align: right; }
.sheet-foot {
  padding: 0.85rem 1.2rem;
  border-top: 3px solid var(--ink);
  font-size: 0.9rem;
  display: flex; gap: 0.6rem; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
}
.sheet-clock {
  font-family: var(--mono); font-size: 1.05rem; font-variant-numeric: tabular-nums;
  color: var(--red); white-space: nowrap; font-weight: 400;
}

/* ---------- ledger tables ---------- */

table { border-collapse: collapse; width: 100%; }
caption { text-align: left; }

.ledger { font-family: var(--mono); font-size: 0.8rem; font-variant-numeric: tabular-nums; }
.ledger th { text-align: left; font-weight: 400; padding: 0.6rem 1.15rem 0.45rem;
  border-bottom: 2px solid var(--ink); }
.ledger td { padding: 0.54rem 1.15rem; border-bottom: 1px solid rgba(26, 22, 17, 0.16); }
.ledger tr:last-child td { border-bottom: 0; }
.ledger .num, .ledger th.num { text-align: right; }
.ledger tr[data-now] td { background: var(--red); color: var(--cream); }
.ledger tr { transition: background-color 300ms ease-out; }
.ledger .muted { opacity: 0.55; }
.ledger .break-row td { background: repeating-linear-gradient(-45deg,
  transparent 0 7px, rgba(26, 22, 17, 0.08) 7px 14px); }

/* prose tables: chunky rules in the field's own ink */
.grid-table { font-size: 1rem; }
.grid-table th { text-align: left; font-weight: 800; padding: 0.75rem 1rem 0.6rem;
  border-bottom: 3px solid currentColor; }
.grid-table td { padding: 0.95rem 1rem; border-bottom: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); vertical-align: top; }
.grid-table td:first-child, .grid-table th:first-child { padding-left: 0; }
.grid-table td:last-child, .grid-table th:last-child { padding-right: 0; }
.grid-table .lead-cell { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.3rem; white-space: nowrap; letter-spacing: 0.01em; }
.table-scroll { overflow-x: auto; scrollbar-color: color-mix(in srgb, currentColor 40%, transparent) transparent; }
.table-scroll::-webkit-scrollbar { height: 8px; }
.table-scroll::-webkit-scrollbar-thumb { background: color-mix(in srgb, currentColor 40%, transparent); border-radius: 4px; }
.table-scroll > table { min-width: 640px; }

@media (max-width: 700px) {
  .table-scroll { overflow-x: visible; }
  .table-scroll > table.grid-table, .price-table { min-width: 0; }
  .grid-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .grid-table tbody, .grid-table tr, .grid-table td { display: block; }
  .grid-table tr { padding: 1.2rem 0; border-bottom: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); }
  .grid-table tr:first-child { border-top: 3px solid currentColor; }
  .grid-table tr:last-child { border-bottom: 3px solid currentColor; }
  .grid-table td { border: 0; padding: 0.3rem 0; }
  .grid-table .lead-cell { white-space: normal; padding-bottom: 0.4rem; font-size: 1.45rem; }
  .grid-table td[data-th]::before {
    content: attr(data-th);
    display: block;
    font-family: var(--mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 0.12rem;
  }
}

/* ---------- rubber stamps ---------- */

.stamp {
  display: inline-block;
  border: 3px solid var(--accent);
  border-radius: 6px;
  color: var(--accent);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  padding: 0.3em 0.7em;
  transform: rotate(-4deg);
  box-shadow: inset 0 0 0 2px var(--bg), inset 0 0 0 3.5px var(--accent);
}
.field--cream .stamp { mix-blend-mode: multiply; }
.stamp--big { font-size: clamp(2rem, 5vw, 3.4rem); padding: 0.32em 0.75em; border-width: 5px;
  box-shadow: inset 0 0 0 3px var(--bg), inset 0 0 0 5.5px var(--accent); border-radius: 10px; }
.stamp--in { opacity: 0; transform: rotate(-4deg) scale(1.7); }
.stamp--landed { opacity: 1; transform: rotate(-4deg) scale(1);
  transition: opacity 240ms cubic-bezier(0.16, 1, 0.3, 1), transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
@media (prefers-reduced-motion: reduce) { .stamp--in { opacity: 1; transform: rotate(-4deg); } }

/* ---------- the cinema (black-chip field) ---------- */

.cinema {
  border: 3px dashed color-mix(in srgb, var(--cream) 45%, transparent);
  border-radius: 18px;
  padding: clamp(1.6rem, 4vw, 3rem) clamp(1.2rem, 4vw, 3rem) clamp(1.4rem, 3vw, 2.2rem);
  text-align: center;
}
.cinema-level {
  font-family: var(--mono); font-size: clamp(0.85rem, 2vw, 1rem);
  letter-spacing: 0.22em;
  color: var(--gold);
  display: flex; align-items: center; justify-content: center; gap: 0.6em;
}
.live-dot { width: 0.6em; height: 0.6em; border-radius: 50%; background: var(--red); display: inline-block; }
@keyframes live-breathe { 50% { opacity: 0.35; } }
.live-dot { animation: live-breathe 2.4s ease-in-out infinite; }
.cinema-time {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(6rem, 19vw, 14rem);
  line-height: 0.9;
  font-variant-numeric: tabular-nums;
  margin-block: 0.03em 0.05em;
}
.cinema-blinds {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(1.8rem, 5.5vw, 3.4rem);
  letter-spacing: 0.03em;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.cinema-row {
  margin-top: clamp(1.4rem, 3vw, 2.2rem);
  padding-top: 1.2rem;
  border-top: 1.5px solid color-mix(in srgb, var(--cream) 30%, transparent);
  display: flex; justify-content: center; gap: clamp(1.4rem, 5vw, 3.5rem); flex-wrap: wrap;
  font-family: var(--mono); font-size: 0.78rem; font-variant-numeric: tabular-nums;
  color: color-mix(in srgb, var(--cream) 80%, var(--black));
}
.cinema-row b { display: block; font-family: var(--display); font-weight: 700; font-size: 1.7rem; color: var(--cream); margin-top: 0.18rem; letter-spacing: 0.02em; }
.baize-cols {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  margin-top: clamp(2.6rem, 5vw, 4rem);
}
@media (max-width: 820px) { .baize-cols { grid-template-columns: 1fr; } }
.baize-cols h3 { margin-bottom: 0.6rem; color: var(--gold); text-transform: uppercase; font-family: var(--display); font-size: 1.35rem; font-weight: 750; }
.baize-cols p { font-size: 0.99rem; }

/* ---------- chip stack: the five tiers as a stack of chips ---------- */

.chip-stack { list-style: none; display: grid; gap: 0.9rem; max-width: 620px; }
.chip-stack li {
  --chip: var(--cream); --chip-ink: var(--ink);
  background: var(--chip);
  color: var(--chip-ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 0.85rem 1.6rem;
  display: flex; align-items: baseline; gap: 1rem; flex-wrap: wrap;
  box-shadow: 0 4px 0 var(--ink);
}
.chip-stack .denom { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.35rem; white-space: nowrap; }
.chip-stack .who { font-size: 0.92rem; margin-left: auto; text-align: right; }
.chip-stack li:nth-child(1) { transform: rotate(-1deg); }
.chip-stack li:nth-child(2) { --chip: var(--red); --chip-ink: var(--cream); transform: rotate(0.8deg); }
.chip-stack li:nth-child(3) { --chip: var(--blue); --chip-ink: var(--cream); transform: rotate(-0.6deg); }
.chip-stack li:nth-child(4) { --chip: var(--gold); --chip-ink: var(--ink); transform: rotate(0.9deg); }
.chip-stack li:nth-child(5) { --chip: var(--black); --chip-ink: var(--cream); transform: rotate(-1.2deg); }

/* ---------- surfaces manifest ---------- */

.manifest { border-top: 3px solid currentColor; }
.manifest-row {
  display: grid;
  grid-template-columns: 3.4rem minmax(9rem, 15rem) 1fr auto;
  gap: 1.3rem;
  align-items: baseline;
  padding: 1.5rem 0;
  border-bottom: 1.5px solid color-mix(in srgb, currentColor 35%, transparent);
}
.manifest-row:last-child { border-bottom: 3px solid currentColor; }
.manifest-row svg { align-self: center; }
.manifest-row h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.5rem; }
.manifest-row h3 small { display: block; font-family: var(--sans); font-weight: 600; font-size: 0.82rem; text-transform: none; letter-spacing: 0; margin-top: 0.2rem; opacity: 0.85; }
.manifest-row p { font-size: 0.99rem; max-width: 56ch; }
.manifest-tag {
  font-family: var(--mono); font-size: 0.7rem; letter-spacing: 0.1em; white-space: nowrap;
  border: 2px solid currentColor; border-radius: 999px; padding: 0.3em 0.8em;
}
@media (max-width: 780px) {
  .manifest-row { grid-template-columns: 2.6rem 1fr; }
  .manifest-row p { grid-column: 2; }
  .manifest-tag { grid-column: 2; justify-self: start; }
}

/* ---------- topology tree ---------- */

.topology { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2.5rem, 5vw, 5rem); align-items: start; }
@media (max-width: 900px) { .topology { grid-template-columns: 1fr; } }
.tree { list-style: none; font-size: 1rem; }
.tree ul { list-style: none; margin-left: 1.05rem; border-left: 3px solid var(--gold); padding-left: 1.2rem; }
.tree li { padding-block: 0.34rem; }
.tree .node { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.2rem; letter-spacing: 0.02em; }
.tree .node-eg { font-family: var(--mono); font-size: 0.74rem; margin-left: 0.6em; opacity: 0.85; }

/* ---------- code ---------- */

pre {
  background: var(--black);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
  padding: 1.3rem 1.5rem;
  border-radius: 14px;
  border: 3px solid var(--ink);
  box-shadow: 0 4px 0 var(--ink);
  overflow-x: auto;
  scrollbar-color: color-mix(in srgb, var(--cream) 30%, var(--black)) transparent;
}
pre::-webkit-scrollbar { height: 8px; }
pre::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--cream) 30%, var(--black)); border-radius: 4px; }
pre .c { color: color-mix(in srgb, var(--cream) 62%, var(--black)); }
pre .g { color: var(--gold); }
code { font-family: var(--mono); font-size: 0.85em; }
p code, li code, td code { background: color-mix(in srgb, currentColor 12%, transparent); padding: 0.1em 0.4em; border-radius: 4px; }

/* ---------- pledge ---------- */

.pledge { text-align: center; }
.pledge h2 { margin-top: 1.8rem; }
.pledge p { margin-inline: auto; margin-top: 1.2rem; font-size: 1.1rem; }

/* ---------- footer ---------- */

.site-foot { padding-block: 2.6rem 3.2rem; }
.foot-grid { display: flex; gap: 2rem; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.foot-nav { display: flex; gap: 1.7rem; flex-wrap: wrap; }
.foot-nav a { font-size: 0.95rem; font-weight: 700; text-decoration: none; }
.foot-nav a:hover { text-decoration: underline; text-decoration-thickness: 3px; }
.foot-fine { margin-top: 1.7rem; font-size: 0.84rem; max-width: none; opacity: 0.85; }

/* ---------- pricing ---------- */

.price-table { min-width: 880px; }
.price-table th { vertical-align: bottom; }
.price-figure { font-family: var(--display); font-weight: 800; font-size: 2.6rem; white-space: nowrap; letter-spacing: 0.01em; }
.price-figure small { font-family: var(--sans); font-weight: 700; font-size: 0.85rem; letter-spacing: 0; }
.price-per { font-size: 0.85rem; opacity: 0.85; }

/* ---------- notes / definition rows ---------- */

.def-rows { border-top: 3px solid currentColor; }
.def-row { display: grid; grid-template-columns: minmax(10rem, 19rem) 1fr; gap: 1.5rem; padding: 1.35rem 0; border-bottom: 1.5px solid color-mix(in srgb, currentColor 35%, transparent); }
.def-row:last-child { border-bottom: 3px solid currentColor; }
.def-row h3 { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 1.4rem; }
.def-row p, .def-row li { font-size: 0.99rem; }
.def-row p { max-width: 60ch; }
@media (max-width: 700px) { .def-row { grid-template-columns: 1fr; gap: 0.45rem; } }

/* ---------- misc ---------- */

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.smallprint { font-size: 0.84rem; opacity: 0.8; }
.skip-link {
  position: absolute; left: -999px; top: 0.5rem; z-index: 10;
  background: var(--ink); color: var(--cream); padding: 0.5em 1em; border-radius: 999px;
}
.skip-link:focus { left: 0.5rem; }
