/* ==========================================================================
   guvercin.email — one stylesheet, no dependencies, no external requests.
   Palette is fixed: yellow #FECD01, blue #2596BE, charcoal #4A4B4B + neutrals.
   ========================================================================== */

/* --------------------------------------------------------------- fonts -- */
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2191, U+2193, U+2212, U+2215;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/HankenGrotesk-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0300-0323, U+1E00-1EFF, U+2020, U+20A0-20AB;
}

/* --------------------------------------------------------------- tokens -- */
:root {
  --yellow: #fecd01;
  --yellow-dark: #efc001;
  --blue: #2596be;
  --blue-ink: #1f7fa1;
  --charcoal: #4a4b4b;
  --white: #ffffff;
  --cream: #fef5c8;
  --grey-50: #f7f7f6;
  --border: #e9eaea;
  --muted: #7a7b7b;
  --cream-wash: #fffbe9;

  --bg: var(--white);
  --surface: var(--white);
  --surface-alt: var(--grey-50);
  --text: var(--charcoal);
  --text-muted: var(--muted);
  --rule: var(--border);
  --link: var(--blue);
  --header-bg: rgba(255, 255, 255, 0.85);

  --shadow-card: 0 1px 2px rgba(74, 75, 75, 0.06), 0 8px 24px rgba(74, 75, 75, 0.06);
  --shadow-hover: 0 2px 4px rgba(74, 75, 75, 0.08), 0 12px 28px rgba(74, 75, 75, 0.09);
  --shadow-hero: 0 24px 64px rgba(74, 75, 75, 0.16);

  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --gutter: 24px;
  --maxw: 1200px;
  --measure: 68ch;
  --section-y: 96px;

  --font: "Hanken Grotesk", Inter, Manrope, system-ui, -apple-system, "Segoe UI",
    Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

:root[data-theme="dark"] {
  --bg: #1e1f1f;
  --surface: #2b2c2c;
  --surface-alt: #262727;
  --text: #f2f2f1;
  --text-muted: #a9aaa9;
  --rule: #3a3b3b;
  --border: #3a3b3b;
  --cream-wash: #232424;
  --link: #3fa9d4;
  --header-bg: rgba(30, 31, 31, 0.85);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-hover: 0 2px 6px rgba(0, 0, 0, 0.36);
  --shadow-hero: 0 24px 64px rgba(0, 0, 0, 0.42);
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  margin: 0 0 16px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}
h1 { font-size: 60px; line-height: 1.05; }
h2 { font-size: 40px; }
h3 { font-size: 24px; letter-spacing: -0.01em; }
h4 { font-size: 20px; letter-spacing: -0.01em; }

p { margin: 0 0 16px; max-width: var(--measure); }
ul, ol { max-width: var(--measure); }

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

img, svg { max-width: 100%; height: auto; }

strong { font-weight: 700; }

hr { border: 0; border-top: 1px solid var(--rule); margin: 48px 0; }

:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
  border-radius: 4px;
}
:root[data-theme="dark"] :focus-visible { outline-color: #3fa9d4; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--yellow);
  color: var(--charcoal);
  font-weight: 700;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  transition: top 150ms ease-out;
}
.skip-link:focus { top: 12px; }

.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;
}

/* ---------------------------------------------------------------- layout -- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}
.section { padding-top: var(--section-y); padding-bottom: var(--section-y); }
.section--tight { padding-top: 64px; padding-bottom: 64px; }
.section--alt { background: var(--surface-alt); }
.section--cream { background: var(--cream-wash); }
.prose { max-width: 720px; }
/* When .prose sits on the same element as .wrap, keep the container full width
   and narrow its children instead, so text lines up with everything else. */
.wrap.prose { max-width: var(--maxw); }
.wrap.prose > * { max-width: 720px; }
.lede { font-size: 20px; color: var(--text-muted); max-width: 640px; }
.center { text-align: center; }
.center p, .center .lede { margin-left: auto; margin-right: auto; }
.stack > * + * { margin-top: 16px; }

.overline {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: var(--text-muted);
  margin: 0 0 12px;
}
.small { font-size: 14px; color: var(--text-muted); }
.note { font-size: 14px; color: var(--text-muted); max-width: var(--measure); }

/* --------------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 14px 26px;
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid transparent;
  cursor: pointer;
  background: none;
  transition: background-color 150ms ease-out, transform 150ms ease-out,
    box-shadow 150ms ease-out, border-color 150ms ease-out, color 150ms ease-out;
}
.btn--primary { background: var(--yellow); color: var(--charcoal); border-color: var(--yellow); }
.btn--primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); transform: translateY(-2px); }
.btn--primary:active { transform: none; }
.btn--secondary { border-color: var(--blue); color: var(--link); }
.btn--secondary:hover { background: rgba(37, 150, 190, 0.08); transform: translateY(-2px); }
.btn--secondary:active { transform: none; }
.btn--ghost {
  min-height: 0; padding: 0; border: 0; color: var(--link);
  text-decoration: underline; text-underline-offset: 4px;
}
.btn--ghost:hover { text-decoration-thickness: 2px; }
.btn--lg { font-size: 18px; padding: 18px 34px; min-height: 58px; }
.btn--sm { font-size: 14px; padding: 10px 18px; min-height: 44px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }
.center .btn-row { justify-content: center; }

/* on charcoal bands */
.on-dark { color: var(--white); }
.on-dark h2, .on-dark h3 { color: var(--white); }
.on-dark p { color: #e9eaea; }
.on-dark .btn--secondary { border-color: var(--white); color: var(--white); }
.on-dark .btn--secondary:hover { background: rgba(255, 255, 255, 0.12); }
.on-dark a:not(.btn) { color: #e9eaea; }
.on-dark :focus-visible { outline-color: #fecd01; }

/* ----------------------------------------------------------------- pills -- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}
.pill--yellow { background: var(--cream); border-color: var(--yellow); color: var(--charcoal); }
.pill--blue { border-color: var(--blue); color: var(--link); background: transparent; }
.pill--dot::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--yellow);
}

/* ----------------------------------------------------------------- cards -- */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.card--flat { box-shadow: none; }
.card h3 { font-size: 20px; margin-bottom: 8px; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.card--link { transition: box-shadow 150ms ease-out, transform 150ms ease-out; }
.card__icon { color: var(--blue); display: block; margin-bottom: 16px; }
:root[data-theme="dark"] .card__icon { color: #3fa9d4; }
.card--highlight { border: 2px solid var(--yellow); }

.grid { display: grid; gap: 24px; }
.grid > * { min-width: 0; }
.grid--4 { grid-template-columns: repeat(4, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ------------------------------------------------------------ trust strip -- */
.trust {
  background: var(--surface-alt);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 22px 0;
}
.trust ul {
  list-style: none;
  margin: 0; padding: 0;
  max-width: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px 0;
  font-size: 15px; font-weight: 600; color: var(--text);
}
.trust li { display: flex; align-items: center; }
.trust li:not(:last-child)::after {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--yellow);
  margin: 0 16px;
  flex: 0 0 auto;
}

/* -------------------------------------------------------------- header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 72px;
  background: var(--header-bg);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--rule);
}
.site-header__inner {
  height: 72px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.02em;
  flex: 0 0 auto;
}
.brand img { width: 34px; height: 32px; display: block; }
img.brand__mark--dark { display: none; }
:root[data-theme="dark"] img.brand__mark--light { display: none; }
:root[data-theme="dark"] img.brand__mark--dark { display: block; }

.nav { margin-right: auto; }
.nav ul {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: flex; align-items: center; gap: 28px;
}
.nav a {
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  padding: 8px 0;
  display: inline-block;
  border-bottom: 2px solid transparent;
}
.nav a:hover { border-bottom-color: var(--border); }
.nav a[aria-current="page"] {
  font-weight: 700;
  border-bottom-color: var(--yellow);
  padding-bottom: 4px;
  margin-bottom: 2px;
}
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: 24px; }
.site-header__inner > .header-actions { margin-left: auto; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  background: none; color: var(--text); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-alt); border-color: var(--border); }
.icon-btn svg { display: block; }
.theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: block; }
.nav-toggle { display: none; }

.mobile-panel {
  position: fixed;
  inset: 72px 0 0;
  background: var(--bg);
  z-index: 99;
  padding: 24px;
  overflow-y: auto;
}
.mobile-panel[hidden] { display: none; }
.mobile-panel ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.mobile-panel li + li { border-top: 1px solid var(--rule); }
.mobile-panel a {
  display: flex; align-items: center; gap: 12px;
  padding: 18px 4px;
  font-size: 20px; font-weight: 600;
  color: var(--text); text-decoration: none;
}
.mobile-panel a[aria-current="page"] { color: var(--link); }

/* ----------------------------------------------------------------- hero -- */
.hero {
  position: relative;
  padding-top: 88px;
  padding-bottom: 0;
  background: linear-gradient(180deg, var(--cream) 0%, var(--bg) 78%);
}
:root[data-theme="dark"] .hero {
  background: radial-gradient(90% 60% at 50% 0%, rgba(37, 150, 190, 0.14), transparent 70%),
    var(--bg);
}
.hero h1 { max-width: 14ch; margin-left: auto; margin-right: auto; }
.hero .lede { font-size: 20px; color: var(--text); opacity: 0.85; }
.hero__figure { margin: 56px auto 0; max-width: 1060px; }
.section--after-hero { padding-top: var(--section-y); }

.frame {
  border-radius: var(--r-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.frame--hero { box-shadow: var(--shadow-hero); }
.frame img { display: block; width: 100%; height: auto; }

/* Every screenshot ships twice, once per app theme, and only the one matching
   the page is shown. The selectors carry .frame because the rule above is
   `.frame img` — a bare `.shot--dark` would lose the specificity contest and
   both would render stacked. */
.frame .shot--dark { display: none; }
[data-theme="dark"] .frame .shot--light { display: none; }
[data-theme="dark"] .frame .shot--dark { display: block; }
figure { margin: 0; }
figcaption { font-size: 14px; color: var(--text-muted); margin-top: 12px; }

/* ------------------------------------------------------------ alternating -- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.split + .split { margin-top: var(--section-y); }
.split--flip .split__media { order: 2; }
.split h2 { font-size: 34px; }
.split ul { padding-left: 20px; }
.split li { margin-bottom: 8px; }
.split li::marker { color: var(--yellow); }

/* --------------------------------------------------------------- anchors -- */
.anchor-list {
  list-style: none; margin: 0; padding: 0; max-width: none;
  display: flex; flex-wrap: wrap; gap: 10px;
}
.anchor-list a {
  display: inline-flex; align-items: center; min-height: 44px;
  padding: 8px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
  font-size: 15px; font-weight: 600;
}
.anchor-list a:hover { border-color: var(--blue); color: var(--link); }
.feature-section { scroll-margin-top: 96px; }

/* ---------------------------------------------------------------- table -- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 16px; }
th, td { text-align: left; padding: 12px 16px 12px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
thead th {
  font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted); font-weight: 700;
}
td:first-child, th:first-child { font-weight: 600; }

/* ----------------------------------------------------------------- code -- */
.code {
  position: relative;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 16px;
  margin: 0 0 16px;
}
.code pre {
  margin: 0;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 14px;
  line-height: 1.7;
  color: var(--text);
}
code { font-family: var(--mono); font-size: 0.92em; }
p code, li code, td code {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
.copy-btn {
  position: absolute; top: 10px; right: 10px;
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 14px;
  min-height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
}
.copy-btn:hover { border-color: var(--blue); color: var(--link); }

/* ------------------------------------------------------------- accordion -- */
.accordion { border-top: 1px solid var(--rule); max-width: 820px; }
.accordion details { border-bottom: 1px solid var(--rule); }
.accordion summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px;
  min-height: 44px;
  font-size: 18px; font-weight: 600;
  cursor: pointer;
  list-style: none;
  color: var(--text);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary::after {
  content: "";
  flex: 0 0 auto;
  width: 12px; height: 12px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 200ms ease-out;
}
.accordion details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.accordion .answer { padding: 0 4px 24px; max-width: 720px; }
.accordion .answer p:last-child { margin-bottom: 0; }

/* ------------------------------------------------------------ misc blocks -- */
.callout {
  border: 1.5px solid var(--blue);
  border-radius: var(--r-md);
  padding: 28px;
  background: var(--surface);
}
.callout h2, .callout h3 { color: var(--link); }
.summary-box {
  background: var(--cream);
  border-left: 4px solid var(--yellow);
  border-radius: var(--r-sm);
  padding: 28px;
  color: var(--charcoal);
}
.summary-box h2, .summary-box h3, .summary-box p, .summary-box li { color: var(--charcoal); }
.summary-box a { color: var(--blue-ink); }

.steps { list-style: none; counter-reset: step; padding: 0; }
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 44px;
  margin-bottom: 16px;
}
.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 30px; height: 30px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: var(--yellow); color: var(--charcoal);
  font-size: 14px; font-weight: 700;
}
.checklist { list-style: none; padding: 0; }
.checklist li {
  display: flex; align-items: flex-start; gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--rule);
}
.checklist .pill { flex: 0 0 auto; }

.keycaps { display: flex; flex-wrap: wrap; gap: 10px; padding: 0; list-style: none; max-width: none; }
.keycaps li {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  background: var(--surface);
  padding: 10px 14px;
  font-size: 14px;
}
kbd {
  font-family: var(--font);
  font-size: 13px; font-weight: 700;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 3px 8px;
  color: var(--text);
}
.lang-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; max-width: none; }
.lang-list li {
  font-size: 14px;
  padding: 6px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border);
  background: var(--surface);
}

.toc { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--r-md); padding: 24px; }
.toc ul { margin: 0; padding-left: 20px; }
.toc li::marker { color: var(--yellow); }

/* -------------------------------------------------------------- cta band -- */
.cta-band { background: var(--charcoal); padding: 96px 0; text-align: center; }
.cta-band h2 { color: var(--white); font-size: 40px; }
.cta-band p { color: #e9eaea; margin-left: auto; margin-right: auto; }
.cta-band .btn-row { justify-content: center; margin: 32px 0 16px; }
.cta-band .small { color: #c9caca; }


/* -------------------------------------------------------- language picker -- */
.lang-picker {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.lang-picker label { font-size: 14px; color: #c9caca; }
.lang-select {
  font-family: inherit;
  font-size: 15px;
  color: #e9eaea;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-sm);
  padding: 10px 14px;
  min-height: 44px;
  max-width: 100%;
  cursor: pointer;
}
.lang-select option { color: #4a4b4b; background: #ffffff; }
.lang-select option:disabled { color: #7a7b7b; }
.lang-select optgroup { color: #4a4b4b; }
.lang-picker .small { color: #c9caca; margin: 0; flex: 1 1 260px; }
.footer-base { margin-top: 32px; }

/* the header's try link is a full button on desktop, hidden in the panel below 900px */
.try-link { white-space: nowrap; }

/* ---------------------------------------------------------------- footer -- */
.site-footer { background: var(--charcoal); color: #e9eaea; padding: 64px 0 40px; }
.site-footer h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--white); margin-bottom: 16px; }
.footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; max-width: none; }
.site-footer li { margin-bottom: 10px; }
.site-footer a { color: #e9eaea; text-decoration: none; font-size: 15px; }
.site-footer a:hover { text-decoration: underline; }
.site-footer :focus-visible { outline-color: #fecd01; }
.footer-base {
  margin-top: 48px; padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex; flex-wrap: wrap; align-items: center; gap: 16px;
}
.footer-base img { width: 32px; height: 30px; }
.footer-base p { margin: 0; font-size: 15px; color: #e9eaea; }
.footer-base .copyright { margin-left: auto; font-size: 14px; color: #c9caca; }

/* ---------------------------------------------------------------- motion -- */
@media (prefers-reduced-motion: no-preference) {
  .js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 400ms ease-out, transform 400ms ease-out; }
  .js .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* ------------------------------------------------------------ responsive -- */
@media (max-width: 1200px) {
  h1 { font-size: 52px; }
  .split { gap: 48px; }
}
@media (max-width: 900px) {
  :root { --section-y: 64px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .nav, .header-actions .github-link, .header-actions .try-link { display: none; }
  .nav-toggle { display: inline-flex; }
  .header-actions { margin-left: auto; }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 32px; }
  .split--flip .split__media { order: 0; }
  .split__media { order: 0; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  :root { --section-y: 48px; --gutter: 24px; }
  body { font-size: 16px; line-height: 1.6; }
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
  .lede, .hero .lede { font-size: 18px; }
  .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .footer-base .copyright { margin-left: 0; }
  .btn-row { gap: 12px; }
  .btn-row .btn { width: 100%; }
  .site-header__inner { gap: 12px; }
  .header-actions { gap: 4px; margin-left: auto; }
  .cta-band { padding: 64px 0; }
  .card { padding: 22px; }
  /* stacked definition rows instead of a table */
  .table-stack thead { display: none; }
  .table-stack tr { display: block; border-bottom: 1px solid var(--rule); padding: 12px 0; }
  .table-stack td { display: block; border: 0; padding: 4px 0; }
  .table-stack td:first-child { font-weight: 700; }
}
@media (max-width: 420px) {
  /* at this width the bar has to choose: the dove stays, the wordmark steps aside */
  :root { --gutter: 16px; }
  .brand span { display: none; }
  .btn--sm { padding: 10px 16px; }
}
@media (min-width: 901px) {
  :root { --gutter: 48px; }
  .mobile-panel { display: none !important; }
}
