/* =========================================================================
   Prime Trace — stylesheet
   All styling lives here (no inline styles / no inline scripts) so the site
   can run under a strict Content-Security-Policy without 'unsafe-inline'.
   Palette, type and layout are transcribed from the approved design draft.
   ========================================================================= */

/* ---- Fonts (self-hosted, latin subset, ~72KB total) --------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-500-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/assets/fonts/archivo-latin-600-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-400-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/ibm-plex-mono-latin-500-normal.woff2') format('woff2');
}

/* ---- Design tokens ------------------------------------------------------ */
:root {
  --bg: #f2f0eb;
  --ink: #1a1a18;
  --ink-2: #33322d;
  --ink-3: #55524a;
  --muted: #6c6659;
  --faint: #8a836f;
  --faint-2: #a09884;
  --line: #cec9bc;
  --line-strong: #1a1a18;
  --accent: #8f2b20;
  --hover: #e9e5dc;
  --field: #eeebe3;
  --selection: #d8d3c7;

  --sans: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, 'SF Mono', SFMono-Regular, Menlo, Consolas, monospace;

  --sidebar-w: 268px;
  --pad: clamp(24px, 5vw, 56px);
}

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

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

html, body { margin: 0; padding: 0; background: var(--bg); }

body {
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* long German compounds must never force horizontal scroll */
  overflow-wrap: break-word;
}

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }

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

input, textarea, select, button { font: inherit; color: inherit; }

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

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

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

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 12px 18px;
  font-family: var(--mono);
  font-size: 12px;
}
.skip-link:focus { left: 8px; top: 8px; color: var(--bg); }

/* =========================================================================
   Layout: sidebar + main
   ========================================================================= */
.layout {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  min-height: 100vh;
  background: var(--bg);
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  border-right: 1px solid var(--line-strong);
  padding: 30px 22px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.sidebar__bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.brand { display: flex; flex-direction: column; gap: 11px; }
.brand:hover { color: var(--ink); }
.brand__mark {
  display: flex;
  align-items: baseline;
  gap: 9px;
}
.brand__dot { width: 9px; height: 9px; background: var(--accent); flex: 0 0 auto; }
.brand__name {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.7;
}

.nav-toggle {
  all: unset;
  display: none;
  cursor: pointer;
  padding: 6px;
  margin: -6px;
  color: var(--ink);
}
.nav-toggle:hover { color: var(--accent); }
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.sidebar__drawer {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 30px;
  min-height: 0;
}

.nav {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line-strong);
}
.nav a {
  display: grid;
  grid-template-columns: 1fr 10px;
  align-items: center;
  gap: 8px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.nav a:last-child { border-bottom: 1px solid var(--line-strong); }
.nav a:hover { background: var(--hover); color: var(--ink); }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]:hover { color: var(--ink); }
.nav__dot { width: 6px; height: 6px; background: var(--accent); opacity: 0; }
.nav a[aria-current="page"] .nav__dot { opacity: 1; }

.sidebar__meta {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 15px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.langs { display: flex; gap: 11px; }
.langs span, .langs a { color: var(--muted); }
.langs a:hover { color: var(--accent); }
.langs .is-current { color: var(--ink); }
.sidebar__meta .info { line-height: 1.8; }
.sidebar__meta .copyright {
  border-top: 1px solid var(--line);
  padding-top: 13px;
}

/* ---- Main --------------------------------------------------------------- */
.main { min-width: 0; }

/* =========================================================================
   Shared building blocks
   ========================================================================= */

/* Page header */
.page-header {
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(48px, 8vw, 78px) var(--pad) clamp(36px, 5vw, 48px) var(--pad);
}
.eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 clamp(28px, 4vw, 44px) 0;
}
.display {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.028em;
  line-height: 1;
  text-wrap: pretty;
}
.display--xl {
  font-size: clamp(40px, 7.2vw, 68px);
  line-height: 0.97;
  letter-spacing: -0.03em;
  max-width: 19ch;
}
.display--lg {
  font-size: clamp(34px, 5.4vw, 56px);
}
.lead {
  margin: clamp(24px, 3vw, 32px) 0 0 0;
  font-size: clamp(17px, 1.6vw, 19px);
  line-height: 1.45;
  color: var(--ink-2);
  max-width: 64ch;
}
.lead--sm { font-size: 17px; max-width: 62ch; }

/* Section with a mono label column */
.section {
  padding: var(--pad);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}
.section + .section,
.section,
.page-header + .section { }
.section--bordered { border-bottom: 1px solid var(--line-strong); }
.section--last { padding-bottom: clamp(56px, 8vw, 80px); }

.section__label {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
}
.section__label .sub { color: var(--accent); }
.section__label .muted { color: var(--faint-2); }

.section__body { min-width: 0; }
.section__intro {
  margin: 0 0 clamp(24px, 3vw, 32px) 0;
  max-width: 62ch;
  font-size: 17px;
  color: var(--ink-2);
}

/* Bordered list of rows */
.rows { border-top: 1px solid var(--line-strong); }
.rows--soft { border-top-color: var(--line); }
.rows__item {
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
}
.rows--roomy .rows__item { padding: 14px 0; }

/* Two-column bordered list */
.rows-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: clamp(24px, 3.4vw, 44px);
  border-top: 1px solid var(--line-strong);
}
.rows-2 > div {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

/* Buttons */
.btn-row { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-block;
  cursor: pointer;
  padding: 14px 24px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
}
.btn:hover { background: var(--hover); color: var(--ink); }
.btn--solid {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.btn--solid:hover { background: var(--accent); color: var(--bg); border-color: var(--accent); }

/* =========================================================================
   Home
   ========================================================================= */
.who {
  border-bottom: 1px solid var(--line-strong);
  padding: clamp(28px, 3vw, 34px) var(--pad) clamp(30px, 3vw, 36px) var(--pad);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}
.who__list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 28px;
  font-size: 15px;
  line-height: 1.45;
}
.who__list > div {
  border-top: 1px solid var(--line-strong);
  padding-top: 12px;
}

.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line-strong);
}
.stat {
  padding: 21px 24px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.stat:last-child { border-right: 0; }
.stat__k {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.stat__v {
  font-size: 22px;
  margin-top: 8px;
  letter-spacing: -0.01em;
}

.disciplines {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line);
}
.discipline {
  padding: 20px 22px 24px 22px;
  border-right: 1px solid var(--line);
  min-width: 0;
}
.discipline:first-child { padding-left: 0; }
.discipline:last-child { padding-right: 0; border-right: 0; }
.discipline__h { font-size: 18px; margin-bottom: 9px; }
.discipline__p { font-size: 13.5px; color: var(--ink-3); line-height: 1.55; }

/* Selected mandates table */
.mandates { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.mandates thead th {
  text-align: left;
  font-weight: 400;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 14px 11px 0;
  border-bottom: 1px solid var(--line-strong);
  vertical-align: bottom;
}
.mandates thead th:last-child { padding-right: 0; }
.mandates td {
  padding: 15px 14px 15px 0;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.mandates td:last-child { padding-right: 0; }
.mandates .q { color: var(--ink-2); }
.mandates .w, .mandates .d { color: var(--ink-3); }
.note {
  margin: 19px 0 0 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  line-height: 1.7;
  max-width: 76ch;
}

.stance p { margin: 0; }
.stance__lead { font-size: 22px; line-height: 1.4; }
.stance__sub {
  margin-top: 24px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink-3);
}
.stance .btn-row { margin-top: 36px; }

/* =========================================================================
   What we do (practices)
   ========================================================================= */
.practice {
  padding: clamp(36px, 5vw, 48px) var(--pad);
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr) 300px;
  gap: clamp(24px, 3.4vw, 44px);
  align-items: start;
}
.practice__h {
  margin: 0 0 7px 0;
  font-size: clamp(24px, 3.2vw, 30px);
  font-weight: 500;
  letter-spacing: -0.02em;
}
.practice__p {
  margin: 0 0 24px 0;
  font-size: 16px;
  color: var(--ink-3);
  max-width: 56ch;
}
.practice__note {
  margin: 20px 0 0 0;
  font-size: 14.5px;
  color: var(--ink-3);
  max-width: 62ch;
}
.aside-when { padding-top: 6px; }
.aside-when__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 12px;
}
.aside-when__p { font-size: 14px; line-height: 1.65; color: var(--ink-3); }

/* Two-cell definition rows (screening levels, team, instruct) */
.deflist { border-top: 1px solid var(--line-strong); font-size: 14.5px; }
.deflist__row {
  display: grid;
  grid-template-columns: 132px 1fr;
  gap: 18px;
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.deflist__row > span:last-child { color: var(--ink-3); }

/* =========================================================================
   How we work
   ========================================================================= */
.sequence { display: grid; grid-template-columns: 200px minmax(0, 1fr); }
.sequence__label {
  padding: 44px 24px 44px var(--pad);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.8;
  border-right: 1px solid var(--line);
}
.sequence__steps { min-width: 0; }
.step {
  display: grid;
  grid-template-columns: 268px minmax(0, 1fr);
  gap: 24px;
  padding: 24px var(--pad) 24px 28px;
  border-bottom: 1px solid var(--line);
}
.step:last-child { border-bottom: 0; }
.step__h { font-size: 19px; }
.step__p { font-size: 14.5px; color: var(--ink-3); max-width: 62ch; }

.principles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px clamp(24px, 3.4vw, 44px);
}
.principle {
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}
.principle__h { font-size: 19px; margin-bottom: 9px; }
.principle__p { margin: 0; font-size: 15px; color: var(--ink-3); line-height: 1.6; }

.receive-note {
  margin: 22px 0 0 0;
  max-width: 62ch;
  font-size: 16px;
  color: var(--ink-2);
}

/* =========================================================================
   The firm
   ========================================================================= */
.team-row { grid-template-columns: 1fr 340px; }
.team-row > span:last-child { color: var(--muted); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 3.4vw, 44px);
}
.two-col__item {
  border-top: 1px solid var(--line-strong);
  padding-top: 16px;
}
.two-col__h { font-size: 20px; margin-bottom: 10px; }
.two-col__p { margin: 0; font-size: 15px; color: var(--ink-3); line-height: 1.6; }

.prose { max-width: 64ch; }
.prose p { margin: 0; font-size: 17px; color: var(--ink-2); }
.prose p.tight { margin: 0 0 22px 0; }
.prose .btn-row { margin-top: 34px; }

/* =========================================================================
   Contact
   ========================================================================= */
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
}
.contact-form-wrap {
  padding: clamp(36px, 5vw, 52px) var(--pad) clamp(56px, 8vw, 74px) var(--pad);
  border-right: 1px solid var(--line-strong);
}
.form-eyebrow {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 28px 0;
}
.form {
  display: grid;
  gap: 28px;
  max-width: 620px;
}
.field { display: grid; gap: 8px; }
.field__label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--muted);
}
.field-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.input, .select {
  all: unset;
  box-sizing: border-box;
  border-bottom: 1px solid var(--line-strong);
  padding: 6px 0;
  font-size: 16px;
  width: 100%;
}
.select { cursor: pointer; }
.input:focus, .select:focus { border-bottom: 2px solid var(--accent); }
/* native select arrow (all:unset removes it) */
.select-wrap { position: relative; display: grid; }
.select-wrap::after {
  content: "";
  position: absolute;
  right: 2px; top: 12px;
  width: 7px; height: 7px;
  border-right: 1.5px solid var(--muted);
  border-bottom: 1.5px solid var(--muted);
  transform: rotate(45deg);
  pointer-events: none;
}
.textarea {
  all: unset;
  box-sizing: border-box;
  border: 1px solid var(--line-strong);
  padding: 12px 14px;
  font-size: 16px;
  line-height: 1.5;
  width: 100%;
  resize: vertical;
  background: var(--field);
  min-height: 8.5em;
}
.textarea:focus { border: 1px solid var(--accent); }

.form__submit {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-top: 4px;
  flex-wrap: wrap;
}
.form__status {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
}
.form__status--ok { color: var(--accent); }
.form__status--err { color: var(--accent); }
.form__disclaimer {
  margin: 0;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--faint);
  line-height: 1.7;
}
/* honeypot — hidden from humans without extending the page box */
.hp {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
}

.contact-aside {
  padding: clamp(36px, 5vw, 52px) clamp(24px, 3vw, 40px) clamp(56px, 8vw, 74px);
  display: flex;
  flex-direction: column;
  gap: 34px;
}
.contact-aside__k {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.contact-aside__phone { font-size: 26px; letter-spacing: -0.01em; }
.contact-aside__phone:hover { color: var(--accent); }
.contact-aside__sub { font-size: 14px; color: var(--ink-3); margin-top: 6px; }
.contact-aside__block {
  border-top: 1px solid var(--line);
  padding-top: 24px;
}
.contact-aside__office { font-size: 15px; line-height: 1.6; }
.contact-aside__office + .contact-aside__office { margin-top: 14px; }
.contact-aside__office .muted { color: var(--muted); }
.contact-aside__secure {
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.9;
  color: var(--ink-2);
}
.contact-aside__secure a { color: var(--ink-2); }
.contact-aside__secure a:hover { color: var(--accent); }
.contact-aside__hint {
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 10.5px;
  line-height: 1.8;
  color: var(--muted);
}

/* Thank-you page */
.simple-main { padding: clamp(48px, 8vw, 78px) var(--pad); }

/* Mobile-only footer (mirrors sidebar meta) */
.site-footer { display: none; }

/* =========================================================================
   Responsive
   ========================================================================= */

/* Tablet: relax the 3-column practice layout */
@media (max-width: 1180px) {
  .practice {
    grid-template-columns: 200px minmax(0, 1fr);
  }
  .aside-when {
    grid-column: 2;
    padding-top: 0;
    border-top: 1px solid var(--line);
    margin-top: 24px;
    padding-top: 20px;
  }
}

@media (max-width: 1000px) {
  .who__list { grid-template-columns: repeat(3, 1fr); }
}

/* Collapse the sidebar into a top bar */
@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 20;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid var(--line-strong);
    padding: 16px var(--pad);
    gap: 0;
    background: var(--bg);
  }
  .sidebar__bar { align-items: center; }
  .brand { gap: 6px; }
  .nav-toggle { display: block; }

  .sidebar__drawer {
    display: none;
    gap: 24px;
    padding-top: 22px;
  }
  .sidebar__drawer.is-open { display: flex; }
  /* firm info moves to a page footer on mobile (see .site-footer) */
  .sidebar__meta { display: none; }

  /* Section label columns stack above their content */
  .section,
  .who { grid-template-columns: 1fr; gap: 18px; }
  .practice { grid-template-columns: 1fr; gap: 18px; }
  .aside-when { grid-column: auto; }

  .sequence { grid-template-columns: 1fr; }
  .sequence__label {
    padding: 20px var(--pad);
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .step {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 20px var(--pad);
  }

  .principles { grid-template-columns: 1fr; gap: 28px; }
  .two-col { grid-template-columns: 1fr; gap: 28px; }

  .contact-grid { grid-template-columns: 1fr; }
  .contact-form-wrap { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .team-row { grid-template-columns: 1fr; gap: 4px; }
  .team-row > span:last-child { color: var(--muted); }
}

@media (max-width: 720px) {
  .who__list { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--line); }
  .disciplines { grid-template-columns: repeat(2, 1fr); }
  .discipline { padding: 20px 20px 24px 20px; }
  .discipline:nth-child(odd) { padding-left: 0; }
  .discipline:nth-child(even) { padding-right: 0; border-right: 0; }
  .discipline:nth-child(1), .discipline:nth-child(2) { border-bottom: 1px solid var(--line); }
  .rows-2 { grid-template-columns: 1fr; }
  .field-pair { grid-template-columns: 1fr; }
  .stance__lead { font-size: 20px; }

  /* Selected-mandates table becomes stacked cards */
  .mandates, .mandates thead, .mandates tbody, .mandates tr, .mandates td { display: block; width: 100%; }
  .mandates thead { display: none; }
  .mandates tr {
    border-top: 1px solid var(--line-strong);
    padding: 6px 0 14px;
  }
  .mandates td {
    border-bottom: 0;
    padding: 8px 0 0 0;
  }
  .mandates td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--mono);
    font-size: 9.5px;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 3px;
  }
}

@media (max-width: 480px) {
  .who__list { grid-template-columns: 1fr; }
}

/* Show mobile footer, hide the sidebar's copy of the meta block */
@media (max-width: 860px) {
  .site-footer {
    display: block;
    border-top: 1px solid var(--line-strong);
    padding: 28px var(--pad) 34px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .site-footer .langs { margin-bottom: 15px; }
  .site-footer .info { line-height: 1.8; margin-bottom: 15px; }
  .site-footer .copyright { border-top: 1px solid var(--line); padding-top: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}
