/* The home page at gladiatorbench.com. One static page: no script, nothing loaded from anywhere else.
   The colours are the Gladiator Ledger page's, so the two read as one place. */
:root {
  color-scheme: light dark;
  --bg: #f6f5f1;
  --surface: #ffffff;
  --sunken: #efeee9;
  --ink: #1b1f24;
  --muted: #56606b;
  --line: #d9d7cf;
  --accent: #0d5c63;
  --accent-ink: #ffffff;
  --accent-soft: #e2efef;
  --focus: #1a6fd6;
  --side-a: #2f6fb7;
  --side-b: #c9722b;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131619;
    --surface: #1b1f23;
    --sunken: #171a1e;
    --ink: #e8eaed;
    --muted: #a3acb6;
    --line: #333a41;
    --accent: #72c8cc;
    --accent-ink: #0c1719;
    --accent-soft: #1c3336;
    --focus: #8ab8ff;
    --side-a: #6aa5e6;
    --side-b: #e39a5a;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  overflow-wrap: break-word;
}
.top, main, .foot { max-width: 960px; margin: 0 auto; padding: 0 16px; }
.top { padding-top: 56px; }
a { color: var(--accent); text-underline-offset: 3px; }
a:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
p { margin: 0 0 12px; }

.brand { margin: 0 0 10px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
h1 { margin: 0 0 16px; max-width: 20ch; font-size: clamp(30px, 6vw, 48px); line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
h1 em, .card em { font-style: normal; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.card em { text-decoration-thickness: 2px; text-underline-offset: 3px; }
.lede { margin: 0 0 22px; max-width: 66ch; font-size: 17.5px; color: var(--muted); }
.note { margin: 12px 0 0; font-size: 14px; color: var(--muted); }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }
.button {
  display: inline-block; padding: 11px 18px; border-radius: 10px; border: 1.5px solid var(--accent);
  background: var(--accent); color: var(--accent-ink); font-weight: 600; text-decoration: none;
}
.button.quiet { background: transparent; color: var(--accent); }
.button:hover { filter: brightness(1.08); }
.button.quiet:hover { background: var(--accent-soft); filter: none; }

/* A match in four stations. Side by side where there is room, top to bottom on a phone; the arrow between two
   stations turns with them. */
.flow { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 30px; }
.station {
  position: relative; display: flex; flex-direction: column; justify-content: center; gap: 4px; min-width: 0;
  padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); text-align: center;
}
.station .what { font-weight: 650; font-size: 16.5px; }
.station .how { font-size: 13.5px; color: var(--muted); }
.station:not(:last-child)::after {
  content: "\2193"; position: absolute; left: 50%; top: 100%; transform: translateX(-50%);
  width: 30px; height: 30px; line-height: 30px; text-align: center; font-size: 18px; color: var(--muted);
}
.sides { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 2px; }
.side { padding: 5px 6px; border-radius: 8px; background: var(--sunken); font-weight: 650; font-size: 15px; }
.side.a { border-top: 4px solid var(--side-a); }
.side.b { border-top: 4px solid var(--side-b); }
@media (min-width: 760px) {
  .flow { grid-template-columns: 1fr 1.25fr 1fr 1fr; gap: 34px; }
  .station:not(:last-child)::after { content: "\2192"; left: 100%; top: 50%; transform: translateY(-50%); width: 34px; }
}

main { padding-top: 8px; }
section { margin-top: 56px; }
h2 { margin: 0 0 18px; font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; }
h3 { margin: 0 0 8px; font-size: 17.5px; line-height: 1.3; }

.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 22px; }
.steps p { margin: 0; color: var(--muted); }
.steps h3 { display: flex; align-items: center; gap: 10px; }
.num {
  flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: 15px; font-weight: 700;
}

.cards { display: grid; grid-template-columns: 1fr; gap: 16px; }
.card {
  display: flex; flex-direction: column; min-width: 0; padding: 20px 20px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.card h3 { font-size: 19px; }
.card p { color: var(--muted); }
.card .links { margin-top: auto; padding-top: 6px; }
.links { display: flex; flex-direction: column; gap: 6px; margin: 0; }
.links a { font-weight: 600; }
pre {
  margin: 0 0 12px; padding: 10px 12px; border-radius: 8px; background: var(--sunken); border: 1px solid var(--line);
  white-space: pre-wrap; overflow-wrap: anywhere; font: 12.5px/1.5 var(--mono);  /* wraps: a card is narrow */
}
code { font-family: var(--mono); font-size: 0.92em; }
pre code { font-size: inherit; }

.trust { margin: 0; display: grid; grid-template-columns: 1fr; gap: 18px 32px; }
.trust dt { font-weight: 650; margin-bottom: 2px; padding-left: 12px; border-left: 3px solid var(--accent); }
.trust dd { margin: 0; padding-left: 15px; color: var(--muted); }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); gap: 28px; }
  .cards { grid-template-columns: repeat(3, 1fr); }
  .trust { grid-template-columns: 1fr 1fr; }
}

.foot { margin-top: 64px; padding-top: 20px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.foot .links { flex-direction: row; flex-wrap: wrap; gap: 6px 20px; }
.foot .links a { font-weight: 500; }
