/* Theme, type, resets. Colours come only from these variables, so both themes stay in step. */

:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0a0b; --surface: #151113; --surface-2: #1d181a; --line: #2b2427; --line-soft: #211b1e;
  --text: #f4ece8; --muted: #a2948f; --faint: #6f6461;
  --brand: #d8142a; --brand-hover: #ec2238; --on-brand: #ffffff;
  --up: #3dd68c; --down: #ff5b52; --on-up: #06140c; --on-down: #1a0605;
  --shadow: none;
  /* crimson as text on the dark ground needs to be lighter to stay readable */
  --brand-text: #ff5a6b;
  --lord: #d9a69b;
  --card-line: var(--line);
  --hover: rgba(255, 255, 255, .045);
  --active: rgba(255, 255, 255, .08);
  --scrim: rgba(0, 0, 0, .62);
  --pop-shadow: 0 16px 48px rgba(0, 0, 0, .55);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f3f2; --surface: #ffffff; --surface-2: #f0ecea; --line: #e5dfdc; --line-soft: #efeae8;
  --text: #161213; --muted: #6f6562; --faint: #9c918e;
  --brand: #c4102a; --brand-hover: #a90d23; --on-brand: #ffffff;
  --up: #11a85a; --down: #e5484d; --on-up: #ffffff; --on-down: #ffffff;
  --shadow: 0 1px 2px rgba(22, 18, 19, .04), 0 8px 28px rgba(22, 18, 19, .06);
  --brand-text: #c4102a;
  --lord: #a5645a;
  --card-line: transparent;
  --hover: rgba(22, 18, 19, .04);
  --active: rgba(22, 18, 19, .07);
  --scrim: rgba(22, 18, 19, .32);
  --pop-shadow: 0 16px 48px rgba(22, 18, 19, .16);
}

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

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 400 15px/1.5 "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
img, svg, canvas { display: block; }
img { max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
input[type="search"]::-webkit-search-cancel-button { display: none; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }

::selection { background: color-mix(in srgb, var(--brand) 35%, transparent); }

/* ---- type ---------------------------------------------------------------------------------------- */
.t-page { font-size: 44px; line-height: 1.08; font-weight: 700; letter-spacing: -.025em; }
.t-section { font-size: 22px; line-height: 1.25; font-weight: 700; letter-spacing: -.01em; }
.t-name { font-size: 34px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; }
.t-big { font-size: 30px; line-height: 1.15; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.t-label { font-size: 13px; line-height: 1.35; font-weight: 500; color: var(--muted); }
.t-small { font-size: 13px; line-height: 1.4; }

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.up { color: var(--up); }
.down { color: var(--down); }
.mono { font-family: "Geist Mono", ui-monospace, monospace; font-size: .92em; }
.num { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.show-phone { display: none !important; }

@media (max-width: 767px) {
  .hide-phone { display: none !important; }
  .show-phone { display: revert !important; }
  .t-page { font-size: 32px; }
  .t-name { font-size: 28px; }
  .t-big { font-size: 26px; }
}

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