/*
 * What every page of the site shares (work record landing_site, LS.6): the base, the brand mark and the
 * pill buttons of the new look — the home pages and the 404 (styles/landing.css) and the legal pages
 * (styles/site.css) take them from here, so neither copies them. var() only (styles/site-scale.css;
 * frontend_visual_system.decisions.md §4). The page follows the device's light or dark setting (LS-Q33).
 */

/* ---------- Base ---------- */

* {
  box-sizing: border-box;
  min-width: 0;
}

html {
  color-scheme: light dark;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--site-bg);
  color: var(--site-ink);
  font-family: var(--site-sans);
  font-size: var(--site-text-body);
  line-height: var(--site-leading-body);
  -webkit-font-smoothing: antialiased;
  transition:
    background var(--site-dur-theme),
    color var(--site-dur-theme);
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

:focus-visible {
  outline: var(--site-focus-width) solid var(--site-acc);
  outline-offset: var(--site-focus-offset);
}

.mono {
  font-family: var(--site-mono);
  font-size: var(--site-text-label);
  letter-spacing: var(--site-tracking-label);
  text-transform: uppercase;
}

.mute {
  color: var(--site-mute);
}

/* ---------- The brand mark (brand kit v3): filled in the light theme, fine lines in the dark ---------- */

.lm {
  display: block;
  flex: none;
}

.lm-d {
  display: none;
}

@media (prefers-color-scheme: dark) {
  .lm-d {
    display: block;
  }

  .lm-l {
    display: none;
  }
}

.mk-glow {
  stop-color: var(--site-ink);
}

.mk-line {
  stroke: var(--site-ink);
}

.mk-point {
  fill: var(--site-acc);
}

.mk-fill {
  fill: var(--site-mark-ink);
}

.mk-paper-glow {
  stop-color: var(--site-mark-paper);
}

.mk-paper {
  stroke: var(--site-mark-paper);
}

.mk-paper-point {
  fill: var(--site-mark-dot);
}

/* ---------- Buttons: a pill with an arrow in a circle ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: var(--site-space-12);
  height: var(--site-pill-height);
  padding: 0 var(--site-space-8) 0 var(--site-space-22);
  border-radius: var(--site-radius-pill);
  font-size: var(--site-text-pill);
  font-weight: var(--site-weight-medium);
  transition:
    transform var(--site-dur-pill),
    background var(--site-dur-pill),
    color var(--site-dur-pill);
}

.pill .ar {
  width: var(--site-pill-arrow);
  height: var(--site-pill-arrow);
  border-radius: var(--site-radius-circle);
  display: grid;
  place-items: center;
  transition: transform var(--site-dur-arrow);
}

.pill:hover .ar {
  transform: var(--site-turn-arrow);
}

.pill.solid {
  background: var(--site-ink);
  color: var(--site-bg);
}

.pill.solid .ar {
  background: var(--site-bg);
  color: var(--site-ink);
}

.pill.ghost {
  border: var(--site-hairline) solid var(--site-line);
  background: var(--site-panel);
}

.pill.ghost .ar {
  background: var(--site-panel2);
}

.pill.ghost:hover {
  border-color: var(--site-ink);
}

.pill.org {
  background: var(--site-acc-grad);
  color: var(--site-on-acc);
}

.pill.org .ar {
  background: var(--site-pill-org-arrow);
}
