/* dynjandi.dev site stylesheet: the landing page and the four policy pages. Static, no web font, no script.

   Contrast (WCAG AA, 4.5:1 for text), computed from the values below.
   Light: body text #0f172a on #ffffff and on #f6f8fa above 15:1; headings #020617 higher still;
     muted #45556c on #ffffff 7.58:1 and on #f6f8fa 7.12:1;
     accent #00786f (links, numerals, the brand mark) on #ffffff 5.36:1 and on #f6f8fa 5.04:1;
     button text #ffffff on accent #00786f 5.36:1, and on hover #005f5a 7.54:1.
   Dark: text #e2e8f0 on #020617 and on #0f172a above 13:1; headings #f8fafc higher still;
     muted #94a3b8 on #020617 7.87:1 and on #0f172a 6.96:1;
     accent #46ecd5 on #020617 and on #0f172a above 12:1; button text #020617 on #46ecd5 above 12:1.
   Panels (the demo, the beta band, the URL anatomy) are dark in both themes: text #f1f5f9 on #0f172a above 15:1;
     muted #94a3b8 6.96:1; accent #46ecd5 12.1:1; button text #0f172a on #46ecd5 12.1:1.
   Open-question marks (mark.open): light #5a0000 on #ffd6d6 and dark #ffd6d6 on #5a1a1a are both above 7:1. */

:root {
  color-scheme: light dark;

  /* ---- Colour, light ---- */
  --bg: #f6f8fa;
  --surface: #ffffff;
  --text: #0f172a;
  --heading: #020617;
  --muted: #45556c;
  --line: #e2e8f0;
  --accent: #00786f;
  --accent-hover: #005f5a;
  --accent-ink: #ffffff; /* text on --accent, 5.3:1 */
  --focus: #00786f;
  --open-bg: #ffd6d6;
  --open-fg: #5a0000;

  /* The dark panels (demo, beta band, URL anatomy) are dark in both themes. */
  --panel: #0f172a;
  --panel-raise: #1d293d;
  --panel-line: rgb(255 255 255 / 10%);
  --panel-text: #f1f5f9;
  --panel-muted: #94a3b8; /* 6.9:1 on --panel */
  --panel-accent: #46ecd5;
  --panel-ink: #0f172a; /* text on --panel-accent */
  --scrim: rgb(2 6 23 / 58%);
  --focal-ring: rgb(70 236 213 / 35%);

  /* ---- The illustrated original (same in both themes; it stands in for a photo) ---- */
  --s-sky-top: #b4c6d2;
  --s-sky-low: #e6eef2;
  --s-far: #8fa3b0;
  --s-cliff: #34474f;
  --s-strata: #22323a;
  --s-moss: #4b6a42;
  --s-moss-2: #61804f;
  --s-water-top: #ffffff;
  --s-water-low: #b9d8e0;
  --s-streak: #9fc3cc;
  --s-pool: #2e4954;
  --s-spray: #ffffff;

  /* ---- Type: system fonts only. Avenir Next where the system has it; no web font, so no request (SOURCES.md P37). ---- */
  --font: "Avenir Next", Avenir, "Segoe UI", system-ui, sans-serif;
  --font-code: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.25rem;
  --step-2: 1.5rem;
  --step-3: clamp(1.9rem, 3.4vw, 2.6rem);
  --step-4: clamp(2.5rem, 6vw, 4.6rem);

  /* ---- Space and shape ---- */
  --sp-xs: 0.5rem;
  --sp-s: 0.75rem;
  --sp-m: 1.25rem;
  --sp-l: 2rem;
  --sp-xl: 3rem;
  --sp-2xl: clamp(4rem, 9vw, 7rem);
  --container: 74rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --r-s: 6px;
  --r-m: 10px;
  --r-l: 18px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---- Colour, dark: follows the system setting ---- */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #020617;
    --surface: #0f172a;
    --text: #e2e8f0;
    --heading: #f8fafc;
    --muted: #94a3b8;
    --line: #1d293d;
    --accent: #46ecd5;
    --accent-hover: #85f5e3;
    --accent-ink: #020617;
    --focus: #46ecd5;
    --panel-line: rgb(255 255 255 / 12%);
    --open-bg: #5a1a1a;
    --open-fg: #ffd6d6;
  }
}

/* ================================================================ base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-padding-top: 5rem;
}
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: var(--step-0) / 1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
h1,
h2,
h3 {
  color: var(--heading);
  text-wrap: balance;
}
p {
  text-wrap: pretty;
}
a {
  color: var(--accent);
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
code {
  font-family: var(--font-code);
}
.wrap {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: var(--sp-s);
  top: -4rem;
  z-index: 20;
  padding: var(--sp-xs) var(--sp-s);
  background: var(--surface);
}
.skip:focus {
  top: var(--sp-s);
}

/* ================================================================ buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.875rem;
  padding: 0 1.35rem;
  border: 2px solid var(--accent);
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}
.button:hover {
  background: var(--accent-hover);
  border-color: var(--accent-hover);
}
.button-quiet {
  background: transparent;
  border-color: var(--line);
  color: var(--heading);
}
.button-quiet:hover {
  background: var(--surface);
  border-color: var(--muted);
}

/* ================================================================ header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
/* On a phone, at high zoom or on a short screen the header scrolls away: pinned, it would cover a third of the
   viewport at 400% zoom (#142). */
@media (max-width: 40rem), (max-height: 30rem) {
  html {
    scroll-padding-top: 1rem;
  }
  .site-header {
    position: static;
  }
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--heading);
  font-size: 1.1875rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  text-decoration: none;
}
.brand svg {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--accent);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: var(--sp-m);
  margin-left: auto;
}
.site-nav a:not(.button) {
  color: var(--muted);
  font-weight: 500;
  text-decoration: none;
}
.site-nav a:not(.button):hover {
  color: var(--heading);
}
.site-nav .button {
  min-height: 2.5rem;
  padding: 0 1.1rem;
}
@media (max-width: 52rem) {
  .site-nav:not(.docs-nav) a:not(.button) {
    display: none;
  }
}
@media (max-width: 30rem) {
  .site-header .wrap {
    gap: var(--sp-s);
  }
  .site-nav .button {
    min-height: 2.25rem;
    padding: 0 0.8rem;
    font-size: var(--step--1);
  }
}

/* ================================================================ hero */

.hero {
  padding-block: clamp(3rem, 7vw, 5.5rem) var(--sp-2xl);
}
.hero-head {
  display: grid;
  gap: var(--sp-l);
  align-items: end;
}
@media (min-width: 62rem) {
  .hero-head {
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: var(--sp-xl);
  }
}
.hero h1 {
  margin: 0;
  font-size: var(--step-4);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.lede {
  margin: 0 0 var(--sp-m);
  max-width: 34rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-s);
}
.fine {
  margin: var(--sp-s) 0 0;
  color: var(--muted);
  font-size: var(--step--1);
}

/* ================================================================ demo — the one loud thing */

.demo {
  --fx: 0%;
  --fy: 0%;
  --fw: 100%;
  --fh: 50%;
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  margin-top: clamp(2.5rem, 5vw, 4rem);
  padding: clamp(0.75rem, 2.5vw, 1.75rem);
  border: 1px solid var(--panel-line);
  border-radius: var(--r-l);
  background: var(--panel);
  color: var(--panel-text);
}
@media (min-width: 62rem) {
  .demo {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  }
}
.demo:has(#v-square:checked) {
  --fx: 10.75%;
  --fw: 62.5%;
  --fh: 100%;
}
.demo:has(#v-portrait:checked) {
  --fx: 21.17%;
  --fw: 41.67%;
  --fh: 100%;
}
.demo-label {
  margin: 0 0 var(--sp-xs);
  padding: 0;
  color: var(--panel-muted);
  font-size: var(--step--1);
  font-weight: 500;
}
.source {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border-radius: var(--r-m);
}
.source > svg {
  display: block;
  width: 100%;
  height: 100%;
}
.frame {
  position: absolute;
  left: var(--fx);
  top: var(--fy);
  width: var(--fw);
  height: var(--fh);
  border: 2px solid var(--panel-accent);
  border-radius: 3px;
  box-shadow: 0 0 0 100vmax var(--scrim);
  transition:
    left 0.5s var(--ease),
    top 0.5s var(--ease),
    width 0.5s var(--ease),
    height 0.5s var(--ease);
}
.focal {
  position: absolute;
  left: 42%;
  top: 18%;
  width: 14px;
  height: 14px;
  margin: -7px 0 0 -7px;
  border: 2px solid var(--panel);
  border-radius: 50%;
  background: var(--panel-accent);
  box-shadow: 0 0 0 5px var(--focal-ring);
}
.demo-note {
  margin: var(--sp-s) 0 0;
  color: var(--panel-muted);
  font-size: var(--step--1);
}

.urls {
  display: grid;
  gap: var(--sp-xs);
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.url {
  position: relative;
  display: block;
}
.url input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.url span {
  display: block;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--panel-line);
  border-radius: var(--r-s);
  color: var(--panel-muted);
  font: var(--step--1) / 1.45 var(--font-code);
  overflow-wrap: anywhere;
  cursor: pointer;
}
.url span b {
  color: var(--panel-text);
  font-weight: 600;
}
.url input:hover + span {
  border-color: var(--panel-muted);
}
.url input:checked + span {
  border-color: var(--panel-accent);
  background: var(--panel-raise);
  color: var(--panel-text);
}
.url input:checked + span b {
  color: var(--panel-accent);
}
.url input:focus-visible + span {
  outline: 3px solid var(--panel-accent);
  outline-offset: 2px;
}
/* Forced colours replace every colour above with one system colour, so the chosen URL is marked by width too (#141). */
@media (forced-colors: active) {
  .url input:checked + span {
    border: 3px solid Highlight;
    padding: calc(0.7rem - 2px) calc(0.9rem - 2px);
  }
}

.output {
  margin-top: var(--sp-m);
}
.stage {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 13rem;
  padding: var(--sp-s);
  border-radius: var(--r-m);
  background: var(--panel-raise);
}
.stage svg,
.size {
  display: none;
}
.stage svg {
  border-radius: 3px;
}
.out-banner {
  width: 100%;
  aspect-ratio: 1280 / 400;
}
.out-square {
  height: 100%;
  aspect-ratio: 1;
}
.out-portrait {
  height: 100%;
  aspect-ratio: 600 / 900;
}
.demo:has(#v-banner:checked) .out-banner,
.demo:has(#v-square:checked) .out-square,
.demo:has(#v-portrait:checked) .out-portrait {
  display: block;
}
.demo:has(#v-banner:checked) .size-banner,
.demo:has(#v-square:checked) .size-square,
.demo:has(#v-portrait:checked) .size-portrait {
  display: inline;
}
.output .demo-note code {
  color: var(--panel-text);
}

@media (prefers-reduced-motion: reduce) {
  .frame {
    transition: none;
  }
}

/* ================================================================ sections */

.section {
  padding-block: var(--sp-2xl);
}
.section-alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}
.section h2 {
  margin: 0 0 var(--sp-s);
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.section-lede {
  margin: 0 0 var(--sp-xl);
  max-width: 38rem;
  color: var(--muted);
  font-size: var(--step-1);
  line-height: 1.5;
}
h3 {
  margin: 0 0 0.35rem;
  font-size: var(--step-1);
  line-height: 1.3;
  letter-spacing: -0.01em;
}

/* How it works: a real sequence, so it is numbered. On wide screens each step sits a ledge lower,
   like the falls' tiers. */
.steps {
  display: grid;
  gap: var(--sp-l);
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
@media (min-width: 52rem) {
  .steps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .steps li:nth-child(2) {
    margin-top: var(--sp-l);
  }
  .steps li:nth-child(3) {
    margin-top: calc(var(--sp-l) * 2);
  }
}
.steps li {
  counter-increment: step;
  padding-top: var(--sp-m);
  border-top: 3px solid var(--heading);
}
.steps li::before {
  content: counter(step);
  display: block;
  margin-bottom: var(--sp-s);
  color: var(--accent);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1;
}
.steps p {
  margin: 0;
  color: var(--muted);
}

.anatomy {
  display: flex;
  flex-wrap: wrap;
  margin: var(--sp-2xl) 0 0;
  padding: var(--sp-l) var(--sp-m);
  list-style: none;
  border-radius: var(--r-l);
  background: var(--panel);
  row-gap: var(--sp-m);
}
.anatomy li {
  display: grid;
  gap: var(--sp-xs);
}
.anatomy code {
  padding-bottom: var(--sp-xs);
  border-bottom: 2px solid var(--panel-line);
  color: var(--panel-muted);
  font-size: clamp(0.9375rem, 2vw, 1.25rem);
  overflow-wrap: anywhere;
}
.anatomy li.key code {
  border-bottom-color: var(--panel-accent);
  color: var(--panel-text);
}
.anatomy span {
  padding-right: var(--sp-s);
  color: var(--panel-muted);
  font-size: var(--step--1);
}

/* Dashboard */
.split {
  display: grid;
  gap: var(--sp-xl);
}
@media (min-width: 56rem) {
  .split {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }
}
.split .section-lede {
  margin-bottom: 0;
}
.features {
  display: grid;
  gap: var(--sp-l);
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding-left: var(--sp-m);
  border-left: 3px solid var(--accent);
}
.features p {
  margin: 0;
  color: var(--muted);
}

/* Plans: one real table; plans are columns so it fits a phone. */
.table-card {
  padding: var(--sp-m) clamp(0.5rem, 3vw, 2rem);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  background: var(--surface);
}
.plans {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.plans caption {
  padding: var(--sp-xs) 0 var(--sp-m);
  color: var(--muted);
  text-align: left;
}
.plans th,
.plans td {
  padding: 0.95rem 0.6rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
}
.plans tbody tr:last-child > * {
  border-bottom: 0;
}
.plans thead th {
  color: var(--heading);
  font-size: var(--step-1);
  font-weight: 700;
}
.plans tbody th {
  color: var(--muted);
  font-weight: 500;
  text-align: left;
}
.plans .price td {
  color: var(--heading);
  font-size: var(--step-3);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1;
}
.plans .price td span {
  display: block;
  margin-top: 0.3rem;
  color: var(--muted);
  font-size: var(--step--1);
  font-weight: 500;
  letter-spacing: 0;
}
/* At 320px, tightening type and padding alone overflowed by ~20px (measured). The card also gives up its
   side padding and border, so the table gets the full column. */
@media (max-width: 30rem) {
  .table-card {
    padding-inline: 0;
    border-inline: 0;
    border-radius: 0;
    background: transparent;
  }
  .plans {
    font-size: 0.8125rem;
  }
  .plans th,
  .plans td {
    padding: 0.7rem 0.25rem;
  }
  .plans thead th {
    font-size: var(--step-0);
  }
  .plans .price td {
    font-size: var(--step-2);
  }
  .plans .price td span {
    font-size: 0.75rem;
  }
}
.plan-notes {
  display: grid;
  gap: var(--sp-m);
  margin-top: var(--sp-l);
}
@media (min-width: 52rem) {
  .plan-notes {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
.plan-notes p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}
.plan-notes strong {
  display: block;
  color: var(--heading);
  font-size: var(--step-0);
}

/* Beta band */
.band {
  background: var(--panel);
  color: var(--panel-text);
}
.band h2 {
  color: var(--panel-text);
}
.band .section-lede {
  color: var(--panel-muted);
  margin-bottom: var(--sp-l);
}
.band a:not(.button) {
  color: var(--panel-accent);
}
.band .button {
  border-color: var(--panel-accent);
  background: var(--panel-accent);
  color: var(--panel-ink);
}
.band .button:hover {
  background: var(--panel-text);
  border-color: var(--panel-text);
}
.band a:focus-visible {
  outline-color: var(--panel-accent);
}
.band-grid {
  display: grid;
  gap: var(--sp-xl);
  align-items: start;
}
@media (min-width: 56rem) {
  .band-grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  }
}
.band-steps {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: band;
}
.band-steps li {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  padding-block: var(--sp-m);
  border-bottom: 1px solid var(--panel-line);
  counter-increment: band;
}
.band-steps li:first-child {
  padding-top: 0;
}
.band-steps li::before {
  content: counter(band);
  color: var(--panel-accent);
  font-weight: 700;
}
.band-after {
  margin: var(--sp-m) 0 0;
  color: var(--panel-muted);
  font-size: var(--step--1);
}

/* Footer */
.site-footer {
  padding-block: var(--sp-xl) var(--sp-l);
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  gap: var(--sp-l) var(--sp-xl);
}
@media (min-width: 40rem) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (min-width: 56rem) {
  .footer-grid {
    grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) minmax(0, 1fr);
  }
  .footer-brand {
    grid-column: auto;
  }
}
.footer-brand p {
  max-width: 22rem;
  margin-top: var(--sp-s);
}
.site-footer h2 {
  margin: 0 0 var(--sp-s);
  font-size: var(--step-0);
  letter-spacing: 0;
}
.site-footer p {
  margin: 0;
  color: var(--muted);
  font-size: var(--step--1);
}
.footer-mail {
  display: inline-block;
  margin-top: var(--sp-xs);
  font-weight: 600;
}
.footer-links {
  display: grid;
  gap: var(--sp-xs);
  margin: 0;
  padding: 0;
  list-style: none;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
}
.footer-links a:hover {
  color: var(--heading);
  text-decoration: underline;
}
.footer-operator {
  margin-top: var(--sp-xl);
  padding-top: var(--sp-m);
  border-top: 1px solid var(--line);
}
.footer-operator h2 {
  margin-bottom: 0.25rem;
  font-size: var(--step--1);
}
.footer-operator p {
  max-width: none;
}

/* ---- The illustrated original's fills ---- */
.s-sky-top {
  stop-color: var(--s-sky-top);
}
.s-sky-low {
  stop-color: var(--s-sky-low);
}
.s-water-top {
  stop-color: var(--s-water-top);
}
.s-water-low {
  stop-color: var(--s-water-low);
}
.s-far {
  fill: var(--s-far);
}
.s-cliff {
  fill: var(--s-cliff);
}
.s-strata {
  fill: none;
  stroke: var(--s-strata);
  stroke-width: 6;
  opacity: 0.55;
}
.s-moss {
  fill: var(--s-moss);
}
.s-moss-2 {
  fill: var(--s-moss-2);
}
.s-streak-fill {
  fill: var(--s-streak);
  opacity: 0.5;
}
.s-spray {
  fill: var(--s-spray);
  opacity: 0.55;
}
.s-pool {
  fill: var(--s-pool);
}
.s-rocks {
  fill: var(--s-strata);
}

/* ================================================================ policy pages (terms, privacy, abuse, data processing) */

/* The same header and footer as the landing page. The header's links all stay visible, since these pages have no
   anchors to hide; it wraps to three lines on a phone, where it scrolls away like the landing page's. */
.docs-header .wrap {
  flex-wrap: wrap;
  padding-block: var(--sp-xs);
}
.docs-nav {
  flex-wrap: wrap;
  gap: 0.25rem var(--sp-m);
}

.doc {
  max-width: 42rem;
  margin-inline: auto;
  padding: clamp(2rem, 6vw, 4rem) var(--gutter) var(--sp-2xl);
}
.doc h1 {
  margin: 0 0 var(--sp-m);
  font-size: var(--step-3);
  line-height: 1.1;
  letter-spacing: -0.025em;
}
.doc h2 {
  margin: var(--sp-xl) 0 var(--sp-s);
  font-size: var(--step-2);
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.doc h3 {
  margin: var(--sp-l) 0 var(--sp-xs);
}
.doc p,
.doc li {
  max-width: 70ch;
}
.doc p {
  margin: 0 0 var(--sp-s);
}
.doc ul,
.doc ol {
  margin: 0 0 var(--sp-s);
  padding-left: 1.5rem;
}
.doc li {
  margin-bottom: 0.4rem;
}
.doc a {
  text-underline-offset: 0.15em;
}
.doc code {
  padding: 0.1em 0.35em;
  border-radius: var(--r-s);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

/* An unanswered question, should a page carry one again: visible, not colour-only (border). */
mark.open {
  background: var(--open-bg);
  color: var(--open-fg);
  border: 1px dashed currentcolor;
  padding: 0 0.25em;
}

.site-footer-slim .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-s) var(--sp-l);
}
.site-footer-slim .footer-mail {
  margin: 0;
}
.footer-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-xs) var(--sp-m);
}
@media (min-width: 40rem) {
  .site-footer-slim .footer-links-row {
    margin-left: auto;
  }
}
