/* The Scraps — marketing site.
 *
 * Design intent: a keepsake box, not a SaaS landing page. Warm paper,
 * archival typography, photographs mounted with tape and annotated by
 * hand. The app is dark because it lives behind a camera; the site is
 * paper because it is the album.
 *
 * No web fonts, no third-party requests, no trackers on this page. That
 * is partly performance and partly the point — a product that promises
 * privacy shouldn't phone four companies to render its own homepage.
 */

/* ---------------------------------------------------------------- tokens */

:root {
  /* Brand navy, carried over from the app. */
  --ink: #16233a;
  --ink-2: #22334f;
  --ink-soft: #46566f;

  /* Surface tokens are deliberately separate from the brand tokens
     above. The navy bands stay navy in both colour schemes, so text on
     them must reference `--on-ink`, never `--paper` — otherwise dark
     mode (where paper becomes dark) renders dark-on-dark. */
  --band-bg: #16233a;
  --on-ink: #faf6ee;
  --brand-mark: #16233a; /* wordmark colour on the page surface */

  /* Paper. The dominant surface. */
  --paper: #faf6ee;
  --paper-2: #f3ecdd;
  --paper-3: #e9dfca;
  --edge: #dccfb4;

  --gold: #8a5d18;   /* 5.6:1 on paper — AA for body text */
  --dot-idle: #9c8a63; /* 3.13:1 on paper — WCAG 1.4.11 for a control */
  --gold-2: #d9a949; /* on navy only: 7.4:1 */
  --rose: #8f4a3d;    /* AA on paper */
  --sage: #4d5c3c;    /* AA on paper */

  --text: #2b2418;
  --text-2: #5d5443;
  --text-3: #6f6757;  /* 5.3:1 on paper */

  --white: #fffdf9;

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua",
    Georgia, serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  /* The wordmark. Snell is macOS; the rest degrade gracefully. */
  --script: "Snell Roundhand", "Savoye LET", "Apple Chancery",
    "Segoe Script", "Brush Script MT", cursive;

  --shadow-lift: 0 1px 2px rgba(43, 36, 24, 0.08),
    0 8px 24px -8px rgba(43, 36, 24, 0.22);
  --shadow-card: 0 1px 1px rgba(43, 36, 24, 0.1),
    0 12px 32px -12px rgba(43, 36, 24, 0.3);

  --measure: 34rem; /* comfortable reading width */
  --gutter: clamp(1.25rem, 5vw, 3rem);
}

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

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

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Paper grain. One inline SVG turbulence, no image request. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.28;
  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='0.8' numOctaves='4'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

main,
header,
footer {
  position: relative;
  z-index: 1;
}

img {
  max-width: 100%;
  /* Load-bearing: the width/height attributes on <img> (which are there
     so the browser reserves space and doesn't shift layout) otherwise
     pin the rendered height and defeat aspect-ratio. */
  height: auto;
  display: block;
}

.wrap {
  width: min(72rem, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.wrap--narrow {
  width: min(46rem, 100%);
}

/* ------------------------------------------------------------ typography */

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.4rem, 6.2vw, 4.1rem);
}

h2 {
  font-size: clamp(1.9rem, 4vw, 2.8rem);
}

h3 {
  font-size: 1.18rem;
  letter-spacing: -0.005em;
}

p {
  margin: 0;
  text-wrap: pretty;
}

.lede {
  font-size: clamp(1.06rem, 2vw, 1.24rem);
  color: var(--text-2);
  max-width: var(--measure);
}

.eyebrow {
  font-family: var(--sans);
  font-size: 0.73rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 1rem;
}

.hand {
  font-family: var(--serif);
  font-style: italic;
  color: var(--text-2);
}

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

header.site {
  padding: 2rem 0 0;
  text-align: center;
}

.wordmark {
  font-family: var(--script);
  font-size: clamp(2.2rem, 5vw, 2.9rem);
  color: var(--brand-mark);
  text-decoration: none;
  display: inline-block;
  line-height: 1.1;
}

.wordmark:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 6px;
  border-radius: 4px;
}

.rule {
  width: 4.5rem;
  height: 1px;
  background: var(--edge);
  border: 0;
  margin: 1rem auto 0;
}

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

.hero {
  padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(3rem, 8vw, 5rem);
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(3rem, 7vw, 4rem);
  align-items: center;
}

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

.hero h1 {
  margin-bottom: 1.2rem;
}

.hero h1 em {
  font-style: italic;
  color: var(--gold);
}

.hero .lede {
  margin-bottom: 2rem;
}

/* --------------------------------------------------------------- waitlist */

.waitlist {
  max-width: 30rem;
}

.waitlist__row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.waitlist input[type="email"] {
  flex: 1 1 14rem;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  padding: 0.85rem 1rem;
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--edge);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(43, 36, 24, 0.06);
}

.waitlist input[type="email"]::placeholder {
  color: var(--text-3);
}

.waitlist input[type="email"]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: var(--gold);
}

.btn {
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--ink);
  border-radius: 10px;
  background: var(--ink);
  color: var(--on-ink);
  cursor: pointer;
  transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease;
  box-shadow: var(--shadow-lift);
}

.btn:hover {
  background: var(--ink-2);
  transform: translateY(-1px);
}

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

.btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.btn[disabled] {
  opacity: 0.55;
  cursor: progress;
  transform: none;
}

.waitlist__note {
  font-size: 0.86rem;
  color: var(--text-3);
  margin-top: 0.35rem;
}

/* Reserve the line so a message doesn't shove the layout. Kept tight:
   empty, this is a gap between the button and the note, and a loose one
   reads as a rendering bug on a phone. */
.waitlist__msg {
  min-height: 1.35rem;
  margin-top: 0.35rem;
  font-size: 0.92rem;
  font-weight: 500;
}

.waitlist__msg[data-state="ok"] {
  color: var(--sage);
}

.waitlist__msg[data-state="err"] {
  color: var(--rose);
}

/* ---------------------------------------------------- scrap (the polaroid) */

.scrap {
  --rot: 0deg;
  background: var(--white);
  padding: 0.6rem 0.6rem 0;
  border-radius: 3px;
  box-shadow: var(--shadow-card);
  transform: rotate(var(--rot));
  position: relative;
  margin: 0;
}

/* Tape. Two strips, deliberately imperfect. */
.scrap::before {
  content: "";
  position: absolute;
  top: -0.7rem;
  left: 50%;
  width: 4.2rem;
  height: 1.5rem;
  transform: translateX(-50%) rotate(-3deg);
  background: linear-gradient(
    100deg,
    rgba(233, 223, 202, 0.75),
    rgba(220, 207, 180, 0.6)
  );
  border-left: 1px solid rgba(255, 255, 255, 0.45);
  border-right: 1px solid rgba(255, 255, 255, 0.45);
}

.scrap img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1px;
  background: var(--paper-3);
}

.scrap figcaption {
  padding: 0.7rem 0.35rem 0.85rem;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.6rem;
}

.scrap .hand {
  font-size: 1rem;
  line-height: 1.3;
}

.scrap time {
  font-size: 0.74rem;
  color: var(--text-3);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* A scrap with no media — just something they said. The app supports
   text-only scraps, and they're often the ones that land hardest. */
.scrap--text blockquote.hand,
.scrap--text blockquote {
  margin: 0;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.6rem 1.4rem;
  font-size: clamp(1.15rem, 3.4vw, 1.4rem);
  line-height: 1.5;
  color: var(--ink);
  border-radius: 1px;
  /* Faint ruled lines, like a notebook page. */
  background-color: var(--paper-2);
  background-image: repeating-linear-gradient(
    to bottom,
    transparent 0,
    transparent 1.68rem,
    rgba(22, 35, 58, 0.07) 1.68rem,
    rgba(22, 35, 58, 0.07) calc(1.68rem + 1px)
  );
}

@media (prefers-color-scheme: dark) {
  .scrap--text blockquote.hand,
.scrap--text blockquote {
    color: var(--text);
    background-image: repeating-linear-gradient(
      to bottom,
      transparent 0,
      transparent 1.68rem,
      rgba(236, 229, 216, 0.09) 1.68rem,
      rgba(236, 229, 216, 0.09) calc(1.68rem + 1px)
    );
  }
}

/* Media-type chip, bottom-left over the image. */
.chip {
  position: absolute;
  left: 1.05rem;
  top: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  background: rgba(13, 20, 33, 0.78);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}

.chip svg {
  width: 0.72rem;
  height: 0.72rem;
  fill: currentColor;
}

/* ------------------------------------------------- hero scrap arrangement */

.stack {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(0.9rem, 2.5vw, 1.5rem);
  max-width: 30rem;
  margin-inline: auto;
}

.stack .scrap:nth-child(1) {
  --rot: -2.5deg;
}
.stack .scrap:nth-child(2) {
  --rot: 2deg;
  margin-top: clamp(1.2rem, 4vw, 2.4rem);
}
.stack .scrap:nth-child(3) {
  --rot: 1.5deg;
}
.stack .scrap:nth-child(4) {
  --rot: -1.8deg;
  margin-top: -0.6rem;
}

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

section {
  padding-block: clamp(3.5rem, 9vw, 6rem);
}

/* Two paper sections in a row would otherwise stack their padding into
   a gap that reads as a missing section. */
.section--tight {
  padding-top: 0;
}

.section-head {
  max-width: var(--measure);
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.section-head p {
  color: var(--text-2);
  margin-top: 0.9rem;
}

/* Navy anchor sections.
 *
 * A band re-points the text tokens rather than restating colours on
 * every descendant. That matters because components move: `.steps p`
 * sets `color: var(--text-2)` at equal specificity to `.band p`, so the
 * moment the steps were placed inside a band they rendered #5d5443 on
 * navy — 2.1:1, effectively invisible. Overriding the tokens fixes that
 * for every component at once, including ones written later. */
.band {
  background: var(--band-bg);
  color: var(--on-ink);
  --text: var(--on-ink);
  --text-2: rgba(250, 246, 238, 0.76);
  --text-3: rgba(250, 246, 238, 0.6);
}

/* ...except for elements that bring their own paper surface with them.
   Those must keep the paper-side tokens or they'd render light text on
   a light card. */
.band .scrap,
.band .gift__card,
.band .phone__notif {
  --text: #2b2418;
  --text-2: #5d5443;
  --text-3: #6f6757;
}

.band h2,
.band h3 {
  color: var(--on-ink);
}

.band p {
  color: var(--text-2);
}

.band .eyebrow {
  color: var(--gold-2);
}

/* ------------------------------------------------------------- carousel */

.carousel {
  position: relative;
}

.carousel__track {
  display: flex;
  gap: clamp(1rem, 3vw, 1.75rem);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  padding: 1.4rem var(--gutter) 2rem;
  margin-inline: calc(var(--gutter) * -1);
  scrollbar-width: none;
}

.carousel__track::-webkit-scrollbar {
  display: none;
}

.carousel__track > * {
  flex: 0 0 clamp(15rem, 62vw, 19rem);
  scroll-snap-align: center;
}

@media (min-width: 48rem) {
  .carousel__track > * {
    scroll-snap-align: start;
  }
}

.carousel__controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.carousel__btn {
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  border: 1px solid var(--edge);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background 0.18s ease, border-color 0.18s ease;
}

.carousel__btn:hover {
  background: var(--paper-2);
  border-color: var(--gold);
}

.carousel__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.carousel__btn svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.band .carousel__btn {
  background: transparent;
  border-color: rgba(250, 246, 238, 0.3);
  color: var(--on-ink);
}

.band .carousel__btn:hover {
  background: rgba(250, 246, 238, 0.1);
  border-color: var(--gold-2);
}

/* Dot spacing is load-bearing, not aesthetic. The painted dots are
   deliberately small, so each one carries a 24px invisible touch target
   (see ::before) and the 1rem gap puts adjacent centres exactly 24px
   apart — the two targets meet without overlapping, which is what
   WCAG 2.5.8's spacing exception asks for. Tighten the gap and taps
   start landing on the wrong dot. */
.carousel__dots {
  display: flex;
  gap: 1rem;
}

.carousel__dot {
  position: relative;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  border: 0;
  padding: 0;
  /* Not --edge. That token is for hairline rules, where being nearly
     invisible is the point; on an 8px control it measured 1.43:1 against
     paper, less than half of WCAG 1.4.11's 3:1 for a control's visual
     state. The flat fill is the entire dot — no border, no shadow — so
     the fill has to carry the contrast on its own. #9c8a63 is 3.13:1. */
  background: var(--dot-idle);
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.carousel__dot::before {
  content: "";
  position: absolute;
  inset: -0.5rem;
}

.carousel__dot[aria-current="true"] {
  background: var(--gold);
  transform: scale(1.35);
}

.band .carousel__dot {
  background: rgba(250, 246, 238, 0.28);
}

.band .carousel__dot[aria-current="true"] {
  background: var(--gold-2);
}

.carousel__dot:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

/* ----------------------------------------------------------------- steps */

.steps {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  grid-template-columns: 1fr;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.steps li {
  counter-increment: step;
}

.steps li::before {
  content: counter(step);
  font-family: var(--serif);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gold);
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--edge);
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-bottom: 0.9rem;
}

.band .steps li::before {
  border-color: rgba(250, 246, 238, 0.28);
  color: var(--gold-2);
}

.steps h3 {
  margin-bottom: 0.4rem;
}

.steps p {
  color: var(--text-2);
  font-size: 0.98rem;
}

/* --------------------------------------------------------------- promise */

.promise {
  display: grid;
  gap: clamp(1.4rem, 4vw, 2rem);
  grid-template-columns: 1fr;
  list-style: none;
  padding: 0;
  margin: 0;
}

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

.promise li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}

.promise svg {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.15rem;
  fill: none;
  stroke: var(--gold-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.promise strong {
  display: block;
  font-weight: 650;
  margin-bottom: 0.15rem;
}

.promise p {
  font-size: 0.96rem;
}

/* ------------------------------------------------------------------ gift */

.gift {
  display: grid;
  gap: clamp(2rem, 6vw, 3.5rem);
  align-items: center;
  grid-template-columns: 1fr;
}

@media (min-width: 58rem) {
  .gift {
    grid-template-columns: 1fr 1.05fr;
  }
}

.gift__still + .gift__card {
  margin-top: clamp(1.5rem, 4vw, 2rem);
}

.gift__card {
  background: var(--paper-2);
  border: 1px solid var(--edge);
  border-radius: 14px;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  box-shadow: var(--shadow-lift);
  position: relative;
}

.gift__card .hand {
  font-size: 1.1rem;
  line-height: 1.5;
}

.gift__card cite {
  display: block;
  margin-top: 1rem;
  font-style: normal;
  font-size: 0.85rem;
  color: var(--text-3);
}

/* -------------------------------------------------------------------- faq */

.faq {
  display: grid;
  gap: 0;
  max-width: var(--measure);
}

.faq details {
  border-top: 1px solid var(--edge);
  padding: 1.1rem 0;
}

.faq details:last-of-type {
  border-bottom: 1px solid var(--edge);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--gold);
  line-height: 1;
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq summary:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
  border-radius: 3px;
}

.faq p {
  color: var(--text-2);
  font-size: 0.97rem;
  padding-top: 0.7rem;
}

/* ----------------------------------------------------------------- closer */

.closer {
  text-align: center;
}

.closer .waitlist {
  margin-inline: auto;
}

.closer .waitlist__note,
.closer .waitlist__msg {
  text-align: center;
}

.band .waitlist input[type="email"] {
  background: rgba(250, 246, 238, 0.96);
  border-color: transparent;
  /* Load-bearing: the input sits on a cream field inside a navy band in
     BOTH schemes, so the text colour must be pinned dark here. Inheriting
     var(--text) made dark mode render cream-on-cream (1.07:1) — a typed
     address was literally invisible. */
  color: #2b2418;
}

.band .waitlist input[type="email"]::placeholder {
  color: #857c6b;
}

.band .btn {
  background: var(--gold-2);
  border-color: var(--gold-2);
  color: #2a1f0c;
}

.band .btn:hover {
  background: #e2ae57;
}

.band .waitlist__note {
  color: rgba(250, 246, 238, 0.6);
}

.band .waitlist__msg[data-state="ok"] {
  color: #a9c98d;
}

.band .waitlist__msg[data-state="err"] {
  color: #e6a49a;
}

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

footer.site {
  background: var(--band-bg);
  color: rgba(250, 246, 238, 0.66);
  padding-block: 2.5rem;
  font-size: 0.9rem;
  text-align: center;
}

footer.site nav {
  margin-bottom: 0.8rem;
  display: flex;
  gap: 1.4rem;
  justify-content: center;
  flex-wrap: wrap;
}

footer.site a {
  color: rgba(250, 246, 238, 0.8);
  text-decoration: none;
}

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

footer.site a:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 3px;
}

.footer-mark {
  font-family: var(--script);
  font-size: 1.5rem;
  color: rgba(250, 246, 238, 0.5);
  display: block;
  margin-bottom: 0.5rem;
}

/* ------------------------------------------------------- prose (legal etc) */

main.prose {
  padding-block: clamp(2.5rem, 6vw, 4rem);
}

.prose h1 {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  margin-bottom: 0.35rem;
}

.prose .updated {
  color: var(--text-3);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2.2rem 0 0.6rem;
}

.prose p,
.prose li {
  color: var(--text-2);
}

.prose p + p {
  margin-top: 0.85rem;
}

.prose ul {
  padding-left: 1.25rem;
  margin: 0.7rem 0;
}

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

.prose a {
  color: var(--gold);
  text-underline-offset: 2px;
}

.prose a:hover {
  color: var(--text);
}

.prose strong {
  color: var(--text);
  font-weight: 650;
}

/* --------------------------------------------------------------- 404 page */

.lost {
  text-align: center;
  padding-block: clamp(4rem, 12vw, 7rem);
}

.lost p {
  color: var(--text-2);
  max-width: 30rem;
  margin: 0.9rem auto 0;
}

.lost a {
  color: var(--gold);
}

/* -------------------------------------------------------------- utilities */

.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--band-bg);
  color: var(--on-ink);
  padding: 0.75rem 1.25rem;
  border-radius: 0 0 8px 0;
  z-index: 100;
}

.skip:focus {
  left: 0;
}

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

/* Gentle reveal. Opt-in via JS so no-JS users see everything immediately. */
.js .reveal {
  opacity: 0;
  transform: translateY(14px);
}

.js .reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-reduced-motion: reduce) {
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ------------------------------------------------------------- dark mode */

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #14181f;
    --paper-2: #1b2029;
    --paper-3: #232a35;
    --edge: #333c4a;
    --white: #1d232d;

    --text: #ece5d8;
    --text-2: #b3ac9d;
    --text-3: #9c9484;

    --ink: #1b2a45;
    --ink-2: #24354f;
    --band-bg: #0d131e;
    --brand-mark: #ece5d8;
    --gold: #d3a04a;   /* 7.7:1 on dark paper */
    --rose: #e08a76;   /* 7.0:1 — the light-mode rose is 2.9:1 here */
    --sage: #9dbd7a;   /* 8.7:1 */
    --dot-idle: #5b697f; /* 3.2:1 on dark paper; the light value is 1.5:1 */
  }

  body::before {
    opacity: 0.4;
  }

  .scrap {
    box-shadow: 0 1px 1px rgba(0, 0, 0, 0.5), 0 14px 34px -12px rgba(0, 0, 0, 0.7);
  }

  .scrap::before {
    background: linear-gradient(
      100deg,
      rgba(120, 128, 142, 0.35),
      rgba(90, 98, 112, 0.28)
    );
  }

  .btn {
    background: var(--gold);
    border-color: var(--gold);
    color: #17120a;
  }

  .btn:hover {
    background: #e2ae57;
  }
}

/* ==================================================================== */
/* Media slots                                                          */
/*                                                                      */
/* Every visual on this page is a named slot. The markup ships an        */
/* abstract placeholder; app.js upgrades a slot to real photography or   */
/* video when media/manifest.json says the file exists. Slots reserve    */
/* their aspect ratio up front, so an upgrade never shifts the layout.   */
/* See docs/website-media-prompts.md.                                    */
/* ==================================================================== */

.slot {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--paper-3);
  /* Contain the slot's internal layering (placeholder 0, media 1, video
     scrim 2). Without this the media's z-index competes in the nearest
     ancestor stacking context — the rotated .scrap — and paints over the
     duration chip, which is a sibling of the slot, not a child. */
  isolation: isolate;
  /* Every slot declares its ratio so there is zero CLS whether the real
     asset arrives, arrives late, or never arrives at all. */
  aspect-ratio: var(--slot-ratio, 1);
}

.slot > img,
.slot > video,
.slot > picture {
  display: block;
  width: 100%;
  height: 100%;
  /* Above the placeholder. The placeholder is absolutely positioned and
     comes first in the DOM, so without this it paints on top of the real
     photograph — which is exactly what happens for a lazy-loaded image
     whose `load` event arrives after the slot is already on screen. */
  position: relative;
  z-index: 1;
}

.slot > picture > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.slot > img,
.slot > video {
  object-fit: cover;
}

/* The placeholder is the same abstract image the page ships with; it is
   meant to look like a deliberate choice, not a missing file. */
.slot__placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.slot--filled .slot__placeholder {
  display: none;
}

/* Faint corner tick so the team can see at a glance which slots are
   still placeholders. Never shown to visitors — only when the page is
   loaded with ?slots (see app.js). */
.slots-debug .slot:not(.slot--filled)::after {
  content: attr(data-slot);
  position: absolute;
  left: 0;
  bottom: 0;
  font: 600 10px/1 var(--sans);
  letter-spacing: 0.06em;
  padding: 4px 6px;
  background: rgba(22, 35, 58, 0.85);
  color: #fff;
  text-transform: uppercase;
}

/* ---- video ---- */

.slot video {
  /* Videos are decorative and muted; never let one steal a tap. */
  pointer-events: none;
}

/* A soft warm wash over video so it sits in the palette rather than
   fighting it, and so caption text stays legible over any frame. */
.slot--video::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    rgba(22, 35, 58, 0) 55%,
    rgba(22, 35, 58, 0.28) 100%
  );
}

/* ==================================================================== */
/* The reckoning — the "vastness" beat                                  */
/*                                                                      */
/* Awe research (Keltner & Haidt) describes two ingredients: perceived  */
/* vastness, and a need to accommodate it. For this product the vast    */
/* thing is not a landscape, it is TIME — how much of a childhood goes  */
/* by unrecorded. This section is the only place on the page that tries */
/* to make that felt rather than argued.                                */
/* ==================================================================== */

.reckoning {
  text-align: center;
}

.reckoning__figure {
  font-family: var(--serif);
  font-size: clamp(3.4rem, 15vw, 7rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
  color: var(--on-ink);
  font-variant-numeric: tabular-nums;
  display: block;
}

.reckoning__unit {
  display: block;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-2);
  margin-top: 0.9rem;
}

.reckoning p {
  max-width: 30rem;
  margin: 1.75rem auto 0;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
}

/* A childhood, at one dot per month. 216 dots = eighteen years. The
   point of the visual is that the lit ones are few. */
.years {
  display: grid;
  grid-template-columns: repeat(18, 1fr);
  gap: clamp(2px, 0.8vw, 5px);
  max-width: 34rem;
  margin: clamp(2rem, 6vw, 3rem) auto 0;
}

.years span {
  aspect-ratio: 1;
  border-radius: 50%;
  background: rgba(250, 246, 238, 0.13);
}

.years span[data-lit] {
  background: var(--gold-2);
}

.years__key {
  font-size: 0.82rem;
  color: rgba(250, 246, 238, 0.6);
  margin-top: 1.1rem;
}

/* ==================================================================== */
/* The phone frame — showing the actual product                         */
/*                                                                      */
/* Trust research is consistent that showing the real thing beats        */
/* describing it. This is a drawn iPhone silhouette holding the memory   */
/* video slot, so the "one year ago today" claim has something concrete  */
/* attached to it.                                                       */
/* ==================================================================== */

.phone {
  --phone-radius: 2.4rem;
  position: relative;
  width: min(15rem, 62vw);
  margin-inline: auto;
  padding: 0.55rem;
  border-radius: var(--phone-radius);
  background: linear-gradient(160deg, #2c3852, #131c2c);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.28), 0 30px 60px -24px rgba(0, 0, 0, 0.6);
}

.phone__screen {
  position: relative;
  border-radius: calc(var(--phone-radius) - 0.55rem);
  overflow: hidden;
  background: #0d131e;
  aspect-ratio: 9 / 19.5;
}

.phone__screen .slot {
  --slot-ratio: 9 / 19.5;
  height: 100%;
  background: #0d131e;
}

/* The notification, drawn — not a screenshot, so it can't go stale. */
.phone__notif {
  position: absolute;
  z-index: 2;
  left: 0.5rem;
  right: 0.5rem;
  top: 0.9rem;
  display: flex;
  gap: 0.55rem;
  align-items: flex-start;
  padding: 0.6rem 0.7rem;
  border-radius: 1rem;
  background: rgba(248, 246, 242, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 20px -6px rgba(0, 0, 0, 0.5);
  text-align: left;
}

.phone__icon {
  width: 1.35rem;
  height: 1.35rem;
  flex: 0 0 auto;
  border-radius: 0.36rem;
  /* The app icon is navy in both schemes — this is a drawing of an iOS
     notification, not a page surface, so it must not follow --ink. */
  background: #16233a;
  color: #faf6ee;
  display: grid;
  place-items: center;
  font-family: var(--script);
  font-size: 1.15rem;
  line-height: 1;
  /* Snell's lowercase s sits high in its em box; nudge it back to
     optical centre. */
  padding-bottom: 0.12rem;
}

/* Child combinators, not descendants: the app icon is also a <span>
   inside .phone__notif, and a bare `.phone__notif span` rule painted it
   10.88px #4a4235 — dark-on-navy, i.e. blank. */
.phone__notif > div > strong {
  display: block;
  font-size: 0.7rem;
  color: #1b1710;
  letter-spacing: -0.01em;
}

.phone__notif > div > span {
  display: block;
  font-size: 0.68rem;
  line-height: 1.35;
  color: #4a4235;
}

/* ==================================================================== */
/* "What this isn't" — the trust ledger                                 */
/*                                                                      */
/* Stating plainly what a product does NOT do is one of the strongest    */
/* available trust signals, precisely because it costs something to say. */
/* ==================================================================== */

.ledger {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  max-width: var(--measure);
}

.ledger li {
  display: flex;
  gap: 0.9rem;
  align-items: baseline;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--edge);
  font-size: 1rem;
}

.ledger li:first-child {
  border-top: 1px solid var(--edge);
}

.ledger .no {
  flex: 0 0 auto;
  font-family: var(--serif);
  font-style: italic;
  color: var(--rose);
  min-width: 2.7rem;
}

/* ---- founder note ---- */

.note {
  display: grid;
  gap: clamp(1.5rem, 4vw, 2.5rem);
  align-items: start;
  grid-template-columns: 1fr;
  /* The wrap is 72rem; unconstrained, this paragraph would run to
     ~1100px on a desktop. Portrait column plus a readable measure. */
  max-width: 48rem;
}

@media (min-width: 46rem) {
  .note {
    grid-template-columns: 7rem 1fr;
  }
}

.note__portrait {
  --slot-ratio: 1;
  width: 7rem;
  border-radius: 50%;
  box-shadow: var(--shadow-lift);
}

.note__body p + p {
  margin-top: 0.9rem;
}

.note__sign {
  font-family: var(--script);
  font-size: 1.9rem;
  color: var(--brand-mark);
  margin-top: 1.2rem;
  display: block;
}

.note__role {
  font-size: 0.85rem;
  color: var(--text-3);
}

/* ==================================================================== */
/* Mobile refinements                                                   */
/* ==================================================================== */

@media (max-width: 45.99rem) {
  /* Thumb reach: the primary action should be full width and easy to
     hit one-handed, and the field above it shouldn't be a cramped
     two-column squeeze. */
  .waitlist__row {
    flex-direction: column;
  }

  .waitlist input[type="email"],
  .waitlist .btn {
    width: 100%;
    /* The desktop rule sets `flex: 1 1 14rem`; once the row is a column
       that basis becomes a 14rem-TALL input. Reset it. */
    flex: 0 0 auto;
    /* 48px minimum touch target (WCAG 2.5.5 / Apple HIG). */
    min-height: 3rem;
  }

  /* The hero mount is decoration; on a phone it should sit under the
     ask rather than pushing it below the fold. */
  .hero {
    gap: 2.25rem;
  }

  .stack {
    max-width: 22rem;
  }

  /* Long handwritten captions wrap awkwardly beside a date at this
     width; stack them. */
  .scrap figcaption {
    flex-direction: column;
    gap: 0.15rem;
  }

  .scrap time {
    font-size: 0.7rem;
  }

  .carousel__btn {
    width: 3rem;
    height: 3rem;
  }

}

/* Very narrow phones (320px). Nothing may overflow. */
@media (max-width: 22.5rem) {
  :root {
    --gutter: 1rem;
  }

  .years {
    grid-template-columns: repeat(12, 1fr);
  }
}

/* ==================================================================== */
/* Slots inside a scrap                                                 */
/*                                                                      */
/* The scrap used to hold a bare <img>. It now holds a slot, which is    */
/* the thing that reserves the square and gets upgraded. Both rules are  */
/* kept: other pages still mount plain images in scraps.                 */
/* ==================================================================== */

.scrap .slot {
  --slot-ratio: 1;
  border-radius: 1px;
}

.scrap .slot__placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==================================================================== */
/* Film strip — the cinematic beat                                      */
/*                                                                      */
/* Full-bleed, no text over the image. Overlaid copy would mean the      */
/* layout depends on what the generated footage happens to look like;    */
/* this way the frame can be swapped for anything and still work.        */
/* ==================================================================== */

.film {
  background: var(--band-bg);
  padding-block: clamp(2rem, 5vw, 3.5rem);
  overflow: hidden;
}

.film__frame {
  width: min(84rem, 100%);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.film .slot {
  /* Wide and cinematic on a desktop; nearly square on a phone, where a
     21:9 letterbox would be a 60px-tall sliver. */
  --slot-ratio: 4 / 5;
  background: #0d131e;
  border-radius: 4px;
  box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.8);
}

@media (min-width: 40rem) {
  .film .slot {
    --slot-ratio: 16 / 9;
  }
}

@media (min-width: 70rem) {
  .film .slot {
    --slot-ratio: 21 / 9;
  }
}

.film__caption {
  text-align: center;
  margin: 1.4rem 0 0;
  font-size: 1.05rem;
  color: rgba(250, 246, 238, 0.62);
}

/* ==================================================================== */
/* How it works — steps beside the phone                                */
/* ==================================================================== */

.works {
  display: grid;
  gap: clamp(2.5rem, 7vw, 4rem);
  align-items: center;
  grid-template-columns: 1fr;
}

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

  /* Beside the phone the steps read better as a vertical sequence than
     as three side-by-side columns. */
  .works .steps {
    grid-template-columns: 1fr;
    gap: 2.2rem;
  }

  /* One wide column would otherwise run body copy to ~750px. */
  .works .steps p {
    max-width: var(--measure);
  }
}

/* ==================================================================== */
/* Trust ledger                                                         */
/* ==================================================================== */

.trust {
  margin-top: clamp(3rem, 7vw, 4.5rem);
}

.trust h3 {
  font-size: clamp(1.3rem, 3.2vw, 1.7rem);
  margin-bottom: 1.2rem;
}

/* ==================================================================== */
/* Gift still                                                           */
/* ==================================================================== */

.gift__still {
  max-width: 20rem;
  margin: 0 auto 2rem;
}

.gift__still figcaption {
  justify-content: center;
}

/* ==================================================================== */
/* Links in body copy                                                   */
/*                                                                      */
/* The legal/support pages get theirs from `.prose`. The home page has  */
/* links too — in the FAQ, the founder note, the ledger — and without   */
/* this they render as default browser blue on warm paper.              */
/* ==================================================================== */

main p a,
main li a,
main figcaption a {
  color: var(--gold);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
  text-decoration-color: color-mix(in srgb, var(--gold) 45%, transparent);
  transition: text-decoration-color 0.18s ease;
}

main p a:hover,
main li a:hover {
  text-decoration-color: currentColor;
}

main p a:focus-visible,
main li a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 2px;
}

/* On the navy bands the paper-surface gold is far too dark. */
.band p a,
.band li a {
  color: var(--gold-2);
  text-decoration-color: color-mix(in srgb, var(--gold-2) 45%, transparent);
}

.band p a:focus-visible,
.band li a:focus-visible {
  outline-color: var(--gold-2);
}

/* ==================================================================== */
/* No-JS waitlist                                                        */
/*                                                                       */
/* Nothing to hide here any more, which is the point. The form carries a */
/* real method and action, so a submit JavaScript didn't intercept is a  */
/* POST to the API and a 303 back to /thanks — it works rather than      */
/* merely failing safely.                                                */
/*                                                                       */
/* The previous version hid the form via `html:not(.js)` and revealed it */
/* from an inline head script. That conflated "scripting is enabled"     */
/* with "app.js ran": a content blocker, an edge 404 on app.js, or a     */
/* throw before the submit handler was attached all left a visible,      */
/* unintercepted form whose native submit was a GET — putting the        */
/* subscriber's address in the URL bar and their history. Structure      */
/* beats a conditional here.                                             */
/* ==================================================================== */
