/*
 * content.css — generated by scripts/gen-pages.ts. Do not edit.
 *
 * The token blocks below are lifted verbatim out of src/styles.css, so the pages
 * and the app cannot disagree about a colour. Everything after them is layout
 * for prose, and uses nothing but those tokens.
 */

:root {
/* Palette, taken off a real board: sisal, black beds, and the ring colours. */
  --felt: #0c1310; /* app background — near-black green */
  --surface: #16201c; /* raised panels */
  --surface-2: #1d2b25; /* pressed / selected */
  --ink: #f2f1ea; /* chalk on sisal */
  --ink-2: #93a099; /* secondary text */
  --wire: #2a3833; /* hairlines — the board's spider */
  --danger: #d8362a;

  /*
   * Bed colours. Physical properties of the board, so they are identical in
   * both themes — a treble 20 is red in a pub at midnight and at noon.
   */
  --bed-red: #d8362a;
  --bed-green: #1fa84e;
  --bed-cream: #e8dfc4;
  --bed-black: #1a1613;
  --bed-miss: #46534d;
  --on-red: #fff6f4;
  --on-green: #06180c;
  --on-cream: #16110c;
  --on-black: #e8dfc4;
  --on-miss: #d6ded9;
  /* The hairline round a chip. Flips with the theme so a cream chip still has an
     edge on a light background. */
  --chip-edge: rgb(255 255 255 / 18%);

  /* Type. System stacks only — the app has to work with no network. */
  --font-sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica,
    Arial, system-ui, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas,
    'Liberation Mono', monospace;

  /* Geometry */
  --radius: 14px;
  --radius-sm: 9px;
  --radius-pill: 999px;
  --space: 14px;
  --touch: 48px;
  --touch-primary: 56px;

  /* Motion */
  --dur-fast: 120ms;
  --dur: 180ms;
  --dur-slow: 220ms;
  --ease: cubic-bezier(0.2, 0, 0, 1);

  --ring: 0 0 0 2px var(--felt), 0 0 0 4px var(--bed-green);

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root {
  --felt: #f4f3ee;
    --surface: #ffffff;
    --surface-2: #e9eae4;
    --ink: #141a17;
    --ink-2: #5d6b64;
    --wire: #d6d8d0;
    --ring: 0 0 0 2px var(--felt), 0 0 0 4px #157a37;
    --chip-edge: rgb(0 0 0 / 22%);

    color-scheme: light;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--felt);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

.wrap {
  max-width: 44rem;
  margin-inline: auto;
  padding: var(--space) var(--space) 64px;
}

/* ---------- masthead ------------------------------------------------------ */

.top {
  display: flex;
  flex-wrap: wrap;
  gap: 10px var(--space);
  align-items: baseline;
  justify-content: space-between;
  padding-block: 18px;
  border-bottom: 1px solid var(--wire);
}

.top__home {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.top__links {
  display: flex;
  gap: var(--space);
  font-size: 15px;
}

/* ---------- prose --------------------------------------------------------- */

h1 {
  margin: 28px 0 8px;
  font-size: 30px;
  line-height: 1.18;
  letter-spacing: -0.02em;
}

h2 {
  margin: 34px 0 6px;
  font-size: 21px;
  line-height: 1.25;
}

p {
  margin: 0 0 14px;
}

ul {
  margin: 0 0 14px;
  padding-left: 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: var(--bed-green);
  text-underline-offset: 2px;
}

.lede {
  color: var(--ink-2);
  font-size: 15px;
}

/* An aside: the thing people get wrong, called out. */
.note {
  margin: 0 0 14px;
  padding: 12px var(--space);
  background: var(--surface);
  border-left: 3px solid var(--bed-green);
  border-radius: var(--radius-sm);
  color: var(--ink-2);
  font-size: 15px;
}

/* ---------- the call to action -------------------------------------------- */

.cta {
  display: inline-block;
  margin: 6px 0 18px;
  padding: 14px 22px;
  min-height: var(--touch);
  background: var(--bed-green);
  border-radius: var(--radius-pill);
  color: var(--on-green);
  font-weight: 700;
  letter-spacing: 0.02em;
  text-decoration: none;
  text-transform: uppercase;
}

/* ---------- the checkout table -------------------------------------------- */

/* Wide content scrolls inside its own box; the page never scrolls sideways. */
.tablewrap {
  overflow-x: auto;
  margin: 0 0 20px;
  border: 1px solid var(--wire);
  border-radius: var(--radius);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

caption {
  padding: 12px var(--space);
  color: var(--ink-2);
  font-size: 14px;
  text-align: left;
}

th,
td {
  padding: 8px 12px;
  text-align: left;
  border-top: 1px solid var(--wire);
}

thead th {
  position: sticky;
  top: 0;
  background: var(--surface-2);
  border-top: 0;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

tbody tr:nth-child(even) {
  background: var(--surface);
}

/* Scores and routes are figures: monospace, and they must not jitter. */
.score,
.route {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.score {
  font-weight: 700;
}

.none {
  color: var(--ink-2);
}

.bogey td {
  color: var(--bed-red);
}

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

.foot {
  margin-top: 40px;
  padding-top: 18px;
  border-top: 1px solid var(--wire);
  color: var(--ink-2);
  font-size: 15px;
}

.foot__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px var(--space);
  margin-bottom: 10px;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
