/* Aftergleam website.
   The logo's colours: its paper background for the page, its green for the logo and links,
   with black for text and buttons and a barely warm white for cards. The greys used for
   secondary text and rules are mixes of the black and the paper, not further colours.
   Erewhon for display type, Figtree for everything else. */

@font-face {
  font-family: "Erewhon";
  src: url("fonts/erewhon-bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Figtree";
  src: url("fonts/figtree.woff2") format("woff2");
  font-weight: 300 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* The colours. */
  --paper: #ecdccd; /* the logo's background */
  --green: #096c46; /* the logo */
  --black: #121412;
  --white: #fcfaf5;
  --green-light: #76ac95; /* the green mixed with the white, for links on black */

  /* Light theme: paper at the top of each page, fading to white; black text and buttons,
     green links. */
  --bg: var(--white);
  --top: var(--paper);
  --surface: var(--white);
  --ink: var(--black);
  --muted: #58544e; /* black 68%, paper 32% */
  --line: #d2c4b7; /* black 12% */
  --field-edge: #7f786f; /* black 50% */
  --accent: var(--green);
  --button: var(--black);
  --on-button: var(--white);
  --button-hover: #2c2b28; /* paper 8% */
  --soft-fill: rgba(18, 20, 18, 0.05);
  --marker: var(--white);
  --header: rgba(236, 220, 205, 0.88);
  --shadow: 0 1px 2px rgba(18, 20, 18, 0.06), 0 10px 28px -12px rgba(18, 20, 18, 0.18),
    0 30px 60px -32px rgba(18, 20, 18, 0.22);

  --serif: "Erewhon", "Iowan Old Style", "Charter", Georgia, serif;
  --sans: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --max: 74rem;
  --gutter: clamp(1rem, 4vw, 2rem);
  --radius: 1.5rem;

  color-scheme: light dark;
}

/* Dark theme: the logo's dark version, paper on black. */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: var(--black);
    --top: var(--black);
    --surface: #1f201d; /* paper 6% */
    --ink: var(--paper);
    --muted: #a69c91; /* paper 68% */
    --line: #31302c; /* paper 14% */
    --field-edge: #746e66; /* paper 45% */
    --accent: var(--green-light);
    --button: var(--paper);
    --on-button: var(--black);
    --button-hover: #f2e7dc; /* the paper, lighter */
    --soft-fill: rgba(236, 220, 205, 0.06);
  --marker: var(--paper);
    --header: rgba(18, 20, 18, 0.88);
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 30px -12px rgba(0, 0, 0, 0.7);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
}

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

img {
  height: auto;
}

svg {
  fill: currentColor;
}

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 700;
  margin: 0;
  text-wrap: balance;
}

h2 {
  font-size: clamp(2rem, 1.3rem + 2.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.015em;
}

h3 {
  font-size: 1.3rem;
  line-height: 1.2;
}

p {
  margin: 0 0 1rem;
}

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

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

.icon {
  width: 1em;
  height: 1em;
  flex: none;
}

/* ---------------------------------------------------------------- header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header);
  backdrop-filter: saturate(1.3) blur(14px);
  -webkit-backdrop-filter: saturate(1.3) blur(14px);
  border-bottom: 1px solid var(--line);
}

.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  height: 4rem;
}

.brand img {
  height: 1.55rem;
  width: auto;
}

.site-nav {
  margin-left: auto;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--ink);
  text-decoration: none;
  font-size: 0.97rem;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.3em;
}

.site-nav .icon {
  width: 1.2rem;
  height: 1.2rem;
}

.site-nav .nav-get {
  color: var(--accent);
  font-weight: 650;
}

@media (max-width: 48rem) {
  .wide-only {
    display: none;
  }
}

/* ---------------------------------------------------------------- buttons */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.6rem;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 999px;
  background: var(--button);
  color: var(--on-button);
  font: 650 0.97rem/1 var(--sans);
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 6px 16px -8px rgba(18, 20, 18, 0.5);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover {
  background: var(--button-hover);
  transform: translateY(-1px);
  text-decoration: none;
}

.button:active {
  transform: translateY(0);
}

.button .icon {
  width: 1.25em;
  height: 1.25em;
}

.button.big {
  min-height: 3.4rem;
  padding: 0 1.5rem;
  border-radius: 1rem;
  font-size: 1.06rem;
}

/* The second choice: outlined. */
.button.outline {
  background: transparent;
  color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--ink) inset;
}

.button.outline:hover {
  background: var(--soft-fill);
}

.get {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.get-note {
  margin: 1rem 0 0;
  font-size: 0.93rem;
  color: var(--muted);
}

.callout .get {
  margin-top: 1.4rem;
}

@media (max-width: 30rem) {
  .get .button {
    flex: 1 1 100%;
  }
}

/* ---------------------------------------------------------------- unsubscribe form */

.address-form {
  max-width: 34rem;
  margin: 1.5rem auto 0;
  text-align: left;
}

.address-row {
  display: flex;
  gap: 0.5rem;
}

.address-form .field {
  position: relative;
  flex: 1;
  min-width: 0;
  display: flex;
}

.address-form .field .icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  width: 1.2rem;
  height: 1.2rem;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.address-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 3.3rem;
  padding: 0 1rem 0 2.9rem;
  border: 0;
  border-radius: 0.9rem;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 0 0 1.5px var(--field-edge) inset;
  font: 500 1.05rem var(--sans);
}

/* Full strength in every browser: Firefox otherwise fades placeholders further. */
.address-form input[type="email"]::placeholder {
  color: var(--muted);
  opacity: 1;
}

.address-form input[type="email"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 1px;
}

.address-form .button {
  height: 3.3rem;
  border-radius: 0.9rem;
  padding: 0 1.5rem;
  font-size: 1.05rem;
}

.address-form .address-status {
  margin: 0.8rem 0 0;
  font-weight: 600;
  color: var(--accent);
}

.address-form .address-status:empty {
  display: none;
}

.address-form.is-busy .button {
  opacity: 0.7;
  pointer-events: none;
}

.address-form.is-done .address-row {
  display: none;
}

.address-form.is-done .address-status {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  animation: rise 0.6s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.address-form.is-done .address-status::before {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  flex: none;
  border-radius: 50%;
  background-color: currentColor;
  -webkit-mask: url("img/check.svg") center / 70% no-repeat;
  mask: url("img/check.svg") center / 70% no-repeat;
}

@media (max-width: 30rem) {
  .address-row {
    flex-direction: column;
  }

  .address-form .field {
    flex: none;
    width: 100%;
  }

  .address-form .button {
    width: 100%;
  }
}

/* ---------------------------------------------------------------- hero */

/* Paper, fading into the white page over its last stretch. */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(to bottom, transparent calc(100% - 24rem), var(--bg)), var(--top);
}

.hero .container {
  display: grid;
  gap: 2.5rem;
  padding-top: clamp(2.5rem, 6vw, 5rem);
  padding-bottom: clamp(5rem, 10vw, 9rem);
  align-items: center;
}

@media (min-width: 60rem) {
  .hero .container {
    grid-template-columns: 1.05fr 1fr;
  }
}

.hero h1 {
  font-size: clamp(2.8rem, 1.5rem + 5vw, 5.1rem);
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: 1.4rem;
}

/* The highlighter from the store graphics, in white. */
.marker {
  padding: 0 0.12em 0.04em;
  margin: 0 -0.04em;
  border-radius: 0.14em;
  background: var(--marker);
  color: var(--black);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.lede {
  max-width: 33rem;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  line-height: 1.5;
  color: var(--muted);
  margin-bottom: 2rem;
}

/* The stage: a phone, the stream of papers behind it, and the gleam. */

.stage {
  position: relative;
  min-height: 34rem;
  display: grid;
  place-items: center;
  perspective: 1600px;
}

@media (max-width: 59.99rem) {
  .stage {
    min-height: 30rem;
  }
}

.stream {
  position: absolute;
  inset: -25% -30% -25% -10%;
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  transform: rotate(-12deg);
  -webkit-mask-image: radial-gradient(closest-side, #000 55%, transparent);
  mask-image: radial-gradient(closest-side, #000 55%, transparent);
  pointer-events: none;
}

.track {
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
  animation: drift 60s linear infinite;
}

.track:nth-child(2) {
  animation-duration: 48s;
  margin-top: -6rem;
}

.track:nth-child(3) {
  animation-duration: 70s;
  margin-top: -3rem;
}

.track:nth-child(4) {
  animation-duration: 54s;
  margin-top: -9rem;
}

@keyframes drift {
  to {
    transform: translateY(-50%);
  }
}

.sheet {
  width: 7.5rem;
  height: 9.6rem;
  flex: none;
  padding: 0.9rem 0.75rem;
  border-radius: 0.5rem;
  background: var(--soft-fill);
}

.sheet i {
  display: block;
  height: 0.3rem;
  margin-bottom: 0.45rem;
  border-radius: 1rem;
  background: var(--soft-fill);
}

.sheet i:nth-child(1) {
  width: 80%;
  height: 0.5rem;
  margin-bottom: 0.7rem;
}

.sheet i:nth-child(2) {
  width: 92%;
}

.sheet i:nth-child(3) {
  width: 70%;
}

.sheet i:nth-child(4) {
  width: 86%;
}

.sheet i:nth-child(5) {
  width: 58%;
}

/* The few that are worth it. */
.sheet.pick {
  background: var(--surface);
  box-shadow: 0 18px 30px -16px rgba(18, 20, 18, 0.45);
}

.sheet.pick i {
  background: var(--line);
}

.sheet.pick i:nth-child(1) {
  background: var(--ink);
}

.phone-wrap {
  position: relative;
  z-index: 2;
  width: min(18.5rem, 58vw);
}

/* The rounded halos behind the phone in the feature graphic. */
.phone-wrap::before,
.phone-wrap::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: -2.2rem;
  border-radius: 4rem;
  background: var(--soft-fill);
  animation: breathe 7s ease-in-out infinite;
}

.phone-wrap::after {
  inset: -4.4rem;
  border-radius: 5.2rem;
  background: var(--soft-fill);
  opacity: 0.6;
  animation-delay: -3.5s;
}

@keyframes breathe {
  50% {
    transform: scale(1.03);
    opacity: 0.75;
  }
}

.phone {
  --rx: 5deg;
  --ry: -14deg;
  position: relative;
  aspect-ratio: 540 / 1204;
  padding: 0.6rem;
  border-radius: 2.8rem;
  background: linear-gradient(145deg, #2a2c2a, var(--black) 55%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 2px 0 rgba(255, 255, 255, 0.08) inset,
    0 50px 80px -30px rgba(0, 0, 0, 0.6),
    0 25px 40px -25px rgba(0, 0, 0, 0.6);
  transform: rotateX(var(--rx)) rotateY(var(--ry)) rotateZ(1.5deg);
  transition: transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 2.25rem;
  background: var(--black);
}

.screen img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  animation: screens 20s infinite;
}

.screen img:first-child {
  opacity: 1;
}

.screen img:nth-child(2) {
  animation-delay: 5s;
}

.screen img:nth-child(3) {
  animation-delay: 10s;
}

.screen img:nth-child(4) {
  animation-delay: 15s;
}

@keyframes screens {
  0% {
    opacity: 0;
    transform: scale(1.02);
  }
  3%,
  25% {
    opacity: 1;
    transform: scale(1);
  }
  28%,
  100% {
    opacity: 0;
  }
}

/* The one gleam: it grows in with a quarter turn, then catches the light now and then. */
.gleam {
  position: absolute;
  z-index: 3;
  top: -1.4rem;
  right: -1.6rem;
  width: 4rem;
  height: 4rem;
  color: var(--ink);
  animation: gleam-in 1.4s 0.3s cubic-bezier(0.2, 0.8, 0.2, 1) both,
    twinkle 7s 2s ease-in-out infinite;
}

@keyframes gleam-in {
  from {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
  }
  to {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}

@keyframes twinkle {
  0%,
  80%,
  100% {
    transform: scale(1) rotate(0);
  }
  88% {
    transform: scale(1.2) rotate(45deg);
  }
  94% {
    transform: scale(0.95) rotate(90deg);
  }
}

/* One real reason line, floating by the phone. */
.float-chip {
  position: absolute;
  z-index: 3;
  left: -2.5rem;
  bottom: 16%;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0.95rem;
  border-radius: 0.9rem;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: 0 0 0 1px var(--line), 0 20px 40px -18px rgba(18, 20, 18, 0.45);
  animation: bob 7s ease-in-out infinite;
}

.float-chip .dot {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 0 4px var(--soft-fill);
}

@keyframes bob {
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 30rem) {
  .float-chip {
    left: -1.2rem;
    font-size: 0.78rem;
  }
}

/* ---------------------------------------------------------------- sections */

.section {
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0;
}

.section-title {
  max-width: 40rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.section-intro {
  max-width: 44rem;
  margin-bottom: clamp(1.8rem, 4vw, 2.6rem);
}

.section-intro h2 {
  margin-bottom: 1.1rem;
}

.section-intro p {
  font-size: 1.15rem;
  color: var(--muted);
}

.section-intro p:last-child {
  margin-bottom: 0;
}

/* New papers, with the photograph */

.split {
  display: grid;
  gap: clamp(3rem, 6vw, 5rem);
  align-items: center;
}

@media (min-width: 56rem) {
  .split {
    grid-template-columns: 1fr 1fr;
  }
}

.photo {
  position: relative;
  margin: 0 0 2rem;
}

.photo .main {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.photo .ui {
  position: absolute;
  right: -0.5rem;
  bottom: -2rem;
  width: 64%;
  border-radius: 1.1rem;
  box-shadow: 0 30px 50px -20px rgba(0, 0, 0, 0.55);
}

@media (min-width: 56rem) {
  .photo .ui {
    right: -2.5rem;
  }
}

.big-copy h2 {
  margin-bottom: 1.4rem;
}

.big-copy p {
  font-size: 1.2rem;
  color: var(--muted);
}

.big-copy .source-line {
  font-size: 1rem;
}

/* Getting started: three real screens, captioned */

.filmstrip {
  display: grid;
  gap: 2.2rem 1.6rem;
}

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

.filmstrip figure {
  margin: 0;
}

.filmstrip img {
  width: 100%;
  border-radius: 1.1rem 1.1rem 0 0;
  -webkit-mask-image: linear-gradient(#000 62%, transparent);
  mask-image: linear-gradient(#000 62%, transparent);
}

.filmstrip figcaption {
  margin-top: 0.4rem;
  max-width: 20rem;
  font-size: 1.05rem;
  line-height: 1.45;
}

/* The digest: one real card, its parts outlined and labelled */

.anatomy {
  display: grid;
  gap: 1.4rem;
  margin: 0;
}

.anatomy-card {
  position: relative;
  max-width: 40rem;
}

.anatomy-card img {
  width: 100%;
  border-radius: 1.1rem;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, 0.55);
}

.anatomy .mark {
  position: absolute;
  border: 2px solid rgba(252, 250, 245, 0.85);
  border-radius: 0.6rem;
  pointer-events: none;
}

.mark-why {
  left: 3.5%;
  top: 7%;
  width: 28%;
  height: 17%;
}

.mark-text {
  left: 3.5%;
  top: 25%;
  width: 93%;
  height: 50%;
}

.mark-actions {
  left: 67%;
  top: 79%;
  width: 29%;
  height: 18%;
}

.anatomy figcaption {
  margin: 0;
}

.labels {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-weight: 600;
}

/* Wide screens: each label sits level with the part it names, joined by a short rule. */
@media (min-width: 64rem) {
  .anatomy {
    grid-template-columns: minmax(0, 38rem) minmax(0, 1fr);
    gap: 0 3.5rem;
  }

  .labels {
    position: relative;
    display: block;
    height: 100%;
  }

  .labels li {
    position: absolute;
    left: 0;
    transform: translateY(-50%);
    white-space: nowrap;
  }

  .labels li::before {
    content: "";
    position: absolute;
    right: calc(100% + 0.8rem);
    top: 50%;
    width: 2.4rem;
    border-top: 2px solid var(--accent);
  }

  .label-why {
    top: 15%;
  }

  .label-text {
    top: 50%;
  }

  .label-actions {
    top: 88%;
  }
}

.after-anatomy {
  max-width: 44rem;
  margin-top: 1.8rem;
  color: var(--muted);
}

/* Other features */

.also {
  display: grid;
  gap: 0 2.5rem;
  margin: 0;
}

@media (min-width: 48rem) {
  .also {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 64rem) {
  .also {
    grid-template-columns: repeat(3, 1fr);
  }
}

.also > div {
  padding: 1.2rem 0 1.3rem;
  border-top: 1px solid var(--line);
}

.also dt {
  margin-bottom: 0.3rem;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 700;
}

.also dd {
  margin: 0;
  color: var(--muted);
}

/* Questions */

.faq-list {
  max-width: 46rem;
}

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

.faq-list details:first-of-type {
  border-top: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  display: block;
  padding: 1.25rem 2.5rem 1.25rem 0;
  cursor: pointer;
  list-style: none;
  font-weight: 650;
  font-size: 1.1rem;
}

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

.faq-list summary::after {
  content: "";
  position: absolute;
  right: 0.3rem;
  top: 50%;
  width: 0.65rem;
  height: 0.65rem;
  border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.25s ease;
}

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

.faq-list summary:hover {
  color: var(--accent);
}

.faq-list details p {
  margin: -0.3rem 0 1.4rem;
  color: var(--muted);
}

/* Getting the app */

.closing {
  margin-top: clamp(4rem, 9vw, 7rem);
  padding: clamp(3.5rem, 8vw, 6rem) 0;
  border-top: 1px solid var(--line);
}

.closing-grid {
  display: grid;
  gap: 2rem 4rem;
  align-items: center;
}

@media (min-width: 56rem) {
  .closing-grid {
    grid-template-columns: 1fr auto;
  }
}

.closing h2 {
  margin-bottom: 0.8rem;
}

.closing-grid p {
  max-width: 32rem;
  margin: 0;
  font-size: 1.15rem;
  color: var(--muted);
}

.stores {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 56rem) {
  .stores {
    flex-direction: column;
  }
}

.store {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 13rem;
  padding: 0.6rem 1.1rem 0.6rem 0.95rem;
  border-radius: 0.9rem;
  background: var(--button);
  color: var(--on-button);
  text-align: left;
  text-decoration: none;
  line-height: 1.15;
}

a.store:hover {
  background: var(--button-hover);
  text-decoration: none;
}

.store .icon {
  width: 1.7rem;
  height: 1.7rem;
}

.store small {
  display: block;
  font-size: 0.72rem;
  opacity: 0.75;
  letter-spacing: 0.02em;
}

.store strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 650;
}

/* ---------------------------------------------------------------- footer */

.site-footer {
  padding: 2.8rem 0 2.6rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer a {
  color: var(--ink);
  text-decoration-color: var(--line);
}

.site-footer a:hover {
  color: var(--accent);
  text-decoration-color: currentColor;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.4rem 1rem;
  margin: 0 0 1.8rem;
}

.footer-brand img {
  height: 1.45rem;
  width: auto;
}

.footer-rows {
  display: grid;
  gap: 0.8rem;
  margin: 0 0 1.8rem;
}

.footer-rows > div {
  display: grid;
  gap: 0.1rem 1.5rem;
}

@media (min-width: 48rem) {
  .footer-rows > div {
    grid-template-columns: 7rem 1fr;
  }
}

.footer-rows dt {
  font-weight: 650;
  color: var(--ink);
}

.footer-rows dd {
  margin: 0;
  max-width: 52rem;
}

.footer-note {
  margin: 0;
  font-size: 0.88rem;
}

/* ---------------------------------------------------------------- long pages */

.page-hero {
  padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem);
  background: linear-gradient(to bottom, transparent 30%, var(--bg)), var(--top);
}

.page-hero h1 {
  font-size: clamp(2.4rem, 1.5rem + 3.6vw, 4rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 48rem;
  margin-bottom: 1rem;
}

.page-hero p {
  max-width: 40rem;
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0;
}

.page-hero .meta {
  margin-top: 1.2rem;
  font-size: 0.92rem;
}

.prose {
  max-width: 44rem;
  padding-top: clamp(3rem, 7vw, 5rem);
  padding-bottom: clamp(3rem, 7vw, 5rem);
}

.prose h2 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  margin: 3rem 0 1rem;
}

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

.prose h3 {
  margin: 2rem 0 0.6rem;
}

/* Short pages without a title band: a modest title and plenty of space. */
.plain .prose {
  max-width: 38rem;
  padding-top: clamp(3.5rem, 9vw, 6.5rem);
  padding-bottom: clamp(4rem, 10vw, 7rem);
}

.plain h1 {
  margin-bottom: 1.2rem;
  font-size: clamp(1.9rem, 1.5rem + 1.4vw, 2.4rem);
  line-height: 1.1;
}

.plain .prose h2 {
  margin: 2.8rem 0 0.9rem;
  font-size: 1.4rem;
}

.plain .note {
  margin-top: 2rem;
}

.prose p,
.prose li {
  font-size: 1.08rem;
}

.prose code {
  padding: 0.1em 0.35em;
  border-radius: 0.3em;
  background: var(--line);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.9em;
  overflow-wrap: anywhere;
}

.prose ul {
  padding-left: 1.2rem;
  margin: 0 0 1rem;
}

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

.prose .note {
  color: var(--muted);
  font-size: 0.95rem;
}

.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.97rem;
  line-height: 1.5;
}

th,
td {
  padding: 0.85rem 1.1rem;
  text-align: left;
  vertical-align: top;
}

thead th {
  font-weight: 700;
  border-bottom: 1px solid var(--line);
}

tbody tr + tr > * {
  border-top: 1px solid var(--line);
}

tbody th {
  font-weight: 650;
}

.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.subject-list {
  margin: 1.5rem 0 0;
  padding: 0 1.3rem;
  border-radius: 1rem;
  background: var(--surface);
  box-shadow: 0 0 0 1px var(--line), var(--shadow);
}

.subject-list summary {
  padding: 1rem 0;
  cursor: pointer;
  font-weight: 650;
}

.subject-list[open] summary {
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.subjects {
  margin: 0;
  padding-bottom: 1.3rem;
  font-size: 0.97rem;
  line-height: 1.5;
}

.subjects dt {
  margin-top: 1rem;
  font-weight: 650;
}

.subjects dt:first-child {
  margin-top: 0;
}

.subjects dt span {
  font-weight: 400;
  color: var(--muted);
}

.subjects dd {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

.callout {
  margin: 3.5rem 0 0;
  padding-top: 2.4rem;
  border-top: 1px solid var(--line);
}

.prose .callout h2 {
  margin: 0 0 0.6rem;
}

.callout p {
  color: var(--muted);
}

/* Short pages: unsubscribe, problems, not found */

.message {
  min-height: calc(100vh - 4rem);
  display: grid;
  place-items: center;
  padding: 4rem var(--gutter);
  text-align: center;
}

.message .panel {
  width: 100%;
  max-width: 40rem;
}

.message h1 {
  font-size: clamp(2.2rem, 1.5rem + 3vw, 3.4rem);
  line-height: 1.05;
  margin-bottom: 1rem;
}

.message p {
  max-width: 32rem;
  margin: 0 auto 1.5rem;
  font-size: 1.12rem;
  color: var(--muted);
}

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

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.hero-copy > * {
  animation: rise 0.8s cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.hero-copy > :nth-child(2) {
  animation-delay: 0.08s;
}

.hero-copy > :nth-child(3) {
  animation-delay: 0.16s;
}

.hero-copy > :nth-child(4) {
  animation-delay: 0.24s;
}

/* Sections rise into place as they scroll in, where the browser can tie that to scrolling. */
@supports (animation-timeline: view()) {
  .reveal {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 35%;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  .screen img:not(:first-child) {
    display: none;
  }
}

@media print {
  .site-header,
  .stage,
  .address-form,
  .closing,
  .site-footer {
    display: none;
  }

  .hero {
    background: none;
    color: #000;
  }
}
