/* Meet Adi — styles
   Brand comes straight from the business card: white paper, black ink,
   one red heart. The red line is the "connection" and is used sparingly. */

:root {
  --paper: #ffffff;
  --ink: #000000;
  --text: #333333;
  --muted: #6b6b6b;
  --red: #e1191f;
  --red-text: #c0121a; /* red for small text: passes contrast on white and wash */
  --rule: #e4e4e4;
  --field-line: #cfcfca;
  --wash: #f5f5f3;
  --todo: #fff2b8;

  /* Type: three levels, two faces. The script face is only the logo.
       Title     Figtree 600        every section heading and the hero line
       Subtitle  Figtree            small headings, and the intro line under a title
       Text      Source Serif 4     all running text
     Interface bits (nav, buttons, form labels, footer details) are Figtree
     at the small / ui sizes. */
  --font-head: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-text: "Source Serif 4", Georgia, "Times New Roman", serif;
  --script: "Oooh Baby", "Segoe Script", cursive;

  --fs-title: clamp(2.25rem, 4.6vw, 3.5rem);     /* 36–56px */
  --fs-subtitle: clamp(1.375rem, 2vw, 1.625rem); /* 22–26px */
  --fs-text: 1.1875rem;                          /* 19px */
  --fs-ui: 1.0625rem;                            /* 17px  buttons, form fields */
  --fs-small: 0.9375rem;                         /* 15px  labels, notes, fine print */

  --wrap: 1140px;
  --gutter: clamp(20px, 5vw, 48px);
  --section: clamp(88px, 12vw, 160px);
  --header-h: 72px;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  color-scheme: light;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-text);
  font-size: var(--fs-text);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3 {
  color: var(--ink);
  font-family: var(--font-head);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
/* Title */
h1, h2 {
  font-size: var(--fs-title);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
/* Subtitle: small headings (600) and intro lines under a title (400) */
h3,
.subtitle {
  font-family: var(--font-head);
  font-size: var(--fs-subtitle);
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.subtitle {
  font-weight: 400;
  color: var(--ink);
}

/* Interface and short labels use the heading face */
.skip,
.site-header,
.btn,
.step-num,
.bridge,
.contact-form,
.site-footer,
.todo-block { font-family: var(--font-head); }
p { margin: 0 0 1.1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }
img, svg { display: block; }

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

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  background: var(--ink);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: var(--fs-small);
  text-decoration: none;
}
.skip:focus { top: 12px; }

/* ---------- Draft markers (remove before launch) ---------- */
.todo {
  background: var(--todo);
  color: inherit;
  padding: 0 0.15em;
  border-radius: 3px;
  cursor: help;
}
.todo-block {
  background: var(--todo);
  border-radius: 10px;
  padding: 18px 20px;
  color: #5c4d00;
  font-size: var(--fs-small);
  line-height: 1.5;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
  font: 600 var(--fs-ui)/1 var(--font-head);
  letter-spacing: 0.005em;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 200ms ease, transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--red); }
}
.btn-small {
  min-height: 42px;
  padding: 0 20px;
  font-size: var(--fs-small);
}

.cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
}

/* ---------- Script mark (Meet Adi + heart) ---------- */
.mark { overflow: visible; }
.mark-text {
  font-family: var(--script);
  fill: var(--ink);
  stroke: var(--ink);
  stroke-width: 5px;
  stroke-linejoin: round;
  paint-order: stroke;
}
.mark-hero .mark-text { stroke-width: 7px; }
.header-mark .mark-text { stroke-width: 10px; }
.mark-heart { fill: var(--red); }
.mark-heart path {
  transform-box: fill-box;
  transform-origin: 50% 80%;
}
/* Hide the mark until the script font is ready, so no fallback flash */
.js .mark { visibility: hidden; }
.js .mark.is-ready,
.marks-ready .mark { visibility: visible; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }
.header-inner {
  height: var(--header-h);
  display: flex;
  align-items: center;
  gap: 32px;
}
.header-mark {
  display: block;
  margin-right: auto;
  padding: 6px 0;
  border-radius: 6px;
}
.header-mark .mark { height: 38px; width: auto; }
.nav {
  display: flex;
  gap: 28px;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
  font-size: var(--fs-small);
  padding: 6px 0;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  transition: background-size 220ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav a:hover { background-size: 100% 2px; }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .header-inner { gap: 16px; }
  .header-mark .mark { height: 32px; }
}

/* ---------- Hero ---------- */
.hero {
  min-height: calc(100svh - var(--header-h));
  display: flex;
  align-items: center;
  padding-block: clamp(40px, 8vh, 96px) clamp(64px, 12vh, 128px);
}
.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.mark-hero {
  width: min(720px, 86vw);
  height: auto;
}
.mark-hero.can-replay { cursor: pointer; }
.swoosh {
  height: 16px;
  fill: var(--ink);
}
.swoosh-black {
  width: min(520px, 64vw);
  margin-top: clamp(4px, 1vw, 12px);
}
.hero-title { margin-top: clamp(36px, 5vw, 56px); }
.hero-lede {
  margin: 20px auto 0;
  max-width: 30em;
}
.hero .cta { margin-top: 40px; }

/* Load sequence. `intro` is set in <head> only when motion is allowed;
   main.js adds show-swoosh / show-text as the script finishes writing. */
.intro .hero-step {
  opacity: 0;
  transform: translateY(14px);
}
.intro .swoosh-black { clip-path: inset(0 100% 0 0); }
.intro .hero-step,
.intro .swoosh-black {
  transition:
    opacity 700ms var(--ease-out),
    transform 700ms var(--ease-out),
    clip-path 650ms cubic-bezier(0.65, 0, 0.35, 1);
}
.intro.show-swoosh .swoosh-black { clip-path: inset(0 0 0 0); }
.intro.show-text .hero-step { opacity: 1; transform: none; }
.intro.show-text .hero-lede { transition-delay: 90ms; }
.intro.show-text .cta { transition-delay: 180ms; }

.btn-enter {
  min-height: 56px;
  padding: 0 34px;
}

/* ---------- Entry gate ----------
   On arrival the hero fills the screen on its own and the page doesn't
   scroll. "Let's connect" zooms through it into the site (main.js),
   landing on "Who's Adi?". Without JS the hero is just the top of the page. */
.gate,
.gate body { overflow: hidden; }
.gate .skip { display: none; }
.gate .site-header { visibility: hidden; }
.gate.entering .site-header { visibility: visible; }
.gate .hero {
  position: fixed;
  inset: 0;
  z-index: 60;
  min-height: 0;
  align-items: flex-start;
  padding-block: clamp(24px, 5vh, 56px) clamp(36px, 8vh, 88px);
  overflow-y: auto; /* only on very short screens, so the button stays reachable */
  overscroll-behavior: contain;
  background: var(--paper);
}
.gate .hero-inner { margin-block: auto; }
.gate.entering .hero {
  background: transparent;
  pointer-events: none;
}
.entered .hero { display: none; }
@media (max-height: 760px) {
  .gate .hero-title { margin-top: clamp(24px, 4vh, 40px); }
  .gate .hero-lede { margin-top: 16px; }
  .gate .hero .cta { margin-top: 28px; }
}
/* Focus lands on "Who's Adi?" after entering; no ring on a heading */
h2[tabindex="-1"]:focus { outline: none; }

/* ---------- About ---------- */
.about {
  padding-block: var(--section);
  border-top: 1px solid var(--rule);
}
.about-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  column-gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
/* The photo rides along while you read and stops level with the end of the
   text beside it. Its column is exactly as tall as that text (the grid row
   ends there; the closing line sits in the row below), and sticky stays
   inside its parent. */
.portrait-col { align-self: stretch; }
.portrait {
  margin: 0;
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.portrait-frame {
  aspect-ratio: 4 / 5;
  border-radius: 14px;
  overflow: hidden;
  background: var(--wash);
}
/* The photo is tall (about 1:2); crop to head and upper body */
.portrait-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 45%;
}

.about-copy { max-width: 35em; }
.about-copy h2 { margin-bottom: 32px; }
.about-close {
  grid-column: 2;
  max-width: 35em;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 2px solid var(--red);
}

@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; }
  .portrait { position: static; margin-bottom: 40px; }
  .portrait-col { max-width: 420px; }
  .about-close { grid-column: 1; }
}

/* ---------- How Adi works ---------- */
.how {
  padding-block: var(--section);
  background: var(--wash);
}
.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(40px, 7vw, 104px);
  align-items: start;
}
.how-intro {
  position: sticky;
  top: calc(var(--header-h) + 48px);
}
.how-intro h2 { margin-bottom: 24px; }
.how-intro p { max-width: 20em; }

.steps {
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
}
.step {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 24px;
  padding-bottom: 48px;
}
.step:last-child { padding-bottom: 0; }
.step-num {
  position: relative;
  z-index: 1;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1.5px solid var(--ink);
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-small);
  font-variant-numeric: tabular-nums;
  transition: border-color 300ms ease, color 300ms ease;
}
.step.is-reached .step-num { border-color: var(--red); color: var(--red); }
.step-body { padding-top: 8px; max-width: 32em; }
.step-body h3 { margin-bottom: 8px; }

/* The red thread, drawn by main.js through the step markers */
.thread {
  position: absolute;
  top: 0;
  left: 0;
  width: 44px;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.thread path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
}

@media (max-width: 860px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-intro { position: static; }
}
@media (max-width: 480px) {
  .step { grid-template-columns: 36px minmax(0, 1fr); gap: 18px; padding-bottom: 40px; }
  .step-num { width: 36px; height: 36px; }
  .step-body { padding-top: 4px; }
  .thread { width: 36px; }
}

/* ---------- What makes Adi different ---------- */
.different {
  padding-block: var(--section);
  background: var(--ink);
  color: rgba(255, 255, 255, 0.78);
}
.different-title {
  color: #fff;
  max-width: 13em;
  margin-inline: auto;
  text-align: center;
}
.bridge {
  margin-block: clamp(56px, 8vw, 96px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 2.2fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 3vw, 32px);
  color: #fff;
}
.bridge-side {
  font-size: var(--fs-subtitle);
  font-weight: 500;
  line-height: 1.3;
}
.bridge-side:first-child { text-align: right; }
.bridge-link {
  position: relative;
  display: block;
  height: 24px;
}
.bridge-line {
  width: 100%;
  height: 24px;
}
.bridge-line path {
  fill: none;
  stroke: var(--red);
  stroke-width: 2.5;
  stroke-linecap: round;
}
.bridge-adi {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 10px;
  background: var(--ink);
}
.bridge-heart {
  width: 34px;
  height: 34px;
  fill: var(--red);
  transform: rotate(8deg);
}
.bridge-name {
  position: absolute;
  top: 100%;
  margin-top: 8px;
  font-size: var(--fs-subtitle);
  font-weight: 600;
  line-height: 1;
  color: #fff;
}
/* Two paragraphs side by side, centred under the bridge; stacked once the
   columns get too narrow */
.different-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(28px, 5vw, 72px);
  max-width: 980px;
  margin-inline: auto;
}
.different-body p { margin: 0; }
@media (max-width: 760px) {
  .different-body {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.1em;
    max-width: 35em;
  }
}
/* On phones the bridge turns vertical: need on top, people below */
@media (max-width: 560px) {
  .bridge {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
    gap: 14px;
  }
  .bridge-side:first-child { text-align: center; }
  .bridge-link { width: 24px; height: 132px; }
  .bridge-line {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 132px;
    transform: translate(-50%, -50%) rotate(90deg);
  }
  .bridge-adi { padding: 8px 0; }
  .bridge-name {
    top: 50%;
    left: 100%;
    margin: 0 0 0 10px;
    transform: translateY(-50%);
  }
}

/* Bridge animation, once, as it scrolls into view (main.js adds
   .will-play, then .is-in). The need appears, the line runs to Adi, her
   heart beats, then the line carries on to the people who can deliver. */
@media (prefers-reduced-motion: no-preference) {
  .bridge.will-play .bridge-side,
  .bridge.will-play .bridge-name {
    opacity: 0;
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
  }
  .bridge.will-play .bridge-side:first-child { transform: translateX(-12px); }
  .bridge.will-play .bridge-side:last-child { transform: translateX(12px); }
  .bridge.will-play .bridge-line { clip-path: inset(0 100% 0 0); }
  .bridge.will-play .bridge-heart { opacity: 0; }

  .bridge.will-play.is-in .bridge-side,
  .bridge.will-play.is-in .bridge-name { opacity: 1; }
  .bridge.will-play.is-in .bridge-side { transform: none; }
  .bridge.will-play.is-in .bridge-name { transition-delay: 760ms; }
  .bridge.will-play.is-in .bridge-side:last-child { transition-delay: 1180ms; }
  .bridge.will-play.is-in .bridge-line { animation: bridge-draw 1300ms 150ms both; }
  .bridge.will-play.is-in .bridge-heart { animation: bridge-beat 720ms var(--ease-out) 560ms both; }

  /* On phones the bridge is vertical, so the labels come in from above/below */
  @media (max-width: 560px) {
    .bridge.will-play .bridge-side:first-child { transform: translateY(-10px); }
    .bridge.will-play .bridge-side:last-child { transform: translateY(10px); }
  }
}
@keyframes bridge-draw {
  0%   { clip-path: inset(0 100% 0 0); animation-timing-function: cubic-bezier(0.25, 0.6, 0.4, 1); }
  40%  { clip-path: inset(0 50% 0 0); }  /* reaches Adi */
  55%  { clip-path: inset(0 50% 0 0); animation-timing-function: cubic-bezier(0.55, 0, 0.35, 1); }
  100% { clip-path: inset(0 0 0 0); }
}
@keyframes bridge-beat {
  0%   { opacity: 0; transform: rotate(8deg) scale(0.4); }
  45%  { opacity: 1; transform: rotate(8deg) scale(1.22); }
  70%  { transform: rotate(8deg) scale(0.94); }
  100% { opacity: 1; transform: rotate(8deg) scale(1); }
}

/* ---------- Projects ---------- */
.projects { padding-block: var(--section); }
.projects h2 { margin-bottom: clamp(40px, 6vw, 72px); }
.project {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 16px clamp(40px, 7vw, 104px);
  padding-block: 40px;
  border-top: 1px solid var(--rule);
}
.project:last-child { border-bottom: 1px solid var(--rule); }
.project-body { max-width: 35em; }
.project-quote {
  margin: 16px 0 0;
  border-left: 3px solid var(--red);
  border-radius: 0 10px 10px 0;
  font-style: italic;
}
@media (max-width: 760px) {
  .project { grid-template-columns: 1fr; }
}

/* ---------- Closing CTA ---------- */
.closing {
  padding-block: var(--section);
  background: var(--wash);
}
.closing-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.closing h2 { max-width: 14em; }
.closing h2 span { display: block; }
.swoosh-red {
  width: min(440px, 70vw);
  fill: var(--red);
  margin-top: 18px;
}
.closing-lede {
  margin: 36px auto 0;
  max-width: 30em;
}

/* ---------- Contact form ---------- */
.contact-form,
.form-success {
  width: 100%;
  max-width: 680px;
  margin-top: 36px;
}
.contact-form { text-align: left; }
.form-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field-wide { grid-column: 1 / -1; }
.field label {
  color: var(--ink);
  font-weight: 600;
  font-size: var(--fs-small);
  line-height: 1.3;
}
.optional {
  color: var(--muted);
  font-weight: 400;
}
.field-hint {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: var(--fs-small);
  line-height: 1.45;
}
.field input,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 12px 16px;
  border: 1.5px solid var(--field-line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: 400 var(--fs-ui)/1.4 var(--font-head); /* 17px: phones don't zoom in on focus */
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 160ms ease;
}
.field textarea {
  min-height: 150px;
  resize: vertical;
}
@media (hover: hover) and (pointer: fine) {
  .field input:hover,
  .field textarea:hover { border-color: #9a9a95; }
}
.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--ink);
  border-radius: 12px;
  outline-offset: 2px;
}
.field [aria-invalid="true"] { border-color: var(--red); }
.field-error,
.form-status {
  margin: 0;
  color: var(--red-text);
  font-size: var(--fs-small);
  font-weight: 500;
  line-height: 1.45;
}
.form-status:empty { display: none; }
.form-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 30px;
}
.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .form-actions .btn { width: 100%; }
}

.form-success {
  padding: clamp(36px, 6vw, 56px) 28px;
  border-radius: 20px;
  background: var(--paper);
  text-align: center;
  outline: none;
}
.form-success-heart {
  width: 40px;
  height: 40px;
  margin: 0 auto;
  fill: var(--red);
  transform: rotate(8deg);
}
.form-success-title {
  margin: 14px 0 8px;
  color: var(--ink);
  font-family: var(--font-head);
  font-size: var(--fs-subtitle);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
@media (prefers-reduced-motion: no-preference) {
  .form-success:not([hidden]) { animation: success-in 520ms var(--ease-out) both; }
  .form-success:not([hidden]) .form-success-heart { animation: heart-in 620ms var(--ease-out) 80ms both; }
}
@keyframes success-in {
  from { opacity: 0; transform: translateY(10px); }
}
@keyframes heart-in {
  from { opacity: 0; transform: translateY(-6px) scale(0.4) rotate(-16deg); }
  62% { opacity: 1; transform: scale(1.12) rotate(12deg); }
}

/* ---------- Footer ---------- */
.site-footer {
  padding-block: 72px 40px;
  color: var(--text);
}
.footer-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 40px;
}
.footer-name {
  margin: 0;
  font-size: var(--fs-subtitle);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.footer-role {
  margin: 4px 0 0;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--red);
  font-size: var(--fs-ui);
  font-weight: 500;
  color: var(--ink);
}
.footer-focus {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  font-size: var(--fs-small);
  line-height: 1.9;
}
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: var(--fs-subtitle);
  font-weight: 500;
}
.footer-contact a {
  color: var(--ink);
  text-decoration: none;
  background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  transition: background-size 220ms var(--ease-out);
  align-self: flex-start;
}
@media (hover: hover) and (pointer: fine) {
  .footer-contact a:hover { background-size: 100% 2px; }
}
.footer-base {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 56px;
  padding-top: 24px;
  /* rule spans the content width, not the gutters */
  background: linear-gradient(var(--rule), var(--rule)) var(--gutter) 0 / calc(100% - var(--gutter) * 2) 1px no-repeat;
  font-size: var(--fs-small);
  color: var(--muted);
}
.footer-base p { margin: 0; }
/* Tagline on the left; copyright and design credit together on the right */
.footer-base p:first-child { margin-right: auto; }
.footer-credit a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--red);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 160ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .footer-credit a:hover { color: var(--red); }
}
