/* Govchecker.be — public site
   Visual identity of the Govchecker platform (archive-and-evidence): paper, ink, steel accent,
   gold marker, thin rules, small radii, Inter for text and Newsreader for display.
   Tokens mirror frontend/app/styles/00-tokens-and-base.css of the platform. */

/* ---- fonts (self-hosted, SIL Open Font License; see /fonts/OFL-*.txt) ------------------ */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Newsreader';
  src: url('/fonts/newsreader-italic-latin.woff2') format('woff2');
  font-weight: 200 800;
  font-style: italic;
  font-display: swap;
}

/* Metric-matched fallback so the swap to Inter does not shift the layout. */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 90.44%;
  descent-override: 22.52%;
  line-gap-override: 0%;
  size-adjust: 107.12%;
}

/* ---- tokens --------------------------------------------------------------------------- */

:root {
  color-scheme: light;

  --font-sans-stack: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-serif-stack: 'Newsreader', Georgia, 'Times New Roman', serif;

  /* surfaces */
  --paper: #f7f5f0;
  --paper-raised: #ffffff;
  --paper-deep: #eeebe4;

  /* ink */
  --ink: #151618;
  --ink-soft: #4a4d55;
  --ink-faint: #5e626b;

  /* rules */
  --rule: #d9d5cc;
  --rule-strong: #8e8a82;
  --rule-soft: #e8e4dc;

  /* accent = steel */
  --steel: #2c5c88;
  --steel-ink: #244c71;
  --steel-soft: #e3ebf3;
  --steel-border: #b9cbdd;

  /* marker = gold */
  --gold: #c99b00;
  --gold-ink: #7d5a00;
  --gold-soft: #fbf3d5;
  --gold-light: #e3b341;

  /* footer */
  --footer-bg: #151618;
  --footer-text: #e8e5de;
  --footer-muted: #b0ada5;
  --footer-rule: rgba(232, 229, 222, 0.18);

  /* shape */
  --radius-xs: 2px;
  --radius-sm: 3px;
  --radius: 6px;
  --radius-lg: 10px;
  --shadow-1: 0 1px 0 rgba(21, 22, 24, 0.05), 0 1px 3px rgba(21, 22, 24, 0.08);
  --shadow-2: 0 4px 12px rgba(21, 22, 24, 0.1), 0 12px 32px rgba(21, 22, 24, 0.1);

  /* rhythm */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --section-pad: clamp(3.25rem, 2.4rem + 4vw, 6rem);

  /* type scale */
  --step--2: clamp(0.75rem, 0.74rem + 0.05vw, 0.78rem);
  --step--1: clamp(0.84rem, 0.82rem + 0.1vw, 0.88rem);
  --step-0: clamp(0.96rem, 0.94rem + 0.12vw, 1.02rem);
  --step-1: clamp(1.1rem, 1.05rem + 0.3vw, 1.25rem);
  --step-2: clamp(1.3rem, 1.2rem + 0.55vw, 1.6rem);
  --step-3: clamp(1.6rem, 1.4rem + 1vw, 2.15rem);
  --step-4: clamp(2rem, 1.6rem + 1.9vw, 2.95rem);
  --step-5: clamp(2.35rem, 1.7rem + 3.3vw, 4.25rem);

  --max-width: 76rem;
  --measure: 66ch;
  --header-height: 4.25rem;
  --ring: var(--ink);
  --motion: 140ms;
}

/* ---- base ----------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  min-height: 100%;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans-stack);
  font-optical-sizing: auto;
  font-feature-settings: 'cv05', 'cv11';
  font-size: var(--step-0);
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

p,
ul,
ol,
dl,
dd,
blockquote,
figure {
  margin: 0;
}

/* Avoid one-word last lines in running text. */
p,
li,
dd,
figcaption {
  text-wrap: pretty;
}

a {
  color: var(--steel);
  text-decoration: none;
  transition: color var(--motion) ease, text-decoration-color var(--motion) ease, background-color var(--motion) ease;
}

a:hover {
  color: var(--steel-ink);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

/* Links inside running text are always underlined (not colour alone). */
main :where(p, dd, li, blockquote, figcaption) a:not([class]) {
  color: var(--steel);
  font-weight: 550;
  text-decoration-line: underline;
  text-decoration-color: var(--steel-border);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

main :where(p, dd, li, blockquote, figcaption) a:not([class]):hover {
  color: var(--steel-ink);
  text-decoration-color: currentColor;
}

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

:where(a, button, summary, [tabindex]:not([tabindex='-1'])):focus-visible {
  outline: 2px solid var(--ring);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  border: 1px solid var(--ink);
  border-radius: var(--radius-sm);
  background: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 3px var(--gold-light);
  padding: 0.6rem 0.9rem;
  font-size: var(--step--1);
  font-weight: 600;
  transform: translateY(calc(-100% - 1.5rem));
}

.skip-link:focus,
.skip-link:focus-visible {
  color: var(--paper);
  outline: 0;
  transform: translateY(0);
  text-decoration: none;
}

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

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 clamp(1rem, 3vw, 1.5rem);
}

main {
  flex: 1 0 auto;
  width: 100%;
  overflow-x: clip;
}

main:focus {
  outline: 0;
}

.kbo {
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.nowrap {
  white-space: nowrap;
}

/* ---- typography ----------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-family: var(--font-serif-stack);
  text-wrap: balance;
}

h1,
h2 {
  font-weight: 500;
  letter-spacing: -0.012em;
  line-height: 1.1;
}

h1 {
  font-size: var(--step-5);
  margin: 0 0 1rem;
}

h2 {
  font-size: var(--step-4);
  margin: 0;
}

h3 {
  font-size: var(--step-1);
  font-weight: 560;
  letter-spacing: -0.005em;
  line-height: 1.25;
  margin: 0 0 0.4rem;
}

.lead {
  font-family: var(--font-serif-stack);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.06rem + 0.45vw, 1.42rem);
  line-height: 1.45;
  color: var(--ink-soft);
  max-width: 58ch;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: var(--gold-ink);
  font-family: var(--font-sans-stack);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow::before {
  content: '';
  width: 1.5rem;
  height: 2px;
  background: var(--gold);
  flex: none;
}

.eyebrow .eyebrow-number {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
}

.label {
  color: var(--ink-faint);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.4;
}

/* ---- badges --------------------------------------------------------------------------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.18rem 0.6rem;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: var(--gold-soft);
  color: var(--gold-ink);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.03em;
  line-height: 1.5;
  white-space: nowrap;
}

.badge::before {
  content: '';
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
  flex: none;
}

/* ---- header --------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 245, 240, 0.92);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  min-height: var(--header-height);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
  color: var(--ink);
  flex: 0 1 auto;
  margin-right: auto;
}

.brand:hover {
  color: var(--ink);
  text-decoration: none;
}

.logo {
  display: block;
  width: 30px;
  height: 30px;
  flex: none;
}

.brand-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.1;
}

.brand-name {
  font-family: var(--font-serif-stack);
  font-weight: 600;
  font-size: 1.32rem;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.brand-descriptor {
  margin-top: 0.22rem;
  color: var(--ink-soft);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.main-nav {
  display: none;
}

.main-nav ul {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  padding: 0;
  list-style: none;
  font-size: var(--step--1);
}

.main-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: var(--header-height);
  color: var(--ink-soft);
  font-weight: 560;
  line-height: 1.2;
  white-space: nowrap;
}

.main-nav a::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--motion) ease;
}

.main-nav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.main-nav a:hover::after {
  transform: scaleX(1);
}

.main-nav a[aria-current='page'] {
  color: var(--ink);
  font-weight: 620;
}

.main-nav a[aria-current='page']::after {
  transform: scaleX(1);
}

.header-actions {
  display: flex;
  align-items: center;
  flex: none;
}

/* language switcher = segmented control */
.locale-switcher {
  display: inline-flex;
  border: 1px solid var(--rule-strong);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--paper-raised);
  font-size: 0.74rem;
}

.locale-switcher a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  min-height: 2.5rem;
  padding: 0.3rem 0.6rem;
  color: var(--ink-soft);
  font-weight: 620;
  letter-spacing: 0.06em;
  text-decoration: none;
  transition: background var(--motion) ease, color var(--motion) ease;
}

.locale-switcher a + a {
  border-left: 1px solid var(--rule-strong);
}

.locale-switcher a:hover {
  text-decoration: none;
  background: var(--paper-deep);
  color: var(--ink);
}

.locale-switcher a[aria-current] {
  background: var(--ink);
  color: var(--paper);
}

.locale-switcher a:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: -4px;
  border-radius: 0;
}

.locale-switcher a[aria-current]:focus-visible {
  outline-color: var(--gold-light);
}

@media (min-width: 74rem) {
  .main-nav {
    display: block;
  }

  .main-nav + .header-actions {
    border-left: 1px solid var(--rule);
    padding-left: 1.25rem;
  }
}

@media (max-width: 40rem) {
  :root {
    --header-height: 4rem;
  }

  .site-header .brand-descriptor {
    display: none;
  }
}

@media (max-width: 22.5rem) {
  .header-inner {
    gap: 0.6rem;
  }

  .brand {
    gap: 0.55rem;
  }

  .locale-switcher a {
    min-width: 2.2rem;
    padding: 0.3rem 0.35rem;
  }
}

/* ---- hero ----------------------------------------------------------------------------- */

.hero {
  position: relative;
  padding: clamp(2.5rem, 1.6rem + 4.5vw, 5.5rem) 0 clamp(2.25rem, 1.8rem + 2.5vw, 4rem);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(21, 22, 24, 0.13) 1px, transparent 1.3px);
  background-size: 18px 18px;
  border-bottom: 1px solid var(--rule);
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(247, 245, 240, 0.35) 0%, rgba(247, 245, 240, 0) 45%, rgba(247, 245, 240, 0.92) 100%),
    linear-gradient(180deg, rgba(247, 245, 240, 0.6), rgba(247, 245, 240, 0) 40%, rgba(247, 245, 240, 0.9));
  pointer-events: none;
}

.hero > .container {
  position: relative;
  z-index: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

.hero h1 {
  max-width: 15ch;
  margin: 0.25rem 0 1.25rem;
}

.hero .lead {
  margin: 0;
}

.hero-status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.1rem;
  margin-top: 1.75rem;
  color: var(--ink-faint);
  font-size: var(--step--1);
}

.hero-by {
  margin-top: 0.7rem;
  color: var(--ink-faint);
  font-size: var(--step--1);
}

/* fact card ("fiche") */
.fiche {
  position: relative;
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius) var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-2);
  padding: 1.25rem clamp(1.1rem, 2.4vw, 1.6rem) 1.1rem;
}

.fiche-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  flex-wrap: wrap;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
}

.fiche-head h2 {
  font-family: var(--font-sans-stack);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  line-height: 1.4;
}

.fiche-head .fiche-ref {
  color: var(--ink-faint);
  font-size: var(--step--2);
  font-variant-numeric: tabular-nums;
}

.fiche-list > div {
  display: grid;
  grid-template-columns: minmax(0, 10.25rem) minmax(0, 1fr);
  gap: 0.2rem 1rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--rule-soft);
}

.fiche-list > div:last-child {
  border-bottom: 0;
}

.fiche-list dt {
  color: var(--ink-faint);
  font-size: var(--step--1);
  font-weight: 560;
}

.fiche-list dd {
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 560;
  min-width: 0;
  overflow-wrap: anywhere;
}

.fiche-list dd .badge {
  vertical-align: 0.05em;
}

.fiche-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  align-items: baseline;
  margin-top: 0.4rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: var(--step--2);
  line-height: 1.5;
}

.fiche-source .label {
  font-size: 0.7rem;
}

/* page index (tablet and phone; the header nav takes over on wide screens) */
.page-index {
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 1rem;
  border-top: 1px solid var(--rule);
}

.page-index .label {
  display: block;
  margin-bottom: 0.6rem;
}

.page-index ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
  counter-reset: index;
}

.page-index li {
  counter-increment: index;
}

.page-index a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.35rem 0.85rem 0.35rem 0.7rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius-sm);
  background: var(--paper-raised);
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 560;
}

.page-index a::before {
  content: counter(index, decimal-leading-zero);
  color: var(--gold-ink);
  font-family: var(--font-serif-stack);
  font-style: italic;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}

.page-index a:hover {
  border-color: var(--rule-strong);
  text-decoration: none;
  color: var(--ink);
}

@media (min-width: 56rem) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
    align-items: end;
  }
}

@media (min-width: 74rem) {
  .page-index {
    display: none;
  }
}

@media (max-width: 45rem) {
  .hero {
    background-size: 14px 14px;
  }
}

@media (max-width: 22.5rem) {
  .fiche-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .fiche-list dt {
    font-size: var(--step--2);
    letter-spacing: 0.02em;
  }
}

/* ---- sections ------------------------------------------------------------------------- */

.section {
  padding: var(--section-pad) 0;
  scroll-margin-top: var(--header-height);
}

.section + .section {
  border-top: 1px solid var(--rule);
}

.section--deep {
  background: var(--paper-deep);
}

.section-head {
  display: grid;
  gap: 1rem;
  max-width: 50rem;
  margin-bottom: clamp(2rem, 3.5vw, 3rem);
}

.section-head .eyebrow {
  margin: 0;
}

.section-head p:not(.eyebrow) {
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.55;
  max-width: 62ch;
}

.subsection {
  margin-top: clamp(3rem, 5vw, 4.5rem);
  padding-top: 1.75rem;
  border-top: 1px solid var(--rule-strong);
  scroll-margin-top: var(--header-height);
}

.subsection-head {
  display: grid;
  gap: 0.6rem;
  max-width: 50rem;
  margin-bottom: 1.5rem;
}

.subsection-head h3 {
  font-size: var(--step-3);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.15;
  margin: 0;
}

.subsection-head p {
  color: var(--ink-soft);
  max-width: 62ch;
}

/* ---- platform cards ------------------------------------------------------------------- */

.feature-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.feature {
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-1);
  padding: 1.3rem 1.4rem 1.1rem;
}

.feature-number {
  font-family: var(--font-serif-stack);
  font-style: italic;
  color: var(--gold-ink);
  font-size: var(--step-0);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.feature h3 {
  margin: 0.85rem 0 0.5rem;
  font-size: var(--step-2);
  font-weight: 540;
  line-height: 1.18;
}

.feature p {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
}

.feature-source {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.55rem;
  align-items: baseline;
  margin-top: auto;
  padding-top: 1.1rem;
}

.feature-source-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.55rem;
  align-items: baseline;
  width: 100%;
  padding-top: 0.75rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: var(--step--2);
  line-height: 1.5;
}

.feature-source .label {
  flex-basis: 100%;
  font-size: 0.7rem;
}

.feature--primary {
  background: var(--ink);
  border-color: var(--ink);
  border-left-color: var(--gold);
  color: var(--paper);
}

.feature--primary .feature-number {
  color: var(--gold-light);
}

.feature--primary p {
  color: #c9c6be;
}

.feature--primary .feature-source-inner {
  border-top-color: rgba(232, 229, 222, 0.2);
  color: #b0ada5;
}

.feature--primary .label {
  color: #b0ada5;
}

@media (min-width: 40rem) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- source register ------------------------------------------------------------------ */

.register {
  display: grid;
  gap: clamp(2rem, 4vw, 2.75rem);
}

.register-group {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem 3rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-strong);
}

.register-group-head h3 {
  font-size: var(--step-2);
  font-weight: 540;
  margin: 0 0 0.35rem;
}

.register-group-head p {
  color: var(--ink-faint);
  font-size: var(--step--1);
  max-width: 34ch;
}

.register-rows {
  padding: 0;
  list-style: none;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-1);
}

.register-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.2rem 1.5rem;
  padding: 1rem 1.25rem;
}

.register-row + .register-row {
  border-top: 1px solid var(--rule);
}

.register-publisher {
  color: var(--ink-faint);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.5;
  padding-top: 0.2rem;
}

.register-dataset {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif-stack);
  font-size: var(--step-1);
  font-weight: 540;
  line-height: 1.3;
}

.register-use {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.55;
}

.code {
  font-family: var(--font-sans-stack);
  font-size: 0.86em;
  font-weight: 560;
  font-variant-numeric: tabular-nums slashed-zero;
  letter-spacing: 0.02em;
  color: var(--ink-soft);
  background: var(--paper-deep);
  border-radius: var(--radius-xs);
  padding: 0.05em 0.35em;
  white-space: nowrap;
}

.feature--primary .code {
  background: rgba(232, 229, 222, 0.12);
  color: #e8e5de;
}

@media (min-width: 48rem) {
  .register-row {
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  }
}

@media (min-width: 64rem) {
  .register-group {
    grid-template-columns: minmax(0, 17rem) minmax(0, 1fr);
  }
}

/* ---- notices -------------------------------------------------------------------------- */

.notice {
  position: relative;
  margin-top: clamp(2rem, 4vw, 2.75rem);
  padding: 1rem 1.2rem 1rem calc(1.2rem + 16px + 0.75rem);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--gold);
  border-radius: var(--radius);
  background: var(--gold-soft);
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.6;
}

.notice::before {
  content: '';
  position: absolute;
  left: 1.15rem;
  top: calc(1rem + 0.2em);
  width: 16px;
  height: 16px;
  background-repeat: no-repeat;
  background-size: 16px 16px;
  /* info circle, gold-ink */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237d5a00' stroke-width='1.5'%3E%3Ccircle cx='8' cy='8' r='6.3'/%3E%3Cpath d='M8 7.2v4' stroke-linecap='round'/%3E%3Ccircle cx='8' cy='4.9' r='0.7' fill='%237d5a00' stroke='none'/%3E%3C/svg%3E");
}

.notice strong {
  display: block;
  margin-bottom: 0.2rem;
  font-weight: 650;
}

.notice p {
  max-width: 78ch;
}

.notice p + p {
  margin-top: 0.5rem;
}

/* ---- principles ----------------------------------------------------------------------- */

.principles {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 clamp(1.5rem, 3vw, 2.75rem);
  padding: 0;
  list-style: none;
  counter-reset: principle;
}

.principle {
  counter-increment: principle;
  display: grid;
  align-content: start;
  grid-template-columns: 2.4rem minmax(0, 1fr);
  gap: 0 0.5rem;
  padding: 1.4rem 0 1.6rem;
  border-top: 1px solid var(--rule-strong);
}

.principle::before {
  content: counter(principle);
  grid-row: 1 / span 2;
  color: var(--gold-ink);
  font-family: var(--font-serif-stack);
  font-style: italic;
  font-size: var(--step-3);
  font-weight: 400;
  line-height: 0.95;
  font-variant-numeric: tabular-nums lining-nums;
}

.principle h3 {
  margin: 0 0 0.45rem;
  font-size: var(--step-1);
  font-weight: 580;
}

.principle p {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
}

.principle p + p {
  margin-top: 0.5rem;
}

@media (min-width: 44rem) {
  .principles {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 68rem) {
  .principles {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- status --------------------------------------------------------------------------- */

.status-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.status-grid .section-head {
  margin-bottom: 0;
}

.status-points {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.75rem;
  padding: 0;
  list-style: none;
  max-width: 60ch;
}

.status-points li {
  position: relative;
  padding-left: 1.5rem;
  color: var(--ink-soft);
}

.status-points li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.62em;
  width: 0.45rem;
  height: 0.45rem;
  background: var(--ink);
  border-radius: 1px;
  transform: rotate(45deg);
}

.status-points strong {
  color: var(--ink);
  font-weight: 620;
}

.timeline {
  position: relative;
  padding: 1.5rem clamp(1.1rem, 2.4vw, 1.6rem) 1.25rem;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-1);
}

.timeline-title {
  display: block;
  padding-bottom: 0.85rem;
  margin-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

.timeline ol {
  position: relative;
  padding: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem;
  padding: 0.95rem 0 0.95rem 1.75rem;
}

.timeline li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: 1.35rem;
  width: 0.6rem;
  height: 0.6rem;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
}

.timeline li::after {
  content: '';
  position: absolute;
  left: calc(0.5rem - 0.5px);
  top: 2.1rem;
  bottom: -1.3rem;
  width: 1px;
  background: var(--rule);
}

.timeline li:last-child::after {
  content: none;
}

.timeline li.is-open::before {
  background: var(--paper-raised);
  box-shadow: inset 0 0 0 1.5px var(--rule-strong);
}

.timeline time,
.timeline .timeline-when {
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}

.timeline p {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.55;
}

@media (min-width: 60rem) {
  .status-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}

/* ---- organisation --------------------------------------------------------------------- */

.org-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(2.25rem, 5vw, 4rem);
  align-items: start;
}

.purpose {
  position: relative;
  padding: 0.25rem 0 0 1.5rem;
  border-left: 3px solid var(--gold);
}

.purpose blockquote p {
  font-family: var(--font-serif-stack);
  font-size: clamp(1.25rem, 1.1rem + 0.7vw, 1.65rem);
  font-weight: 420;
  line-height: 1.38;
  letter-spacing: -0.005em;
  color: var(--ink);
}

.purpose figcaption {
  margin-top: 0.9rem;
  color: var(--ink-faint);
  font-size: var(--step--1);
}

.purpose figcaption span {
  display: block;
  margin-top: 0.2rem;
  font-size: var(--step--2);
}

.block-title {
  margin: 2.5rem 0 1rem;
  font-size: var(--step-2);
  font-weight: 540;
}

.activities {
  display: grid;
  padding: 0;
  list-style: none;
  counter-reset: activity;
  border-top: 1px solid var(--rule);
}

.activities li {
  counter-increment: activity;
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
}

.activities li::before {
  content: counter(activity, decimal-leading-zero);
  color: var(--gold-ink);
  font-family: var(--font-serif-stack);
  font-style: italic;
  font-size: var(--step-0);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}

.aside-note {
  margin-top: 1rem;
  color: var(--ink-faint);
  font-size: var(--step--1);
  max-width: 62ch;
}

.block-title + .aside-note {
  margin-top: -0.25rem;
}

.aside-note + .activities {
  margin-top: 0.9rem;
}

.identity {
  border: 1px solid var(--rule);
  border-top: 3px solid var(--ink);
  border-radius: var(--radius-sm) var(--radius-sm) var(--radius) var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-1);
  padding: 1.25rem clamp(1.1rem, 2.4vw, 1.6rem) 1.25rem;
}

.identity-head {
  display: grid;
  gap: 0.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}

.identity-head .label {
  margin-bottom: 0.35rem;
}

.identity .fiche-list > div {
  grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
}

@media (max-width: 40rem) {
  .identity .fiche-list > div {
    grid-template-columns: minmax(0, 1fr);
    gap: 0.1rem;
  }

  .identity .fiche-list dt {
    font-size: var(--step--2);
    letter-spacing: 0.02em;
  }
}

.identity-head h3 {
  margin: 0;
  font-size: var(--step-2);
  font-weight: 560;
  line-height: 1.15;
}

.identity-head p {
  color: var(--ink-faint);
  font-size: var(--step--1);
  line-height: 1.4;
}

.identity-links {
  display: grid;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem 0 0;
  list-style: none;
  border-top: 1px solid var(--rule);
}

.text-link {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  min-height: 1.75rem;
  color: var(--steel);
  font-size: var(--step--1);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.text-link::after {
  content: '→';
  font-weight: 500;
  transition: transform var(--motion) ease;
}

.text-link:hover::after {
  transform: translateX(2px);
}

/* External links: a drawn north-east arrow (the ↗ glyph is not in the Inter latin subset). */
.text-link[href^='http']::after {
  content: '';
  flex: none;
  align-self: baseline;
  width: 0.6em;
  height: 0.6em;
  margin-bottom: 0.04em;
  background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9.5l7-7M4 2.5h5.5V8'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23000' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 9.5l7-7M4 2.5h5.5V8'/%3E%3C/svg%3E") center / contain no-repeat;
}

.text-link[href^='http']:hover::after {
  transform: translate(1px, -1px);
}

@media (min-width: 60rem) {
  .org-grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  }

  .org-grid > .identity {
    position: sticky;
    top: calc(var(--header-height) + 1.5rem);
  }
}

/* board */
.board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.person {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-1);
  padding: 1.15rem 1.3rem 1.2rem;
}

.person--chair {
  border-left-color: var(--gold);
}

.person .person-role {
  color: var(--gold-ink);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.person h4 {
  margin: 0;
  font-family: var(--font-serif-stack);
  font-size: var(--step-2);
  font-weight: 540;
  line-height: 1.2;
}

.person p {
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.55;
}

.governance {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 2.5rem;
  margin-top: 1.5rem;
}

.governance > div {
  display: grid;
  align-content: start;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.15rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--rule);
}

.governance dt {
  color: var(--ink-faint);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.governance dd {
  color: var(--ink);
  font-size: var(--step--1);
  line-height: 1.55;
}

.source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.2rem 0.6rem;
  align-items: baseline;
  margin-top: 1.25rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-faint);
  font-size: var(--step--1);
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.source-line .label {
  font-size: 0.7rem;
}

.source-line a {
  font-weight: 550;
}

@media (min-width: 44rem) {
  .board {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .governance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* charter */
.charter-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: start;
}

.commitments {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0 2rem;
  padding: 0;
  list-style: none;
}

.commitments li {
  position: relative;
  padding: 0.85rem 0 0.85rem 1.6rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
}

.commitments li::before {
  content: '';
  position: absolute;
  left: 0.2rem;
  top: calc(0.85rem + 0.52em);
  width: 0.45rem;
  height: 0.45rem;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
}

.commitments strong {
  color: var(--ink);
  font-weight: 620;
}

.ledger {
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  box-shadow: var(--shadow-2);
  padding: 1.35rem clamp(1.15rem, 2.4vw, 1.6rem) 1.25rem;
}

.ledger .label {
  color: var(--gold-light);
}

.ledger-value {
  display: block;
  margin: 0.6rem 0 0.5rem;
  font-family: var(--font-serif-stack);
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.6rem);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.ledger p {
  color: #c9c6be;
  font-size: var(--step--1);
  line-height: 1.55;
}

.ledger p + p,
.ledger-rows + p {
  margin-top: 0.85rem;
}

.ledger-rows {
  margin-top: 1rem;
  border-top: 1px solid rgba(232, 229, 222, 0.2);
}

.ledger-rows > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.55rem 0;
  border-bottom: 1px solid rgba(232, 229, 222, 0.12);
  font-size: var(--step--1);
}

.ledger-rows dt {
  color: #c9c6be;
}

.ledger-rows dd {
  color: #ffffff;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.ledger :where(a):focus-visible {
  outline-color: var(--gold-light);
}

@media (min-width: 48rem) {
  .commitments {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 64rem) {
  .charter-grid {
    grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr);
  }
}

/* ---- contact -------------------------------------------------------------------------- */

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  padding: 0;
  list-style: none;
}

.contact-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-1);
  padding: 1.4rem 1.5rem 1.35rem;
}

.contact-card--primary {
  border-left-color: var(--gold);
}

.contact-card h3 {
  margin: 0;
  font-family: var(--font-sans-stack);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

.contact-mail {
  display: inline-block;
  align-self: flex-start;
  max-width: 100%;
  margin: 0.15rem 0 0.2rem;
  color: var(--ink);
  font-family: var(--font-serif-stack);
  font-size: clamp(1.35rem, 1.15rem + 1vw, 1.95rem);
  font-weight: 520;
  line-height: 1.2;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  text-decoration: underline;
  text-decoration-color: var(--rule-strong);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

.contact-mail:hover {
  color: var(--steel-ink);
  text-decoration-color: currentColor;
}

.contact-card p {
  margin-top: auto;
  padding-top: 0.85rem;
  border-top: 1px solid var(--rule);
  color: var(--ink-soft);
  font-size: var(--step--1);
  line-height: 1.6;
}

.contact-card ul {
  margin-bottom: 0.5rem;
}

.contact-card ul {
  display: grid;
  gap: 0.3rem;
  margin-top: 0.35rem;
  padding: 0;
  list-style: none;
}

.contact-card li {
  position: relative;
  padding-left: 1.1rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.contact-card li::before {
  content: '';
  position: absolute;
  left: 0.1rem;
  top: 0.65em;
  width: 0.4rem;
  height: 2px;
  background: var(--gold);
}

@media (min-width: 48rem) {
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Share the rows between both cards so the address, list and closing rule line up. */
  @supports (grid-template-rows: subgrid) {
    .contact-card {
      display: grid;
      grid-row: span 4;
      grid-template-rows: subgrid;
      row-gap: 0.5rem;
    }

    .contact-card p {
      margin-top: 0.5rem;
      align-self: start;
    }
  }
}

/* ---- document pages (privacy) --------------------------------------------------------- */

.doc-hero {
  padding: clamp(2.5rem, 1.8rem + 3.5vw, 4.5rem) 0 clamp(2rem, 1.6rem + 2vw, 3rem);
  border-bottom: 1px solid var(--rule);
  background-color: var(--paper);
  background-image: radial-gradient(rgba(21, 22, 24, 0.1) 1px, transparent 1.3px);
  background-size: 18px 18px;
}

.doc-hero h1 {
  font-size: var(--step-4);
  max-width: 20ch;
  margin: 0.25rem 0 1rem;
}

.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem 1.25rem;
  margin-top: 1.25rem;
  color: var(--ink-faint);
  font-size: var(--step--1);
}

.doc {
  padding: clamp(2.5rem, 5vw, 4rem) 0 var(--section-pad);
}

.doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
}

.doc-toc {
  align-self: start;
}

.doc-toc ol {
  display: grid;
  gap: 0.15rem;
  margin-top: 0.6rem;
  padding: 0;
  list-style: none;
  counter-reset: toc;
  border-left: 1px solid var(--rule);
}

.doc-toc li {
  counter-increment: toc;
}

.doc-toc a {
  display: flex;
  gap: 0.6rem;
  min-height: 2.25rem;
  align-items: center;
  margin-left: -1px;
  padding: 0.25rem 0 0.25rem 0.9rem;
  border-left: 2px solid transparent;
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 540;
  line-height: 1.35;
}

.doc-toc a::before {
  content: counter(toc);
  color: var(--gold-ink);
  font-family: var(--font-serif-stack);
  font-style: italic;
  font-variant-numeric: tabular-nums;
  min-width: 0.8rem;
}

.doc-toc a:hover {
  color: var(--ink);
  border-left-color: var(--gold);
  text-decoration: none;
}

.doc-body {
  max-width: 44rem;
}

.doc-section {
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.doc-section + .doc-section {
  margin-top: 2.5rem;
  padding-top: 2.25rem;
  border-top: 1px solid var(--rule);
}

.doc-section h2 {
  font-size: var(--step-3);
  margin: 0 0 1rem;
}

.doc-section p,
.doc-section li {
  color: var(--ink-soft);
}

.doc-section > * + * {
  margin-top: 0.9rem;
}

.doc-section ul {
  display: grid;
  gap: 0.5rem;
  padding: 0;
  list-style: none;
}

.doc-section ul li {
  position: relative;
  padding-left: 1.4rem;
}

.doc-section ul li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.66em;
  width: 0.42rem;
  height: 0.42rem;
  background: var(--gold);
  border-radius: 1px;
  transform: rotate(45deg);
}

.doc-section strong {
  color: var(--ink);
  font-weight: 620;
}

.doc-facts {
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-1);
  padding: 0.25rem 1.25rem;
}

.doc-facts > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.1rem 1.25rem;
  padding: 0.75rem 0;
}

.doc-facts > div + div {
  border-top: 1px solid var(--rule-soft);
}

.doc-facts dt {
  color: var(--ink-faint);
  font-size: var(--step--1);
  font-weight: 560;
}

.doc-facts dd {
  color: var(--ink);
  font-size: var(--step--1);
  font-weight: 560;
  overflow-wrap: anywhere;
}

@media (min-width: 40rem) {
  .doc-facts > div {
    grid-template-columns: minmax(0, 11rem) minmax(0, 1fr);
  }
}

@media (min-width: 60rem) {
  .doc-grid {
    grid-template-columns: minmax(0, 15rem) minmax(0, 1fr);
    gap: 4rem;
  }

  .doc-toc {
    position: sticky;
    top: calc(var(--header-height) + 2rem);
  }
}

/* ---- 404 ------------------------------------------------------------------------------ */

.notfound {
  padding: clamp(3rem, 2rem + 6vw, 7rem) 0 var(--section-pad);
}

.notfound-code {
  font-family: var(--font-serif-stack);
  font-style: italic;
  color: var(--gold-ink);
  font-size: var(--step-2);
  font-variant-numeric: tabular-nums;
}

.notfound-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 2rem;
  padding: 0;
  list-style: none;
}

.notfound-grid li {
  border: 1px solid var(--rule);
  border-left: 3px solid var(--ink);
  border-radius: var(--radius);
  background: var(--paper-raised);
  box-shadow: var(--shadow-1);
  padding: 1.25rem 1.35rem;
}

.notfound-grid li:first-child {
  border-left-color: var(--gold);
}

.notfound-grid h2 {
  font-size: var(--step-2);
  font-weight: 540;
  margin: 0.4rem 0 0.5rem;
}

.notfound-grid p {
  color: var(--ink-soft);
  font-size: var(--step--1);
  margin-bottom: 0.75rem;
}

@media (min-width: 48rem) {
  .notfound-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---- footer --------------------------------------------------------------------------- */

.site-footer {
  flex: none;
  width: 100%;
  background: var(--footer-bg);
  color: var(--footer-text);
  border-top: 3px solid var(--gold);
  padding: var(--space-7) 0 var(--space-6);
  font-size: var(--step--1);
  line-height: 1.6;
}

.site-footer :where(a):focus-visible {
  outline-color: var(--gold-light);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem 3rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--footer-text);
}

.footer-brand:hover {
  color: #ffffff;
  text-decoration: none;
}

.footer-brand .brand-descriptor {
  color: var(--footer-muted);
}

.footer-statement {
  margin: 1.25rem 0 0;
  font-family: var(--font-serif-stack);
  font-style: italic;
  font-weight: 400;
  font-size: var(--step-1);
  line-height: 1.4;
  color: var(--footer-text);
  max-width: 34ch;
}

.footer-heading {
  margin: 0 0 0.75rem;
  color: var(--gold-light);
  font-size: var(--step--2);
  font-weight: 650;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  padding: 0;
  list-style: none;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  color: var(--footer-text);
  font-weight: 500;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration-color: var(--gold-light);
}

.footer-legal {
  margin: 2.5rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--footer-rule);
  color: var(--footer-muted);
  font-size: var(--step--1);
  line-height: 1.65;
}

.footer-legal address {
  font-style: normal;
}

.footer-legal .legal-item {
  display: inline-block;
}

@media (max-width: 40rem) {
  .footer-legal .legal-item {
    display: block;
  }

  .footer-legal .sep {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

.footer-legal .legal-name {
  color: var(--footer-text);
  font-weight: 600;
}

.footer-legal a {
  color: var(--footer-text);
  text-decoration: underline;
  text-decoration-color: rgba(232, 229, 222, 0.35);
  text-underline-offset: 0.18em;
}

.footer-legal a:hover {
  color: #ffffff;
  text-decoration-color: var(--gold-light);
}

.footer-legal .sep {
  margin: 0 0.45rem;
  color: rgba(232, 229, 222, 0.35);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 2rem;
  margin-top: 0.9rem;
  color: var(--footer-muted);
  font-size: var(--step--2);
}

.footer-bottom a {
  color: var(--footer-muted);
  text-decoration: underline;
  text-decoration-color: rgba(176, 173, 165, 0.4);
  text-underline-offset: 0.18em;
}

.footer-bottom a:hover {
  color: #ffffff;
}

@media (min-width: 22.5rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.5rem;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 3rem;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }
}

@media (min-width: 64rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }
}

/* ---- print ---------------------------------------------------------------------------- */

@media print {
  .site-header {
    position: static;
    backdrop-filter: none;
  }

  .skip-link,
  .page-index,
  .main-nav {
    display: none;
  }

  .hero,
  .doc-hero {
    background-image: none;
  }

  .hero::after {
    content: none;
  }

  .site-footer {
    background: #ffffff;
    color: var(--ink);
    border-top: 1px solid var(--ink);
  }

  .site-footer *,
  .footer-legal a {
    color: var(--ink) !important;
  }

  .feature--primary,
  .ledger {
    background: #ffffff;
    color: var(--ink);
  }

  .feature--primary *,
  .ledger * {
    color: var(--ink) !important;
  }
}
