/* Layout A "Blatt" (decision 32): the page as a well-set CV sheet on a
   12-column grid with numbered margins and hairlines. Colours, type, spacing
   and motion come from the tokens (/tokens.css) and nowhere else: no colour,
   duration or easing literals here, and only transform and opacity animate. */

/* Self-hosted Latin + German subsets (tool/fonts/README.md): one file per
   face, so no unicode-range split. Newsreader is the display face and is
   preloaded in the page head; the text face is one variable file covering the
   400 to 600 weights the site uses. */
@font-face {
  font-family: "Newsreader";
  font-style: normal;
  font-weight: 520;
  font-display: swap;
  src: url("/fonts/newsreader-520.woff2") format("woff2");
}

@font-face {
  font-family: "Hanken Grotesk";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("/fonts/hanken-grotesk-400-600.woff2") format("woff2");
}

@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/jetbrains-mono-400.woff2") format("woff2");
}


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

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

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

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-family-text);
  font-weight: var(--font-weight-text);
  font-size: var(--text-body-size);
  line-height: var(--text-body-line-height);
  letter-spacing: var(--text-body-tracking);
  /* Only the faces shipped: no browser-made bold or italic. */
  font-synthesis: none;
  font-feature-settings: "kern", "liga";
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

h1,
h2,
h3,
p,
ul,
ol {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

h1,
h2,
h3 {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-display);
  letter-spacing: var(--text-h2-tracking);
  /* Words are never broken, only at a soft hyphen the copy carries. */
  overflow-wrap: normal;
  hyphens: manual;
  text-wrap: balance;
}

h1 {
  font-size: clamp(
    var(--text-h1-size-min),
    var(--text-h1-size-fluid),
    var(--text-h1-size-max)
  );
  line-height: var(--text-h1-line-height);
  letter-spacing: var(--text-h1-tracking);
}

h2 {
  font-size: clamp(
    var(--text-h2-size-min),
    var(--text-h2-size-fluid),
    var(--text-h2-size-max)
  );
  line-height: var(--text-h2-line-height);
}

h3 {
  font-size: clamp(
    var(--text-h3-size-min),
    var(--text-h3-size-fluid),
    var(--text-h3-size-max)
  );
  line-height: var(--text-h3-line-height);
}

main {
  flex: 1;
}

main:focus {
  outline: none;
}

.mono,
.label {
  font-family: var(--font-family-mono);
  font-weight: var(--font-weight-mono);
  font-size: var(--text-mono-size);
  line-height: var(--text-mono-line-height);
  letter-spacing: var(--text-mono-tracking);
}

.label {
  font-size: var(--text-label-size);
  line-height: var(--text-label-line-height);
  letter-spacing: var(--text-label-tracking);
  text-transform: uppercase;
  color: var(--color-muted);
}

.muted {
  color: var(--color-muted);
}

/* The accent is almost the text colour (1.02:1), so a link is told from text
   by its underline alone (decision 21). */
a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: var(--stroke-hairline);
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-thickness: var(--stroke-focus);
}

:focus-visible {
  outline: var(--stroke-focus) solid var(--color-focus);
  outline-offset: var(--stroke-focus-offset);
  border-radius: var(--stroke-hairline);
}

.skip {
  position: absolute;
  left: var(--space-2);
  top: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--color-surface);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

/* ---- The sheet: the wrap, the 12 columns ---------------------------------- */

:root {
  --gutter: clamp(
    var(--layout-gutter-min),
    var(--layout-gutter-fluid),
    var(--layout-gutter-max)
  );
}

.wrap {
  width: 100%;
  max-width: calc(var(--layout-max) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* A numbered row (and the page header of the sub-pages): the 12 columns, the
   margin label in the first two, the content in the other ten. */
.row,
.pagehead {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--layout-column-gap);
  border-top: var(--stroke-hairline) solid var(--color-rule);
  padding-block: clamp(
    var(--layout-section-pad-min),
    var(--layout-section-pad-fluid),
    var(--layout-section-pad-max)
  );
}

.margin {
  grid-column: 1 / 3;
  padding-top: var(--space-2-5);
}

.main {
  grid-column: 3 / 13;
  min-width: 0;
}

.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  margin-bottom: var(--space-9);
}

.head a {
  font-size: var(--text-nav-size);
  white-space: nowrap;
}

/* The page header of every page but Home: the margin column, the H1, an
   optional intro. */
.pagehead {
  border-top: 0;
  padding-block: clamp(
      var(--layout-pagehead-top-min),
      var(--layout-pagehead-top-fluid),
      var(--layout-pagehead-top-max)
    )
    clamp(
      var(--layout-pagehead-bottom-min),
      var(--layout-pagehead-bottom-fluid),
      var(--layout-pagehead-bottom-max)
    );
}

.pagehead h1 {
  font-size: clamp(
    var(--text-h1-page-size-min),
    var(--text-h1-page-size-fluid),
    var(--text-h1-page-size-max)
  );
  line-height: var(--text-h1-page-line-height);
}

.intro {
  margin-top: var(--space-7);
  max-width: 34em;
  font-size: clamp(
    var(--text-lead-size-min),
    var(--text-lead-size-fluid),
    var(--text-lead-size-max)
  );
  line-height: var(--text-lead-line-height);
}

.pagehead .intro {
  margin-top: var(--space-5);
  max-width: 36em;
}

/* The links below the text of a 404 page: two outlined buttons. */
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-top: var(--space-7);
}

@media (max-width: 640px) {
  .head {
    flex-wrap: wrap;
  }
}

@media (max-width: 900px) {
  .margin {
    display: none;
  }

  .main {
    grid-column: 1 / -1;
  }
}

/* ---- Header --------------------------------------------------------------- */

.site-header {
  border-bottom: var(--stroke-hairline) solid var(--color-rule);
}

.bar {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1-5) var(--layout-nav-gap);
  padding-block: var(--layout-nav-pad);
}

.brand {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-display);
  font-size: var(--text-wordmark-size);
  line-height: var(--text-wordmark-line-height);
  letter-spacing: var(--text-wordmark-tracking);
  text-decoration: none;
}

.brand:hover {
  text-decoration: underline;
  text-decoration-thickness: var(--stroke-hairline);
}

.primary ul {
  display: flex;
  gap: var(--layout-nav-gap);
  align-items: baseline;
  font-size: var(--text-nav-size);
}

.primary a[aria-current],
.foot a[aria-current] {
  text-decoration-thickness: var(--stroke-focus);
}

.lang-switch {
  font-family: var(--font-family-mono);
  font-size: var(--text-mono-size);
}

@media (max-width: 640px) {
  .bar {
    padding-block: var(--layout-nav-pad-phone-top)
      var(--layout-nav-pad-phone-bottom);
  }

  /* Two rows, no menu button for four links. */
  .primary {
    order: 3;
    width: 100%;
    padding-top: var(--space-1-5);
  }

  .primary ul {
    gap: var(--space-5-5);
  }

  .lang-switch {
    margin-left: auto;
  }
}

@media (max-width: 380px) {
  .primary ul {
    gap: var(--space-3-5);
    font-size: var(--text-nav-size-narrow);
  }
}

/* ---- Buttons -------------------------------------------------------------- */

/* The outlined button; the bone slab is the only filled control. */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: var(--layout-btn-height);
  padding: 0 var(--layout-btn-pad);
  font-family: var(--font-family-text);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-button-size);
  line-height: 1.2;
  text-decoration: none;
  border: var(--stroke-hairline) solid var(--color-fg);
  border-radius: var(--radius-sm);
  color: var(--color-fg);
  background: transparent;
}

.btn:hover {
  background: color-mix(in srgb, var(--color-fg) 8%, transparent);
}

.arrow {
  flex: none;
  transition: transform var(--duration-quick) var(--ease-out);
}

.btn:hover .arrow,
.slab a:hover .arrow {
  transform: translateX(var(--space-1));
}

/* ---- Hero ----------------------------------------------------------------- */

.hero {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--layout-column-gap);
  align-items: end;
  padding-block: clamp(
      var(--layout-hero-top-min),
      var(--layout-hero-top-fluid),
      var(--layout-hero-top-max)
    )
    clamp(
      var(--layout-hero-bottom-min),
      var(--layout-hero-bottom-fluid),
      var(--layout-hero-bottom-max)
    );
}

.hero-text {
  grid-column: 1 / 8;
  padding-bottom: var(--space-2);
}

.hero h1 {
  max-width: 16ch;
}

.hero .intro {
  margin-top: var(--space-7);
}

/* The photo: four of the twelve columns (about 380px at 1280px). */
.hero-photo {
  grid-column: 9 / 13;
}

.hero-photo img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-6);
}

.hero-profiles,
.contact-profiles {
  gap: var(--space-5);
  margin-top: var(--space-3-5);
  font-family: var(--font-family-mono);
  font-size: var(--text-mono-size);
  color: var(--color-muted);
}

/* The two equal next steps as one split slab: the accent as a fill, two equal
   halves (decision 9). */
.slab {
  display: inline-flex;
  margin-top: var(--space-9);
  background: var(--color-accent);
  border-radius: var(--radius-sm);
}

.slab a {
  display: inline-flex;
  align-items: center;
  gap: 0.55em;
  min-height: var(--layout-slab-height);
  padding: 0 var(--layout-slab-pad);
  color: var(--color-on-accent);
  text-decoration: none;
  font-family: var(--font-family-text);
  font-weight: var(--font-weight-medium);
  font-size: var(--text-button-size-slab);
  line-height: 1.2;
}

.slab a + a {
  border-left: var(--stroke-hairline) solid
    color-mix(in srgb, var(--color-on-accent) 30%, var(--color-accent));
}

.slab a:hover {
  background: color-mix(in srgb, var(--color-accent) 88%, var(--color-fg));
}

@media (max-width: 900px) {
  .hero-photo {
    grid-column: 8 / 13;
  }
}

@media (max-width: 640px) {
  .hero {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    padding-top: var(--space-6);
  }

  /* The photo comes first on phones (about 208px at 390px). */
  .hero-photo {
    order: -1;
    width: var(--layout-photo-phone);
    margin-bottom: var(--space-7);
  }

  .hero-profiles {
    margin-top: var(--space-2-5);
  }

  .hero .intro {
    margin-top: var(--space-5);
  }

  .slab {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin-top: var(--space-7);
  }

  .slab a {
    justify-content: space-between;
  }

  .slab a + a {
    border-left: 0;
    border-top: var(--stroke-hairline) solid
      color-mix(in srgb, var(--color-on-accent) 30%, var(--color-accent));
  }
}

/* ---- Areas: CV entries, heading left, text right --------------------------- */

.areas li {
  display: grid;
  grid-template-columns: 4fr 6fr;
  column-gap: var(--layout-column-gap);
  padding-block: var(--space-6-5);
  border-top: var(--stroke-hairline) solid var(--color-rule);
}

.areas li:first-child {
  border-top: 0;
  padding-top: 0;
}

.areas h3 {
  padding-right: var(--space-4);
}

.areas p {
  max-width: 36em;
}

@media (max-width: 900px) {
  .areas li {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-2-5);
  }
}

/* ---- Projects: one large, two stacked --------------------------------------- */

.projects {
  display: grid;
  grid-template-columns: 7fr 5fr;
  gap: var(--layout-column-gap);
}

.feature {
  display: flex;
  flex-direction: column;
  gap: var(--space-5-5);
  padding: clamp(
    var(--layout-card-pad-min),
    var(--layout-card-pad-fluid),
    var(--layout-card-pad-max)
  );
  background: var(--color-surface);
  border-radius: var(--radius-sm);
}

.feature h3 {
  font-size: clamp(
    var(--text-feature-size-min),
    var(--text-feature-size-fluid),
    var(--text-feature-size-max)
  );
  line-height: var(--text-feature-line-height);
}

.feature p {
  max-width: 30em;
  font-size: var(--text-body-large-size);
}

.side {
  display: grid;
}

.side article {
  padding-block: var(--space-5-5);
  border-top: var(--stroke-hairline) solid var(--color-rule);
}

.side article:first-child {
  border-top: 0;
  padding-top: var(--space-1);
}

.side p {
  margin-top: var(--space-2-5);
}

@media (max-width: 640px) {
  .projects {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature {
    gap: var(--space-5);
  }

  .side article:first-child {
    border-top: var(--stroke-hairline) solid var(--color-rule);
    padding-top: var(--space-5-5);
  }
}

/* ---- Career: a horizontal line with four stations ---------------------------- */

.career {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--layout-column-gap);
}

.career li {
  position: relative;
  display: grid;
  gap: var(--space-2);
  align-content: start;
  padding-top: var(--space-7);
  border-top: var(--stroke-hairline) solid var(--color-muted);
}

.career li::before {
  content: "";
  position: absolute;
  top: calc(var(--layout-station-dot) / -2 - var(--stroke-hairline) / 2);
  left: 0;
  width: var(--layout-station-dot);
  height: var(--layout-station-dot);
  background: var(--color-fg);
  border-radius: 50%;
}

.year {
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-display);
  letter-spacing: var(--text-h2-tracking);
  font-size: var(--text-year-size);
  line-height: 1;
}

@media (max-width: 640px) {
  .career {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding-left: var(--space-1);
  }

  .career li {
    border-top: 0;
    border-left: var(--stroke-hairline) solid var(--color-muted);
    padding: 0 0 var(--space-6-5) var(--space-6);
  }

  .career li::before {
    top: var(--space-2);
    left: calc(var(--layout-station-dot) / -2 - var(--stroke-hairline) / 2);
  }

  .career li:last-child {
    padding-bottom: 0;
  }

  .career .year {
    font-size: var(--text-year-size-phone);
  }
}

/* ---- Kontakt: the address as the page's one big line, the square photo ------- */

.contact {
  display: grid;
  grid-template-columns: 1fr var(--layout-contact-photo);
  gap: var(--layout-contact-gap);
  align-items: end;
}

.contact img {
  width: var(--layout-contact-photo);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

/* A word that must not break, e.g. after the hyphen of "E-Mail:". */
.nw {
  white-space: nowrap;
}

.mail {
  margin-block: var(--space-5);
  font-family: var(--font-family-display);
  font-weight: var(--font-weight-display);
  font-size: clamp(
    var(--text-mail-size-min),
    var(--text-mail-size-fluid),
    var(--text-mail-size-max)
  );
  line-height: var(--text-mail-line-height);
  letter-spacing: var(--text-mail-tracking);
  /* The address is one word: it wraps nowhere but where the box ends. */
  overflow-wrap: anywhere;
}

.mail a {
  text-decoration-thickness: var(--stroke-focus);
  text-underline-offset: 0.14em;
}

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

@media (max-width: 640px) {
  .contact {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact picture {
    order: -1;
  }

  .contact img {
    width: var(--layout-contact-photo-phone);
  }

  .mail {
    font-size: clamp(
      var(--text-mail-size-phone-min),
      var(--text-mail-size-phone-fluid),
      var(--text-mail-size-phone-max)
    );
  }
}

/* ---- Next steps: two equal halves, identical outlined buttons ----------------- */

/* The last row sits on the footer. */
.next {
  padding-bottom: 0;
}

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

.half {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: var(--space-3-5);
  justify-items: start;
  padding-right: var(--layout-half-gap);
}

.half + .half {
  padding: 0 0 0 var(--layout-half-gap);
  border-left: var(--stroke-hairline) solid var(--color-rule);
}

.half h2,
.half h3 {
  font-size: clamp(
    var(--text-step-size-min),
    var(--text-step-size-fluid),
    var(--text-step-size-max)
  );
  line-height: var(--text-step-line-height);
}

.half p {
  max-width: 30em;
}

/* Text-only halves (Kontakt): each stacks from the top, no pinned button row. */
.halves.start .half {
  grid-template-rows: none;
  align-content: start;
}

.half .btn {
  margin-top: var(--space-2-5);
}

@media (max-width: 640px) {
  .halves {
    grid-template-columns: minmax(0, 1fr);
  }

  .half {
    padding: 0 0 var(--space-8);
  }

  .half + .half {
    padding: var(--space-8) 0 0;
    border-left: 0;
    border-top: var(--stroke-hairline) solid var(--color-rule);
  }

  .half .btn {
    width: 100%;
    justify-content: space-between;
  }
}

/* ---- Projekte: entries, name left, text right ------------------------------- */

.entries {
  display: grid;
}

.entry {
  display: grid;
  grid-template-columns: 4fr 6fr;
  column-gap: var(--layout-column-gap);
  row-gap: var(--space-2-5);
  padding-block: var(--space-7);
  border-top: var(--stroke-hairline) solid var(--color-rule);
}

.entries .entry:first-child {
  border-top: 0;
  padding-top: 0;
}

.entry > h3 {
  grid-column: 1;
  grid-row: 1 / span 2;
  padding-right: var(--space-4);
}

.entry > :not(h3) {
  grid-column: 2;
  max-width: 38em;
}

.entry .line {
  font-size: var(--text-body-large-size);
  line-height: 1.45;
}

.entry .meta {
  color: var(--color-muted);
}

.entry .tx {
  margin-top: var(--space-1-5);
}

/* The mods: a mono name, then what it is; the add-ons nest one level. */
.mods {
  display: grid;
  gap: var(--space-2-5);
  margin-top: var(--space-2-5);
}

.mods .mono {
  display: block;
  font-size: var(--text-fine-size);
}

.mods.sub {
  padding-left: var(--space-5);
  border-left: var(--stroke-hairline) solid var(--color-rule);
}

.links {
  margin-top: var(--space-1-5);
  line-height: 1.9;
}

.other {
  display: grid;
  gap: var(--space-5);
  max-width: 46em;
}

.other strong {
  font-weight: var(--font-weight-strong);
}

@media (max-width: 900px) {
  .entry {
    grid-template-columns: minmax(0, 1fr);
  }

  .entry > h3,
  .entry > :not(h3) {
    grid-column: 1;
    grid-row: auto;
  }
}

/* ---- Legal pages (Impressum, Datenschutz): running text in rows -------------- */

.legal-notice {
  margin-top: var(--space-3-5);
}

/* Many short rows: tighter than the sections of the content pages. */
.row.legal {
  padding-block: var(--space-7);
}

.legal h2 {
  font-size: clamp(
    var(--text-h3-size-min),
    var(--text-h3-size-fluid),
    var(--text-h3-size-max)
  );
  line-height: var(--text-h3-line-height);
}

.legal p,
.legal .facts {
  max-width: 40em;
  margin-top: var(--space-3-5);
}

.facts dt {
  margin-top: var(--space-4);
  color: var(--color-muted);
  font-size: var(--text-small-size);
}

.facts dt:first-child {
  margin-top: 0;
}

.facts dd {
  margin: var(--space-1) 0 0;
}

/* ---- Lebenslauf: the page header with the portrait, the CV entries ---------- */

/* The filled variant of the button: the one bone slab, used for the PDF. */
.btn-slab {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-on-accent);
}

.btn-slab:hover {
  background: color-mix(in srgb, var(--color-accent) 88%, var(--color-fg));
}

.cvhead .main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--layout-cv-photo);
  gap: var(--space-8);
  align-items: end;
}

.cv-photo {
  display: block;
}

.cv-photo img {
  width: var(--layout-cv-photo);
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: var(--radius-sm);
}

.dl {
  margin-top: var(--space-8);
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.dl p {
  font-size: var(--text-label-size);
}

.row .main > h2 {
  margin-bottom: var(--space-9);
}

.cv {
  display: grid;
  grid-template-columns: var(--layout-cv-date-col) minmax(0, 1fr);
  column-gap: var(--layout-column-gap);
  padding-block: var(--space-5-5);
  border-top: var(--stroke-hairline) solid var(--color-rule);
}

.cvlist .cv:first-child {
  border-top: 0;
  padding-top: 0;
}

.cv .when {
  color: var(--color-muted);
  padding-top: var(--space-1);
}

.cv h3 {
  font-size: var(--text-h3-size-min);
}

.cv .org {
  color: var(--color-muted);
  margin-top: calc(var(--space-1) / 2);
}

.bul {
  margin-top: var(--space-2-5);
  display: grid;
  gap: var(--space-1-5);
  max-width: 42em;
}

.bul li {
  position: relative;
  padding-left: var(--layout-bullet-indent);
}

.bul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.78em;
  width: var(--layout-bullet-width);
  height: var(--stroke-hairline);
  background: var(--color-muted);
}

.skills > div {
  display: grid;
  grid-template-columns: var(--layout-cv-skills-col) minmax(0, 1fr);
  gap: var(--layout-column-gap);
  padding-block: var(--space-3);
  border-top: var(--stroke-hairline) solid var(--color-rule);
}

.skills > div:first-child {
  border-top: 0;
}

.skills dt {
  font-weight: var(--font-weight-strong);
}

.skills dd {
  margin: 0;
}

.langs {
  display: grid;
  gap: var(--space-1-5);
}

@media (max-width: 640px) {
  .cvhead .main {
    grid-template-columns: minmax(0, 1fr);
  }

  .cv-photo {
    order: -1;
  }

  .cv-photo img {
    width: var(--layout-cv-photo-phone);
  }

  .dl .btn {
    width: 100%;
    justify-content: space-between;
  }

  .cv {
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--space-1);
  }

  .skills > div {
    grid-template-columns: minmax(0, 1fr);
    gap: calc(var(--space-1) / 2);
  }
}

/* ---- Footer ---------------------------------------------------------------- */

.site-footer {
  margin-top: clamp(
    var(--layout-footer-gap-min),
    var(--layout-footer-gap-fluid),
    var(--layout-footer-gap-max)
  );
  border-top: var(--stroke-hairline) solid var(--color-rule);
}

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3-5) var(--space-10);
  padding-block: var(--space-8) var(--space-10);
  font-size: var(--text-small-size);
}

.foot-links,
.foot-legal ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5-5);
}

.foot-operator {
  width: 100%;
  color: var(--color-muted);
  font-size: var(--text-fine-size);
}

/* ---- Reveals (decision 25, web/reveal.js) ---------------------------------- */

/* Only when reveal.js runs and motion is allowed does it add .reveal-on to
   <html>, and only then are .reveal elements hidden; it adds .is-in once as
   each enters view. Without JavaScript they are plain content. */
:root.reveal-on .reveal {
  opacity: 0;
  transform: translateY(var(--space-2));
}

:root.reveal-on .reveal.is-in {
  opacity: 1;
  transform: none;
  transition:
    opacity var(--duration-base) var(--ease-settle),
    transform var(--duration-base) var(--ease-settle);
}

/* The stagger within a group (data-step, set by reveal.js). */
:root.reveal-on .reveal[data-step="1"] {
  transition-delay: calc(1 * var(--duration-stagger));
}

:root.reveal-on .reveal[data-step="2"] {
  transition-delay: calc(2 * var(--duration-stagger));
}

:root.reveal-on .reveal[data-step="3"] {
  transition-delay: calc(3 * var(--duration-stagger));
}

:root.reveal-on .reveal[data-step="4"] {
  transition-delay: calc(4 * var(--duration-stagger));
}

:root.reveal-on .reveal[data-step="5"] {
  transition-delay: calc(5 * var(--duration-stagger));
}

/* Reduced motion: everything shown, nothing moves (reveal.js does not run
   either; this covers the setting changing while the page is open). */
@media (prefers-reduced-motion: reduce), print {
  :root.reveal-on .reveal,
  :root.reveal-on .reveal.is-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .arrow {
    transition: none;
  }
}
