/* Small Biz Software Guide: visual system */

:root {
  color-scheme: light;

  /* Ink + paper */
  --ink: #0c1222;
  --ink-soft: #1c2740;
  --muted: #4a5568;
  --muted-2: #6b7280;

  --paper: #f6f4ef;
  --paper-2: #efece4;
  --surface: rgba(255, 255, 255, 0.78);
  --surface-solid: #ffffff;

  --line: rgba(12, 18, 34, 0.1);
  --line-strong: rgba(12, 18, 34, 0.16);

  /* Accents */
  --teal: #0d6b64;
  --teal-bright: #0f9b8a;
  --indigo: #4f46e5;
  --amber: #d97706;
  --rose: #e11d48;

  --glow-teal: rgba(20, 184, 166, 0.35);
  --glow-indigo: rgba(79, 70, 229, 0.25);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --font-display: "Fraunces", "Georgia", serif;
  --font-ui: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Vertical rhythm (1 ≈ 4px baseline) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.75rem;
  --space-7: 2.25rem;
  --space-8: 3rem;
  --space-9: 3.75rem;

  --shadow-sm: 0 1px 2px rgba(12, 18, 34, 0.06);
  --shadow-md: 0 8px 24px rgba(12, 18, 34, 0.08);
  --shadow-lg: 0 24px 60px rgba(12, 18, 34, 0.12);
  --shadow-inset: inset 0 1px 0 rgba(255, 255, 255, 0.72);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --measure: 42rem;
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .motion-reveal {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

::selection {
  background: rgba(20, 184, 166, 0.22);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.28vw + 0.94rem, 1.0625rem);
  line-height: 1.65;
  letter-spacing: -0.01em;
  color: var(--ink-soft);
  background: var(--paper);
  min-height: 100vh;
  position: relative;
  font-optical-sizing: auto;
}

/* Atmospheric background + subtle paper grain */
.ambient {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(1200px 700px at 12% -8%, rgba(79, 70, 229, 0.11), transparent 55%),
    radial-gradient(900px 600px at 88% 0%, rgba(20, 184, 166, 0.12), transparent 50%),
    radial-gradient(700px 500px at 50% 105%, rgba(217, 119, 6, 0.06), transparent 45%),
    linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%);
}

.ambient::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.35;
  mix-blend-mode: multiply;
  background-image: radial-gradient(rgba(12, 18, 34, 0.045) 0.7px, transparent 1.1px);
  background-size: 12px 12px;
}

.page--inner .ambient {
  background:
    radial-gradient(900px 520px at 8% -10%, rgba(79, 70, 229, 0.08), transparent 55%),
    radial-gradient(700px 480px at 95% 8%, rgba(20, 184, 166, 0.09), transparent 52%),
    linear-gradient(180deg, var(--paper) 0%, #f3f1eb 100%);
}

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--teal-bright);
  outline-offset: 3px;
  border-radius: 3px;
}

:focus:not(:focus-visible) {
  outline: none;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.75rem;
  padding: 0.55rem 1rem;
  background: var(--surface-solid);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  z-index: 200;
  font-weight: 600;
  font-size: 0.9rem;
}

.skip-link:focus {
  left: 0.75rem;
}

/* --- Header --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  border-bottom: 1px solid var(--line);
  background: rgba(246, 244, 239, 0.72);
  backdrop-filter: blur(14px) saturate(1.2);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
}

.site-header__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.85rem max(1.25rem, env(safe-area-inset-right, 0px)) 0.85rem max(1.25rem, env(safe-area-inset-left, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  font-weight: 650;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
}

.site-logo__mark {
  display: flex;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(12, 18, 34, 0.05));
  transition: filter 0.24s var(--ease-out), transform 0.24s var(--ease-out);
}

.site-logo:hover .site-logo__mark {
  filter: drop-shadow(0 3px 10px rgba(13, 107, 100, 0.12)) drop-shadow(0 1px 3px rgba(12, 18, 34, 0.06));
  transform: translateY(-1px);
}

.site-logo__svg {
  display: block;
}

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

  .site-logo:hover .site-logo__mark {
    transform: none;
  }
}

.site-logo__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(0.93rem, 0.32vw + 0.86rem, 1.04rem);
  letter-spacing: -0.032em;
  line-height: 1.18;
  padding-left: 0.65rem;
  margin-left: 0.05rem;
  border-left: 1px solid rgba(12, 18, 34, 0.1);
  text-rendering: geometricPrecision;
  background: linear-gradient(118deg, var(--ink) 0%, #1e2a40 52%, #2a3752 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.site-logo:hover .site-logo__text {
  background: linear-gradient(118deg, #0a5f59 0%, var(--teal) 45%, #4f46e5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  border-left-color: rgba(13, 107, 100, 0.22);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out);
}

.site-nav__link:hover {
  background: rgba(255, 255, 255, 0.65);
  border-color: var(--line);
  color: var(--ink);
}

.site-nav__link--muted {
  color: var(--muted);
  font-weight: 500;
}

/* --- Main shell --- */
.site-main {
  max-width: 72rem;
  margin: 0 auto;
  padding: var(--space-7) max(1.25rem, env(safe-area-inset-right, 0px)) var(--space-8) max(1.25rem, env(safe-area-inset-left, 0px));
}

.page--home .site-main {
  padding-top: var(--space-6);
}

/* --- Type pills --- */
.type-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.65);
  color: var(--ink-soft);
}

.type-pill--reviews {
  border-color: rgba(15, 118, 110, 0.28);
  background: rgba(20, 184, 166, 0.1);
  color: #0f5f57;
}

.type-pill--roundups {
  border-color: rgba(79, 70, 229, 0.25);
  background: rgba(79, 70, 229, 0.09);
  color: #4338ca;
}

.type-pill--comparisons {
  border-color: rgba(217, 119, 6, 0.35);
  background: rgba(251, 191, 36, 0.12);
  color: #a16207;
}

.type-pill--news {
  border-color: rgba(225, 29, 72, 0.22);
  background: rgba(251, 113, 133, 0.12);
  color: #be123c;
}

.type-pill--guides {
  border-color: rgba(30, 64, 175, 0.22);
  background: rgba(99, 102, 241, 0.1);
  color: #1e3a8a;
}

/* --- Home hero --- */
.hero {
  margin-bottom: var(--space-8);
}

.hero__shell {
  position: relative;
  border-radius: calc(var(--radius-lg) + 4px);
  padding: clamp(1.35rem, 2.6vw, 2.15rem) clamp(1.15rem, 2.4vw, 2rem);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(255, 255, 255, 0.82) 42%, rgba(248, 250, 252, 0.88) 100%);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  overflow: hidden;
}

.hero__shell::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

.hero__grid {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.75rem;
  align-items: stretch;
}

@media (min-width: 56rem) {
  .hero__grid {
    grid-template-columns: 1.12fr 0.88fr;
    gap: clamp(1.25rem, 2.2vw, 2rem);
    align-items: stretch;
  }

  .hero__panel {
    border-radius: var(--radius);
    border: 1px solid rgba(12, 18, 34, 0.1);
    box-shadow: var(--shadow-sm), inset 0 1px 0 rgba(255, 255, 255, 0.65);
  }
}

.hero__content {
  padding: 0.15rem 0 0.15rem;
}

.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal-bright), var(--indigo));
  box-shadow: 0 0 0 4px rgba(20, 184, 166, 0.2);
}

.hero__title {
  font-family: var(--font-display);
  font-weight: 550;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  font-size: clamp(2.25rem, 4.4vw, 3.2rem);
  line-height: 1.07;
  letter-spacing: -0.035em;
  margin: 0 0 1rem;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.hero__lede {
  margin: 0;
  font-size: clamp(1.05rem, 0.35vw + 1rem, 1.125rem);
  line-height: 1.62;
  color: var(--muted);
  max-width: 38rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.hero__chips li {
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.hero__panel {
  position: relative;
  border-radius: var(--radius);
  padding: 1.35rem 1.25rem 1.45rem;
  background: linear-gradient(155deg, rgba(240, 253, 250, 0.55) 0%, rgba(238, 242, 255, 0.45) 55%, rgba(255, 255, 255, 0.35) 100%);
  border: 1px solid rgba(12, 18, 34, 0.09);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  overflow: hidden;
  min-height: 100%;
  z-index: 1;
}

.hero__panel-kicker {
  margin: 0 0 0.75rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
}

.hero__panel-accent {
  position: absolute;
  right: -22%;
  top: -35%;
  width: 75%;
  height: 95%;
  background: radial-gradient(circle at 30% 40%, var(--glow-teal), transparent 55%),
    radial-gradient(circle at 70% 60%, var(--glow-indigo), transparent 50%);
  opacity: 0.42;
  pointer-events: none;
  z-index: 0;
}

.hero__stat,
.hero__panel-copy,
.hero__trust {
  position: relative;
  z-index: 1;
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.85rem;
  padding-bottom: 0.95rem;
  border-bottom: 1px solid rgba(12, 18, 34, 0.08);
}

.hero__stat-value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 5.5vw, 3.5rem);
  letter-spacing: -0.04em;
  line-height: 1;
  background: linear-gradient(135deg, var(--ink) 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__stat-label {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero__panel-copy {
  margin: 0;
  font-size: 0.93rem;
  line-height: 1.58;
  color: var(--muted);
}

.hero__trust {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}

.hero__trust-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.55rem;
  align-items: start;
  font-size: 0.875rem;
  line-height: 1.52;
  color: var(--muted);
}

.hero__trust-icon {
  color: var(--teal);
  margin-top: 0.12rem;
}

.hero__trust-icon svg {
  display: block;
}

.hero__trust-strong {
  font-weight: 700;
  color: var(--ink-soft);
}

.hero__panel-link {
  font-weight: 650;
  color: var(--teal);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

.hero__panel-link:hover {
  color: var(--ink);
}

/* --- Feed --- */
.feed__head {
  margin-bottom: var(--space-5);
  display: grid;
  gap: var(--space-2);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}

.feed__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.35rem, 2.2vw, 1.65rem);
  letter-spacing: -0.02em;
  color: var(--ink);
}

.feed__subtitle {
  margin: 0;
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 36rem;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 1rem;
}

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

.post-card {
  position: relative;
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.35rem;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm), var(--shadow-inset);
  display: grid;
  gap: 0.55rem;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s var(--ease-out), border-color 0.25s var(--ease-out);
  overflow-wrap: anywhere;
}

.post-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1rem;
  bottom: 1rem;
  width: 3px;
  border-radius: 999px;
  opacity: 0;
  transform: scaleY(0.6);
  transition: opacity 0.25s var(--ease-out), transform 0.35s var(--ease-out);
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg), var(--shadow-inset);
  border-color: var(--line-strong);
}

.post-card:hover::before {
  opacity: 1;
  transform: scaleY(1);
}

.post-card--reviews::before {
  background: linear-gradient(180deg, var(--teal-bright), var(--teal));
}

.post-card--roundups::before {
  background: linear-gradient(180deg, #818cf8, var(--indigo));
}

.post-card--comparisons::before {
  background: linear-gradient(180deg, #fbbf24, var(--amber));
}

.post-card--news::before {
  background: linear-gradient(180deg, #fb7185, var(--rose));
}

.post-card--guides::before {
  background: linear-gradient(180deg, #a5b4fc, #4338ca);
}

.post-card__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
}

.post-card__time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-2);
  white-space: nowrap;
  margin-left: auto;
}

.post-card__title {
  margin: 0;
  font-size: 1.18rem;
  line-height: 1.32;
  letter-spacing: -0.02em;
}

.post-card__link {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.5rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 650;
}

.post-card__link-text {
  flex: 1;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 0.35s var(--ease-out);
}

.post-card__link:hover .post-card__link-text {
  background-size: 100% 1px;
}

.post-card__arrow {
  flex-shrink: 0;
  margin-top: 0.2rem;
  color: var(--teal);
  transition: transform 0.35s var(--ease-out), color 0.2s;
}

.post-card__link:hover .post-card__arrow {
  transform: translateX(4px);
  color: var(--indigo);
}

.post-card__dek {
  margin: 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--muted);
}

/* --- Affiliate notice (quiet editor's note strip) --- */
.affiliate-notice {
  max-width: var(--measure);
  margin: 0 auto 2rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  display: block;
}

.affiliate-notice__title {
  margin: 0 0 0.2rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-transform: none;
  color: var(--muted);
}

.affiliate-notice__text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--muted);
}

.article .affiliate-notice {
  margin-top: 2.25rem;
  margin-bottom: 0;
}

/* --- Article --- */
.article {
  max-width: var(--measure);
  margin: 0 auto;
}

.article__header {
  margin-bottom: 2.25rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.article__header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 6rem;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-bright), var(--indigo));
}

.article__meta {
  margin: 0 0 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

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

.article__time {
  font-weight: 600;
  color: var(--muted);
}

.article__title {
  font-family: var(--font-display);
  font-weight: 550;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  font-size: clamp(2rem, 4vw, 2.65rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  margin: 0 0 0.85rem;
  color: var(--ink);
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.article__dek {
  margin: 0;
  font-size: 1.125rem;
  line-height: 1.55;
  color: var(--muted);
  font-weight: 450;
}

.article__byline {
  margin: 1.25rem 0 0;
  font-size: 0.95rem;
  color: var(--muted);
}

.article__byline-label {
  font-weight: 600;
  color: var(--ink-soft);
}

.article__body {
  font-size: 1.08rem;
  color: var(--ink-soft);
}

/* --- Prose --- */
.prose > * + * {
  margin-top: var(--space-4);
}

.prose > :first-child {
  margin-top: 0;
}

.prose > p:first-of-type {
  font-size: 1.14rem;
  line-height: 1.68;
  color: var(--ink-soft);
}

.prose h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.35rem, 2.4vw, 1.55rem);
  margin: var(--space-8) 0 var(--space-3);
  letter-spacing: -0.025em;
  color: var(--ink);
  position: relative;
  padding-top: 0.35rem;
}

.prose h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 2.5rem;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--teal-bright), rgba(79, 70, 229, 0.35));
}

.prose > h2:first-child {
  margin-top: var(--space-5);
}

.prose h3 {
  font-size: 1.08rem;
  font-weight: 700;
  margin: 1.75rem 0 0.45rem;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.prose strong {
  font-weight: 700;
  color: var(--ink);
}

.prose ul,
.prose ol {
  padding-left: 1.2rem;
}

.prose li + li {
  margin-top: 0.4rem;
}

.prose li::marker {
  color: var(--teal);
}

.prose blockquote {
  margin: 1.5rem 0;
  padding: 1rem 1.1rem 1rem 1.15rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink-soft);
  font-style: italic;
  font-family: var(--font-display);
  font-size: 1.05rem;
  line-height: 1.55;
}

.prose code {
  font-family: ui-monospace, "SF Mono", Menlo, Monaco, monospace;
  font-size: 0.88em;
  padding: 0.12em 0.35em;
  border-radius: 6px;
  background: rgba(12, 18, 34, 0.06);
  border: 1px solid var(--line);
}

.prose a {
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}

/* --- Static pages --- */
.page__title {
  font-family: var(--font-display);
  font-weight: 550;
  font-size: clamp(1.85rem, 3vw, 2.35rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  color: var(--ink);
  text-wrap: balance;
}

.page__body {
  max-width: var(--measure);
}

.page__body > * + * {
  margin-top: 1.05rem;
}

/* --- Footer --- */
.site-footer {
  margin-top: 2rem;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(12, 18, 34, 0.03) 0%, rgba(12, 18, 34, 0.06) 100%);
}

.site-footer__inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 2.5rem max(1.25rem, env(safe-area-inset-right, 0px)) max(2.25rem, env(safe-area-inset-bottom, 0px)) max(1.25rem, env(safe-area-inset-left, 0px));
  display: grid;
  gap: 1.5rem;
}

@media (min-width: 40rem) {
  .site-footer__inner {
    grid-template-columns: 2fr 1fr;
    align-items: start;
  }

  .site-footer__copy {
    grid-column: 1 / -1;
  }
}

.site-footer__name {
  display: block;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.site-footer__tagline {
  margin: 0;
  max-width: 34rem;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.site-footer__label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-bottom: 0.5rem;
}

.site-footer__link {
  font-weight: 650;
  font-size: 0.95rem;
}

.site-footer__copy {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
  color: var(--muted-2);
}

@media (min-width: 48rem) {
  .site-main {
    padding-inline: max(2rem, env(safe-area-inset-left, 0px)) max(2rem, env(safe-area-inset-right, 0px));
  }

  .site-header__inner {
    padding-inline: max(2rem, env(safe-area-inset-left, 0px)) max(2rem, env(safe-area-inset-right, 0px));
  }

  .site-footer__inner {
    padding-inline: max(2rem, env(safe-area-inset-left, 0px)) max(2rem, env(safe-area-inset-right, 0px));
  }
}

/* Intentional entry motion (respects reduced-motion above) */
@keyframes reveal-up {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .motion-reveal {
    animation: reveal-up 0.62s var(--ease-out) both;
  }

  .motion-reveal--1 {
    animation-delay: 0.04s;
  }

  .motion-reveal--2 {
    animation-delay: 0.11s;
  }

  .motion-reveal--3 {
    animation-delay: 0.18s;
  }

  .post-list .motion-reveal--stagger:nth-child(1) {
    animation-delay: 0.26s;
  }
  .post-list .motion-reveal--stagger:nth-child(2) {
    animation-delay: 0.3s;
  }
  .post-list .motion-reveal--stagger:nth-child(3) {
    animation-delay: 0.34s;
  }
  .post-list .motion-reveal--stagger:nth-child(4) {
    animation-delay: 0.38s;
  }
  .post-list .motion-reveal--stagger:nth-child(5) {
    animation-delay: 0.42s;
  }
  .post-list .motion-reveal--stagger:nth-child(6) {
    animation-delay: 0.46s;
  }
  .post-list .motion-reveal--stagger:nth-child(7) {
    animation-delay: 0.5s;
  }
  .post-list .motion-reveal--stagger:nth-child(8) {
    animation-delay: 0.54s;
  }
  .post-list .motion-reveal--stagger:nth-child(9) {
    animation-delay: 0.58s;
  }
  .post-list .motion-reveal--stagger:nth-child(10) {
    animation-delay: 0.62s;
  }
  .post-list .motion-reveal--stagger:nth-child(11) {
    animation-delay: 0.66s;
  }
  .post-list .motion-reveal--stagger:nth-child(12) {
    animation-delay: 0.7s;
  }
}

@media (prefers-contrast: more) {
  :root {
    --line: rgba(12, 18, 34, 0.24);
    --line-strong: rgba(12, 18, 34, 0.38);
  }

  .post-card,
  .hero__shell,
  .hero__panel,
  .affiliate-notice {
    border-width: 2px;
  }

  .type-pill {
    border-width: 2px;
  }

  .site-header {
    border-bottom-width: 2px;
  }
}
