/* Sunday Strip, angle "abroad".
   Tokens: OpenDesign design-systems/paper, bound as :root and adapted on purpose
   (see ../README.md): riso blue ink as the foreground, one warm red accent,
   Bitter + Patrick Hand, smaller print-like radii, light theme only. */

@font-face {
  font-family: "Bitter";
  src: url("../fonts/bitter-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Patrick Hand";
  src: url("../fonts/patrick-hand-latin-400-normal.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;

  /* paper, adapted: off white stock, riso blue ink, warm red ink */
  --bg: #f6f0e1;
  --surface: #fcfaf0;
  --surface-warm: #efe5cd;
  --fg: #1d2b64;
  --fg-2: #39457a;
  --muted: #5a6290;
  --meta: #a83026;
  --border: #d9cfb6;
  --border-soft: #e9e0c9;
  --accent: #bf3a2b;
  --accent-ink: #a83026;
  --accent-on: #ffffff;
  --accent-hover: color-mix(in oklab, var(--accent), black 8%);
  --accent-active: color-mix(in oklab, var(--accent), black 14%);
  --blue-tint: #e3e5f0;
  --red-tint: #f6e0d5;
  --success: #2f5d3a;
  --danger: #a83026;

  --font-display: "Bitter", Georgia, "Times New Roman", serif;
  --font-body: "Bitter", Georgia, "Times New Roman", serif;
  --font-hand: "Patrick Hand", "Comic Sans MS", "Segoe Print", cursive;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1.0625rem;
  --text-lg: 1.25rem;
  --text-xl: 1.75rem;
  --text-2xl: clamp(2rem, 1.35rem + 2.3vw, 3rem);
  --text-3xl: clamp(2.6rem, 1.5rem + 4.2vw, 4.4rem);
  --leading-body: 1.62;
  --leading-tight: 1.06;
  --tracking-display: -0.025em;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;
  --section-y: clamp(56px, 4rem + 4vw, 112px);

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-pill: 9999px;
  --elev-ring: 0 0 0 1px var(--border);
  --elev-raised: 0 18px 42px rgba(29, 43, 100, 0.12), 0 2px 6px rgba(29, 43, 100, 0.06);
  --elev-low: 0 6px 18px rgba(29, 43, 100, 0.1);
  --focus-ring: 0 0 0 3px var(--surface), 0 0 0 6px var(--fg);

  --motion-fast: 160ms;
  --motion-base: 260ms;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-standard: cubic-bezier(0.2, 0, 0, 1);

  --container-max: 1180px;
  --gutter: clamp(18px, 4vw, 36px);

  --airmail: repeating-linear-gradient(
    -45deg,
    var(--accent) 0 12px,
    var(--surface) 12px 19px,
    var(--fg) 19px 31px,
    var(--surface) 31px 38px
  );
}

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

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-body);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

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

img {
  height: auto;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-display);
  margin: 0;
  text-wrap: balance;
  color: var(--fg);
}

h1 {
  font-size: var(--text-3xl);
  font-weight: 800;
}

h2 {
  font-size: var(--text-2xl);
  font-weight: 750;
}

h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.25;
}

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

a {
  color: var(--fg);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.2em;
}

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

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

.skip {
  position: absolute;
  left: var(--space-4);
  top: var(--space-4);
  z-index: 50;
  padding: var(--space-2) var(--space-4);
  background: var(--fg);
  color: var(--surface);
  border-radius: var(--radius-sm);
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

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

.section {
  padding-block: var(--section-y);
}

.airmail-edge {
  height: 7px;
  background: var(--airmail);
}

.tabular {
  font-variant-numeric: tabular-nums;
}

/* Buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-6);
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--motion-fast) var(--ease-out);
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: 0 2px 0 var(--accent-active), var(--elev-low);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-primary:active {
  background: var(--accent-active);
}

.btn-small {
  min-height: 42px;
  padding: 0 var(--space-4);
  font-size: var(--text-sm);
}

.link-secondary {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-weight: 650;
  color: var(--fg);
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--fg) 35%, transparent);
  text-decoration-thickness: 2px;
  text-underline-offset: 0.3em;
  white-space: nowrap;
}

.link-secondary:hover {
  text-decoration-color: var(--accent);
}

.tag {
  display: inline-block;
  padding: 1px 8px 2px;
  border: 1.5px solid currentColor;
  border-radius: var(--radius-pill);
  color: var(--accent-ink);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.5;
  text-transform: uppercase;
  vertical-align: 0.15em;
  white-space: nowrap;
}

/* Header */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--bg);
  border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  min-height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--fg);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.brand img {
  width: 34px;
  height: 34px;
}

.nav-cta {
  transition: opacity var(--motion-base) var(--ease-out), transform var(--motion-base) var(--ease-out), visibility 0s;
}

.nav-cta.is-waiting {
  opacity: 0;
  transform: translateY(-6px);
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--motion-fast) var(--ease-out), transform var(--motion-fast) var(--ease-out), visibility 0s var(--motion-fast);
}

/* Hero */

.hero {
  padding-block: var(--space-8) var(--section-y);
}

.hero-grid {
  display: grid;
  gap: var(--space-12);
  align-items: center;
}

.hero-copy {
  display: grid;
  gap: var(--space-5);
  justify-items: start;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--accent-ink);
  font-weight: 700;
  font-size: var(--text-sm);
  letter-spacing: 0.02em;
}

.kicker::before {
  content: "";
  width: 22px;
  height: 14px;
  flex: none;
  border-radius: 2px;
  background: var(--airmail);
  background-size: 54px 54px;
  box-shadow: 0 0 0 1px var(--border);
}

.hero h1 {
  max-width: 11ch;
}

.lede {
  max-width: 30ch;
  font-size: clamp(1.15rem, 1rem + 0.6vw, 1.4rem);
  line-height: 1.5;
  color: var(--fg-2);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3) var(--space-6);
  margin-top: var(--space-2);
}

.fear {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 34ch;
  font-size: var(--text-sm);
  color: var(--muted);
}

.fear::before {
  content: "";
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  border: 1.5px solid var(--fg-2);
  background:
    linear-gradient(var(--fg-2), var(--fg-2)) 5px 9px / 4px 1.5px no-repeat,
    linear-gradient(var(--fg-2), var(--fg-2)) 8px 5px / 1.5px 6px no-repeat;
}

.hero-visual {
  position: relative;
  max-width: 600px;
  width: 100%;
  justify-self: center;
}

.postcard {
  position: relative;
  margin: 0;
  padding: 11px;
  border-radius: var(--radius-sm);
  background: var(--airmail);
  box-shadow: var(--elev-raised);
  transform: rotate(1.2deg);
}

.postcard-inner {
  padding: 8px;
  background: var(--surface);
  border-radius: var(--radius-xs);
}

.postcard-inner img {
  width: 100%;
  border-radius: 2px;
}

.stamp {
  position: absolute;
  top: -22px;
  right: -10px;
  width: 92px;
  height: auto;
  transform: rotate(7deg);
  filter: drop-shadow(0 4px 8px rgba(29, 43, 100, 0.18));
}

.postmark {
  position: absolute;
  top: 26px;
  right: 74px;
  width: 116px;
  height: auto;
  transform: rotate(-14deg);
  opacity: 0.85;
  mix-blend-mode: multiply;
}

.clocks {
  position: relative;
  display: flex;
  gap: var(--space-3);
  margin: -34px var(--space-4) 0;
}

.clock-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex: 1 1 0;
  min-width: 0;
  padding: 10px 14px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-low);
}

.clock-card.is-them {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), var(--elev-low);
}

.clock {
  flex: none;
  width: 52px;
  height: 52px;
}

.clock-face {
  fill: var(--surface);
  stroke: var(--fg);
  stroke-width: 5;
}

.clock-ticks {
  stroke: var(--fg);
  stroke-width: 5;
  stroke-linecap: round;
}

.hand {
  stroke: var(--fg);
  stroke-linecap: round;
  transform-box: view-box;
  transform-origin: 50px 50px;
}

.hand-hour {
  stroke-width: 7;
  transform: rotate(var(--h));
}

.hand-min {
  stroke-width: 5;
}

.clock-pin {
  fill: var(--accent);
}

.is-you .clock-face {
  fill: var(--fg);
}

.is-you .clock-ticks,
.is-you .hand {
  stroke: var(--surface);
}

.is-you {
  --h: 120deg;
}

.is-them {
  --h: 270deg;
}

.clock-text {
  display: grid;
  line-height: 1.2;
  min-width: 0;
}

.clock-city {
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.clock-time {
  font-size: 1.2rem;
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.clock-note {
  font-family: var(--font-hand);
  font-size: 1.1rem;
  color: var(--fg-2);
  white-space: nowrap;
}

.is-them .clock-note {
  color: var(--accent-ink);
}

@media (prefers-reduced-motion: no-preference) {
  .hand-min {
    animation: hand-spin 1.8s var(--ease-out) 0.35s both;
  }

  .hand-hour {
    animation: hand-settle 1.8s var(--ease-out) 0.35s both;
  }

  .postcard {
    animation: card-in 900ms var(--ease-out) 0.05s both;
  }

  .stamp {
    animation: stamp-in 700ms var(--ease-out) 0.55s both;
  }
}

@keyframes hand-spin {
  from {
    transform: rotate(-720deg);
  }
  to {
    transform: rotate(0deg);
  }
}

@keyframes hand-settle {
  from {
    transform: rotate(calc(var(--h) - 60deg));
  }
  to {
    transform: rotate(var(--h));
  }
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(18px) rotate(3deg);
  }
  to {
    opacity: 1;
    transform: rotate(1.2deg);
  }
}

@keyframes stamp-in {
  from {
    opacity: 0;
    transform: scale(1.25) rotate(0deg);
  }
  to {
    opacity: 1;
    transform: rotate(7deg);
  }
}

/* The call */

.call {
  background: var(--surface-warm);
}

.call-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.call-copy {
  display: grid;
  gap: var(--space-5);
  max-width: 34rem;
}

.call-copy p {
  color: var(--fg-2);
  font-size: 1.125rem;
}

.call-card {
  margin: 0;
  max-width: 30rem;
  width: 100%;
  justify-self: center;
  padding: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  box-shadow: var(--elev-raised);
}

.call-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-3);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--fg-2);
}

.call-dur {
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 600;
}

.bubbles {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-3);
}

.bubbles li {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 1rem;
  line-height: 1.4;
}

.bubbles .who {
  display: block;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.bubbles .them {
  justify-self: start;
  background: var(--blue-tint);
  border-bottom-left-radius: 4px;
}

.bubbles .you {
  justify-self: end;
  background: var(--red-tint);
  border-bottom-right-radius: 4px;
}

.bubbles .you .who {
  color: var(--accent-ink);
}

.scribble {
  margin-top: var(--space-5);
  font-family: var(--font-hand);
  font-size: 1.4rem;
  line-height: 1.25;
  color: var(--accent-ink);
  transform: rotate(-1.5deg);
}

/* Example strip */

.strip-head {
  display: grid;
  gap: var(--space-4);
  max-width: 44rem;
  margin-bottom: var(--space-10);
}

.strip-head p:last-child {
  color: var(--fg-2);
  font-size: 1.125rem;
}

.badge-stamp {
  justify-self: start;
  padding: 4px 12px;
  border: 2px solid var(--accent-ink);
  border-radius: var(--radius-xs);
  color: var(--accent-ink);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  transform: rotate(-2deg);
}

.strip-sheet {
  padding: clamp(14px, 2.4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--elev-raised);
}

.strip-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  padding-bottom: var(--space-3);
  margin-bottom: var(--space-5);
  border-bottom: 2.5px solid var(--fg);
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.2;
}

.strip-bar span:last-child {
  font-size: 1.2rem;
  color: var(--accent-ink);
}

.panels {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: var(--space-4);
}

.panel figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  border: 2.5px solid var(--fg);
  background: var(--surface);
}

.caption {
  flex: 1 0 auto;
  padding: 10px 12px 12px;
  border-bottom: 2.5px solid var(--fg);
  background: #fbf2dc;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1.28;
  color: var(--fg);
}

.panel img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.hooks {
  display: grid;
  gap: var(--space-3);
  margin-top: var(--space-6);
  padding-top: var(--space-5);
  border-top: 1.5px dashed var(--border);
}

.hooks-title {
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.2;
  color: var(--accent-ink);
}

.hooks ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-3);
}

.hooks li {
  padding: 5px 14px 6px;
  border: 1.5px dashed var(--accent-ink);
  border-radius: var(--radius-pill);
  background: var(--bg);
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1.3;
}

.lang-note {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2) var(--space-3);
  margin-top: var(--space-5);
  color: var(--fg-2);
}

/* How it works */

.how {
  background: var(--surface-warm);
}

.how-intro {
  display: grid;
  gap: var(--space-8);
  align-items: center;
}

.how-copy {
  display: grid;
  gap: var(--space-4);
  max-width: 30rem;
}

.how-copy p {
  color: var(--fg-2);
  font-size: 1.125rem;
}

.photo {
  margin: 0;
  padding: 10px 10px 0;
  background: var(--surface);
  border-radius: var(--radius-xs);
  box-shadow: var(--elev-raised);
  transform: rotate(-1deg);
}

.photo img {
  width: 100%;
}

.photo figcaption {
  padding: 8px 4px 10px;
  font-family: var(--font-hand);
  font-size: 1.2rem;
  line-height: 1.2;
  color: var(--fg-2);
}

.timeline {
  list-style: none;
  margin: var(--space-12) 0 0;
  padding: 0;
  display: grid;
  gap: var(--space-6);
  position: relative;
}

.timeline-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) var(--space-5);
  margin-top: var(--space-12);
  font-size: var(--text-sm);
  color: var(--fg-2);
}

.timeline-legend span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.timeline-legend span::before {
  content: "";
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--fg);
}

.timeline-legend .legend-them::before {
  background: var(--accent);
}

.timeline-legend + .timeline {
  margin-top: var(--space-6);
}

.moment {
  position: relative;
  display: grid;
  align-content: start;
  gap: var(--space-2);
  padding: 0 0 0 var(--space-6);
  border-left: 2px dashed color-mix(in srgb, var(--fg) 40%, transparent);
}

.moment::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 4px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--surface-warm);
  border: 2.5px solid var(--fg);
}

.moment.is-key::before {
  background: var(--accent);
  border-color: var(--accent);
}

.moment h3 {
  font-size: 1.5rem;
}

.moment p {
  color: var(--fg-2);
}

.times {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: var(--text-sm);
  font-variant-numeric: tabular-nums;
}

.time {
  display: inline-flex;
  gap: 6px;
  padding: 2px 10px 3px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  white-space: nowrap;
}

.time .city {
  font-weight: 500;
}

.time-you {
  background: var(--fg);
  color: var(--surface);
}

.time-them {
  background: var(--surface);
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1.5px var(--accent-ink);
}

.moment.is-key .time-them {
  background: var(--accent);
  color: var(--accent-on);
  box-shadow: none;
}

/* Bento */

.distance-head {
  max-width: 40rem;
  margin-bottom: var(--space-10);
  display: grid;
  gap: var(--space-4);
}

.distance-head p {
  color: var(--fg-2);
  font-size: 1.125rem;
}

.bento {
  display: grid;
  gap: var(--space-4);
}

.tile {
  display: grid;
  align-content: start;
  gap: var(--space-3);
  padding: var(--space-6);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

.tile p {
  color: var(--fg-2);
}

.tile-tag {
  justify-self: start;
  margin-bottom: calc(-1 * var(--space-1));
}

.tile-tz {
  background: var(--fg);
  border-color: var(--fg);
}

.tile-tz h3,
.tile-tz p {
  color: var(--surface);
}

.tile-tz p {
  opacity: 0.9;
}

.schedule {
  margin-top: var(--space-3);
  padding: var(--space-4);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--fg);
  display: grid;
  gap: 0;
}

.schedule-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding: 9px 0;
  border-bottom: 1px solid var(--border-soft);
  font-size: var(--text-sm);
}

.schedule-row:last-child {
  border-bottom: 0;
}

.schedule-row dt {
  color: var(--muted);
}

.schedule-row dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.lang-pair {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-2);
  font-family: var(--font-hand);
  font-size: 1.2rem;
}

.lang-pair span {
  padding: 3px 12px 4px;
  border-radius: var(--radius-pill);
  background: var(--blue-tint);
}

.lang-pair span:last-child {
  background: var(--red-tint);
}

.lang-pair .arrow {
  background: none;
  padding: 0;
  color: var(--muted);
}

.tile-back {
  background: var(--red-tint);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--border));
}

/* Privacy postcard */

.privacy-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.privacy-copy {
  display: grid;
  gap: var(--space-4);
  max-width: 30rem;
}

.privacy-copy p {
  color: var(--fg-2);
  font-size: 1.125rem;
}

.pc-back {
  position: relative;
  display: grid;
  gap: var(--space-6);
  padding: clamp(20px, 3vw, 36px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--elev-raised);
  transform: rotate(-0.8deg);
}

.pc-message {
  list-style: none;
  margin: 0;
  padding: 0;
  font-family: var(--font-hand);
  font-size: 1.35rem;
  line-height: 1.3;
}

.pc-message li {
  padding: 8px 0 7px;
  border-bottom: 1px solid var(--border);
}

.pc-message li:last-child {
  border-bottom: 0;
}

.pc-side {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.pc-stamp {
  justify-self: end;
  width: 88px;
  transform: rotate(4deg);
}

@media (max-width: 639px) {
  /* stamp and "Par avion" share a row on phones, the address runs full width */
  .pc-side {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .pc-stamp {
    grid-column: 2;
    grid-row: 1;
    width: 72px;
  }

  .pc-airmail {
    grid-column: 1;
    grid-row: 1;
    align-self: end;
  }

  .pc-address {
    grid-column: 1 / -1;
  }
}

.pc-address {
  margin: 0;
  font-family: var(--font-hand);
  font-style: normal;
  font-size: 1.35rem;
  line-height: 1.3;
}

.pc-address span {
  display: block;
  padding: 6px 0 4px;
  border-bottom: 1.5px solid var(--fg-2);
}

.pc-airmail {
  justify-self: start;
  padding: 2px 10px;
  border: 2px solid var(--fg);
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Price */

.price-grid {
  display: grid;
  gap: var(--space-10);
  align-items: center;
}

.price-copy {
  display: grid;
  gap: var(--space-4);
  max-width: 30rem;
}

.price-copy p {
  color: var(--fg-2);
  font-size: 1.125rem;
}

.extras {
  margin-top: var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.extras-title {
  font-weight: 700;
}

.extras ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--space-2);
}

.extras li {
  color: var(--fg-2);
}

.extras li .tag {
  margin-right: 4px;
}

.ticket {
  position: relative;
  width: 100%;
  max-width: 27rem;
  justify-self: center;
  display: grid;
  gap: var(--space-4);
  padding: var(--space-8) var(--space-6) var(--space-6);
  background: var(--surface);
  border-radius: var(--radius-sm);
  box-shadow: var(--elev-raised), inset 0 0 0 1px var(--border);
}

.ticket::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1.5px dashed var(--border);
  border-radius: 4px;
  pointer-events: none;
}

.ticket > * {
  position: relative;
}

.ticket .tag {
  justify-self: start;
}

.price {
  display: grid;
  gap: 2px;
  font-size: var(--text-lg);
  color: var(--fg-2);
  line-height: 1.2;
}

.price strong {
  font-size: clamp(3rem, 2.4rem + 2vw, 4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--fg);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.price-sub {
  color: var(--fg-2);
}

.checks {
  list-style: none;
  margin: 0;
  padding: var(--space-4) 0 0;
  border-top: 1px solid var(--border-soft);
  display: grid;
  gap: var(--space-2);
}

.checks li {
  position: relative;
  padding-left: 28px;
}

.checks li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 13px;
  height: 7px;
  border-left: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(-45deg);
}

.ticket .btn {
  width: 100%;
  margin-top: var(--space-2);
}

/* FAQ */

.faq-inner {
  display: grid;
  gap: var(--space-8);
}

.faq-head {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  max-width: 30rem;
}

.faq-head p {
  color: var(--fg-2);
}

.faq-head a {
  color: var(--fg);
  font-weight: 700;
  text-decoration-color: var(--accent);
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

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

.faq details {
  border-top: 1px solid var(--border);
}

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

.faq summary {
  position: relative;
  display: block;
  padding: 20px 44px 20px 0;
  font-weight: 700;
  font-size: 1.125rem;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

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

.faq summary::before,
.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 16px;
  height: 2.5px;
  margin-top: -1px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform var(--motion-base) var(--ease-out);
}

.faq summary::after {
  transform: rotate(90deg);
}

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

.faq details p {
  padding: 0 0 22px;
  max-width: 40rem;
  color: var(--fg-2);
}

/* Waitlist envelope */

.envelope {
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--airmail);
  box-shadow: var(--elev-raised);
}

.envelope-inner {
  position: relative;
  display: grid;
  gap: var(--space-8);
  padding: clamp(24px, 4.5vw, 56px);
  background: var(--surface);
  border-radius: var(--radius-xs);
}

.wl-copy {
  display: grid;
  gap: var(--space-4);
  max-width: 28rem;
}

.wl-copy p {
  color: var(--fg-2);
  font-size: 1.125rem;
}

.wl-stamp {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 56px;
  transform: rotate(8deg);
}

.wl-copy h2 {
  padding-right: 56px;
}

.wl-form {
  display: grid;
  gap: var(--space-4);
  align-content: start;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-weight: 700;
  font-size: var(--text-sm);
}

.opt {
  font-weight: 400;
  color: var(--muted);
}

.field input,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 0 14px;
  border: 1.5px solid #b7ad94;
  border-radius: var(--radius-sm);
  background: #fffdf6;
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
}

.field select {
  appearance: none;
  padding-right: 40px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--fg) 50%),
    linear-gradient(135deg, var(--fg) 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.field input::placeholder {
  color: #7a7f9c;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: none;
  border-color: var(--fg);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg) 22%, transparent);
}

.field input[aria-invalid="true"] {
  border-color: var(--danger);
}

.wl-form .btn {
  width: 100%;
}

.wl-status:empty {
  display: none;
}

.wl-status {
  font-size: var(--text-sm);
  color: var(--fg-2);
}

.wl-form[data-state="error"] .wl-status {
  color: var(--danger);
  font-weight: 700;
}

.wl-form.is-sent .field,
.wl-form.is-sent .btn {
  display: none;
}

.wl-form.is-sent .wl-status {
  padding: var(--space-5);
  border: 2px dashed var(--accent-ink);
  border-radius: var(--radius-sm);
  font-family: var(--font-hand);
  font-size: 1.5rem;
  line-height: 1.3;
  color: var(--fg);
}

.wl-noscript {
  font-size: var(--text-sm);
  color: var(--danger);
  font-weight: 700;
}

.wl-small {
  font-size: var(--text-sm);
  color: var(--muted);
}

/* Footer */

.site-footer {
  margin-top: var(--section-y);
}

.footer-row {
  display: grid;
  gap: var(--space-3);
  padding-block: var(--space-8) var(--space-10);
  font-size: var(--text-sm);
  color: var(--fg-2);
}

.footer-row .brand {
  font-size: 1.05rem;
}

.footer-row .brand img {
  width: 26px;
  height: 26px;
}

/* Reveal once on scroll (JS adds .js and .is-in) */

@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out);
  }

  .js [data-reveal].is-in {
    opacity: 1;
    transform: none;
  }

  .js .panels .panel {
    opacity: 0;
    transform: translateY(22px) rotate(-1.5deg);
    transition: opacity 600ms var(--ease-out), transform 700ms var(--ease-out);
  }

  .js .panels .panel:nth-child(even) {
    transform: translateY(22px) rotate(1.5deg);
  }

  .js .panels.is-in .panel {
    opacity: 1;
    transform: none;
  }

  .js .panels.is-in .panel:nth-child(2) {
    transition-delay: 110ms;
  }

  .js .panels.is-in .panel:nth-child(3) {
    transition-delay: 220ms;
  }

  .js .panels.is-in .panel:nth-child(4) {
    transition-delay: 330ms;
  }
}

/* Layout: tablet and up */

@media (min-width: 640px) {
  .panels {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hooks {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--space-5);
  }

  .bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .tile-tz {
    grid-row: span 2;
  }

  .tile-back {
    grid-column: 1 / -1;
  }

  .pc-back {
    grid-template-columns: 1.35fr 1fr;
  }

  .pc-side {
    padding-left: var(--space-6);
    border-left: 1.5px solid var(--border);
  }

  .footer-row {
    grid-template-columns: auto 1fr;
    align-items: center;
    column-gap: var(--space-8);
  }
}

@media (min-width: 900px) {
  .call-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: var(--space-16);
  }

  .how-intro {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: var(--space-16);
  }

  .timeline {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--space-6);
    padding-top: var(--space-8);
  }

  .timeline::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    border-top: 2px dashed color-mix(in srgb, var(--fg) 40%, transparent);
  }

  .moment {
    padding: 0;
    border-left: 0;
  }

  .moment .times {
    flex-direction: column;
    align-items: flex-start;
  }

  .faq-inner {
    grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr);
    gap: var(--space-16);
    align-items: start;
  }

  .moment::before {
    left: 0;
    top: calc(-1 * var(--space-8) - 1px);
  }

  .bento {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr);
  }

  .tile-back {
    grid-column: 2 / -1;
  }

  .privacy-grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: var(--space-16);
  }

  .price-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.9fr);
    gap: var(--space-16);
  }

  .envelope-inner {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
    gap: var(--space-12);
  }

  .wl-stamp {
    top: auto;
    bottom: 22px;
    left: clamp(24px, 4.5vw, 56px);
    right: auto;
  }
}

@media (min-width: 1024px) {
  .hero {
    padding-top: var(--space-12);
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: var(--space-16);
  }

  .hero-visual {
    justify-self: end;
  }

  .panels {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* Small phones */

@media (max-width: 420px) {
  .clocks {
    margin-inline: 0;
    gap: var(--space-2);
  }

  .clock-card {
    gap: var(--space-2);
    padding: 8px 10px 8px 8px;
  }

  .clock {
    width: 40px;
    height: 40px;
  }

  .clock-time {
    font-size: 1.05rem;
  }

  .clock-note {
    font-size: 1rem;
  }

  .stamp {
    width: 72px;
    right: -4px;
    top: -18px;
  }

  .postmark {
    width: 92px;
    right: 54px;
    top: 18px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-delay: 0s !important;
  }
}
