@font-face {
  font-family: "Sora";
  src: url("fonts/Sora-VariableFont_wght.ttf") format("truetype");
  font-weight: 100 800;
  font-display: swap;
}
@font-face {
  font-family: "Pogonia";
  src: url("fonts/Pogonia-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "Pogonia";
  src: url("fonts/Pogonia-ExtraBold.woff") format("woff");
  font-weight: 800;
  font-display: swap;
}

:root {
  --purple: #5926eb;
  --ink: #383541;
  --ink-soft: #5d5a66;
  --ink-mute: #6c6976;
  --cream: #f0f0e6;
  --soft: #fafaf5;
  --white: #ffffff;
  --yellow: #ebd926;
  --sticker-yellow: #f8d93c;
  --mint: #26eaa6;
  --sticker-mint: #8af7c8;
  --magenta: #c226eb;
  --lavender: #ece6fb;
  --lavender-line: #dcd2f7;
  --lavender-ink: #3a2596;
  --hair: rgba(56, 53, 65, 0.14);
  --k: calc(min(100vw, 1536px) / 1536);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Sora", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection {
  background: var(--purple);
  color: var(--cream);
}

a {
  color: var(--purple);
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--ink);
  color: var(--cream);
  padding: 0.6rem 1rem;
  border-radius: 8px;
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

/* ---------- Hero: the measured first viewport ---------- */

.hero {
  position: relative;
  width: min(100vw, 1536px);
  height: calc(1024 * var(--k));
  margin: 0 auto;
}

.nav {
  position: absolute;
  inset: 0 0 auto 0;
  height: calc(240 * var(--k));
}

.brand {
  position: absolute;
  left: calc(100 * var(--k));
  top: calc(101 * var(--k));
  display: flex;
  align-items: baseline;
  gap: calc(21 * var(--k));
  text-decoration: none;
  color: var(--ink);
}
.brand img {
  display: block;
  width: calc(144 * var(--k));
  height: auto;
}
.brand .divider {
  align-self: center;
  width: 1.5px;
  height: calc(26 * var(--k));
  background: #b9b7b1;
}
.brand .word {
  font-weight: 800;
  font-size: calc(36 * var(--k));
  letter-spacing: -0.02em;
  line-height: 1;
}

.nav ul {
  position: absolute;
  left: calc(787 * var(--k));
  top: calc(106 * var(--k));
  display: flex;
  gap: calc(41 * var(--k));
  margin: 0;
  padding: 0;
  list-style: none;
}
.nav ul a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: calc(18 * var(--k));
  line-height: 1.5;
}
.nav ul a:hover {
  color: var(--purple);
}

.lang {
  position: absolute;
  left: calc(1384 * var(--k));
  top: calc(99 * var(--k));
  width: calc(51 * var(--k));
  height: calc(43 * var(--k));
  display: grid;
  place-items: center;
  border: 1.5px solid #bdbbb6;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 600;
  font-size: calc(16 * var(--k));
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.lang:hover {
  border-color: var(--ink);
}

.sticker {
  position: absolute;
  display: inline-block;
  font-family: "Pogonia", "Sora", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.1;
  color: var(--ink);
  border-radius: 4px;
  box-shadow: 0 4px 14px rgba(56, 53, 65, 0.16);
  white-space: nowrap;
}

.hero-copy {
  position: absolute;
  left: calc(100 * var(--k));
  top: calc(205 * var(--k));
  width: calc(700 * var(--k));
  height: calc(712 * var(--k));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.headline {
  margin: 0;
  font-weight: 800;
  font-size: calc(72 * var(--k));
  line-height: 1.07;
  letter-spacing: -0.035em;
}

.hero-lead {
  max-width: calc(600 * var(--k));
  margin: calc(32 * var(--k)) 0 0;
  font-size: calc(21 * var(--k));
  font-weight: 300;
  line-height: 1.5;
  color: var(--ink-soft);
}

.cta {
  margin-top: calc(44 * var(--k));
  padding: 0 calc(40 * var(--k));
  height: calc(74 * var(--k));
  display: inline-grid;
  place-items: center;
  background: var(--purple);
  color: var(--white);
  border-radius: 8px;
  font-weight: 700;
  font-size: calc(24 * var(--k));
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: opacity 0.2s, transform 0.15s;
}
.cta:hover {
  opacity: 0.88;
}
.cta:active {
  transform: scale(0.985);
}
.cta:focus-visible {
  outline-color: var(--ink);
}
.hero-note {
  margin: calc(18 * var(--k)) 0 0;
  font-size: calc(16 * var(--k));
  color: var(--ink-mute);
}

/* ---------- The chat ---------- */

.chat {
  position: absolute;
  margin: 0;
  left: calc(855 * var(--k));
  top: calc(205 * var(--k));
  width: calc(579 * var(--k));
  min-height: calc(712 * var(--k));
  padding-bottom: calc(22 * var(--k));
  background: #f8f8f6;
  border: 1px solid #e2e1dc;
  border-radius: calc(12 * var(--k));
  box-shadow: 0 10px 30px rgba(56, 53, 65, 0.08);
  font-size: calc(16 * var(--k));
  line-height: 1.35;
}
.chat .tag {
  position: absolute;
  left: calc(10 * var(--k));
  top: calc(9 * var(--k));
  padding: calc(4 * var(--k)) calc(11 * var(--k));
  border-radius: 6px;
  background: #726f7b;
  color: var(--white);
  font-size: max(11.5px, calc(13 * var(--k)));
  font-weight: 700;
  line-height: 1.45;
}
.sticker--timer {
  right: calc(-2 * var(--k));
  top: calc(-7 * var(--k));
  padding: calc(9 * var(--k)) calc(13 * var(--k)) calc(10 * var(--k));
  font-size: calc(19 * var(--k));
  background: var(--sticker-mint);
  transform: rotate(-14deg);
}

.chat ol {
  list-style: none;
  margin: 0;
  padding: calc(56 * var(--k)) 0 0 0;
}
.exchange {
  display: grid;
  grid-template-columns: calc(95 * var(--k)) minmax(0, 1fr);
  padding-right: calc(22 * var(--k));
  margin-bottom: calc(24 * var(--k));
}
.exchange:last-child {
  margin-bottom: 0;
}
.exchange time {
  padding-left: calc(22 * var(--k));
  padding-top: calc(6 * var(--k));
  color: var(--ink-mute);
  font-size: calc(16 * var(--k));
  font-variant-numeric: tabular-nums;
}
.turn {
  display: grid;
  justify-items: start;
  gap: calc(4 * var(--k));
}
.turn + .turn {
  margin-top: calc(12 * var(--k));
}
.who {
  font-size: max(11.5px, calc(13 * var(--k)));
  font-weight: 700;
  color: #55525e;
  line-height: 1.3;
}
.bubble,
.reply {
  letter-spacing: -0.02em;
}
.bubble {
  padding: calc(7 * var(--k)) calc(13 * var(--k)) calc(8 * var(--k));
  border-radius: calc(7 * var(--k));
  background: #ebebee;
  color: var(--ink);
}
.reply {
  display: flex;
  align-items: center;
  gap: calc(12 * var(--k));
  padding: calc(8 * var(--k)) calc(18 * var(--k)) calc(9 * var(--k)) calc(12 * var(--k));
  border-radius: calc(7 * var(--k));
  background: var(--lavender);
  color: var(--lavender-ink);
}
.spark {
  flex: none;
  width: calc(20 * var(--k));
  height: calc(20 * var(--k));
  color: var(--purple);
}

.preview {
  display: flex;
  align-items: center;
  gap: calc(14 * var(--k));
  width: calc(460 * var(--k));
  padding: calc(12 * var(--k)) calc(14 * var(--k)) calc(12 * var(--k)) calc(18 * var(--k));
  border: 1px solid var(--lavender-line);
  border-radius: calc(10 * var(--k));
  background: #f4f0fe;
}
.preview .icon {
  flex: none;
  display: grid;
  place-items: center;
  width: calc(42 * var(--k));
  height: calc(42 * var(--k));
  border-radius: calc(8 * var(--k));
  background: var(--purple);
  color: var(--white);
}
.preview .icon svg {
  width: calc(24 * var(--k));
  height: calc(24 * var(--k));
}
.preview strong {
  font-weight: 600;
  color: var(--ink);
}
.preview .count {
  color: var(--ink-soft);
}
.preview .label {
  white-space: nowrap;
}
.preview .go {
  margin-left: auto;
  padding: calc(13 * var(--k)) calc(18 * var(--k));
  border-radius: calc(8 * var(--k));
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: calc(16 * var(--k));
  line-height: 1.2;
}

/* Message groups: a different message per group, each with its own approval */
.groups {
  display: grid;
  gap: calc(8 * var(--k));
  width: calc(460 * var(--k));
  margin-top: calc(8 * var(--k));
  padding: calc(10 * var(--k)) calc(12 * var(--k)) calc(12 * var(--k)) calc(14 * var(--k));
  border: 1px solid var(--lavender-line);
  border-radius: calc(10 * var(--k));
  background: #f4f0fe;
  color: var(--ink);
  font-size: calc(14.5 * var(--k));
  line-height: 1.35;
}
.group {
  display: flex;
  align-items: center;
  gap: calc(10 * var(--k));
}
.group > span:not(.go) {
  flex: 1;
  min-width: 0;
}
.group b {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: calc(24 * var(--k));
  height: calc(24 * var(--k));
  border-radius: calc(6 * var(--k));
  background: var(--purple);
  color: var(--white);
  font-size: calc(13 * var(--k));
}
.skip-note {
  color: var(--ink-soft);
  font-size: max(11.5px, calc(13.5 * var(--k)));
}
.groups .go {
  flex: none;
  padding: calc(8 * var(--k)) calc(14 * var(--k));
  border-radius: calc(7 * var(--k));
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  font-size: calc(14.5 * var(--k));
  line-height: 1.2;
}
.approved {
  display: inline-flex;
  align-items: center;
  gap: calc(8 * var(--k));
  padding: calc(6 * var(--k)) calc(12 * var(--k)) calc(7 * var(--k)) calc(9 * var(--k));
  border-radius: calc(7 * var(--k));
  background: #ebebee;
  color: var(--ink);
  font-weight: 600;
}
.approved svg {
  width: calc(18 * var(--k));
  height: calc(18 * var(--k));
  padding: calc(2 * var(--k));
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
}
.turn .reply + .preview {
  margin-top: calc(8 * var(--k));
}
.reply {
  max-width: calc(460 * var(--k));
}

/* ---------- Sections below the fold ---------- */

.wrap {
  width: min(100% - 3rem, 75rem);
  margin-inline: auto;
}
@media (min-width: 48rem) {
  .wrap {
    width: min(100% - 6rem, 75rem);
  }
}
@media (min-width: 75.0625rem) {
  .wrap {
    width: calc(min(100vw, 1536px) - 200 * var(--k));
  }
}

.section {
  padding-block: clamp(4rem, 8vw, 7rem);
}
.section h2 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 3.2vw, 2.9rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.section .lead {
  margin: 0;
  max-width: 46ch;
  font-size: 1.125rem;
  font-weight: 300;
  color: var(--ink-soft);
}
.section-head {
  display: grid;
  gap: 1.5rem 4rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
@media (min-width: 56rem) {
  .section-head {
    grid-template-columns: 1fr 1fr;
    align-items: end;
  }
}

/* Steps: an ordered sequence joined by one line */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.5rem;
  counter-reset: step;
}
@media (min-width: 56rem) {
  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
  }
  .steps::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 2.1rem;
    height: 2px;
    background: repeating-linear-gradient(90deg, var(--ink) 0 6px, transparent 6px 12px);
    opacity: 0.35;
  }
}
.steps > li {
  position: relative;
  min-width: 0;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--purple);
  color: var(--cream);
  font-weight: 800;
  font-size: 1.9rem;
  position: relative;
}
.steps h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.steps p {
  margin: 0;
  max-width: 34ch;
  color: var(--ink-soft);
}
.copy {
  display: flex;
  align-items: stretch;
  margin-top: 1rem;
  max-width: 100%;
  border: 1.5px solid var(--ink);
  border-radius: 8px;
  background: var(--white);
  overflow: hidden;
}
.copy code {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.8rem;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.82rem;
  white-space: normal;
  overflow-wrap: normal;
  line-height: 1.45;
}
.copy button {
  flex: none;
  border: 0;
  border-left: 1.5px solid var(--ink);
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0 1rem;
  cursor: pointer;
  transition: background 0.2s;
}
.copy button:hover {
  background: var(--purple);
}
.copy button:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: -3px;
  border-radius: 0;
}
.note {
  margin: 2.5rem 0 0;
  max-width: 70ch;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
.step-btn {
  display: inline-grid;
  place-items: center;
  margin: 1.1rem 0 0.9rem;
  padding: 0 1.4rem;
  height: 3.1rem;
  border-radius: 8px;
  background: var(--purple);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
  transition: opacity 0.2s;
}
.step-btn:hover {
  opacity: 0.88;
}
.step-btn:focus-visible {
  outline-color: var(--ink);
}
.steps .path {
  margin-top: 0.9rem;
}
.steps .path b {
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
}
.steps .small {
  margin-top: 0.75rem;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.asks {
  list-style: none;
  margin: 0.9rem 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
  max-width: 34ch;
}
.asks li {
  padding: 0.6rem 0.85rem;
  border-radius: 10px 10px 10px 2px;
  background: var(--white);
  border: 1px solid #e2e1dc;
  font-size: 0.95rem;
  line-height: 1.45;
}
.help {
  margin: clamp(2.5rem, 5vw, 3.5rem) 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--hair);
  font-weight: 600;
}

/* Brand punctuation below the fold */
.ul {
  text-decoration: underline;
  text-decoration-color: var(--purple);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.14em;
}
.sticker--inline {
  position: relative;
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.3rem 0.6rem 0.35rem;
  font-size: 1rem;
  letter-spacing: 0;
  background: var(--sticker-yellow);
  transform: rotate(-6deg) translateY(-0.3em);
  vertical-align: middle;
}
.trust .section-head {
  grid-template-columns: 1fr;
}
.trust h2 {
  font-size: clamp(2.4rem, 5.4vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.04em;
  max-width: 14ch;
}

.admin h3.spaced {
  margin-top: 2.5rem;
}

/* Trust: statements that open on an accent rule */
.trust {
  background: var(--white);
}
.rules {
  display: grid;
  gap: 2.5rem 3rem;
  margin: 0;
}
@media (min-width: 56rem) {
  .rules {
    grid-template-columns: repeat(3, 1fr);
  }
}
.rules > div {
  padding-top: 1.25rem;
  border-top: 4px solid var(--purple);
}
.rules > div.outcome {
  border-top-color: var(--mint);
}
.rules > div.limit {
  border-top-color: var(--magenta);
}
.rules dt {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 0.6rem;
}
.rules dd {
  margin: 0;
  max-width: 48ch;
  color: var(--ink-soft);
}
.trust-more {
  margin: 2.5rem 0 0;
  max-width: 70ch;
  font-size: 0.95rem;
  color: var(--ink-mute);
}

/* What it does: the week, three verbs */
.verbs {
  display: grid;
  gap: 3rem;
}
@media (min-width: 56rem) {
  .verbs {
    grid-template-columns: repeat(3, 1fr);
  }
}
.verbs h3 {
  margin: 0 0 1rem;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
}
.verbs h3 .sticker {
  position: relative;
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0.25rem 0.55rem 0.3rem;
  font-size: 0.95rem;
  background: var(--sticker-mint);
  transform: rotate(-5deg) translateY(-0.2rem);
  vertical-align: middle;
}
.verbs ul {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.verbs li {
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--hair);
}
.verbs li span {
  display: block;
  font-size: 0.9rem;
  color: var(--ink-mute);
}
.verbs p {
  margin: 0;
  max-width: 36ch;
  color: var(--ink-soft);
}
.verbs .ask {
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.9rem;
  border-radius: 10px 10px 10px 2px;
  background: var(--white);
  border: 1px solid #e2e1dc;
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.45;
}

/* Against Moodle's own AI: paired rows */
.compare {
  background: var(--soft);
}
.compare-rows {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--hair);
}
.compare-rows li {
  display: grid;
  gap: 0.7rem;
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--hair);
}
@media (min-width: 56rem) {
  .compare-rows li {
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: baseline;
  }
}
.compare-rows b {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.compare-rows .from {
  color: var(--ink-soft);
}
.compare-rows .to b {
  color: var(--purple);
}
.compare-note {
  margin: 1.75rem 0 0;
  max-width: 62ch;
  font-size: 0.95rem;
  color: var(--ink-mute);
}

/* Closing band */
.band-grid {
  display: grid;
  gap: 1.25rem;
}
@media (min-width: 56rem) {
  .band-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}
.band-grid > div {
  padding: clamp(1.5rem, 3vw, 2.25rem);
  border-radius: 12px;
  background: var(--white);
  border: 1px solid #e2e1dc;
}
.band-grid h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.5rem, 2.2vw, 1.9rem);
  line-height: 1.2;
}
.band-grid p {
  margin: 0;
  max-width: 46ch;
  color: var(--ink-soft);
}
.band-grid .go {
  display: inline-block;
  margin-top: 1.1rem;
  font-weight: 700;
}

/* Admins: the dark band */
.admin {
  background: var(--ink);
  color: var(--cream);
}
.admin .lead {
  color: #cfcdd6;
}
.admin a {
  color: var(--sticker-mint);
}
.admin a:focus-visible {
  outline-color: var(--yellow);
}
.admin-grid {
  display: grid;
  gap: 3rem 4rem;
}
@media (min-width: 56rem) {
  .admin-grid {
    grid-template-columns: 1.1fr 1fr;
  }
}
.admin h3 {
  margin: 0 0 1rem;
  padding-top: 1.25rem;
  border-top: 4px solid var(--mint);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.admin ol,
.admin ul {
  margin: 0;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.75rem;
}
.admin li::marker {
  color: var(--sticker-mint);
  font-weight: 700;
}
.admin code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: rgba(240, 240, 230, 0.1);
}
.status {
  margin: 0;
  padding-top: 1.25rem;
  border-top: 4px solid var(--mint);
  font-size: 0.95rem;
  color: #cfcdd6;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  margin-top: 2rem;
  font-weight: 600;
}

/* GitHub link */
.gh {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
}
.octo {
  width: 1.05em;
  height: 1.05em;
  flex: none;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.gh:hover .octo {
  transform: translateY(-1px) scale(1.08);
}
.links .gh {
  text-decoration: underline;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 2px;
}

/* Footer */
.foot {
  padding-block: 2.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.foot img {
  display: block;
  width: 7rem;
  height: auto;
}
.foot p {
  margin: 0;
}
.foot a {
  color: inherit;
}

/* ---------- The admin page ---------- */

.page-head {
  position: relative;
  width: min(100vw, 1536px);
  margin: 0 auto;
}
.page-head .nav {
  position: relative;
  height: calc(240 * var(--k));
}
.page-head .intro {
  width: calc(min(100vw, 1536px) - 200 * var(--k));
  margin-inline: auto;
}
.page-head h1 {
  margin: 0;
  max-width: 18ch;
  font-weight: 800;
  font-size: clamp(2.2rem, 4.6vw, 4.2rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
.page-head .intro p {
  margin: 1.5rem 0 0;
  max-width: 52ch;
  font-size: 1.15rem;
  font-weight: 300;
  color: var(--ink-soft);
}
.doc {
  display: grid;
  gap: 3rem 4rem;
}
@media (min-width: 56rem) {
  .doc {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
.doc h3 {
  margin: 0 0 1rem;
  padding-top: 1.25rem;
  border-top: 4px solid var(--purple);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.doc h3.spaced {
  margin-top: 2.5rem;
}
.doc p,
.doc li {
  color: var(--ink-soft);
}
.doc p {
  margin: 0 0 0.9rem;
  max-width: 60ch;
}
.doc ol,
.doc ul {
  margin: 0 0 0.9rem;
  padding-left: 1.2rem;
  display: grid;
  gap: 0.6rem;
}
.doc code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--white);
  color: var(--ink);
  overflow-wrap: anywhere;
}
@media (max-width: 75rem) {
  .page-head {
    width: auto;
    padding: 1.25rem 1.5rem 0;
  }
  .page-head .nav {
    height: auto;
  }
  .page-head .intro {
    width: auto;
  }
}
@media (min-width: 48rem) and (max-width: 75rem) {
  .page-head {
    padding-inline: 3rem;
  }
}

/* ---------- Motion: the week arrives, one exchange at a time ---------- */

@media (prefers-reduced-motion: no-preference) {
  .js .exchange + .exchange {
    animation: arrive 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .js .exchange:nth-child(2) { animation-delay: 0.6s; }
  .js .exchange:nth-child(3) { animation-delay: 1.3s; }

  .js .exchange + .exchange .turn + .turn {
    animation: arrive 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
  }
  .js .exchange:nth-child(2) .turn + .turn { animation-delay: 0.95s; }
  .js .exchange:nth-child(3) .turn + .turn { animation-delay: 1.65s; }

  .js .sticker--timer {
    animation: stamp 0.5s cubic-bezier(0.16, 1, 0.3, 1) 1.2s both;
  }
  .js .groups .go {
    animation: nudge 1.2s cubic-bezier(0.16, 1, 0.3, 1) 1.2s 1 both;
  }
}
@keyframes arrive {
  from { opacity: 0; transform: translateY(10px); filter: blur(3px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes stamp {
  from { opacity: 0; transform: rotate(-14deg) scale(1.4); }
  to { opacity: 1; transform: rotate(-14deg) scale(1); }
}
@keyframes nudge {
  0%, 100% { box-shadow: 0 0 0 0 rgba(89, 38, 235, 0); }
  40% { box-shadow: 0 0 0 7px rgba(89, 38, 235, 0.18); }
}

/* ---------- Narrow screens: the hero reflows ---------- */

@media (max-width: 75rem) {
  .hero {
    --gut: 1.5rem;
    width: auto;
    height: auto;
    padding: 1.25rem var(--gut) 3.5rem;
    display: flex;
    flex-direction: column;
  }
  .hero > * {
    position: static;
  }
  .nav {
    position: static;
    height: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 3rem;
  }
  .brand {
    position: static;
    gap: 0.7rem;
  }
  .brand img {
    width: 6.4rem;
    height: auto;
  }
  .brand .divider {
    height: 1.2rem;
  }
  .brand .word {
    font-size: 1.5rem;
  }
  .nav {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }
  .nav ul {
    position: static;
    order: 3;
    width: 100%;
    gap: 1.25rem;
  }
  .nav ul li:last-child {
    display: none;
  }
  .nav ul a {
    font-size: 0.95rem;
  }
  .lang {
    position: static;
    width: 2.75rem;
    height: 2.5rem;
    font-size: 0.95rem;
  }
  .hero-copy {
    width: auto;
    height: auto;
  }
  .headline {
    margin-top: 1rem;
    font-size: clamp(2rem, 8.4vw, 3.8rem);
  }
  .hero-lead {
    max-width: 38rem;
    margin-top: 1.25rem;
    font-size: 1.05rem;
  }
  .cta {
    width: 100%;
    max-width: 26rem;
    padding: 0 1.25rem;
    height: 3.5rem;
    margin-top: 2rem;
    font-size: 1.1rem;
  }
  .chat {
    --k: 0.92px;
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    max-width: 46rem;
    height: auto;
    margin-top: 3rem;
    padding-bottom: 1.25rem;
  }
  .chat ol {
    padding-top: 3.2rem;
  }
  .exchange {
    grid-template-columns: 3.7rem 1fr;
    padding-right: 1rem;
  }
  .exchange time {
    padding-left: 0.9rem;
    font-size: 0.8rem;
  }
  .preview {
    width: 100%;
    gap: 0.6rem;
    padding: 0.55rem 0.55rem 0.55rem 0.8rem;
  }
  .preview .icon {
    display: none;
  }
  .groups,
  .reply,
  .preview {
    width: 100%;
    max-width: 100%;
  }
  .preview .label {
    white-space: normal;
  }

  .preview .count {
    white-space: nowrap;
  }
  .preview .go {
    padding: 0.6rem 0.85rem;
  }
  .hero-note {
    margin-top: 0.8rem;
    font-size: 0.9rem;
  }
  .sticker--timer {
    right: 1.4rem;
    top: -0.9rem;
    font-size: 0.95rem;
    padding: 0.35rem 0.6rem 0.4rem;
  }
  body {
    overflow-x: clip;
  }
}

@media (min-width: 48rem) and (max-width: 75rem) {
  .hero {
    --gut: 3rem;
  }
}
