/* ============================================================
   Design tokens
   ============================================================ */
:root {
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'Inter Tight', var(--font-sans);

  --color-bg: #fafaf9;
  --color-surface: #ffffff;
  --color-surface-raised: #ffffff;
  --color-border: #e7e5e4;
  --color-border-strong: #d6d3d1;
  --color-text: #1c1917;
  --color-text-muted: #78716c;
  --color-text-faint: #a8a29e;

  --color-accent: #4f46e5;
  --color-accent-hover: #4338ca;
  --color-accent-soft: #eef2ff;
  --color-accent-text: #4338ca;

  --color-math: #4f46e5;
  --color-financial: #0f766e;
  --color-health: #be123c;
  --color-other: #b45309;
  --color-color: #0e7490;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;

  --shadow-sm: 0 1px 2px rgba(28, 25, 23, 0.06);
  --shadow-md: 0 4px 16px rgba(28, 25, 23, 0.08);
  --shadow-lg: 0 16px 40px rgba(28, 25, 23, 0.12);

  /* Emil Kowalski-style easing curves */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-text);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: var(--font-display); margin: 0; letter-spacing: -0.01em; }

a { color: inherit; text-decoration: none; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--color-accent);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 8px 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

/* ============================================================
   Header
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(250, 250, 249, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 19px;
  flex-shrink: 0;
}

.brand__mark {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: var(--color-accent);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}
.brand__mark--sm { width: 24px; height: 24px; font-size: 12px; border-radius: 7px; }

.primary-nav {
  display: flex;
  gap: 4px;
  flex: 1;
}

.primary-nav__link {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text-muted);
  transition: background-color 140ms ease, color 140ms ease;
}
.primary-nav__link:hover { background: var(--color-surface-raised); color: var(--color-text); box-shadow: var(--shadow-sm); }

.site-search {
  position: relative;
  width: 220px;
  flex-shrink: 0;
}
.search-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  z-index: 50;
  opacity: 0;
  transform: translateY(-4px) scale(0.98);
  transform-origin: top;
  pointer-events: none;
  transition: opacity 160ms var(--ease-out), transform 160ms var(--ease-out);
}
.search-dropdown[data-open="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.search-dropdown__item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  transition: background-color 100ms ease;
}
.search-dropdown__item:first-child { border-top: none; }
.search-dropdown__item:hover,
.search-dropdown__item[data-active="true"] {
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
}
.search-dropdown__item span.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}
.search-dropdown__empty {
  padding: 14px;
  font-size: 13.5px;
  color: var(--color-text-faint);
}

.site-search__icon {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: var(--color-text-faint);
  pointer-events: none;
}
.site-search input {
  width: 100%;
  padding: 8px 12px 8px 32px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 14px;
  font-family: inherit;
  color: var(--color-text);
  transition: border-color 140ms ease, box-shadow 140ms ease;
}
.site-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  cursor: pointer;
  flex-shrink: 0;
}
.nav-toggle span {
  height: 2px;
  border-radius: 2px;
  background: var(--color-text);
  transition: transform 200ms var(--ease-out), opacity 200ms var(--ease-out);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  border-top: 1px solid var(--color-border);
}
.mobile-nav a {
  padding: 10px 0;
  font-weight: 500;
  font-size: 15px;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 860px) {
  .primary-nav, .site-search { display: none; }
  .nav-toggle { display: flex; }
  .mobile-nav[data-open="true"] { display: flex; }
}

/* ============================================================
   Layout helpers
   ============================================================ */
.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   Hero (home)
   ============================================================ */
.hero {
  padding: 72px 24px 48px;
  text-align: center;
}
.hero h1 {
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  max-width: 720px;
  margin: 0 auto 16px;
}
.hero p {
  color: var(--color-text-muted);
  font-size: 18px;
  max-width: 540px;
  margin: 0 auto 32px;
}
.hero-search {
  max-width: 560px;
  margin: 0 auto;
  position: relative;
}
.hero-search input {
  width: 100%;
  padding: 16px 20px 16px 48px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  font-size: 16px;
  font-family: inherit;
  box-shadow: var(--shadow-md);
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.hero-search input:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 4px var(--color-accent-soft), var(--shadow-md);
}
.hero-search svg {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: var(--color-text-faint);
}

/* ============================================================
   Category chips
   ============================================================ */
.category-strip {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  padding: 0 24px 56px;
}
.category-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  font-weight: 600;
  font-size: 14px;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms ease;
}
.category-chip:hover {
  box-shadow: var(--shadow-md);
  border-color: var(--color-border-strong);
  transform: translateY(-1px);
}
.category-chip:active { transform: scale(0.97); }
.category-chip__dot { width: 8px; height: 8px; border-radius: 50%; }

/* ============================================================
   Sections + grids
   ============================================================ */
.section {
  padding: 8px 24px 56px;
}
.section__head {
  max-width: 1180px;
  margin: 0 auto 20px;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.section__head h2 { font-size: 22px; font-weight: 700; }
.section__head a { font-size: 14px; font-weight: 600; color: var(--color-accent-text); }

.calc-grid {
  max-width: 1180px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
@media (max-width: 980px) { .calc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .calc-grid { grid-template-columns: 1fr; } }

.calc-card {
  display: block;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 20px;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms ease;
  opacity: 0;
  transform: translateY(8px);
  animation: card-in 420ms var(--ease-out) forwards;
}
.calc-card:hover { box-shadow: var(--shadow-md); border-color: var(--color-border-strong); transform: translateY(-2px); }
.calc-card:active { transform: scale(0.98); }
.calc-card__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
}
.calc-card__icon--img { width: 48px; height: 48px; border-radius: 12px; overflow: hidden; background: none; padding: 0; }
.calc-card__icon--img img { width: 48px; height: 48px; max-width: 100%; object-fit: cover; display: block; }
.calc-card__icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.calc-card h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 6px; }
.calc-card p { font-size: 13.5px; color: var(--color-text-muted); margin: 0; }

@keyframes card-in {
  to { opacity: 1; transform: translateY(0); }
}
.calc-grid .calc-card:nth-child(1) { animation-delay: 0ms; }
.calc-grid .calc-card:nth-child(2) { animation-delay: 40ms; }
.calc-grid .calc-card:nth-child(3) { animation-delay: 80ms; }
.calc-grid .calc-card:nth-child(4) { animation-delay: 120ms; }
.calc-grid .calc-card:nth-child(5) { animation-delay: 160ms; }
.calc-grid .calc-card:nth-child(6) { animation-delay: 200ms; }
.calc-grid .calc-card:nth-child(7) { animation-delay: 240ms; }
.calc-grid .calc-card:nth-child(8) { animation-delay: 280ms; }

.bg-math { background: var(--color-math); }
.bg-financial { background: var(--color-financial); }
.bg-health { background: var(--color-health); }
.bg-other { background: var(--color-other); }
.bg-color { background: var(--color-color); }

/* ============================================================
   Category page
   ============================================================ */
.category-hero {
  padding: 56px 24px 32px;
  text-align: center;
}
.category-hero .eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--color-accent-soft);
  color: var(--color-accent-text);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.category-hero h1 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 10px; }
.category-hero p { color: var(--color-text-muted); font-size: 16px; }

/* ============================================================
   Calculator page layout
   ============================================================ */
.calc-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 80px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
  align-items: start;
}
@media (max-width: 900px) { .calc-page { grid-template-columns: 1fr; } }

.breadcrumbs {
  max-width: 1180px;
  margin: 20px auto 0;
  padding: 0 24px;
  font-size: 13px;
  color: var(--color-text-faint);
  display: flex;
  gap: 6px;
}
.breadcrumbs a { color: var(--color-text-muted); }
.breadcrumbs a:hover { color: var(--color-accent-text); }

.calc-main h1 {
  font-size: clamp(26px, 3.4vw, 34px);
  margin-bottom: 8px;
}
.calc-main > p.lede {
  color: var(--color-text-muted);
  font-size: 16px;
  margin-bottom: 28px;
}

.calc-panel {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.field-grid.field-grid--1 { grid-template-columns: 1fr; }
@media (max-width: 520px) { .field-grid { grid-template-columns: 1fr; } }

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-text-muted);
}
.field .input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}
.field input[type="text"],
.field input[type="number"],
.field input[type="date"],
.field select {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-family: inherit;
  font-size: 15px;
  color: var(--color-text);
  transition: border-color 140ms ease, box-shadow 140ms ease, background-color 140ms ease;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft);
  background: var(--color-surface);
}
.field .unit-suffix {
  position: absolute;
  right: 12px;
  font-size: 13px;
  color: var(--color-text-faint);
  pointer-events: none;
}

.radio-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.radio-pill {
  position: relative;
}
.radio-pill input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  cursor: pointer;
  margin: 0;
}
.radio-pill span {
  display: block;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--color-text-muted);
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease, transform 140ms var(--ease-out);
}
.radio-pill input:checked + span {
  background: var(--color-accent);
  border-color: var(--color-accent);
  color: #fff;
}
.radio-pill input:active + span { transform: scale(0.97); }
.radio-pill input:focus-visible + span { box-shadow: 0 0 0 3px var(--color-accent-soft); }

.btn {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: 15px;
  border-radius: var(--radius-sm);
  padding: 13px 22px;
  background: var(--color-accent);
  color: #fff;
  transition: transform 160ms var(--ease-out), background-color 160ms ease, box-shadow 160ms ease;
}
.btn:hover { background: var(--color-accent-hover); box-shadow: var(--shadow-sm); }
.btn:active { transform: scale(0.97); }
.btn--ghost {
  background: transparent;
  color: var(--color-text-muted);
  border: 1px solid var(--color-border);
}
.btn--ghost:hover { background: var(--color-surface); color: var(--color-text); }

.calc-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

/* Result panel */
.result {
  margin-top: 24px;
  padding: 22px;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  opacity: 0;
  transform: translateY(6px) scale(0.99);
  transition: opacity 260ms var(--ease-out), transform 260ms var(--ease-out);
  filter: blur(0);
}
.result[data-visible="true"] {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.result__label {
  font-size: 13px;
  font-weight: 600;
  color: var(--color-accent-text);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.result__value {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 800;
  color: var(--color-text);
  transition: filter 200ms ease, opacity 200ms ease;
}
.result__value[data-updating="true"] { filter: blur(3px); opacity: 0.6; }
.result__breakdown {
  margin-top: 16px;
  display: grid;
  gap: 8px;
}
.result__row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  padding: 8px 0;
  border-top: 1px solid rgba(79, 70, 229, 0.12);
}
.result__row span:first-child { color: var(--color-text-muted); }
.result__row span:last-child { font-weight: 700; }

.error-msg {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  color: #b91c1c;
  font-size: 13.5px;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 180ms var(--ease-out), transform 180ms var(--ease-out);
  pointer-events: none;
}
.error-msg[data-visible="true"] { opacity: 1; transform: translateY(0); pointer-events: auto; }

/* Sidebar */
.calc-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 88px;
}
.sidebar-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.sidebar-card h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--color-text-faint);
  margin-bottom: 12px;
}
.sidebar-card a {
  display: block;
  padding: 8px 0;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  border-top: 1px solid var(--color-border);
  transition: color 140ms ease, padding-left 140ms var(--ease-out);
}
.sidebar-card a:first-of-type { border-top: none; }
.sidebar-card a:hover { color: var(--color-accent-text); padding-left: 4px; }

/* ============================================================
   Basic / Scientific calculator keypad
   ============================================================ */
.keypad-shell {
  max-width: 380px;
  margin: 0 auto;
}
.keypad-display {
  background: #1c1917;
  border-radius: var(--radius-md);
  padding: 22px 20px;
  margin-bottom: 14px;
  text-align: right;
  overflow: hidden;
}
.keypad-display__expr {
  color: #a8a29e;
  font-size: 14px;
  min-height: 18px;
  font-family: var(--font-display);
  overflow-x: auto;
  white-space: nowrap;
}
.keypad-display__value {
  color: #fff;
  font-size: clamp(28px, 7vw, 38px);
  font-weight: 700;
  font-family: var(--font-display);
  margin-top: 4px;
  overflow-x: auto;
  white-space: nowrap;
}
.keypad {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.keypad--sci { grid-template-columns: repeat(5, 1fr); }
.key {
  appearance: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  padding: 16px 0;
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  transition: transform 120ms var(--ease-out), background-color 120ms ease, box-shadow 120ms ease;
}
.key:hover { box-shadow: var(--shadow-sm); }
.key:active { transform: scale(0.94); }
.key--op { background: var(--color-accent-soft); color: var(--color-accent-text); }
.key--eq { background: var(--color-accent); color: #fff; }
.key--wide { grid-column: span 2; }
.key--fn { font-size: 13.5px; background: var(--color-bg); color: var(--color-text-muted); }

@media (hover: hover) and (pointer: fine) {
  .key:hover { transform: translateY(-1px); }
}

/* ============================================================
   Content / SEO copy blocks under calculators
   ============================================================ */
.info-block {
  max-width: 1180px;
  margin: 8px auto 0;
  padding: 0 24px;
}
.info-block .calc-panel { margin-top: 24px; }
.info-block h2 { font-size: 19px; margin-bottom: 10px; }
.info-block p { color: var(--color-text-muted); font-size: 14.5px; }

/* ============================================================
   Affiliate offers
   ============================================================ */
.affiliate-box {
  position: relative;
  margin-top: 24px;
  padding: 18px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
}
.affiliate-box__label {
  display: inline-block;
  margin-bottom: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--color-bg);
}
.affiliate-offer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 8px;
  transition: transform 160ms var(--ease-out), box-shadow 160ms var(--ease-out), border-color 160ms ease;
}
.affiliate-offer:last-of-type { margin-bottom: 0; }
.affiliate-offer:hover { box-shadow: var(--shadow-sm); border-color: var(--color-border-strong); transform: translateY(-1px); }
.affiliate-offer:active { transform: scale(0.99); }
.affiliate-offer__title { display: block; font-size: 14.5px; font-weight: 700; color: var(--color-text); }
.affiliate-offer__provider { display: block; font-size: 12.5px; color: var(--color-text-muted); margin-top: 2px; }
.affiliate-offer__cta {
  flex-shrink: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--color-accent-text);
  white-space: nowrap;
}
.affiliate-box__disclosure {
  margin: 12px 0 0;
  font-size: 12px;
  color: var(--color-text-faint);
}
.affiliate-box__disclosure a { color: var(--color-text-muted); text-decoration: underline; }

/* ============================================================
   Ad slots
   ============================================================ */
.ad-slot {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-surface);
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-md);
  overflow: hidden;
  color: var(--color-text-faint);
}
.ad-slot__label {
  position: absolute;
  top: 6px;
  left: 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-text-faint);
}
.ad-slot--rectangle { width: 100%; min-height: 250px; }
.ad-slot--horizontal { width: 100%; min-height: 100px; margin: 8px 0; }
.ad-slot--in-content { width: 100%; min-height: 120px; margin: 24px 0; }
.ad-slot .adsbygoogle { width: 100%; }

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  border-top: 1px solid var(--color-border);
  background: var(--color-surface);
  margin-top: 40px;
}
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 24px;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-family: var(--font-display);
  margin-bottom: 24px;
}
.site-footer__cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 24px;
}
@media (max-width: 640px) { .site-footer__cols { grid-template-columns: repeat(2, 1fr); } }
.site-footer__col h4 { font-size: 13px; margin-bottom: 10px; color: var(--color-text-faint); }
.site-footer__col a { font-size: 14px; color: var(--color-text-muted); }
.site-footer__col a:hover { color: var(--color-accent-text); }
.site-footer__meta { font-size: 12.5px; color: var(--color-text-faint); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
