/* ==========================================================================
   ReduceMail.org — design system
   Implements docs/design-system.md. No build step, no external requests.
   ========================================================================== */

/* --- Tokens --------------------------------------------------------------- */

:root {
  color-scheme: light dark;

  /* Backgrounds */
  --bg: #f8f9fb;
  --surface: #ffffff;
  --tint-pink: #fff0f3;
  --tint-blue: #eaf4fb;
  --tint-mint: #e8fdf5;
  --tint-lavender: #f3eeff;
  --warm: #fff5f5;

  /* Foreground */
  --text: #1a1a2e;
  --text-2: #5c5c6e;
  --text-3: #9ca3af;

  /* Accent */
  --accent: #ff6b8a;
  --accent-deep: #d9345a;
  --accent-hover: #f0577a;
  --blue: #4da8da;
  --blue-deep: #1f6f9e;
  --mint: #34d399;
  --mint-deep: #0f7a56;
  --amber: #fbbf24;
  --amber-deep: #92610a;

  /* Borders & elevation */
  --border: #e5e7eb;
  --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.08);

  /* Radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-pill: 999px;

  /* Layout */
  --page-max: 1200px;
  --read-max: 720px;
  --gutter: 24px;

  --font: "Inter", "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #14141f;
    --surface: #1e1e2c;
    --tint-pink: #2c1f26;
    --tint-blue: #1a2733;
    --tint-mint: #162a25;
    --tint-lavender: #24203a;
    --warm: #2a1e22;

    --text: #f1f2f6;
    --text-2: #b6b8c6;
    --text-3: #82869a;

    --accent-deep: #ffa5b8;
    --blue-deep: #8fcdec;
    --mint-deep: #6ee7b7;
    --amber-deep: #fcd34d;

    --border: #33344a;
    --shadow-1: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-2: 0 4px 12px rgba(0, 0, 0, 0.5);
  }
}

/* --- 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.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  line-height: 1.25;
  color: var(--text);
  letter-spacing: -0.015em;
}

p {
  margin: 0;
}

a {
  color: var(--blue-deep);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--accent-deep);
}

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

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--surface);
  color: var(--text);
  padding: 12px 20px;
  border-radius: 0 0 var(--r-md) 0;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

/* --- Layout --------------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--page-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.read {
  max-width: var(--read-max);
}

.section {
  padding-block: 80px;
}

.section--tight {
  padding-block: 56px;
}

/* Consecutive tight sections read as one block, not two */
.section--tight + .section--tight {
  padding-top: 0;
}

.section--tint-blue {
  background: var(--tint-blue);
}

.section--tint-mint {
  background: var(--tint-mint);
}

.section--tint-pink {
  background: var(--tint-pink);
}

.section--tint-lavender {
  background: var(--tint-lavender);
}

.section-head {
  max-width: var(--read-max);
  margin-bottom: 32px;
}

.kicker {
  display: block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-deep);
  margin-bottom: 8px;
}

.kicker--blue {
  color: var(--blue-deep);
}

.kicker--muted {
  color: var(--text-3);
}

h1,
.h1 {
  font-size: clamp(32px, 5vw, 40px);
  font-weight: 700;
}

.display {
  font-size: clamp(36px, 7vw, 56px);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h2,
.h2 {
  font-size: clamp(26px, 3.5vw, 32px);
  font-weight: 700;
}

h3,
.h3 {
  font-size: 20px;
  font-weight: 600;
}

.lede {
  font-size: 19px;
  color: var(--text-2);
  max-width: var(--read-max);
}

.sub {
  color: var(--text-2);
}

.caption {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}

.stack > * + * {
  margin-top: 16px;
}

.stack-lg > * + * {
  margin-top: 32px;
}

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

.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding-block: 14px;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.brand-mark:hover {
  color: var(--accent-deep);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
  flex: none;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--r-pill);
}

.site-nav a:hover {
  background: var(--tint-pink);
  color: var(--accent-deep);
}

.site-nav a[aria-current="page"] {
  background: var(--tint-pink);
  color: var(--accent-deep);
  font-weight: 600;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--r-pill);
  font-size: 16px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color 150ms ease, box-shadow 150ms ease,
    transform 150ms ease, border-color 150ms ease;
}

.btn--primary {
  background: var(--accent);
  color: #fff;
}

.btn--primary:hover {
  background: var(--accent-hover);
  color: #fff;
  box-shadow: var(--shadow-2);
}

.btn--secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}

.btn--secondary:hover {
  color: var(--text);
  border-color: var(--accent);
  box-shadow: var(--shadow-2);
}

.btn--sm {
  padding: 9px 18px;
  font-size: 15px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* --- Badges & pills ------------------------------------------------------- */

.badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--tint-blue);
  color: var(--blue-deep);
}

.badge--mint {
  background: var(--tint-mint);
  color: var(--mint-deep);
}

.badge--amber {
  background: #fef6e3;
  color: var(--amber-deep);
}

.badge--pink {
  background: var(--tint-pink);
  color: var(--accent-deep);
}

@media (prefers-color-scheme: dark) {
  .badge--amber {
    background: #33280f;
  }
}

/* --- Cards ---------------------------------------------------------------- */

.card-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow-1);
}

/* Resource card: whole card is the link */
.resource {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  transition: box-shadow 150ms ease, transform 150ms ease,
    border-color 150ms ease;
}

.resource:hover {
  color: inherit;
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
  border-color: rgba(255, 107, 138, 0.45);
}

.resource__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Flat envelope illustration at the top of a resource card */
.resource__art {
  width: 140px;
  margin-bottom: 4px;
  border-radius: var(--r-md);
  transform: rotate(-3deg);
  transition: transform 200ms ease;
}

.resource:nth-child(even) .resource__art {
  transform: rotate(3deg);
}

.resource:hover .resource__art {
  transform: rotate(0deg);
}

.resource__title {
  font-size: 20px;
  font-weight: 600;
}

.resource__desc {
  color: var(--text-2);
  font-size: 16px;
}

.resource__cta {
  margin-top: auto;
  padding-top: 8px;
  font-weight: 600;
  color: var(--accent-deep);
}

.resource__cta::after {
  content: " →";
}

/* Flat directory cards (Opt-Out Forms / Privacy Portals landing tiles) */
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-radius: var(--r-xl);
  padding: 32px;
  text-decoration: none;
  color: inherit;
  border: 1px solid transparent;
  transition: box-shadow 150ms ease, transform 150ms ease;
}

.tile:hover {
  color: inherit;
  box-shadow: var(--shadow-2);
  transform: translateY(-2px);
}

.tile--blue {
  background: var(--tint-blue);
}

.tile--lavender {
  background: var(--tint-lavender);
}

.tile--mint {
  background: var(--tint-mint);
}

.tile__count {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

/* --- Split module (copy on one side, preview on the other) ---------------- */

.split {
  display: grid;
  gap: 48px;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}

@media (max-width: 860px) {
  .split {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

.split__count {
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--accent-deep);
}

/* Preview cloud of directory entries */
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pill {
  display: inline-block;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 15px;
  font-weight: 500;
  color: var(--text-2);
  box-shadow: var(--shadow-1);
}

.pill--more {
  background: transparent;
  border-style: dashed;
  box-shadow: none;
  color: var(--text-3);
}

/* --- Callouts ------------------------------------------------------------- */

.callout {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px 20px;
  border-radius: var(--r-md);
  font-size: 16px;
  background: var(--tint-blue);
  color: var(--text);
  max-width: var(--read-max);
}

.callout--tip {
  background: var(--tint-mint);
}

.callout--warning {
  background: #fef6e3;
}

@media (prefers-color-scheme: dark) {
  .callout--warning {
    background: #33280f;
  }
}

.callout__icon {
  flex: none;
  font-size: 18px;
  line-height: 1.5;
}

.callout strong {
  font-weight: 600;
}

/* --- Steps ---------------------------------------------------------------- */

.steps {
  display: grid;
  gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}

.steps li {
  position: relative;
  padding-top: 4px;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 17px;
  margin-bottom: 16px;
}

.steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 20px;
  left: 52px;
  right: -20px;
  border-top: 2px dashed var(--border);
}

@media (max-width: 780px) {
  .steps li:not(:last-child)::after {
    display: none;
  }
}

.steps h3 {
  margin-bottom: 8px;
}

.steps p {
  color: var(--text-2);
  font-size: 16px;
}

/* --- Directory (brand link grid + filter) --------------------------------- */

.directory-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.search {
  position: relative;
  flex: 1 1 320px;
  max-width: 420px;
}

.search input {
  width: 100%;
  padding: 12px 16px;
  font: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
}

.search input::placeholder {
  color: var(--text-3);
}

.search input:focus {
  border-color: var(--accent);
}

.directory-count {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}

.directory {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory li {
  display: flex;
}

.entry {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  color: var(--text);
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
  box-shadow: var(--shadow-1);
  transition: box-shadow 150ms ease, border-color 150ms ease,
    transform 150ms ease;
}

.entry:hover {
  color: var(--accent-deep);
  border-color: rgba(255, 107, 138, 0.45);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

.entry__arrow {
  flex: none;
  color: var(--text-3);
}

.entry:hover .entry__arrow {
  color: var(--accent);
}

.directory-empty {
  color: var(--text-2);
  padding: 24px 0;
}

[hidden] {
  display: none !important;
}

/* --- Definition list (postal acronyms) ------------------------------------ */

.acronyms {
  margin: 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.acronyms > div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-1);
}

.acronyms dt {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0.02em;
  color: var(--blue-deep);
  margin-bottom: 4px;
}

.acronyms dt span {
  color: var(--accent-deep);
}

.acronyms dd {
  margin: 0;
  color: var(--text-2);
  font-size: 15px;
}

/* --- About / bio ---------------------------------------------------------- */

.bio {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(0, 260px) minmax(0, 1fr);
  align-items: start;
}

@media (max-width: 700px) {
  .bio {
    grid-template-columns: 1fr;
  }
}

.bio__photo {
  width: 100%;
  max-width: 260px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-1);
}

.social {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}

.social a:hover {
  color: var(--accent-deep);
  border-color: rgba(255, 107, 138, 0.45);
}

.social svg {
  width: 18px;
  height: 18px;
  flex: none;
}

/* --- Resources (homepage index of the 27 articles) ------------------------ */

/* Twenty-seven articles split evenly across three themes, so the section is
   three columns of nine — one shelf per theme, no truncation, no "view all". */
.shelves {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

@media (max-width: 980px) {
  .shelves {
    grid-template-columns: 1fr;
  }
}

.shelf {
  border-radius: var(--r-xl);
  padding: 28px 28px 24px;
}

.shelf--blue {
  background: var(--tint-blue);
}

.shelf--lavender {
  background: var(--tint-lavender);
}

.shelf--mint {
  background: var(--tint-mint);
}

.shelf__head {
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(26, 26, 46, 0.1);
}

@media (prefers-color-scheme: dark) {
  .shelf__head {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }
}

.shelf__head h3 {
  font-size: 19px;
}

.shelf__head p {
  margin-top: 4px;
  font-size: 14px;
  color: var(--text-2);
}

.shelf__list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: shelf-item;
}

.shelf__list li {
  border-bottom: 1px solid rgba(26, 26, 46, 0.07);
}

@media (prefers-color-scheme: dark) {
  .shelf__list li {
    border-bottom-color: rgba(255, 255, 255, 0.08);
  }
}

.shelf__list li:last-child {
  border-bottom: 0;
}

.shelf__list a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 11px 0;
  color: var(--text);
  text-decoration: none;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.4;
}

.shelf__list a::before {
  counter-increment: shelf-item;
  content: counter(shelf-item);
  flex: none;
  width: 1.4em;
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-3);
}

.shelf__list a:hover {
  color: var(--accent-deep);
}

.shelf__list a:hover::before {
  color: var(--accent);
}

/* --- Article -------------------------------------------------------------- */

.article {
  padding-block: 48px 80px;
}

.article > .wrap {
  max-width: calc(var(--read-max) + var(--gutter) * 2);
}

.article__head {
  margin-bottom: 32px;
}

.article__back {
  display: inline-block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-3);
  text-decoration: none;
}

.article__back::before {
  content: "← ";
}

.article__back:hover {
  color: var(--accent-deep);
}

.article__head h1 {
  margin-bottom: 16px;
}

.article__meta {
  margin-top: 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-3);
}

.article__feature {
  margin: 0 0 40px;
}

.article__feature img {
  width: 100%;
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-1);
}

.article__foot {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.article__foot .btn-row {
  margin-top: 16px;
}

/* --- Prose (rendered article body) ---------------------------------------- */

.prose > * + * {
  margin-top: 20px;
}

.prose h2 {
  margin-top: 48px;
  font-size: clamp(24px, 3vw, 28px);
}

.prose h3 {
  margin-top: 40px;
  font-size: 21px;
}

.prose h4 {
  margin-top: 32px;
  font-size: 18px;
}

.prose p {
  color: var(--text-2);
}

.prose strong {
  color: var(--text);
  font-weight: 600;
}

.prose ul,
.prose ol {
  margin-block: 20px;
  padding-left: 24px;
  color: var(--text-2);
}

.prose li + li {
  margin-top: 8px;
}

.prose hr {
  margin-block: 40px;
  border: 0;
  border-top: 1px solid var(--border);
}

.prose pre {
  margin: 0;
  padding: 20px 24px;
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--border);
  overflow-x: auto;
}

.prose pre code {
  font-size: 15px;
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
}

.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.92em;
}

.prose :not(pre) > code {
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--tint-lavender);
  color: var(--text);
}

.prose blockquote {
  margin: 32px 0;
  padding: 4px 0 4px 24px;
  border-left: 3px solid var(--accent);
  color: var(--text-2);
}

.prose blockquote p + p {
  margin-top: 12px;
}

.prose figure {
  margin: 32px 0;
}

.prose figure img {
  width: 100%;
  border-radius: var(--r-md);
  border: 1px solid var(--border);
}

/* Transparent PNGs already carry their own edge — a shadowed screenshot or a
   cutout. A border would box in the shadow, and a surface fill would show as a
   panel behind the cutout. */
.prose figure img.bare,
.gallery img.bare {
  border: 0;
  background: transparent;
}

.prose figcaption,
.prose .figure-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--text-3);
  text-align: center;
}

.prose figcaption a,
.prose .figure-note a {
  color: inherit;
}

/* Runs of images exported from a Ghost gallery card */
.gallery {
  display: grid;
  gap: 12px;
  /* Three across the reading column at most — narrower than that and the
     photos stop being readable. */
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

/* Runs that already share a shape stay at natural size. Mixed runs get a fixed
   tile so rows don't go ragged: snapshots fill a square, while documents and
   screenshots are letterboxed into the group's median shape so no content is
   cropped away. */
.gallery[data-fit="cover"] img {
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery[data-fit="tile"] img {
  aspect-ratio: var(--tile-aspect, 4 / 3);
  object-fit: contain;
  background: var(--surface);
}

.gallery[data-count="2"],
.gallery[data-count="4"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.gallery figcaption {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .gallery,
  .gallery[data-count="2"],
  .gallery[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Ghost bookmark card: a link with a title, blurb, and its host */
.bookmark {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 24px;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-1);
  text-decoration: none;
  color: inherit;
  transition: box-shadow 150ms ease, border-color 150ms ease,
    transform 150ms ease;
}

.bookmark:hover {
  color: inherit;
  border-color: rgba(255, 107, 138, 0.45);
  box-shadow: var(--shadow-2);
  transform: translateY(-1px);
}

.bookmark__title {
  font-weight: 600;
  font-size: 17px;
  color: var(--text);
}

.bookmark:hover .bookmark__title {
  color: var(--accent-deep);
}

.bookmark__desc {
  font-size: 15px;
  color: var(--text-2);
}

.bookmark__host {
  margin-top: 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-3);
}

/* Video embeds */
.embed__frame {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #000;
}

.embed__frame--tall {
  aspect-ratio: 9 / 16;
  max-width: 340px;
  margin-inline: auto;
}

.embed__frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

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

.hero {
  position: relative;
  isolation: isolate;
  background: linear-gradient(180deg, var(--tint-pink) 0%, var(--bg) 100%);
  padding-block: 88px 48px;
  text-align: center;
  overflow: hidden;
}

/* Decorative junk-mail pattern, faded out behind the headline */
.hero__pattern {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: url("/assets/mail-pattern-banner.jpg");
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  -webkit-mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0) 78%
  );
  mask-image: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.25) 45%,
    rgba(0, 0, 0, 0) 78%
  );
}

@media (prefers-color-scheme: dark) {
  .hero__pattern {
    opacity: 0.18;
  }
}

.hero .lede,
.hero .btn-row {
  margin-inline: auto;
}

.hero .btn-row {
  justify-content: center;
}

.hero__note {
  font-size: 14px;
  color: var(--text-3);
}

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

.site-footer {
  background: var(--warm);
  border-top: 1px solid var(--border);
  padding-block: 56px 40px;
  margin-top: auto;
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
  align-items: flex-start;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
}

.site-footer nav a {
  color: var(--text-2);
  text-decoration: none;
  font-size: 15px;
}

.site-footer nav a:hover {
  color: var(--accent-deep);
}

.site-footer__note {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text-3);
  max-width: var(--read-max);
}

.support-note {
  font-size: 14px;
  color: var(--text-2);
  max-width: var(--read-max);
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1 0 auto;
}

@media (max-width: 640px) {
  :root {
    --gutter: 20px;
  }

  /* The nav wraps to two rows on narrow screens — too tall to pin */
  .site-header {
    position: static;
  }

  .site-header__inner {
    padding-block: 12px;
    gap: 10px;
  }

  .site-nav {
    margin-inline: -10px;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 14px;
  }

  .section {
    padding-block: 56px;
  }

  .hero {
    padding-block: 56px 48px;
  }

  .card,
  .tile {
    padding: 20px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}
