/* ==========================================================================
   Hell yeah — tokens and base styles
   Copy this file and fonts/ into the site as they are. Every value here is
   chosen on purpose; change one only with a reason.

   Font: Archivo (variable, wdth 62–125, wght 100–900), self-hosted.
     Copyright 2020 The Archivo Project Authors
     (https://github.com/Omnibus-Type/Archivo). SIL Open Font License 1.1,
     full text in fonts/OFL.txt — ship that file next to the fonts.
     Files are the unmodified latin and latin-ext subsets from the
     @fontsource-variable/archivo 5.3.0 package. No other font, no font CDN,
     no third-party request from this file.
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("./fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"),
       url("./fonts/archivo-latin-wdth-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  src: url("./fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2-variations"),
       url("./fonts/archivo-latin-ext-wdth-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* No metric-override fallback face: measured in Chromium, a 40 px line of
   Archivo at wdth 100 sets 717.8 px against Arial's 716.0 px (0.25% wider),
   and every line-height here is fixed, so the swap barely moves anything.
   Arial / Helvetica come first after Archivo for that reason. */

/* --------------------------------------------------------------------------
   1. Tokens — light (default)
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light dark;

  /* Colour. All text pairs meet WCAG 2.x AA (4.5:1) in both themes. */
  --color-bg:           #FAF7F2; /* paper */
  --color-surface:      #FFFFFF; /* inputs, dialogs, menus */
  --color-raised:       #F2EEE7; /* skeletons, hover rows, code */
  --color-ink:          #1C1915; /* text, primary button, focus ring */
  --color-ink-2:        #4A443D; /* secondary text that still has to be read */
  --color-muted:        #6B635A; /* meta: handles, times, hints (5.5:1) */
  --color-rule:         #E5DED3; /* hairlines between entries; decorative only */
  --color-control:      #857C71; /* input and checkbox borders (3.8:1, meets 1.4.11) */

  --color-yeah:         #FFC21A; /* the hell-yeah colour. Means one thing: a hell yeah happened */
  --color-on-yeah:      #1C1915;
  --color-yeah-tint:    #FFF1C7; /* "you" row, new-posts pill */

  --color-danger:       #B42318; /* errors and destructive actions only */
  --color-on-danger:    #FFFFFF;
  --color-danger-tint:  #FCECE9;

  --color-primary:      var(--color-ink);
  --color-on-primary:   #FAF7F2;

  --color-focus:        var(--color-ink);
  --color-selection:    #FFE08A;
  --color-backdrop:     rgb(28 25 21 / 0.45);

  /* Type */
  --font-sans: "Archivo", Arial, "Helvetica Neue", Helvetica, "Liberation Sans",
               ui-sans-serif, system-ui, sans-serif,
               "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji";
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono",
               Menlo, Consolas, "Liberation Mono", monospace;

  /* Width axis. Text sets at 100; display sets condensed so it can be loud
     without being huge. */
  --stretch-text:      100%;
  --stretch-display:   82%;
  --stretch-shout:     72%; /* wordmark, hell-yeah button label, big numerals */

  /* Scale: size / line-height. Not a ratio; each step has a job. */
  --text-xs:   0.8125rem; --leading-xs:  1.125rem; /* 13/18 meta, table captions */
  --text-sm:   0.875rem;  --leading-sm:  1.25rem;  /* 14/20 hints, buttons, nav */
  --text-md:   1rem;      --leading-md:  1.5rem;   /* 16/24 UI body */
  --text-post: 1.0625rem; --leading-post: 1.625rem;/* 17/26 check-in text */
  --text-lg:   1.25rem;   --leading-lg:  1.625rem; /* 20/26 section heads */
  --text-xl:   1.75rem;   --leading-xl:  2rem;     /* 28/32 page titles */
  --text-2xl:  2.75rem;   --leading-2xl: 2.75rem;  /* 44/44 run-day numeral on profile */

  --weight-regular: 400;
  --weight-medium:  500;
  --weight-strong:  640; /* names, labels: firmer than 600 in Archivo's axis */
  --weight-display: 780;
  --weight-shout:   860;

  --tracking-tight: -0.012em; /* display sizes */
  --tracking-caps:   0.04em;  /* the only uppercase: table headers */

  /* Space: 4 px base */
  --space-0: 2px;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;

  /* Layout */
  --measure:       38rem;  /* 608 px content column */
  --measure-wide:  52rem;  /* admin tables */
  --measure-text:  62ch;   /* check-in text never runs longer */
  --gutter:        clamp(16px, 5vw, 24px);
  --header-h:      56px;
  --hit:           44px;   /* minimum target */

  /* Radii: small and square-ish on purpose. Nothing is a pill. */
  --radius-1: 3px;  /* buttons, inputs, images, the hell-yeah button */
  --radius-2: 6px;  /* menus, dialogs */

  /* Lines */
  --line:         1px;
  --line-control: 2px;   /* hell-yeah button, switch, status square. 2 px, not 1.5: Chromium snaps 1.5 px down to 1 px on 1x screens */

  /* Focus: 2 px ring, 2 px gap. The gap keeps it off the control's own border
     and off the yellow fill (dark theme yellow vs ring is 1.4:1, so the ring
     must never touch it). */
  --focus-width:  2px;
  --focus-offset: 2px;
  --focus-ring:   var(--focus-width) solid var(--color-focus);

  /* Elevation: one level, menus and dialogs only */
  --shadow-1: 0 1px 2px rgb(28 25 21 / 0.08), 0 8px 24px -6px rgb(28 25 21 / 0.18);

  /* Motion: short, ease-out, and only to explain a change */
  --dur-1: 110ms; /* press, toggle thumb */
  --dur-2: 180ms; /* count tick, reveal, menu */
  --dur-3: 240ms; /* dialog, toast */
  --ease-out:    cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-in-out: cubic-bezier(0.6, 0, 0.3, 1);

  /* Layers */
  --z-header: 10;
  --z-menu:   20;
  --z-toast:  30;
  --z-dialog: 40; /* native <dialog> uses the top layer; this is for fallbacks */
}

/* --------------------------------------------------------------------------
   2. Tokens — dark (follows the system; there is no in-app switch in v1)
   -------------------------------------------------------------------------- */
@media (prefers-color-scheme: dark) {
  :root {
    --color-bg:           #14120F;
    --color-surface:      #1D1A16;
    --color-raised:       #262219;
    --color-ink:          #F2EDE5;
    --color-ink-2:        #CFC7BB;
    --color-muted:        #A0978B;
    --color-rule:         #2F2A24;
    --color-control:      #7D756A;

    --color-yeah:         #FFC21A;
    --color-on-yeah:      #1C1915;
    --color-yeah-tint:    #3A2F10;

    --color-danger:       #FF8B7B;
    --color-on-danger:    #1C1915;
    --color-danger-tint:  #3A1A15;

    --color-on-primary:   #14120F;
    --color-selection:    #5A4710;
    --color-backdrop:     rgb(0 0 0 / 0.6);

    --shadow-1: 0 1px 2px rgb(0 0 0 / 0.4), 0 8px 24px -6px rgb(0 0 0 / 0.6);
  }
}

/* Windows High Contrast / forced colours: let the system win, keep the ring. */
@media (forced-colors: active) {
  :root { --color-focus: Highlight; }
}

/* --------------------------------------------------------------------------
   3. Base elements
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--color-bg);
}

body {
  margin: 0;
  min-height: 100dvh;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: var(--leading-md);
  font-weight: var(--weight-regular);
  font-stretch: var(--stretch-text);
  font-kerning: normal;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: var(--weight-display);
  font-stretch: var(--stretch-display);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
h1 { font-size: var(--text-xl); line-height: var(--leading-xl); }
h2 { font-size: var(--text-lg); line-height: var(--leading-lg); }
h3, h4 {
  font-size: var(--text-md); line-height: var(--leading-md);
  font-stretch: var(--stretch-text); font-weight: var(--weight-strong); letter-spacing: 0;
}

p { margin: 0; text-wrap: pretty; }
p + p { margin-top: var(--space-3); }

small { font-size: var(--text-sm); line-height: var(--leading-sm); }

strong, b { font-weight: var(--weight-strong); }

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  text-decoration-color: color-mix(in srgb, currentColor 45%, transparent);
  transition: text-decoration-color var(--dur-1) var(--ease-out);
}
a:hover { text-decoration-color: currentColor; }

code, kbd, samp, .did {
  font-family: var(--font-mono);
  font-size: 0.875em;
  font-variant-ligatures: none;
}
.did { overflow-wrap: anywhere; } /* DIDs are 32 chars with no break points */

hr { border: 0; border-top: var(--line) solid var(--color-rule); margin: 0; }

img, svg, video { display: block; max-width: 100%; }
img { height: auto; }

time, .num {
  font-variant-numeric: tabular-nums lining-nums;
}

::selection { background: var(--color-selection); color: var(--color-ink); }

/* Focus: keyboard only, everywhere, never removed. */
:focus { outline: none; }
:focus-visible {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
  border-radius: var(--radius-1);
}
/* Text inputs show the ring on mouse focus too: users need to see where they type. */
input:focus, textarea:focus, select:focus {
  outline: var(--focus-ring);
  outline-offset: var(--focus-offset);
}

/* Forms */
button, input, textarea, select {
  font: inherit;
  color: inherit;
  letter-spacing: inherit;
}
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }

label { display: block; font-weight: var(--weight-strong); font-size: var(--text-sm); line-height: var(--leading-sm); }

input[type="text"], input[type="email"], input[type="url"], input[type="search"], textarea, select {
  display: block;
  width: 100%;
  min-height: var(--hit);
  padding: 10px var(--space-3);
  background: var(--color-surface);
  border: var(--line) solid var(--color-control);
  border-radius: var(--radius-1);
  font-size: var(--text-md); /* 16 px: stops iOS zooming on focus */
  line-height: var(--leading-md);
}
textarea { resize: vertical; min-height: 9rem; font-size: var(--text-post); line-height: var(--leading-post); }
input::placeholder, textarea::placeholder { color: var(--color-muted); opacity: 1; }
input[aria-invalid="true"], textarea[aria-invalid="true"] {
  border-color: var(--color-danger);
  box-shadow: inset 0 0 0 1px var(--color-danger); /* doubles the line so it isn't colour alone */
}
input:disabled, textarea:disabled { background: var(--color-raised); color: var(--color-muted); }

input[type="radio"], input[type="checkbox"] {
  accent-color: var(--color-ink);
  width: 20px; height: 20px; margin: 0;
  flex: none;
}

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { padding: 0; font-weight: var(--weight-strong); font-size: var(--text-md); }

table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
th {
  text-align: start;
  font-size: var(--text-xs); line-height: var(--leading-xs);
  font-weight: var(--weight-strong);
  text-transform: uppercase; letter-spacing: var(--tracking-caps);
  color: var(--color-muted);
  padding: var(--space-2) var(--space-3) var(--space-2) 0;
  border-bottom: var(--line) solid var(--color-rule);
}
td {
  padding: var(--space-3) var(--space-3) var(--space-3) 0;
  border-bottom: var(--line) solid var(--color-rule);
  vertical-align: baseline;
}
th:last-child, td:last-child { padding-inline-end: 0; }

dialog {
  color: inherit;
  background: var(--color-surface);
  border: var(--line) solid var(--color-rule);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  padding: var(--space-5);
  width: min(28rem, calc(100vw - 2 * var(--gutter)));
  max-height: calc(100dvh - 2 * var(--gutter));
}
dialog::backdrop { background: var(--color-backdrop); }

/* --------------------------------------------------------------------------
   4. Shared components (class names are a
      suggestion — keep the values)
   -------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* Skip link: first focusable thing on every page */
.skip-link {
  position: absolute; left: var(--gutter); top: var(--space-2);
  z-index: calc(var(--z-header) + 1);
  padding: var(--space-2) var(--space-3);
  background: var(--color-ink); color: var(--color-on-primary);
  border-radius: var(--radius-1);
  font-weight: var(--weight-strong);
  transform: translateY(-200%);
}
.skip-link:focus-visible { transform: none; }

/* Wordmark: the header's "Hell yeah". Never wraps. */
.wordmark {
  font-weight: var(--weight-shout);
  font-stretch: var(--stretch-shout);
  font-size: 1.375rem; line-height: 1.5rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: var(--color-ink);
}

/* Buttons. One primary per view. */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: var(--hit);
  padding: 0 var(--space-4);
  border: var(--line) solid transparent;
  border-radius: var(--radius-1);
  font-size: var(--text-sm); line-height: var(--leading-sm);
  font-weight: var(--weight-strong);
  text-decoration: none;
  white-space: nowrap;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.button:active:not(:disabled) { transform: translateY(1px); }
.button--primary   { background: var(--color-primary); color: var(--color-on-primary); }
.button--primary:hover:not(:disabled) { background: color-mix(in srgb, var(--color-primary) 86%, var(--color-bg)); }
.button--secondary { background: transparent; color: var(--color-ink); border-color: var(--color-control); }
.button--secondary:hover:not(:disabled) { background: var(--color-raised); }
.button--quiet     { background: transparent; color: var(--color-ink); padding: 0 var(--space-2); }
.button--quiet:hover:not(:disabled) { background: var(--color-raised); }
.button--danger    { background: var(--color-danger); color: var(--color-on-danger); }
.button:disabled, .button[aria-disabled="true"] { opacity: 0.5; }
.button[aria-busy="true"] { cursor: progress; }
.button--block { width: 100%; }

/* The hell-yeah button. */
.yeah {
  display: inline-flex; align-items: stretch;
  min-height: var(--hit);
  padding: 0;
  background: transparent; color: var(--color-ink);
  border: var(--line-control) solid var(--color-ink);
  border-radius: var(--radius-1);
  font-size: var(--text-sm); line-height: 1;
  transition: background-color var(--dur-1) var(--ease-out), transform var(--dur-1) var(--ease-out);
}
.yeah__label {
  display: inline-flex; align-items: center;
  padding: 0 var(--space-3);
  font-weight: var(--weight-shout);
  font-stretch: var(--stretch-shout);
  font-size: 0.9375rem; /* 15 px; condensed type needs the extra pixel */
  letter-spacing: 0.01em;
}
.yeah__count {
  display: inline-flex; align-items: center; justify-content: flex-end;
  min-width: 3ch;
  padding: 0 var(--space-3) 0 var(--space-2);
  border-inline-start: var(--line) solid currentColor;
  font-variant-numeric: tabular-nums;
  font-weight: var(--weight-strong);
  overflow: hidden; /* clips the tick */
}
.yeah:hover:not(:disabled) { background: var(--color-raised); }
.yeah[aria-pressed="true"] { background: var(--color-yeah); color: var(--color-on-yeah); }
.yeah[aria-pressed="true"]:hover { background: color-mix(in srgb, var(--color-yeah) 88%, var(--color-ink)); }
.yeah:active:not(:disabled) { transform: scale(0.97); }
@media (prefers-color-scheme: dark) {
  .yeah[aria-pressed="true"] { border-color: var(--color-yeah); }
}
/* Count tick: the old number leaves upward, the new one arrives from below. */
.yeah__digits { display: inline-block; }
.yeah__digits[data-tick="up"] { animation: hy-tick-up var(--dur-2) var(--ease-out); }
.yeah__digits[data-tick="down"] { animation: hy-tick-down var(--dur-2) var(--ease-out); }
@keyframes hy-tick-up   { from { transform: translateY(70%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes hy-tick-down { from { transform: translateY(-70%); opacity: 0; } to { transform: none; opacity: 1; } }

/* Count shown on your own post, where there's nothing to press. */
.yeah-static {
  display: inline-flex; align-items: center; gap: var(--space-2);
  min-height: var(--hit);
  font-size: var(--text-sm); color: var(--color-ink-2);
}

/* Counted / not yet counted. */
.status {
  display: inline-flex; align-items: center; gap: var(--space-2);
  font-size: var(--text-xs); line-height: var(--leading-xs);
  font-weight: var(--weight-medium);
  color: var(--color-ink-2);
}
.status::before {
  content: ""; flex: none;
  width: 10px; height: 10px;
  border-radius: 2px;
  border: var(--line-control) dashed var(--color-muted);
}
.status--counted::before { background: var(--color-yeah); border: var(--line-control) solid var(--color-ink); }
@media (prefers-color-scheme: dark) {
  .status--counted::before { border-color: var(--color-yeah); }
}

/* Switch (cross-post toggle). <button role="switch" aria-checked>. */
.switch {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-3);
  width: 100%; min-height: var(--hit);
  padding: 0; background: none; border: 0; text-align: start;
  font-weight: var(--weight-strong);
}
.switch__track {
  flex: none; position: relative;
  width: 40px; height: 24px;
  border: var(--line-control) solid var(--color-ink);
  border-radius: 12px; /* the one round thing: a switch is read by its shape */
  background: transparent;
  transition: background-color var(--dur-1) var(--ease-out);
}
.switch__track::after {
  content: ""; position: absolute; top: 3px; left: 3px;
  width: 14px; height: 14px; border-radius: 50%; /* 3 px gap on every side inside the 2 px track */
  background: var(--color-ink);
  transition: transform var(--dur-1) var(--ease-out);
}
.switch[aria-checked="true"] .switch__track { background: var(--color-ink); }
.switch[aria-checked="true"] .switch__track::after { transform: translateX(16px); background: var(--color-bg); }

/* Fields */
.field { display: grid; gap: var(--space-2); }
.field__hint  { font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-muted); }
.field__error {
  font-size: var(--text-sm); line-height: var(--leading-sm); color: var(--color-danger);
  font-weight: var(--weight-medium);
}

/* Alerts: page-level messages at the top of <main>. Errors use role="alert". */
.alert {
  display: grid; gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-1);
  background: var(--color-raised);
  font-size: var(--text-sm); line-height: var(--leading-sm);
}
.alert--error { background: var(--color-danger-tint); }
.alert--error .alert__title { color: var(--color-danger); }
.alert__title { font-weight: var(--weight-strong); }
.alert__actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* Toast: success only, never errors. */
.toast {
  position: fixed; z-index: var(--z-toast);
  left: 50%; bottom: max(var(--space-4), env(safe-area-inset-bottom));
  transform: translateX(-50%);
  max-width: calc(100vw - 2 * var(--gutter));
  padding: var(--space-3) var(--space-4);
  display: flex; align-items: center; gap: var(--space-4);
  background: var(--color-ink); color: var(--color-on-primary);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
  font-size: var(--text-sm); line-height: var(--leading-sm);
  animation: hy-rise var(--dur-3) var(--ease-out);
}
.toast .button--quiet { color: inherit; min-height: 32px; text-decoration: underline; }
@keyframes hy-rise { from { transform: translate(-50%, 8px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

dialog[open] { animation: hy-dialog var(--dur-3) var(--ease-out); }
@keyframes hy-dialog { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Skeleton: still blocks, a slow breath, no shimmer. */
.skeleton {
  display: block;
  background: var(--color-raised);
  border-radius: var(--radius-1);
  animation: hy-breathe 1.6s var(--ease-in-out) infinite alternate;
}
@keyframes hy-breathe { from { opacity: 1; } to { opacity: 0.55; } }

/* Checkbox. Drawn by us, not the browser, so its edge is a known colour in
   both themes (control on bg: 3.8:1 light, 4.1:1 dark). Markup:
   <label class="check-row"><span class="check"><input type="checkbox">
   <svg class="check__mark" viewBox="0 0 20 20" aria-hidden="true"><path d="M5 10.5l3.2 3.2L15 7"/></svg>
   </span><span>Label</span></label>
   Never rendered checked by default. */
.check-row {
  display: flex; align-items: flex-start; gap: var(--space-3);
  min-height: var(--hit); padding-block: var(--space-3);
  font-size: var(--text-md); line-height: var(--leading-md);
  font-weight: var(--weight-strong); cursor: pointer;
}
.check { position: relative; display: inline-grid; flex: none; width: 20px; height: 20px; margin-top: var(--space-0); }
.check input[type="checkbox"] {
  appearance: none; -webkit-appearance: none;
  width: 20px; height: 20px; margin: 0;
  border: var(--line-control) solid var(--color-control);
  border-radius: var(--radius-1);
  background: var(--color-surface);
  cursor: pointer;
}
.check input[type="checkbox"]:checked { background: var(--color-primary); border-color: var(--color-primary); }
.check input[type="checkbox"]:disabled { cursor: not-allowed; opacity: 0.5; }
.check__mark {
  position: absolute; inset: 0; width: 20px; height: 20px;
  fill: none; stroke: var(--color-on-primary); stroke-width: 2.5;
  stroke-linecap: square; stroke-linejoin: miter;
  opacity: 0; pointer-events: none;
}
.check input[type="checkbox"]:checked + .check__mark { opacity: 1; }
@media (forced-colors: active) {
  .check input[type="checkbox"] { appearance: auto; -webkit-appearance: auto; }
  .check__mark { display: none; }
}

/* Band: a notice set between two control-weight rules. No box, no fill. */
.band {
  border-block: var(--line-control) solid var(--color-ink);
  padding-block: var(--space-3);
  font-size: var(--text-md); line-height: var(--leading-md);
  font-weight: var(--weight-medium);
}

/* Display heading: the landing page's h1 only. */
.display {
  font-size: var(--text-xl); line-height: var(--leading-xl);
  font-weight: var(--weight-shout); font-stretch: var(--stretch-shout);
  letter-spacing: var(--tracking-tight);
  text-wrap: balance;
}
@media (min-width: 640px) {
  .display { font-size: var(--text-2xl); line-height: calc(var(--leading-2xl) + var(--space-1)); }
}

/* Tag: a word about a person's standing (visitor, waiting for an invite). */
.tag {
  display: inline-block;
  padding: var(--space-0) var(--space-2);
  border: var(--line) solid var(--color-rule);
  border-radius: var(--radius-1);
  font-size: var(--text-xs); line-height: var(--leading-xs);
  font-weight: var(--weight-strong); color: var(--color-ink-2);
}

/* Stats: admin counts. Number over label, in a grid. */
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5) var(--space-4); margin: 0; }
@media (min-width: 640px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stats > div { display: flex; flex-direction: column; gap: var(--space-1); border-top: var(--line) solid var(--color-rule); padding-top: var(--space-3); }
.stats dt { font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--color-muted); }
.stats dd {
  order: -1; /* number shows above its label; the label stays first in the source */
  margin: 0; font-size: var(--text-xl); line-height: var(--leading-xl);
  font-weight: var(--weight-display); font-stretch: var(--stretch-display);
  font-variant-numeric: tabular-nums;
}

/* Reduced motion: state changes are instant; nothing loops. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}
