/* 00-tokens.css */
/* Type: Newsreader reads, Courier Prime stamps, Caveat is a hand in the margin. */
@font-face {
  font-family: 'Newsreader';
  src: url(fonts/newsreader-latin-400-normal.woff2) format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url(fonts/newsreader-latin-400-italic.woff2) format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url(fonts/newsreader-latin-500-normal.woff2) format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Newsreader';
  src: url(fonts/newsreader-latin-600-normal.woff2) format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Caveat';
  src: url(fonts/caveat-latin-500-normal.woff2) format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: 'Courier Prime';
  src: url(fonts/courier-prime-latin-400-normal.woff2) format('woff2');
  font-weight: 400;
  font-display: swap;
}

:root {
  --serif: 'Newsreader', 'Iowan Old Style', Georgia, serif;
  --hand: 'Caveat', 'Segoe Print', cursive;
  --type: 'Courier Prime', 'Courier New', monospace;

  /* paper and ink: the ink is blue-black, never pure black */
  --paper: #f6eedf;
  --paper-lit: #fbf6ea;
  --ink: #1e2a3a;
  --ink-soft: #46505f;
  --pen-blue: #2a4688;
  --postal: #a9362b;
  --wax: #a32a24;
  --tape: rgba(226, 210, 150, 0.78);
  --rule: rgba(30, 42, 58, 0.22);

  /* the rooms: night and date night */
  --night: #111a30;
  --night-ink: #f2e9d8;
  --night-soft: #c9c4d4;
  --night-hand: #f4a08e;
  --brown: #22130e;
  --brown-ink: #f1e3cb;
  --brown-soft: #d2bfa3;

  --gutter: 16px;
  --measure: 34rem;
  --rest-shadow: 0 1px 1px rgba(40, 24, 10, 0.25), 0 14px 22px -14px rgba(40, 24, 10, 0.55);
}

/* 01-base.css */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  /* what slides in from the side (the tour's words) waits off the edge: never a sideways
     scroll on a phone. clip, not hidden, so the tour's phone can still stick */
  overflow-x: clip;
}
body {
  margin: 0;
  font-family: var(--serif);
  font-size: 1.1875rem;
  line-height: 1.62;
  color: var(--ink);
  background-color: var(--paper);
  /* a little paper tooth, drawn not downloaded */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .25 0 0 0 0 .1 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
  overflow-x: clip;
}
img,
video,
svg {
  display: block;
  max-width: 100%;
}
h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  text-wrap: pretty;
}
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}
.wrap {
  width: min(1120px, 100% - 2 * var(--gutter));
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: var(--gutter);
  top: -4rem;
  padding: 0.5rem 0.9rem;
  background: var(--paper-lit);
  color: var(--ink);
  z-index: 10;
}
.skip:focus {
  top: 0.5rem;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.button {
  display: inline-block;
  font: 600 1.125rem/1 var(--serif);
  padding: 0.95rem 1.5rem 1rem;
  border: 1.5px solid var(--ink);
  border-radius: 3px;
  background: var(--ink);
  color: var(--paper-lit);
  text-decoration: none;
  cursor: pointer;
}
.button:hover {
  background: #2c3b52;
  text-decoration: none;
}
.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.button--quiet {
  background: transparent;
  color: inherit;
  border-color: currentColor;
}
.button--quiet:hover {
  background: rgba(30, 42, 58, 0.08);
}

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

/* 02-sky.css */
/* The sky is the hero's light. Four layers stacked; the visitor's own hour
   decides which one is showing (js/sky.js sets data-sky on <html>). */
.sky {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: linear-gradient(180deg, #f3e3c0 0%, #f7ecd3 55%, var(--paper) 100%);
}
.sky__layer {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.6s ease-in-out;
}
[data-sky='morning'] .sky__layer--morning,
[data-sky='day'] .sky__layer--day,
[data-sky='evening'] .sky__layer--evening,
[data-sky='night'] .sky__layer--night {
  opacity: 1;
}

.sky__layer--morning {
  background:
    radial-gradient(60% 38% at 78% 16%, rgba(255, 244, 214, 0.95), rgba(255, 244, 214, 0) 70%),
    linear-gradient(180deg, #f2bccb 0%, #f6c3ac 38%, #fadfb8 74%, #f8e8cc 100%);
}
.sky__layer--day {
  background: linear-gradient(180deg, #f1dcb2 0%, #f6e8cb 50%, #f7ecd6 100%);
}
.sky__layer--evening {
  background: linear-gradient(
    180deg,
    #9a8ac6 0%,
    #c48fba 26%,
    #ee9a86 54%,
    #f6ae62 78%,
    #f8ddb8 100%
  );
}
.sky__layer--night {
  background: linear-gradient(180deg, #1b3a44 0%, #16253f 38%, #111a31 100%);
}
.sky__stars {
  position: absolute;
  inset: 0;
  background: url(img/stars.svg) center / 100% 100%;
}
.sky__lights {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 46px;
}

/* the text colour follows the light behind it */
.hero {
  color: var(--ink);
  transition: color 2.6s ease-in-out;
}
[data-sky='night'] .hero {
  color: var(--night-ink);
}
[data-sky='night'] .hero .button {
  background: #f0e2c4;
  color: var(--ink);
  border-color: #f0e2c4;
}
[data-sky='night'] .hero .button:hover {
  background: #fff3da;
}
[data-sky='night'] .hero .hand {
  color: var(--night-hand);
}

/* a cut paper edge where the sky ends */
.cut-edge {
  height: 22px;
  margin-top: -21px;
  position: relative;
  z-index: 1;
  background-color: var(--paper);
  -webkit-mask: url(img/edge.svg) bottom / 100% 22px no-repeat;
  mask: url(img/edge.svg) bottom / 100% 22px no-repeat;
}

@media (prefers-reduced-motion: reduce) {
  .sky__layer,
  .hero {
    transition: none;
  }
}

/* 03-header-hero.css */
.hero {
  position: relative;
  isolation: isolate;
  padding-bottom: 3.5rem;
}
.hero > .wrap {
  position: relative;
  z-index: 1;
}
.masthead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 3.1rem 0.5rem;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.wordmark svg {
  width: 1.35rem;
  height: 1.35rem;
}
.masthead__join {
  font-size: 1.0625rem;
  font-weight: 500;
}

.hero__grid {
  display: grid;
  gap: 2.2rem;
  padding-top: clamp(1.8rem, 6vw, 4rem);
}
.hero h1 {
  font-size: clamp(2.5rem, 1.5rem + 5.5vw, 4.6rem);
  font-weight: 500;
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 11em;
}
.hero__lede {
  font-size: clamp(1.2rem, 1.05rem + 0.7vw, 1.45rem);
  max-width: 28em;
  margin-top: 1.3rem;
}
.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.2rem;
  margin-top: 1.8rem;
}
.hero__stage {
  position: relative;
  justify-self: center;
  width: min(76vw, 300px);
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 4rem;
    padding-top: 3.5rem;
  }
  .hero__stage {
    width: 310px;
    justify-self: end;
  }
}

/* 04-objects.css */
/* The few real objects: a phone, a hand in the margin, a seal, a stamp. */

.hand {
  font-family: var(--hand);
  font-weight: 500;
  font-size: 1.65rem;
  line-height: 1.05;
  color: var(--pen-blue);
  transform: rotate(-3deg);
  display: block;
}
.hand svg {
  width: 3.2rem;
  height: auto;
  margin-top: 0.15rem;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.typed {
  font-family: var(--type);
  font-size: 0.9em;
  padding: 0.04em 0.4em 0.08em;
  background: rgba(30, 42, 58, 0.075);
  border-radius: 2px;
  white-space: nowrap;
}

/* phone: the real app inside a plain dark frame, resting on the page */
.phone {
  margin: 0;
  position: relative;
}
.phone__body {
  position: relative;
  border: 9px solid #15110e;
  border-radius: 40px;
  overflow: hidden;
  background: #15110e;
  box-shadow: var(--rest-shadow);
}
.phone__screen {
  position: relative;
  aspect-ratio: 1206 / 2622;
  background: var(--night);
}
.phone__screen > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
  align-items: start;
}
.pair > :last-child {
  margin-top: 12%;
}

/* wax seal and postage stamp, drawn in svg */
.seal {
  width: 3.4rem;
  height: 3.4rem;
}
.stamp {
  width: 4.6rem;
  height: auto;
  transform: rotate(4deg);
}

/* 05-features.css */
/* date night's drawn four in a row, before the game takes its place */
.discs {
  width: min(100%, 252px);
  margin-top: 1.6rem;
}

/* 06-tour.css */
/* The tour: one phone stays put while the text scrolls past, and its screen changes.
   Below 1000px there is no pinned phone; each step carries its own taped print. */
.tour {
  position: relative;
  isolation: isolate;
  padding-block: clamp(2rem, 6vw, 4rem);
  background-color: transparent;
  transition:
    background-color 1.1s ease,
    color 1.1s ease;
}
.tour::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url(img/stars.svg) center / 100% 100%;
  opacity: 0;
  transition: opacity 1.4s ease;
}
.tour__stage {
  display: none;
  opacity: 0;
  transform: translateY(70px);
  transition:
    opacity 0.8s ease,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tour[data-live] .tour__stage {
  opacity: 1;
  transform: none;
}
.step {
  padding-block: clamp(2.6rem, 8vw, 4rem);
  max-width: var(--measure);
  margin-inline: auto;
}
.step h2 {
  font-size: clamp(1.9rem, 1.2rem + 3.2vw, 2.7rem);
  transition: color 1.1s ease;
}
.step p {
  margin-top: 1.1rem;
  margin-bottom: 0;
  transition: color 1.1s ease;
}
.step .hand {
  margin-top: 1.2rem;
  transition: color 1.1s ease;
}
.step__print {
  margin-top: 2.2rem;
}
.step__print.phone {
  width: min(100%, 320px);
  margin-inline: auto;
}
.step .pair {
  max-width: 440px;
  margin-inline: auto;
}
.step .pair .phone {
  width: 100%;
}
.pair .phone__body {
  border-width: 6px;
  border-radius: 26px;
}

.tour[data-room='night'] {
  background-color: var(--night);
  color: var(--night-ink);
}
.tour[data-room='night']::before {
  opacity: 0.85;
}
.tour[data-room='night'] .step h2 {
  color: var(--night-ink);
}
.tour[data-room='night'] .step p {
  color: var(--night-soft);
}
.tour[data-room='night'] .step .hand {
  color: var(--night-hand);
}
.tour[data-room='brown'] {
  background-color: var(--brown);
  color: var(--brown-ink);
}
.tour[data-room='brown'] .step h2 {
  color: var(--brown-ink);
}
.tour[data-room='brown'] .step p {
  color: var(--brown-soft);
}
.tour[data-room='brown'] .step .hand {
  color: #f0c26a;
}
.tour[data-room='night'] .typed {
  background: rgba(242, 233, 216, 0.12);
}

@media (min-width: 1000px) {
  .tour {
    --phone-w: min(300px, calc((100svh - 130px) * 0.4617));
    padding-block: 4svh 22svh;
  }
  .tour .wrap {
    width: min(1240px, 100% - 2 * var(--gutter));
  }
  .tour__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) var(--phone-w) minmax(0, 1fr);
    column-gap: clamp(3rem, 6vw, 6rem);
  }
  .tour__steps {
    display: contents;
  }
  .tour__stage {
    display: block;
    grid-column: 2;
    grid-row: 1 / span 9;
    position: sticky;
    top: calc(50svh - (var(--phone-w) / 0.4617) / 2);
    align-self: start;
  }
  .step {
    min-height: 96svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin: 0;
    max-width: 25rem;
    padding-block: 3rem;
  }
  .step:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
    justify-self: end;
  }
  .step:nth-child(2) {
    grid-column: 3;
    grid-row: 2;
  }
  .step:nth-child(3) {
    grid-column: 1;
    grid-row: 3;
    justify-self: end;
  }
  .step:nth-child(4) {
    grid-column: 3;
    grid-row: 4;
  }
  .step:nth-child(5) {
    grid-column: 1;
    grid-row: 5;
    justify-self: end;
  }
  .step:nth-child(6) {
    grid-column: 3;
    grid-row: 6;
  }
  .step:nth-child(7) {
    grid-column: 1;
    grid-row: 7;
    justify-self: end;
  }
  .step:nth-child(8) {
    grid-column: 3;
    grid-row: 8;
  }
  .step:nth-child(9) {
    grid-column: 1;
    grid-row: 9;
    justify-self: end;
  }
  .step > .step__print {
    display: none;
  }
}

.tour__stage .phone__screen {
  background: #15110e;
}
.tour__screen {
  opacity: 0;
  transform: translateY(34px) scale(0.985);
  transition:
    opacity 0.7s ease,
    transform 1s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.tour__screen.is-active {
  opacity: 1;
  transform: none;
}
.tour__screen.is-past {
  transform: translateY(-26px) scale(0.99);
}
.tour__stage .phone__body {
  box-shadow:
    0 30px 40px -24px rgba(30, 20, 10, 0.55),
    0 2px 3px rgba(30, 20, 10, 0.3);
}

@media (prefers-reduced-motion: reduce) {
  .tour,
  .tour::before,
  .step h2,
  .step p,
  .step .hand,
  .tour__screen,
  .tour__stage {
    transition: none;
  }
}

.tour__screen {
  object-fit: cover;
}

/* 08-promise-faq.css */
/* From the tour's paper down into the closing night: one long sunset. */
.dusk {
  background: linear-gradient(
    180deg,
    rgba(246, 238, 223, 0) 0%,
    #f5dfc0 22%,
    #f2c3a2 46%,
    #e9a58e 66%,
    #c99bb9 86%,
    #a899cc 100%
  );
}
.cut-edge--night {
  background-color: #1b3a44;
  margin-top: -21px;
  transform: scaleY(-1);
  -webkit-mask-position: top;
  mask-position: top;
}

.faq {
  padding-block: clamp(5rem, 12vw, 9rem) clamp(5rem, 12vw, 9rem);
}
.faq__grid {
  display: grid;
  gap: 1.6rem;
  border-top: 1px solid rgba(30, 42, 58, 0.55);
  padding-top: 1.6rem;
}
.faq h2 {
  font-size: clamp(1.9rem, 1.2rem + 3vw, 2.8rem);
}
.faq__intro .hand {
  margin-top: 0.6rem;
}
.faq details {
  border-bottom: 1px solid rgba(30, 42, 58, 0.28);
}
.faq summary {
  cursor: pointer;
  padding: 1.15rem 2.4rem 1.15rem 0;
  font-size: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem);
  font-weight: 500;
  list-style: none;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 0.3rem;
  top: 50%;
  width: 0.7rem;
  height: 0.7rem;
  margin-top: -0.55rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.25s ease;
}
.faq details[open] summary::after {
  transform: rotate(-135deg);
  margin-top: -0.2rem;
}
.faq summary:hover {
  color: #7b1f17;
}
.faq details p {
  margin: 0 0 1.3rem;
  max-width: 34rem;
  color: #2c3747;
  font-size: 1.125rem;
}

@media (min-width: 900px) {
  .faq__grid {
    grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
    gap: 4rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}

/* 09-form.css */
.closing {
  position: relative;
  isolation: isolate;
  color: var(--night-ink);
  background: linear-gradient(180deg, #1b3a44 0%, #16253f 22%, #111a31 60%, #0e1528 100%);
  padding-top: 3.2rem;
  margin-top: -1px;
}
.closing__sky {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
}
.closing__stars {
  position: absolute;
  inset: 0;
  background: url(img/stars.svg) center / 100% 100%;
}
.closing .sky__lights {
  top: 0;
}
.closing a {
  text-decoration-color: rgba(242, 233, 216, 0.5);
}
.closing .hand {
  color: var(--night-hand);
}
.join {
  padding-block: clamp(3rem, 8vw, 6rem);
}
.join__grid {
  display: grid;
  gap: 2.4rem;
}
.join__intro h2 {
  font-size: clamp(2.6rem, 1.4rem + 5vw, 4.6rem);
  line-height: 1.02;
  max-width: 8em;
  color: var(--night-ink);
}
.join__intro p {
  margin-top: 1.2rem;
  max-width: 26rem;
  font-size: 1.25rem;
  color: var(--night-soft);
}
.join__intro .hand {
  margin-top: 0.8rem;
}

.form-paper {
  position: relative;
  background: var(--paper-lit);
  padding: clamp(1.4rem, 4vw, 2.2rem);
  border-radius: 2px;
  box-shadow:
    0 2px 2px rgba(0, 0, 0, 0.4),
    0 28px 40px -20px rgba(0, 0, 0, 0.75);
  max-width: 36rem;
  transform: rotate(0.5deg);
  color: var(--ink);
}
.form-paper a {
  text-decoration-color: currentColor;
}
.form-paper .stamp {
  position: absolute;
  top: -1.6rem;
  right: 1.2rem;
  width: 4.2rem;
}
.form-paper {
  padding-top: clamp(2rem, 5vw, 2.6rem);
}
.field {
  margin-bottom: 1.25rem;
}
.field label,
.field legend {
  display: block;
  font-weight: 500;
  margin-bottom: 0.35rem;
  padding: 0;
}
.field .hint {
  display: block;
  font-size: 0.95rem;
  color: var(--ink-soft);
  font-weight: 400;
}
.field input[type='email'],
.field input[type='text'] {
  width: 100%;
  font: 400 1.125rem/1.3 var(--serif);
  color: var(--ink);
  padding: 0.6rem 0.2rem 0.5rem;
  border: 0;
  border-bottom: 1.5px solid var(--ink);
  border-radius: 0;
  background: rgba(30, 42, 58, 0.04);
}
.field input:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 2px;
  background: #fff;
}
.field input[aria-invalid='true'] {
  border-bottom-color: var(--postal);
  background: rgba(169, 54, 43, 0.07);
}
.field .error {
  color: var(--postal);
  font-size: 0.95rem;
  margin: 0.3rem 0 0;
  font-weight: 500;
}
fieldset.field {
  border: 0;
  padding: 0;
  margin-inline: 0;
  min-width: 0;
}
.choices {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
}
.choices label {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 400;
  margin: 0;
  cursor: pointer;
}
.choices input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--ink);
  margin: 0;
}
.honey {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  margin: 0.9rem 0 0;
  font-size: 1rem;
  color: var(--postal);
  min-height: 1.4em;
  font-weight: 500;
}

.thanks {
  text-align: left;
}
.thanks[hidden] {
  display: none;
}
.thanks h3 {
  font-size: 1.9rem;
}
.thanks__envelope {
  width: min(260px, 70%);
  margin: 0.4rem 0 1.2rem;
  position: relative;
}
.thanks__envelope .seal {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 3.6rem;
  height: 3.6rem;
  margin: -1.8rem 0 0 -1.8rem;
  animation: press 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
@keyframes press {
  0% {
    transform: scale(1.7) rotate(-14deg);
    opacity: 0;
  }
  55% {
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0);
    opacity: 1;
  }
}
.thanks .field {
  margin-top: 1.4rem;
}

@media (min-width: 900px) {
  .join__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 6rem;
    align-items: start;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thanks__envelope .seal {
    animation: none;
  }
}

/* what happens next, and the thank-you extras */
.next {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 1rem 0 0;
  border-top: 1px solid var(--rule);
  counter-reset: step;
  display: grid;
  gap: 0.35rem;
  font-size: 1rem;
  color: var(--ink-soft);
}
.next li {
  counter-increment: step;
  display: flex;
  gap: 0.7rem;
}
.next li::before {
  content: counter(step);
  font-family: var(--type);
  font-size: 0.9rem;
  color: var(--postal);
  flex: none;
  width: 1rem;
  padding-top: 0.1em;
}
.thanks h4 {
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}
.bring {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}
.bring p {
  margin-bottom: 0.7rem;
}
.bring__note {
  font-family: var(--type);
  font-size: 0.9rem;
  line-height: 1.5;
  background: rgba(30, 42, 58, 0.06);
  padding: 0.7rem 0.8rem;
  border-radius: 2px;
  user-select: all;
}
.bring__done {
  margin-left: 0.8rem;
  font-size: 0.95rem;
  color: var(--ink-soft);
}
#details {
  margin-top: 1.6rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--rule);
}
#details[hidden] {
  display: none;
}

/* the merged form's own lines: the promise under the button, the way out, and what was said */
.fine {
  margin: 0.4rem 0 0;
  font-size: 0.95rem;
  line-height: 1.45;
  color: var(--ink-soft);
}
.leave {
  margin: 1.6rem 0 0;
  padding-top: 1.1rem;
  border-top: 1px solid var(--rule);
  font-size: 1rem;
  color: var(--ink-soft);
}
.link-button {
  font: inherit;
  color: var(--ink);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  cursor: pointer;
}
.link-button:hover {
  text-decoration-thickness: 2px;
}
.link-button[disabled] {
  opacity: 0.6;
  cursor: progress;
}
.thanks__said {
  margin: 0.6rem 0 0;
  font-size: 1rem;
  font-weight: 500;
}
.thanks__said:empty {
  display: none;
}
fieldset.field[aria-invalid='true'] legend {
  color: var(--postal);
}

/* 10-footer.css */
.privacy-note {
  padding-block: clamp(2.5rem, 6vw, 4rem) 2rem;
  border-top: 1px solid rgba(242, 233, 216, 0.18);
  margin-top: clamp(1.5rem, 4vw, 3rem);
}
.privacy-note h2 {
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.2rem);
  margin-bottom: 1.4rem;
}
.privacy-note dl {
  margin: 0;
}
.privacy-note dl > div {
  display: grid;
  gap: 0.2rem;
  padding-block: 1rem;
  border-top: 1px solid rgba(242, 233, 216, 0.14);
}
.privacy-note dt {
  font-weight: 600;
  color: var(--night-ink);
}
.privacy-note dd {
  margin: 0;
  color: var(--night-soft);
  font-size: 1.0625rem;
  max-width: 40rem;
}
@media (min-width: 800px) {
  .privacy-note dl > div {
    grid-template-columns: 14rem minmax(0, 1fr);
    gap: 2rem;
  }
}

.site-footer {
  border-top: 1px solid rgba(242, 233, 216, 0.18);
  padding-block: 1.6rem 3rem;
  font-size: 1rem;
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 2rem;
  align-items: baseline;
  justify-content: space-between;
}
.site-footer .wordmark {
  font-size: 1.2rem;
}
.site-footer nav {
  display: flex;
  gap: 0.4rem 1.5rem;
  flex-wrap: wrap;
}
.site-footer small {
  display: block;
  width: 100%;
  font-family: var(--type);
  font-size: 0.8rem;
  color: var(--night-soft);
  margin-top: 0.6rem;
  line-height: 1.5;
}

/* 11-motion.css */
/* Motion, kept small and physical: things arrive, settle, open. All of it is off
   for anyone who asked for less motion, and the page reads fine without it.
   Scroll-linked effects use CSS scroll timelines (no scroll listeners). */

@media (prefers-reduced-motion: no-preference) {
  @keyframes rise {
    from {
      opacity: 0;
      transform: translateY(26px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes land {
    from {
      opacity: 0;
      transform: translateY(90px) rotate(5deg);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }

  /* the hero arrives once, in order */
  .hero h1 {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.1s both;
  }
  .hero__lede {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.25s both;
  }
  .hero__cta {
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) 0.4s both;
  }
  .hero__stage {
    animation: land 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
  }
}

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    @keyframes slide-in {
      from {
        opacity: 0;
        transform: translateX(calc(var(--dir, -1) * 56px));
      }
      to {
        opacity: 1;
        transform: none;
      }
    }
    @keyframes settle {
      from {
        opacity: 0;
        transform: translateY(80px) rotate(calc(var(--tilt, 0deg) * 3 + 5deg));
      }
      to {
        opacity: 1;
        transform: rotate(var(--tilt, 0deg));
      }
    }
    @keyframes drift {
      to {
        transform: translateY(-64px);
      }
    }
    @keyframes drift-slow {
      to {
        transform: translateY(34px);
      }
    }
    @keyframes stamp-down {
      from {
        opacity: 0;
        transform: scale(1.8) rotate(-16deg);
      }
      to {
        opacity: 1;
        transform: rotate(4deg);
      }
    }
    @keyframes drop {
      0% {
        transform: translateY(-96px);
      }
      70% {
        transform: translateY(0);
      }
      84% {
        transform: translateY(-9px);
      }
      100% {
        transform: translateY(0);
      }
    }

    /* hero: the phone drifts up a little faster than the page, the words a little slower */
    .hero__text {
      animation: drift-slow linear both;
      animation-timeline: view();
      animation-range: exit 0% exit 100%;
    }

    /* steps slide in from the side they sit on; the print lands after */
    .step {
      --dir: -1;
    }
    .step:nth-child(even) {
      --dir: 1;
    }
    .step h2 {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
    }
    .step p {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 15% entry 62%;
    }
    .step .hand {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 25% entry 70%;
    }
    .step .phone {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 8% entry 60%;
    }
    .step .phone + .phone {
      animation-range: entry 22% entry 74%;
    }
    @media (min-width: 1000px) {
      .step h2 {
        --dir: -1;
      }
      .step:nth-child(even) h2,
      .step:nth-child(even) p,
      .step:nth-child(even) .hand {
        --dir: 1;
      }
      .step:nth-child(odd) h2,
      .step:nth-child(odd) p,
      .step:nth-child(odd) .hand {
        --dir: -1;
      }
    }

    /* date night: four in a row, dropped one after another */
    .discs .disc {
      animation: drop linear both;
      animation-timeline: view();
    }
    .discs .disc--1 {
      animation-range: entry 40% entry 70%;
    }
    .discs .disc--2 {
      animation-range: entry 52% entry 82%;
    }
    .discs .disc--3 {
      animation-range: entry 64% entry 94%;
    }
    .discs .disc--4 {
      animation-range: entry 76% entry 106%;
    }

    /* the promise and the form arrive like paper put down on a desk */
    .form-paper {
      animation: settle linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
      --tilt: 0.5deg;
    }
    .form-paper .stamp {
      animation: stamp-down linear both;
      animation-timeline: view();
      animation-range: entry 40% entry 85%;
    }
    .join__intro h2 {
      animation: slide-in linear both;
      animation-timeline: view();
      animation-range: entry 5% entry 55%;
      --dir: -1;
    }
  }

  /* browsers without scroll timelines: js adds .rv and .is-in, same idea, plain transitions */
  .reveal-fallback .rv {
    opacity: 0;
    transform: translateY(34px);
    transition:
      opacity 0.8s ease,
      transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1);
  }
  .reveal-fallback .rv.is-in {
    opacity: 1;
    transform: none;
  }

  .button {
    transition:
      background-color 0.2s ease,
      translate 0.15s ease;
  }
  .button:active {
    translate: 0 1px;
  }
}

/* 12-bar.css */
/* A slim paper strip that slides in once the hero has gone, so the one action is always near. */
.bar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 20;
  background: rgba(251, 246, 234, 0.97);
  border-bottom: 1px solid var(--rule);
  transform: translateY(-101%);
  visibility: hidden;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0s 0.5s;
}
.bar.is-on {
  transform: none;
  visibility: visible;
  transition:
    transform 0.5s cubic-bezier(0.2, 0.7, 0.2, 1),
    visibility 0s;
}
.bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 0.55rem;
}
.bar .wordmark {
  font-size: 1.25rem;
}
.bar .wordmark svg {
  width: 1.1rem;
  height: 1.1rem;
}
.button--small {
  font-size: 1rem;
  padding: 0.6rem 1rem 0.65rem;
}
@media (prefers-reduced-motion: reduce) {
  .bar,
  .bar.is-on {
    transition: none;
  }
}

/* 13-nav.css */
/* A small nav for what a couple deciding wants next to the tour: why it exists, and the
   questions. Two words each, beside the wordmark, never a menu; it fits a 360 px phone. */
.sitenav {
  display: flex;
  gap: clamp(0.85rem, 2.4vw, 1.6rem);
  margin-left: auto;
  margin-right: clamp(0.85rem, 2.4vw, 1.6rem);
  font-size: 1rem;
  white-space: nowrap;
}
.sitenav a {
  text-decoration: none;
}
.sitenav a:hover {
  text-decoration: underline;
}
/* on a phone the masthead keeps the nav, and the hero's own button below asks the reader to join */
@media (max-width: 559px) {
  .masthead .sitenav {
    margin-right: 0;
  }
  .masthead__join {
    display: none;
  }
}
/* the bar's button says only "join" on a phone; a screen reader still hears all of it */
@media (max-width: 479px) {
  .bar .wordmark {
    font-size: 1.125rem;
  }
  .bar .sitenav {
    font-size: 0.9375rem;
    gap: 0.8rem;
    margin-right: 0.8rem;
  }
  .bar__long {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
/* the bar covers the top of the page: a section reached from it starts below it */
#our-story,
#questions {
  scroll-margin-top: 4.5rem;
}

/* 14-founding-windows.css */
/* hero art: two windows, each with its own sky and clock, a seal flying between them */
.windows {
  position: relative;
  justify-self: center;
  width: min(88vw, 480px);
  aspect-ratio: 1.05;
  margin: 0;
}
.windows__arc {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.windows__arc path {
  fill: none;
  stroke: currentColor;
  stroke-opacity: 0.45;
  stroke-width: 2.4;
  stroke-dasharray: 3 8;
  vector-effect: non-scaling-stroke;
}
.win {
  position: absolute;
  width: 44%;
}
.win--a {
  left: 0;
  top: 18%;
  transform: rotate(-3deg);
}
.win--b {
  right: 0;
  top: 2%;
}
.win__frame {
  position: relative;
  aspect-ratio: 1 / 0.9;
  padding: 8px;
  background: linear-gradient(160deg, #f7ebd6, #e6d2ae);
  border-radius: 10px 10px 6px 6px;
  box-shadow: var(--rest-shadow);
}
.win__glass {
  position: absolute;
  inset: 8px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--sky-a);
  transition: background 2.6s ease-in-out;
}
.win__glass::before,
.win__glass::after {
  content: '';
  position: absolute;
  background: #eadbc0;
  z-index: 2;
}
.win__glass::before {
  left: 50%;
  top: 0;
  bottom: 0;
  width: 6px;
  margin-left: -3px;
}
.win__glass::after {
  top: 50%;
  left: 0;
  right: 0;
  height: 6px;
  margin-top: -3px;
}
.win__sun {
  position: absolute;
  width: 26%;
  aspect-ratio: 1;
  border-radius: 50%;
  right: 14%;
  top: 14%;
  background: var(--sun);
  box-shadow: 0 0 18px var(--sun);
}
.win__stars {
  position: absolute;
  inset: 0;
  background: url(img/stars.svg) center / 100% 100%;
  opacity: var(--stars, 0);
}
.win__hills {
  position: absolute;
  left: -5%;
  right: -5%;
  bottom: -8%;
  height: 36%;
  border-radius: 50% 50% 0 0;
  background: rgba(20, 20, 40, 0.28);
  box-shadow: 40px 6px 0 -4px rgba(20, 20, 40, 0.22);
}
.win__clock {
  position: absolute;
  left: 14px;
  top: 14px;
  z-index: 3;
  font: 400 0.85rem/1 var(--type);
  color: #fff;
  background: rgba(0, 0, 0, 0.32);
  padding: 0.28rem 0.5rem;
  border-radius: 999px;
}
.win__cap {
  margin-top: 0.5rem;
  text-align: center;
  font-size: 1.35rem;
  transform: none;
  color: inherit;
}
.win[data-phase='morning'] {
  --sky-a: linear-gradient(180deg, #f2bccb, #f8e0b9);
  --sun: #fff1c9;
  --stars: 0;
}
.win[data-phase='day'] {
  --sky-a: linear-gradient(180deg, #7db7e3, #f6dcb4);
  --sun: #fff1c9;
  --stars: 0;
}
.win[data-phase='evening'] {
  --sky-a: linear-gradient(180deg, #3b2f5c, #e39a6c);
  --sun: #ffc98a;
  --stars: 0.15;
}
.win[data-phase='night'] {
  --sky-a: linear-gradient(180deg, #0b1030, #2a2350);
  --sun: #f3ebd0;
  --stars: 1;
}
.windows__heart {
  position: absolute;
  left: 0;
  top: 0;
  width: 2.2rem;
  height: 2.2rem;
  offset-path: path('M 70 170 Q 250 -30 420 120');
  offset-rotate: 0deg;
  animation: windows-fly 4.6s ease-in-out infinite alternate;
  filter: drop-shadow(0 3px 4px rgba(60, 10, 5, 0.4));
}
@keyframes windows-fly {
  from {
    offset-distance: 6%;
  }
  to {
    offset-distance: 94%;
  }
}
@media (max-width: 520px) {
  .windows__heart {
    offset-path: none;
    left: 46%;
    top: 22%;
    animation: none;
  }
}

.ticket {
  display: grid;
  grid-template-columns: 4.4rem 1fr;
  border-radius: 12px;
  overflow: hidden;
  color: #fff;
  box-shadow: 0 16px 28px -16px rgba(20, 25, 70, 0.9);
}
.windows .ticket {
  position: absolute;
  left: 14%;
  right: 14%;
  bottom: 0;
}
.ticket__stub {
  background: #1f2b5a;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-right: 2px dashed rgba(255, 255, 255, 0.35);
  padding: 0.5rem 0;
}
.ticket__stub b {
  font: 400 2rem/1 var(--serif);
}
.ticket__stub small {
  font: 400 0.65rem/1 var(--type);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.8;
}
.ticket__body {
  background: linear-gradient(135deg, #3b3f86, #b0637e);
  padding: 0.6rem 0.8rem;
}
.ticket__body b {
  display: block;
  font: 500 1.15rem/1.1 var(--serif);
}
.ticket__body .hand {
  color: #fff;
  font-size: 1.2rem;
  opacity: 0.9;
  transform: none;
}

/* the founding strip */
.founding {
  padding-block: clamp(1.6rem, 5vw, 3rem) 0;
}
.founding__card {
  display: grid;
  gap: 1.1rem;
  align-items: center;
  padding: 1.4rem;
  border-radius: 4px;
  color: #f6e7d2;
  background: linear-gradient(160deg, #2b2620, #3e2a26);
  box-shadow: var(--rest-shadow);
}
.founding__plate {
  justify-self: start;
  padding: 0.6rem 1.2rem 0.5rem;
  border-radius: 6px;
  text-align: center;
  color: #3a2a10;
  background: linear-gradient(160deg, #f0d498, #c79a4e 55%, #a97e36);
  box-shadow: inset 0 0 0 2px rgba(255, 240, 200, 0.6);
}
.founding__plate small {
  display: block;
  font: 400 0.8rem/1 var(--type);
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.founding__plate b {
  font: italic 500 1.5rem/1.2 var(--serif);
}
.founding h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2.1rem);
  line-height: 1.1;
}
.founding p {
  margin-top: 0.4rem;
  color: #d9c7b2;
}
.founding .button {
  justify-self: start;
  background: #f0e2c4;
  color: var(--ink);
  border-color: #f0e2c4;
}
@media (min-width: 800px) {
  .founding__card {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 2rem;
    padding: 1.6rem 2rem;
  }
}

.pol {
  width: 6rem;
  background: #fffcf6;
  padding: 6px 6px 0;
  border-radius: 2px;
  box-shadow: 0 12px 18px -10px rgba(60, 25, 5, 0.7);
  transform: rotate(-4deg);
  position: relative;
}
.pol i {
  display: block;
  aspect-ratio: 1;
  background: linear-gradient(180deg, #f6a66b, #f7c891 55%, #6b3e4c);
  filter: blur(5px);
}
.pol span {
  display: block;
  height: 1.1rem;
}
@media (prefers-reduced-motion: reduce) {
  .windows__heart {
    animation: none;
  }
  .win__glass {
    transition: none;
  }
}

/* two phones side by side in the sign-up form */
.field-pair {
  display: grid;
  gap: 0 1.6rem;
  grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
}

/* the live count under the plate: how much of the 500 is left */
.founding__bar {
  display: block;
  height: 4px;
  margin: 0.35rem auto 0.1rem;
  width: 100%;
  min-width: 7rem;
  border-radius: 2px;
  background: rgba(58, 42, 16, 0.22);
  overflow: hidden;
}
.founding__bar[hidden] {
  display: none;
}
.founding__bar i {
  display: block;
  height: 100%;
  width: calc(var(--share, 1) * 100%);
  background: #3a2a10;
}

/* 15-play.css */
/* Date night's four in a row, playable against Alex, and the other boards mid-game. */
.four {
  margin-top: 1.2rem;
  width: min(100%, 16rem);
}
.four__status {
  display: block;
  margin: 0 0 0.6rem !important;
  min-height: 1.6em;
}
.four__board {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  padding: 6px;
  border-radius: 10px;
  background: #7c4f2a;
  box-shadow:
    inset 0 -3px 0 rgba(0, 0, 0, 0.25),
    0 16px 24px -16px rgba(0, 0, 0, 0.7);
}
.four__col {
  display: flex;
  flex-direction: column-reverse;
  gap: 4px;
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  cursor: pointer;
}
.four__col:hover:not(:disabled),
.four__col:focus-visible {
  background: rgba(255, 236, 200, 0.14);
}
.four__col:disabled {
  cursor: default;
}
.four__col i {
  display: block;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #1d100a;
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.6);
}
.four__col i.is-you {
  background: #c63d34;
}
.four__col i.is-alex {
  background: #f0c26a;
}
.four__col i.is-you,
.four__col i.is-alex {
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.22);
  animation: four-drop 0.38s cubic-bezier(0.5, 0, 0.75, 0) both;
}
.four__col i.is-win {
  outline: 3px solid #fff3da;
  outline-offset: -3px;
}
.four__again {
  align-self: flex-start;
  margin-top: 0.8rem;
  background: #f0e2c4;
  color: var(--ink);
  border-color: #f0e2c4;
}
.four__again[hidden] {
  display: none;
}
@keyframes four-drop {
  from {
    transform: translateY(-260%);
  }
}

.boards {
  list-style: none;
  margin: 1.4rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
  width: min(100%, 19rem);
}
.boards img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 10px 16px -12px rgba(0, 0, 0, 0.8);
}
.boards span {
  display: block;
  margin-top: 0.35rem;
  font: 400 0.72rem/1.25 var(--type);
  letter-spacing: 0.02em;
  opacity: 0.85;
}

@media (prefers-reduced-motion: reduce) {
  .four__col i.is-you,
  .four__col i.is-alex {
    animation: none;
  }
}

/* 16-convo.css */
/* The Talk step's little chat: old messages from whatsapp, then today's cards. */
.convo {
  list-style: none;
  margin: 1.6rem 0 0;
  padding: 0.9rem 0.8rem;
  width: min(100%, 21rem);
  height: 21rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.45rem;
  overflow: hidden;
  border-radius: 22px;
  background: linear-gradient(180deg, #1c2440, #2c2c52);
  color: #f2e9d8;
  font-size: 0.92rem;
  line-height: 1.3;
  -webkit-mask-image: linear-gradient(transparent, #000 3.2rem);
  mask-image: linear-gradient(transparent, #000 3.2rem);
}
.convo__day {
  align-self: center;
  margin-block: 0.2rem;
  font: 400 0.76rem/1 var(--type);
  letter-spacing: 0.02em;
  opacity: 0.6;
}
.convo__msg {
  max-width: 82%;
  padding: 0.45rem 0.75rem;
  border-radius: 16px;
}
.convo__msg--them {
  align-self: flex-start;
  background: rgba(242, 233, 216, 0.14);
  border-bottom-left-radius: 5px;
}
.convo__msg--you {
  align-self: flex-end;
  background: #a9362b;
  border-bottom-right-radius: 5px;
}
.convo .typed {
  background: rgba(255, 255, 255, 0.16);
  color: inherit;
}
.convo__card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 11.5rem;
  padding: 0.6rem 0.8rem;
}
.convo__card small {
  font: 400 0.7rem/1 var(--type);
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.convo__card b {
  font: 500 1rem/1.15 var(--serif);
}
.convo__card span {
  font-size: 0.78rem;
  opacity: 0.8;
}
.convo__card--song {
  background: linear-gradient(135deg, #b0637e, #e08a4f);
}
.convo__card--film {
  background: linear-gradient(135deg, #3b3f86, #1f2b5a);
}
.convo__card--invite {
  background: #f6eedf;
  color: var(--ink);
}
/* the stamp lands under the invite's words */
.convo__stamp {
  align-self: flex-start;
  margin-top: 0.35rem;
  padding: 0.15rem 0.45rem;
  border: 2px solid var(--postal);
  border-radius: 4px;
  color: var(--postal);
  font: 400 0.75rem/1 var(--type);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-style: normal;
  transform: rotate(-6deg);
}
.convo__voice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-width: 9rem;
}
.convo__voice i {
  flex: 1;
  height: 1.1rem;
  background: repeating-linear-gradient(90deg, currentColor 0 2px, transparent 2px 5px);
  clip-path: polygon(
    0 40%,
    10% 20%,
    20% 45%,
    30% 5%,
    40% 35%,
    50% 15%,
    60% 50%,
    70% 25%,
    80% 40%,
    90% 30%,
    100% 45%,
    100% 55%,
    90% 70%,
    80% 60%,
    70% 75%,
    60% 50%,
    50% 85%,
    40% 65%,
    30% 95%,
    20% 55%,
    10% 80%,
    0 60%
  );
  opacity: 0.85;
}
.convo__voice span {
  font: 400 0.72rem/1 var(--type);
  opacity: 0.8;
}
.convo__again {
  margin-top: 0.7rem;
  align-self: flex-start;
}
.convo__again[hidden] {
  display: none;
}

/* while it plays: each message waits its turn */
.convo--plays > li {
  display: none;
}
.convo--plays > li.is-shown {
  display: flex;
  animation: convo-in 0.35s ease-out both;
}
.convo--plays > .convo__day.is-shown {
  display: block;
}
.convo--plays > .convo__msg.is-shown:not(.convo__card, .convo__voice) {
  display: block;
}
.convo--plays .convo__stamp {
  opacity: 0;
  transform: rotate(-6deg) scale(1.6);
  transition:
    opacity 0.2s,
    transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}
.convo--plays .convo__stamp.is-shown {
  opacity: 1;
  transform: rotate(-6deg);
}
@keyframes convo-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
}

/* 17-two-clocks.css */
/* One day, two clocks: a Wednesday told in Toronto's time and Lisbon's. */
.clocks {
  padding-block: clamp(3rem, 8vw, 5.5rem) 1rem;
}
.clocks h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem);
  line-height: 1.04;
  max-width: 14em;
}
.clocks__lede {
  margin-top: 0.8rem;
  color: var(--ink-soft);
  max-width: var(--measure);
}
.clocks__day {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.moment {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
  background: var(--paper-lit);
  border-radius: 2px;
  box-shadow: var(--rest-shadow);
}
.moment__time {
  display: flex;
  gap: 0.5rem;
  margin: 0;
}
.moment time {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font: 400 0.95rem/1.2 var(--type);
}
.moment time small {
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  opacity: 0.75;
}
.moment time[data-sky='morning'] {
  background: #f9dcc0;
  color: #5a2e1a;
}
.moment time[data-sky='day'] {
  background: #cfe3ef;
  color: #1b3550;
}
.moment time[data-sky='evening'] {
  background: linear-gradient(90deg, #e9967a, #b0637e);
  color: #fff;
}
.moment time[data-sky='night'] {
  background: #1c2440;
  color: #f2e9d8;
}
.moment__ob {
  height: 9rem;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  overflow: hidden;
}
.moment__ob--warm {
  background: linear-gradient(160deg, #f6d7b5, #edb894);
}
.moment__ob--dusk {
  background: linear-gradient(160deg, #e3a17c, #8a4f74);
}
.moment__ob--wood {
  background: #3a2416;
  padding: 0.8rem;
}
.moment__ob--wood img {
  height: 100%;
  width: auto;
  border-radius: 6px;
  transform: rotate(-3deg);
  box-shadow: 0 10px 16px -10px #000;
}
.moment__ob--night {
  background: radial-gradient(circle at 80% 20%, #3b3f86, #111a30 70%);
  flex-direction: column;
  color: #f4a08e;
}
.moment h3 {
  font-size: 1.3rem;
  line-height: 1.15;
}
.moment__text p {
  margin: 0.35rem 0 0;
  font-size: 1rem;
  color: var(--ink-soft);
}

.moment .pol span {
  height: auto;
  padding: 0.15rem 0 0.25rem;
  font-size: 0.85rem;
  line-height: 1.1;
  text-align: center;
  color: var(--ink-soft);
}
.pol--left {
  transform: rotate(-6deg);
}
.pol--right {
  transform: rotate(5deg) translateY(6px);
}
.pol i.pol--river {
  background: linear-gradient(180deg, #9cc3dc, #e8b07a 55%, #4a5f7a);
}

.mini-song {
  position: relative;
  width: 12rem;
  padding: 0.7rem 0.9rem 1.4rem;
  border-radius: 14px;
  color: #fff;
  background: rgba(30, 15, 25, 0.35);
  box-shadow: 0 12px 20px -12px rgba(0, 0, 0, 0.6);
  display: flex;
  flex-direction: column;
}
.mini-song small {
  font: 400 0.7rem/1 var(--type);
  letter-spacing: 0.02em;
  opacity: 0.8;
}
.mini-song b {
  margin-top: 0.3rem;
  font: 500 1.05rem/1.1 var(--serif);
}
.mini-song span {
  font-size: 0.78rem;
  opacity: 0.85;
}
.mini-song em {
  position: absolute;
  left: 0.9rem;
  right: 0.9rem;
  bottom: 0.6rem;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, #fff 38%, rgba(255, 255, 255, 0.3) 38%);
}

.stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1.2rem;
  border: 1.5px dashed rgba(242, 233, 216, 0.6);
  border-radius: 6px;
  color: #f2e9d8;
  transform: rotate(-3deg);
}
.stub small {
  font: 400 0.62rem/1 var(--type);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.75;
}
.stub b {
  margin-top: 0.3rem;
  font: 500 1.15rem/1.1 var(--serif);
}
.stub span {
  font: 400 0.75rem/1.4 var(--type);
  opacity: 0.85;
}
.moment__letter {
  width: 4.2rem;
  height: auto;
  transform: rotate(-6deg);
  filter: drop-shadow(0 8px 10px rgba(0, 0, 0, 0.5));
}

@media (min-width: 760px) {
  .moment {
    grid-template-columns: 11rem minmax(0, 1fr);
    grid-template-areas: 'time time' 'ob text';
    align-items: center;
    column-gap: 1.4rem;
  }
  .moment__time {
    grid-area: time;
  }
  .moment__ob {
    grid-area: ob;
    height: 8rem;
  }
  .moment__text {
    grid-area: text;
  }
}
@media (min-width: 1000px) {
  .clocks__day {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.4rem;
  }
}

/* 18-inside.css */
/* Everything that's in it: a contents page, not a grid of cards. */
.inside {
  padding-block: clamp(3rem, 8vw, 5.5rem) 1rem;
}
.inside h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem);
  line-height: 1.04;
}
.inside > .wrap > .hand {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--postal);
}
.inside__cols {
  margin-top: 1.8rem;
  padding: clamp(1.1rem, 3vw, 2rem);
  background: var(--paper-lit);
  border-radius: 2px;
  box-shadow: var(--rest-shadow);
  display: grid;
  gap: 1.6rem;
}
.inside__part {
  margin: 0;
}
.inside__part dt {
  padding-bottom: 0.35rem;
  margin-bottom: 0.5rem;
  border-bottom: 1px solid var(--rule);
  font: 400 0.85rem/1 var(--type);
  letter-spacing: 0.02em;
  color: var(--postal);
}
.inside__part dd {
  margin: 0;
  padding: 0.28rem 0 0.28rem 1.1rem;
  position: relative;
  font-size: 1.02rem;
  line-height: 1.35;
}
.inside__part dd::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.85em;
  width: 0.45rem;
  height: 1px;
  background: var(--ink-soft);
}
@media (min-width: 760px) {
  .inside__cols {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 2.6rem;
  }
}
@media (min-width: 1100px) {
  .inside__cols {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* 19-why.css */
/* Our story: why Reasons exists, in the owner's words, as a letter on the page. */
.why {
  padding-block: clamp(3rem, 8vw, 5.5rem) 0;
}
.why__grid {
  display: grid;
  gap: 1.4rem;
}
.why h2 {
  font-size: clamp(2rem, 1.2rem + 3.4vw, 3.2rem);
  line-height: 1.04;
}
.why__intro .hand {
  display: inline-block;
  margin-top: 0.4rem;
  color: var(--postal);
}
.why__letter {
  position: relative;
  max-width: 34rem;
  padding: clamp(1.6rem, 4.5vw, 2.6rem) clamp(1.3rem, 4vw, 2.4rem) clamp(1.4rem, 4vw, 2.2rem);
  background: var(--paper-lit);
  border-radius: 2px;
  box-shadow: var(--rest-shadow);
  transform: rotate(-0.4deg);
}
.why__letter p {
  font-size: 1.125rem;
}
.why__seal {
  position: absolute;
  top: -1.1rem;
  right: 1.4rem;
  width: 2.6rem;
  height: 2.6rem;
}
.why__sign {
  display: block;
  text-align: right;
  color: var(--pen-blue);
  font-size: 1.5rem;
}
@media (min-width: 800px) {
  .why__grid {
    grid-template-columns: 1fr 1.6fr;
    align-items: start;
  }
}
