/* rapploop.com: paper and ink by day, matte black at night, the app's own colours (packages/design-tokens) */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/fonts/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 700 800;
  font-display: swap;
  src: url('/fonts/nunito-latin.woff2') format('woff2');
}

:root {
  color-scheme: light;
  --bg: #f7f5f0;
  --surface: #ffffff;
  --surface-muted: #f0ede6;
  --text: #1f1b2e;
  --muted: #5c586c;
  --border: #e6e1d6;
  --border-strong: #8a8499;
  --accent: #2350d0;
  --on-accent: #ffffff;
  --accent-wash: #e3ebff;
  --place: #0e6872;
  --place-wash: #d3f0ee;
  --reminder: #7a5200;
  --reminder-wash: #ffd88a;
  --marigold: #ffd88a;
  --on-marigold: #1f1b2e;
  --focus: #2f6feb;
  --raised: 0 1px 0 rgba(31, 27, 46, 0.05), 0 6px 18px -10px rgba(31, 27, 46, 0.22);
  --floating: 0 2px 0 rgba(31, 27, 46, 0.05), 0 18px 40px -16px rgba(31, 27, 46, 0.32);
  --shade: #1f1b2e;
  --shade-max: 0.07;
  --tint-1: #ffe2d1;
  --tint-1-ink: #1f1b2e;
  --tint-3: #dceaff;
  --tint-3-ink: #1f1b2e;
  --tint-6: #ffdce5;
  --tint-6-ink: #1f1b2e;

  --display: 'Nunito', ui-rounded, system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --bar: 68px;
  --enter: cubic-bezier(0.2, 0.8, 0.2, 1);
  --settle: cubic-bezier(0.2, 0.9, 0.3, 1.2);
}

/* Matte black: the same rules as the app's dark theme */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #000000;
  --surface: #121212;
  --surface-muted: #1e1e1e;
  --text: #ffffff;
  --muted: #a3a3a3;
  --border: #2a2a2a;
  --border-strong: #7a7a7a;
  --accent: #ffffff;
  --on-accent: #000000;
  --accent-wash: #262626;
  --place: #7fd0cc;
  --place-wash: #0e2e2c;
  --reminder: #f0c86a;
  --reminder-wash: #33280a;
  --marigold: #f0c86a;
  --on-marigold: #000000;
  --focus: #ffffff;
  --raised: 0 1px 0 rgba(0, 0, 0, 0.4), 0 6px 18px -10px rgba(0, 0, 0, 0.8);
  --floating: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px -16px rgba(0, 0, 0, 0.9);
  --shade: #000000;
  --shade-max: 0.45;
  --tint-1: #2e1e15;
  --tint-1-ink: #ffbe99;
  --tint-3: #152236;
  --tint-3-ink: #a9c9ff;
  --tint-6: #301a22;
  --tint-6-ink: #ffb0c6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #000000;
    --surface: #121212;
    --surface-muted: #1e1e1e;
    --text: #ffffff;
    --muted: #a3a3a3;
    --border: #2a2a2a;
    --border-strong: #7a7a7a;
    --accent: #ffffff;
    --on-accent: #000000;
    --accent-wash: #262626;
    --place: #7fd0cc;
    --place-wash: #0e2e2c;
    --reminder: #f0c86a;
    --reminder-wash: #33280a;
    --marigold: #f0c86a;
    --on-marigold: #000000;
    --focus: #ffffff;
    --raised: 0 1px 0 rgba(0, 0, 0, 0.4), 0 6px 18px -10px rgba(0, 0, 0, 0.8);
    --floating: 0 0 0 1px rgba(255, 255, 255, 0.12), 0 18px 40px -16px rgba(0, 0, 0, 0.9);
    --shade: #000000;
    --shade-max: 0.45;
    --tint-1: #2e1e15;
    --tint-1-ink: #ffbe99;
    --tint-3: #152236;
    --tint-3-ink: #a9c9ff;
    --tint-6: #301a22;
    --tint-6-ink: #ffb0c6;
  }
}

/* Base */

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip {
  position: absolute;
  inset-inline-start: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--surface);
  border-radius: 10px;
  box-shadow: var(--floating);
}
.skip:focus {
  top: 12px;
}

.display {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(3.1rem, 1.1rem + 8.6vw, 8.25rem);
  line-height: 0.9;
  letter-spacing: -0.045em;
}
.display-2 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.35rem, 1.2rem + 4.8vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}
.lede {
  font-size: clamp(1.125rem, 1rem + 0.55vw, 1.375rem);
  line-height: 1.45;
  color: var(--muted);
  max-width: 32ch;
  text-wrap: pretty;
}
.note {
  font-size: 0.875rem;
  color: var(--muted);
}
.section-lede {
  font-size: clamp(1.0625rem, 0.95rem + 0.45vw, 1.3125rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 36ch;
  margin-top: 20px;
  text-wrap: pretty;
}

/* The bar */

.bar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--bar);
  padding-inline: var(--gutter);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: blur(14px) saturate(1.2);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid transparent;
  transition: border-color 240ms ease;
}
.is-scrolled .bar {
  border-bottom-color: var(--border);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 8px;
}
.mark {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 4.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.wordmark {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.3125rem;
  letter-spacing: -0.03em;
}
.bar-end {
  display: flex;
  align-items: center;
  gap: 10px;
}
.beta {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  padding: 5px 11px;
  border: 1px solid var(--border);
  border-radius: 999px;
}
.theme {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: background 160ms ease;
}
.theme:hover {
  background: var(--surface-muted);
}
.theme svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-sun,
:root[data-theme='dark'] .theme-moon {
  display: none;
}
:root[data-theme='dark'] .theme-sun {
  display: block;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .theme-moon {
    display: none;
  }
  :root:not([data-theme='light']) .theme-sun {
    display: block;
  }
}

main > section {
  padding-inline: var(--gutter);
}

/* Hero */

.hero {
  position: relative;
  display: grid;
  gap: clamp(48px, 8vw, 72px);
  align-items: center;
  min-height: calc(100svh - var(--bar));
  max-width: 1320px;
  margin-inline: auto;
  padding-block: clamp(36px, 7vh, 88px) clamp(72px, 12vh, 120px);
}
@media (min-width: 960px) {
  .hero {
    grid-template-columns: 1.3fr 1fr;
  }
}
.hero .lede {
  margin-top: clamp(24px, 3.5vw, 36px);
}
.hero .note {
  margin-top: 18px;
}
.circled {
  position: relative;
  display: inline-block;
  white-space: nowrap;
}
.ink-loop {
  position: absolute;
  inset: -20% -9% -24% -7%;
  width: 116%;
  height: 144%;
  overflow: visible;
  fill: none;
  stroke: var(--accent);
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}
.ink-loop path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 1100ms 450ms var(--enter) forwards;
}
@keyframes draw {
  to {
    stroke-dashoffset: 0;
  }
}

/* The hand of people: three cards dealt onto the paper */
.deck {
  --s: 0;
  position: relative;
  height: 420px;
  max-width: 460px;
  width: 100%;
  margin-inline: auto;
}
.person-card {
  --x: 0px;
  --y: 0px;
  --r: 0deg;
  --spread: 1;
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(296px, 76vw);
  padding: 18px 18px 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--floating);
  transform: translate(-50%, -50%)
    translate(calc(var(--x) * (1 + var(--s) * 0.35)), calc(var(--y) * (1 + var(--s) * 0.5)))
    rotate(calc(var(--r) * (1 + var(--s) * 0.6)));
  animation: deal 900ms var(--settle) backwards;
}
.person-card[data-deal='0'] {
  --x: 0px;
  --y: -120px;
  --r: -2deg;
  animation-delay: 250ms;
}
.person-card[data-deal='1'] {
  --x: 6px;
  --y: -54px;
  --r: 1.5deg;
  animation-delay: 420ms;
}
.person-card[data-deal='2'] {
  --x: -4px;
  --y: 68px;
  --r: -1deg;
  animation-delay: 590ms;
}
@keyframes deal {
  from {
    opacity: 0;
    transform: translate(-50%, -50%) translate(0, 40%) rotate(0deg) scale(0.96);
  }
}
.pc-head {
  display: flex;
  align-items: center;
  gap: 12px;
}
.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
}
.tint-1 {
  background: var(--tint-1);
  color: var(--tint-1-ink);
}
.tint-3 {
  background: var(--tint-3);
  color: var(--tint-3-ink);
}
.tint-6 {
  background: var(--tint-6);
  color: var(--tint-6-ink);
}
.pc-name {
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.25;
}
.pc-word {
  font-size: 0.8125rem;
  color: var(--muted);
}
.pc-place,
.place-line {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--place);
  font-size: 0.875rem;
  font-weight: 500;
}
.pc-place {
  margin-top: 14px;
}
.pin {
  flex: none;
  width: 10px;
  height: 10px;
  border: 2.5px solid currentColor;
  border-radius: 999px 999px 999px 0;
  transform: rotate(-45deg);
}
.pc-story {
  margin-top: 6px;
  font-size: 0.875rem;
  line-height: 1.45;
}
.pc-due {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--marigold);
  color: var(--on-marigold);
  font-size: 0.78125rem;
  font-weight: 600;
}

.cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  width: 1px;
  height: 44px;
  background: var(--border);
  overflow: hidden;
}
.cue span {
  position: absolute;
  inset: 0;
  background: var(--text);
  animation: cue 2200ms var(--enter) infinite;
}
@keyframes cue {
  0% {
    transform: translateY(-100%);
  }
  60%,
  100% {
    transform: translateY(100%);
  }
}

/* Names fade */

.fade {
  max-width: 1320px;
  margin-inline: auto;
  padding-block: clamp(80px, 16vh, 180px);
}
.fragments {
  display: grid;
  gap: clamp(36px, 7vh, 72px);
}
.fragments li {
  --f: 0;
  max-width: 17ch;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.9rem, 0.9rem + 4.4vw, 4.6rem);
  line-height: 1.04;
  letter-spacing: -0.035em;
  text-wrap: balance;
  opacity: calc(1 - var(--f) * 0.88);
  filter: blur(calc(var(--f) * 8px));
  transform: translateY(calc(var(--f) * -10px));
  will-change: opacity, filter;
}
.fragments li:nth-child(even) {
  justify-self: end;
  text-align: end;
}
.fade-close {
  margin-top: clamp(96px, 18vh, 200px);
  font-size: clamp(1.125rem, 1rem + 0.8vw, 1.5rem);
  color: var(--muted);
}
.fade-close .strong {
  display: block;
  margin-top: 10px;
  color: var(--text);
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(2.35rem, 1.2rem + 4.8vw, 5.25rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  max-width: 14ch;
  text-wrap: balance;
}

/* How it works: index cards that stack as you scroll */

.how {
  max-width: 1320px;
  margin-inline: auto;
  padding-block: clamp(48px, 10vh, 120px) clamp(64px, 12vh, 140px);
}
.stack {
  margin-top: clamp(48px, 9vh, 96px);
}
.card {
  --p: 0;
  --top: calc(var(--bar) + 16px + var(--i, 0) * 14px);
  position: sticky;
  top: var(--top);
  display: grid;
  gap: 28px;
  align-items: center;
  min-height: min(620px, calc(100svh - var(--bar) - 72px));
  padding: clamp(22px, 4vw, 56px);
  margin-bottom: clamp(48px, 12vh, 120px);
  border: 1px solid var(--border);
  border-radius: 28px;
  background: var(--card-bg, var(--surface));
  box-shadow: var(--floating);
  transform-origin: 50% 0;
  transform: scale(calc(1 - var(--p) * 0.05));
  isolation: isolate;
}
.card::after {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: var(--shade);
  opacity: calc(var(--p) * var(--shade-max));
  pointer-events: none;
  z-index: 2;
}
.card:last-child {
  margin-bottom: 0;
}
.card:nth-child(1) {
  --i: 0;
  --rule: var(--marigold);
}
.card:nth-child(2) {
  --i: 1;
  --rule: var(--accent);
  --card-bg: var(--accent-wash);
}
.card:nth-child(3) {
  --i: 2;
  --rule: var(--place);
  --card-bg: var(--place-wash);
}
.card:nth-child(4) {
  --i: 3;
  --rule: var(--text);
  --card-bg: var(--reminder-wash);
}
@media (min-width: 900px) {
  .card {
    grid-template-columns: 1fr 1fr;
    gap: clamp(32px, 5vw, 72px);
  }
}
.card-copy {
  align-self: stretch;
  display: flex;
  flex-direction: column;
}
.card-copy h3 {
  margin-top: auto;
  padding-top: clamp(20px, 5vh, 56px);
}
.card-rule {
  display: flex;
  align-items: baseline;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 3px solid var(--rule);
  font-weight: 600;
  font-size: 0.9375rem;
}
.card-rule span {
  font-family: var(--display);
  font-weight: 800;
  color: var(--muted);
}
.card h3 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.75rem, 1.05rem + 2.6vw, 3.1rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  max-width: 16ch;
  text-wrap: balance;
}
.card-copy > p:last-child {
  margin-top: 16px;
  max-width: 38ch;
  color: var(--muted);
  font-size: clamp(1rem, 0.95rem + 0.3vw, 1.1875rem);
  text-wrap: pretty;
}

/* The vignettes: small moving pictures of the app, drawn in the app's own parts */

.vignette {
  display: grid;
  place-items: center;
}
.sheet {
  position: relative;
  width: min(100%, 360px);
  min-height: 316px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  box-shadow: var(--raised);
  font-size: 0.9375rem;
  overflow: hidden;
}
.sheet-title {
  font-family: var(--display);
  font-weight: 800;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
}
.typed {
  position: relative;
  display: block;
}
.typed-ghost {
  visibility: hidden;
}
.typed-live {
  position: absolute;
  inset: 0;
}
.typed-live.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.1em;
  margin-inline-start: 1px;
  vertical-align: -0.18em;
  background: var(--accent);
  animation: blink 900ms steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* Say it */
[data-vignette='say'] .typed {
  margin: 14px 0 20px;
  font-size: 1rem;
  line-height: 1.5;
  min-height: 4.5em;
}
.talk {
  display: grid;
  justify-items: center;
  gap: 10px;
}
.wave {
  display: flex;
  align-items: center;
  gap: 4px;
  height: 28px;
}
.wave i {
  width: 4px;
  height: 100%;
  border-radius: 2px;
  background: var(--muted);
  transform: scaleY(0.15);
  transition: transform 200ms ease;
}
.is-talking .wave i {
  animation: wave 900ms ease-in-out infinite;
}
.wave i:nth-child(2) {
  animation-delay: -120ms;
}
.wave i:nth-child(3) {
  animation-delay: -480ms;
}
.wave i:nth-child(4) {
  animation-delay: -260ms;
}
.wave i:nth-child(5) {
  animation-delay: -640ms;
}
.wave i:nth-child(6) {
  animation-delay: -340ms;
}
.wave i:nth-child(7) {
  animation-delay: -760ms;
}
@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.2);
  }
  50% {
    transform: scaleY(1);
  }
}
.talk-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 999px;
  background: var(--marigold);
  color: var(--on-marigold);
  box-shadow: var(--raised);
  transition: transform 200ms var(--settle);
}
.talk-button svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.talk-button::before,
.talk-button::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid var(--marigold);
  opacity: 0;
}
.is-talking .talk-button {
  transform: scale(0.93);
}
.is-talking .talk-button::before,
.is-talking .talk-button::after {
  animation: ring 1600ms var(--enter) infinite;
}
.is-talking .talk-button::after {
  animation-delay: 800ms;
}
@keyframes ring {
  from {
    opacity: 0.9;
    transform: scale(1);
  }
  to {
    opacity: 0;
    transform: scale(1.75);
  }
}
.talk-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
}

/* Check it */
.fields {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.field {
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 320ms var(--enter),
    transform 320ms var(--enter),
    box-shadow 240ms ease;
}
.field.is-in {
  opacity: 1;
  transform: none;
}
.field dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
}
.field dd {
  font-weight: 500;
}
.field-name.is-unsure {
  box-shadow: inset 4px 0 0 var(--marigold);
}
.hint {
  margin-inline-start: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--reminder);
}
.field-name:not(.is-unsure) .hint {
  display: none;
}
.chip {
  display: inline-block;
  padding: 1px 10px;
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 0.875rem;
}
.due-line {
  color: var(--reminder);
  font-weight: 600;
}
.save {
  display: block;
  margin-top: 12px;
  padding: 11px;
  border-radius: 12px;
  background: var(--accent);
  color: var(--on-accent);
  text-align: center;
  font-weight: 600;
  transition: transform 160ms var(--settle);
}
.is-pressed {
  transform: scale(0.96);
}
.toast {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  justify-content: space-between;
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--text);
  color: var(--bg);
  font-weight: 500;
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 280ms var(--enter),
    transform 280ms var(--enter);
}
.toast span {
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.is-saved .toast {
  opacity: 1;
  transform: none;
}

/* Ask it */
.ask-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  font-weight: 500;
}
.ask-field svg {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
}
.ask-field .typed {
  flex: 1;
}
.answer {
  position: relative;
  margin: 18px 2px 16px;
  line-height: 1.55;
}
.hit {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-muted);
  opacity: 0;
  transform: translateY(8px);
  transition:
    opacity 320ms var(--enter),
    transform 320ms var(--enter);
}
.hit.is-in {
  opacity: 1;
  transform: none;
}
.hit-text {
  display: grid;
  line-height: 1.3;
  min-width: 0;
}
.hit-text b {
  font-weight: 600;
}
.hit-text span {
  font-size: 0.8125rem;
  color: var(--muted);
}
.hit .avatar,
.follow-row .avatar {
  width: 40px;
  height: 40px;
  font-size: 0.875rem;
}

/* Follow up */
.nudge {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface-muted);
  font-size: 0.875rem;
  font-weight: 600;
  opacity: 0;
  transform: translateY(-12px);
  transition:
    opacity 320ms var(--enter),
    transform 420ms var(--settle);
}
.nudge.is-in {
  opacity: 1;
  transform: none;
}
.nudge-mark {
  flex: none;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--marigold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--marigold) 35%, transparent);
}
.follow-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding-block: 12px;
  border-block: 1px solid var(--border);
}
.follow-row .hit-text {
  flex: 1;
}
.follow-row .hit-text span {
  transition: color 200ms ease;
}
.is-done .follow-row .hit-text span {
  text-decoration: line-through;
}
.today {
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--marigold);
  color: var(--on-marigold);
  font-size: 0.75rem;
  font-weight: 700;
}
.is-done .today {
  background: var(--surface-muted);
  color: var(--muted);
}
.actions {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.wa,
.done {
  padding: 10px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  transition: transform 160ms var(--settle);
}
.wa {
  flex: 1.4;
  background: var(--marigold);
  color: var(--on-marigold);
}
.done {
  flex: 1;
  border: 1px solid var(--border-strong);
}
.bubble {
  margin-top: 14px;
  margin-inline-start: 18%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--accent-wash);
  font-size: 0.875rem;
  line-height: 1.45;
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  transform-origin: 100% 100%;
  transition:
    opacity 300ms var(--enter),
    transform 420ms var(--settle);
}
.bubble.is-in {
  opacity: 1;
  transform: none;
}

/* The globe */

.world {
  position: relative;
  height: 420vh;
  max-width: 1320px;
  margin-inline: auto;
}
.world-sticky {
  position: sticky;
  top: 0;
  display: grid;
  align-content: center;
  gap: clamp(20px, 4svh, 40px);
  height: 100svh;
  padding-top: calc(var(--bar) + 8px);
  padding-bottom: 20px;
}
.world-head .display-2 {
  font-size: clamp(1.9rem, 1rem + 4vw, 4.5rem);
  max-width: 13ch;
}
.world-head .section-lede {
  margin-top: 12px;
}
.globe-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 50svh, 620px);
  aspect-ratio: 1;
}
.globe {
  display: block;
  width: 100%;
  height: 100%;
}
.stops {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.stops li {
  display: grid;
  gap: 2px;
  padding-top: 10px;
  border-top: 2px solid var(--border);
  color: var(--muted);
  transition:
    color 320ms ease,
    border-color 320ms ease;
}
.stops li.is-current {
  color: var(--place);
  border-top-color: var(--place);
}
.stop-city {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1rem, 0.8rem + 1.2vw, 1.75rem);
  letter-spacing: -0.02em;
}
.stop-who {
  font-size: 0.8125rem;
  color: var(--muted);
  line-height: 1.35;
}
@media (max-width: 599px) {
  .world-head .section-lede {
    display: none;
  }
  .stop-who {
    display: none;
  }
}
@media (min-width: 960px) {
  .world-sticky {
    grid-template-columns: 1fr 1.1fr;
    grid-template-rows: 1fr auto;
    align-content: stretch;
    row-gap: 0;
    grid-template-areas:
      'head globe'
      'stops globe';
    column-gap: 48px;
    padding-bottom: 48px;
  }
  .world-head {
    grid-area: head;
    align-self: end;
  }
  .globe-wrap {
    grid-area: globe;
    width: min(100%, 76svh, 640px);
  }
  .stops {
    grid-area: stops;
    align-self: start;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 28px;
    max-width: 380px;
  }
  .stops li {
    grid-template-columns: 1fr auto;
    align-items: baseline;
    padding-block: 12px;
    border-top-width: 1px;
  }
  .stops li.is-current {
    border-top-width: 1px;
  }
}

/* Promises */

.promises {
  display: grid;
  gap: clamp(36px, 6vw, 64px);
  max-width: 1320px;
  margin-inline: auto;
  padding-block: clamp(96px, 18vh, 200px);
}
@media (min-width: 960px) {
  .promises {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}
.rules li {
  display: grid;
  gap: 4px;
  padding-block: 22px;
  border-top: 1px solid var(--border);
}
.rules li:last-child {
  border-bottom: 1px solid var(--border);
}
.rules b {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(1.3rem, 1rem + 1vw, 1.75rem);
  letter-spacing: -0.025em;
  line-height: 1.15;
}
.rules span {
  color: var(--muted);
}
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 600ms var(--enter),
    transform 600ms var(--enter);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
.rules li:nth-child(2) {
  transition-delay: 80ms;
}
.rules li:nth-child(3) {
  transition-delay: 160ms;
}
.rules li:nth-child(4) {
  transition-delay: 240ms;
}

/* Close */

.close {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(80px, 14vh, 160px) clamp(96px, 18vh, 200px);
}
.close-mark {
  width: clamp(64px, 9vw, 96px);
  height: auto;
  aspect-ratio: 1;
  stroke: var(--accent);
}
.close-mark path {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  transition: stroke-dashoffset 1400ms var(--enter);
}
.close.is-in .close-mark path {
  stroke-dashoffset: 0;
}
.close .display {
  margin-top: 18px;
  font-size: clamp(3.5rem, 1.5rem + 11vw, 11rem);
}
.close .lede {
  margin-top: 18px;
}
.close .note {
  margin-top: 14px;
}

/* Footer */

.foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 24px var(--gutter) calc(24px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--border);
  font-size: 0.8125rem;
  color: var(--muted);
}

/* Less motion: everything is shown where it ends up */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    transition-delay: 0ms !important;
  }
  .fragments li {
    opacity: 1;
    filter: none;
    transform: none;
  }
  .card {
    transform: none;
  }
  .card::after {
    opacity: 0;
  }
  .cue {
    display: none;
  }
}

/* The not-found page */

.missing {
  min-height: 100svh;
  align-content: center;
  padding-inline: var(--gutter);
}
.missing .close-mark path {
  stroke-dasharray: none;
}
.missing .display-2 {
  margin-top: 24px;
}
.missing a {
  color: var(--accent);
  text-underline-offset: 4px;
}
