/* NodForge: website rebuilds for UK small businesses.
   One stylesheet for every page. Mobile first: the base rules are for phones,
   the min-width media queries add the wider layouts. */

/* ---------- Font (self-hosted, so visitors' browsers never call Google) ---------- */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var.woff2") format("woff2");
  font-weight: 400 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}

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

:root {
  --signal: #1f35d8;       /* brand blue: the web's own link blue, refined */
  --signal-deep: #1528a6;  /* hover and pressed */
  --signal-tint: #dde3ff;  /* soft text on blue */
  --ink: #121a33;          /* text */
  --ink-soft: #4a5270;     /* secondary text */
  --paper: #ffffff;
  --mist: #edf0fa;         /* alternate bands */
  --line: #d3d9ec;         /* rules and borders */
  --fault: #c2352c;        /* broken states only */
  --fixed: #117a47;        /* fixed states only */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --step--1: 0.9375rem;
  --step-0: clamp(1.0625rem, 1.02rem + 0.2vw, 1.125rem);
  --step-1: clamp(1.1875rem, 1.1rem + 0.45vw, 1.3125rem);
  --step-2: clamp(1.3125rem, 1.2rem + 0.55vw, 1.5rem);
  --step-3: clamp(1.875rem, 1.3rem + 2.4vw, 2.875rem);
  --step-4: clamp(2.375rem, 1.35rem + 4.4vw, 4.25rem);

  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --section: clamp(4rem, 3rem + 5vw, 7.5rem);
}

/* ---------- Base ---------- */

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--step-0);
  font-weight: 400;
  font-stretch: 100%;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img,
svg {
  display: block;
  max-width: 100%;
}

h1,
h2,
h3 {
  margin: 0;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

h1 {
  font-size: var(--step-4);
  font-stretch: 122%;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--step-3);
  font-stretch: 118%;
}

h3 {
  font-size: var(--step-2);
  font-stretch: 108%;
  font-weight: 750;
  line-height: 1.2;
}

p,
ul,
ol {
  margin: 0;
}

p {
  text-wrap: pretty;
}

strong {
  font-weight: 700;
}

a {
  color: var(--signal);
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.18em;
}

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

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

.nowrap {
  white-space: nowrap;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.75rem 1rem;
  border-radius: 6px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 700;
}

.skip:focus {
  top: 1rem;
}

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

/* ---------- Blue bands (header, hero, closing contact) ---------- */

.band {
  background: var(--signal);
  color: #fff;
}

/* :where keeps this at the lowest specificity, so button colours still win */
:where(.band) a {
  color: #fff;
}

:where(.band) :focus-visible {
  outline-color: #fff;
}

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

.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.3125rem;
  font-weight: 800;
  font-stretch: 120%;
  letter-spacing: -0.015em;
  line-height: 1;
  text-decoration: none;
}

.brand__mark {
  width: 2.125rem;
  height: 2.125rem;
  flex: none;
}

.nav {
  display: none;
}

.nav ul {
  display: flex;
  gap: 1.75rem;
  padding: 0;
  list-style: none;
}

.nav a {
  font-weight: 600;
  text-decoration: none;
}

.nav a:hover {
  color: #fff;
  text-decoration: underline;
}

@media (min-width: 56rem) {
  .nav {
    display: block;
    margin-left: auto;
    margin-right: 1rem;
  }
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0.8rem 1.5rem;
  border: 2px solid transparent;
  border-radius: 999px;
  background: var(--signal);
  color: #fff;
  font: inherit;
  font-weight: 700;
  font-stretch: 108%;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
}

.btn:hover {
  background: var(--signal-deep);
  color: #fff;
}

.btn--light {
  background: #fff;
  color: var(--signal);
}

.btn--light:hover {
  background: var(--signal-tint);
  color: var(--signal-deep);
}

.btn--small {
  min-height: 2.75rem;
  padding: 0.55rem 1.1rem;
  font-size: var(--step--1);
}

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

.hero {
  padding-block: 1.5rem 4rem;
}

.hero__grid {
  display: grid;
  gap: 3rem;
}

.hero h1 {
  max-width: 14ch;
}

.lead {
  max-width: 34em;
  margin-top: 1.5rem;
  color: var(--signal-tint);
  font-size: var(--step-1);
  line-height: 1.5;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 1.75rem;
  margin-top: 2rem;
}

.hero__link {
  font-weight: 650;
}

.hero__note {
  margin-top: 1.25rem;
  color: var(--signal-tint);
  font-size: var(--step--1);
}

@media (min-width: 62rem) {
  .hero {
    padding-block: 3.5rem 6.5rem;
  }

  .hero__grid {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
    align-items: center;
    gap: 4rem;
  }
}

/* ---------- Hero demo: old site and rebuild, side by side in one phone ---------- */

.demo {
  display: grid;
  justify-items: center;
  gap: 1rem;
  margin: 0;
}

.phone {
  width: min(20rem, 100%);
  padding: 0.625rem;
  border-radius: 2.625rem;
  background: #0d1430;
  box-shadow:
    0 2rem 3.5rem -1.5rem rgba(4, 8, 30, 0.6),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.14);
}

.compare {
  --pos: 40%;
  position: relative;
  height: 33rem;
  overflow: hidden;
  border-radius: 2rem;
  background: #fff;
  isolation: isolate;
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
  color: #1c2230;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.js .compare {
  cursor: ew-resize;
}

.screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.screen--before {
  z-index: 1;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}

.screen p,
.screen ul {
  margin: 0;
}

/* browser address bar */
.bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  height: 2.25rem;
  margin: 0.875rem 0.75rem 0.375rem;
  padding: 0 0.875rem;
  overflow: hidden;
  border-radius: 999px;
  background: #eceef3;
  color: #3c4150;
  font-size: 0.75rem;
  white-space: nowrap;
}

.bar svg {
  width: 0.875rem;
  height: 0.875rem;
  flex: none;
}

.bar__warn {
  color: var(--fault);
  font-weight: 700;
}

.bar__url {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* the old site: a desktop page shrunk onto a phone, as old sites are */
.oldsite-view {
  position: relative;
  flex: 1;
  overflow: hidden;
  background: #c3c7cf;
}

.oldsite {
  position: absolute;
  top: 0;
  left: 0;
  width: 1000px;
  min-height: 1750px;
  transform: scale(0.3);
  transform-origin: 0 0;
  background: #fff;
  color: #222;
  font: 21px/1.35 "Times New Roman", Times, serif;
}

.os-banner {
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 160px;
  padding: 30px 40px;
  border-bottom: 6px solid #f2c200;
  background: linear-gradient(#6d8fc4, #2c4f86);
  color: #fff;
}

.os-title {
  font: bold 48px/1 Georgia, "Times New Roman", serif;
  letter-spacing: 2px;
  text-shadow: 2px 2px 0 #1a2f55;
}

.os-est {
  margin-top: 10px;
  font-size: 24px;
  font-style: italic;
}

.os-nav {
  padding: 12px 40px;
  border-bottom: 2px solid #999;
  background: #e4e4e4;
  color: #00e;
  font-size: 23px;
}

.os-body {
  display: flex;
  gap: 30px;
  min-height: 1300px;
  padding: 30px 40px;
}

.os-side {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 230px;
  flex: none;
  align-self: flex-start;
  padding: 16px;
  border: 2px solid #c9c98f;
  background: #f1f1d8;
  color: #00e;
}

.os-side__h {
  color: #222;
  font-weight: bold;
}

.os-counter {
  margin-top: 24px;
  padding: 6px;
  background: #000;
  color: #3f3;
  font-family: "Courier New", monospace;
  text-align: center;
}

.os-main {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.os-welcome {
  color: #c00;
  font: bold 44px/1.1 "Comic Sans MS", "Chalkboard SE", "Comic Neue", cursive;
}

.os-img {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: 300px;
  padding: 12px;
  border: 3px inset #aaa;
  background: #f4f4f4;
  color: #555;
  font-size: 19px;
}

.os-img::before {
  content: "";
  width: 22px;
  height: 26px;
  flex: none;
  border: 2px solid #999;
  background: linear-gradient(135deg, #fff 45%, #d33 45% 55%, #fff 55%);
}

.os-new {
  color: #c00;
  font-weight: bold;
}

.os-foot {
  padding: 16px 40px;
  border-top: 2px solid #999;
  color: #555;
  font-size: 19px;
  text-align: center;
}

/* the rebuild */
.newsite {
  display: flex;
  flex: 1;
  flex-direction: column;
  color: #10221f;
}

.newsite__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 1rem 0.625rem;
}

.newsite__logo {
  color: #0f4c45;
  font-size: 1.0625rem;
  font-weight: 800;
  font-stretch: 114%;
  letter-spacing: -0.01em;
}

.newsite__menu {
  display: grid;
  gap: 3px;
}

.newsite__menu i {
  display: block;
  width: 1.125rem;
  height: 2px;
  border-radius: 2px;
  background: #10221f;
}

.newsite__hero {
  margin: 0 0.75rem;
  padding: 1.25rem 1rem 1rem;
  border-radius: 1rem;
  background: #0f4c45;
  color: #fff;
}

.newsite__title {
  font-size: 1.5rem;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.01em;
  line-height: 1.08;
}

.newsite__sub {
  margin-top: 0.5rem;
  color: #cfe7e2;
}

.newsite__call,
.newsite__quote {
  display: block;
  padding: 0.7rem;
  border-radius: 999px;
  font-weight: 750;
  text-align: center;
}

.newsite__call {
  margin-top: 1rem;
  background: #ffc94a;
  color: #1d1600;
  font-size: 0.9375rem;
}

.newsite__quote {
  margin-top: 0.5rem;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}

.newsite__open {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.875rem 1rem 0;
  color: #0f4c45;
  font-weight: 650;
}

.newsite__open i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: #1fa463;
}

.newsite__list {
  margin: 0.625rem 1rem 0;
  padding: 0;
  list-style: none;
}

.newsite__list li {
  display: flex;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-top: 1px solid #e3e8e7;
  font-weight: 600;
}

.newsite__list li::after {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  align-self: center;
  border-top: 2px solid #0f4c45;
  border-right: 2px solid #0f4c45;
  transform: rotate(45deg);
}

/* before and after labels, each clipped with its own layer */
.tag {
  position: absolute;
  bottom: 0.875rem;
  z-index: 2;
  padding: 0.3rem 0.625rem;
  border-radius: 6px;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.tag--before {
  left: 0.875rem;
  background: var(--fault);
}

.tag--after {
  right: 0.875rem;
  background: var(--fixed);
}

/* the divider and its handle */
.compare__range {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  pointer-events: none;
}

.compare__handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  z-index: 3;
  width: 0;
  pointer-events: none;
}

.compare__handle::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: -1.5px;
  width: 3px;
  background: #fff;
  box-shadow:
    0 0 0 1px rgba(13, 20, 48, 0.18),
    0 0 12px rgba(13, 20, 48, 0.25);
}

.compare__knob {
  position: absolute;
  top: 58%;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: #fff;
  color: var(--signal);
  box-shadow: 0 0.35rem 1rem rgba(13, 20, 48, 0.35);
  translate: -50% -50%;
  cursor: ew-resize;
  pointer-events: auto;
  touch-action: none;
}

.compare__knob svg {
  width: 1.375rem;
  height: 1.375rem;
}

.compare__range:focus-visible ~ .compare__handle .compare__knob {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
}

.no-js .compare__knob {
  display: none;
}

.demo__caption {
  max-width: 20rem;
  color: var(--signal-tint);
  font-size: var(--step--1);
  line-height: 1.45;
  text-align: center;
}

/* ---------- Sections ---------- */

.section {
  padding-block: var(--section);
}

.section--mist {
  background: var(--mist);
}

.section__intro {
  max-width: 38em;
  margin-top: 1.25rem;
  color: var(--ink-soft);
  font-size: var(--step-1);
  line-height: 1.5;
}

/* ---------- What we fix ---------- */

.faults {
  margin-top: 3rem;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.fault {
  display: grid;
  gap: 1.25rem;
  padding-block: 2rem;
  border-bottom: 1px solid var(--line);
}

.fault__text p {
  max-width: 36em;
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

@media (min-width: 48rem) {
  .fault {
    grid-template-columns: 17rem minmax(0, 1fr);
    align-items: center;
    gap: 3rem;
  }

  .seen {
    min-height: 7.5rem;
    padding: 1rem 1.125rem;
  }
}

/* what visitors actually see, drawn small */
.seen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.4rem;
  width: 100%;
  max-width: 20rem;
  min-height: 6rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f6f7fa;
  color: #3c4150;
  font-size: 0.875rem;
  line-height: 1.35;
}

.seen p {
  margin: 0;
}

.seen__icon {
  width: 1.75rem;
  height: 1.75rem;
  color: var(--fault);
}

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

.seen__bar {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  height: 2.5rem;
  padding: 0 0.9rem;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--line);
  white-space: nowrap;
}

.seen__bar svg {
  width: 1rem;
  height: 1rem;
  flex: none;
  color: var(--fault);
}

.seen__bar strong {
  color: var(--fault);
}

.seen__bar i {
  flex: 1;
  height: 0.5rem;
  border-radius: 4px;
  background: #dfe2ea;
}

.seen--mobile {
  flex-direction: row;
  align-items: center;
  gap: 1rem;
}

.seen__phone {
  position: relative;
  width: 3.25rem;
  height: 5.5rem;
  flex: none;
  overflow: hidden;
  border: 3px solid #3c4150;
  border-radius: 0.6rem;
  background: #fff;
}

.seen__page {
  position: absolute;
  top: 0.35rem;
  left: 0.3rem;
  display: grid;
  gap: 0.2rem;
  width: 5.5rem;
}

.seen__page i {
  display: block;
  height: 0.18rem;
  background: #9aa0b2;
}

.seen__page i:first-child {
  height: 0.6rem;
  background: #6d8fc4;
}

.seen__progress {
  height: 0.5rem;
  overflow: hidden;
  border-radius: 4px;
  background: #dfe2ea;
}

.seen__progress i {
  display: block;
  width: 28%;
  height: 100%;
  background: var(--fault);
}

.seen--old {
  color: #555;
  font-family: "Times New Roman", Times, serif;
  font-size: 0.9375rem;
}

.seen--old u {
  color: #00e;
}

/* ---------- How it works ---------- */

.steps {
  display: grid;
  gap: 2.25rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.step {
  position: relative;
  padding-left: 4rem;
  counter-increment: step;
}

.step::before {
  content: counter(step);
  position: absolute;
  top: -0.2rem;
  left: 0;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--paper);
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 2.75rem;
  bottom: -2.25rem;
  left: calc(1.375rem - 1px);
  width: 2px;
  background: var(--line);
}

.step--nod::before {
  border-color: var(--signal);
  background: var(--signal);
  color: #fff;
}

.step p {
  max-width: 30em;
  margin-top: 0.5rem;
  color: var(--ink-soft);
}

@media (min-width: 62rem) {
  .steps {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2.5rem;
  }

  .step {
    padding-top: 4.25rem;
    padding-left: 0;
  }

  .step::before {
    top: 0;
  }

  .step:not(:last-child)::after {
    top: calc(1.375rem - 1px);
    right: -2.5rem;
    bottom: auto;
    left: 2.75rem;
    width: auto;
    height: 2px;
  }
}

/* ---------- Sample work ---------- */

.work {
  display: grid;
  gap: 2rem;
  margin-top: 3rem;
  padding: 0;
  list-style: none;
}

.work a {
  display: block;
  color: inherit;
  text-decoration: none;
}

.work__shot {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 2px dashed var(--line);
  border-radius: 14px;
  background: var(--mist);
  color: var(--ink-soft);
  font-weight: 600;
}

.work__shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.work h3 {
  margin-top: 1rem;
  font-size: var(--step-1);
}

.work a:hover h3 {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.work p {
  margin-top: 0.35rem;
  color: var(--ink-soft);
}

@media (min-width: 48rem) {
  .work {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ---------- Prices: a plain price list ---------- */

.prices {
  max-width: 52rem;
  margin-top: 3rem;
  border-top: 1px solid var(--line);
}

.price {
  display: grid;
  grid-template-columns: auto minmax(1.5rem, 1fr) auto;
  align-items: baseline;
  column-gap: 0.75rem;
  padding-block: 1.75rem;
  border-bottom: 1px solid var(--line);
}

.price h3 {
  font-stretch: 114%;
}

.price__leader {
  align-self: baseline;
  border-bottom: 2px dotted #9aa0b8;
}

.price__amount {
  font-size: var(--step-2);
  font-weight: 800;
  font-stretch: 108%;
  font-variant-numeric: lining-nums tabular-nums;
  line-height: 1.2;
  text-align: right;
  white-space: nowrap;
}

/* "a month" sits under the amount, so long names keep to one line on phones */
.price__per {
  display: block;
  color: var(--ink-soft);
  font-size: var(--step--1);
  font-weight: 500;
  font-stretch: 100%;
}

.price__desc {
  grid-column: 1 / -1;
  max-width: 40em;
  margin-top: 0.6rem;
  color: var(--ink-soft);
}

.prices__note {
  max-width: 40em;
  margin-top: 1.5rem;
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* ---------- Questions ---------- */

.faq {
  max-width: 48rem;
  margin-top: 2.5rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 62rem) {
  .faq-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    align-items: start;
    gap: 4rem;
  }

  .faq-layout .faq {
    margin-top: 0.75rem;
  }
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  position: relative;
  padding: 1.25rem 2.75rem 1.25rem 0;
  cursor: pointer;
  font-size: var(--step-1);
  font-weight: 700;
  font-stretch: 106%;
  line-height: 1.35;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.5rem;
  width: 0.7rem;
  height: 0.7rem;
  border-right: 2.5px solid var(--signal);
  border-bottom: 2.5px solid var(--signal);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.faq details p {
  max-width: 38em;
  padding-bottom: 1.5rem;
  color: var(--ink-soft);
}

/* ---------- Closing contact band ---------- */

.contact h2 {
  max-width: 16ch;
}

.contact p {
  max-width: 34em;
  margin-top: 1.25rem;
  color: var(--signal-tint);
  font-size: var(--step-1);
  line-height: 1.5;
}

.contact .btn {
  margin-top: 2rem;
}

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

.footer {
  padding-block: 3rem;
  background: var(--mist);
  color: var(--ink-soft);
  font-size: var(--step--1);
}

.footer a {
  color: var(--ink);
}

.footer__grid {
  display: grid;
  gap: 2rem;
}

.footer__grid p + p {
  margin-top: 0.75rem;
}

.footer__name {
  color: var(--ink);
  font-size: 1.125rem;
  font-weight: 800;
  font-stretch: 120%;
}

.footer__links {
  display: grid;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
  padding: 0;
  list-style: none;
}

@media (min-width: 48rem) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  }
}

/* ---------- Text pages (privacy, unsubscribe, not found) ---------- */

.page-head {
  padding-block: 2rem 3.5rem;
}

.page-head h1 {
  max-width: 16ch;
}

.page-head p {
  max-width: 34em;
  margin-top: 1.25rem;
  color: var(--signal-tint);
  font-size: var(--step-1);
  line-height: 1.5;
}

.prose {
  max-width: 42rem;
  padding-block: 3rem var(--section);
}

.prose h2 {
  margin-top: 3rem;
  font-size: var(--step-2);
  font-stretch: 112%;
  line-height: 1.2;
}

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

/* :where keeps these at single-class weight, so components inside prose can override them */
.prose :where(p, ul, ol) {
  margin-top: 1rem;
}

.prose :where(ul, ol) {
  padding-left: 1.25rem;
}

.prose :where(li + li) {
  margin-top: 0.5rem;
}

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

.prose .btn {
  margin-top: 1.5rem;
}

.updated {
  color: var(--ink-soft);
  font-size: var(--step--1);
}

/* two alternative ways to opt out (not a sequence, so no numbers) */
.ways {
  display: grid;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}

.ways > li {
  margin: 0;
  padding: 1.375rem 1.5rem;
  border-radius: 14px;
  background: var(--mist);
}

.ways h3 {
  font-size: var(--step-1);
}

.ways p {
  margin-top: 0.4rem;
}

@media (min-width: 40rem) {
  .ways {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- Reduced motion ---------- */

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

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