/* Pigeon Express — colours are the game's own tokens (PigeonExpress/Art/Palette.swift). */
:root {
  --paper: #FFF3D6;      /* Ink.paper */
  --paper-hi: #FFF9EC;
  --paper-shade: #E8CFA2;/* Ink.paperShade */
  --ink: #1F1830;        /* Ink.line */
  --ink-soft: #4A4060;
  --gold: #FFC83D;       /* Ink.gold */
  --gold-deep: #D98A1C;  /* Ink.goldDeep */
  --teal: #23C4A8;       /* Ink.deliver */
  --teal-deep: #11806F;  /* Ink.deliverDeep */
  --coral: #FF8C78;      /* PigeonColors.feet */
  --coral-deep: #B8231A; /* Ink.hazardDeep */
  --sky: #9AABD6;        /* PigeonColors.body */
  --sunset: #F2B48A;

  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, sans-serif;
  --body: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --ui: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 22px;
  --line: 2.5px;
  --shadow: 5px 6px 0 var(--ink);
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--paper);
  /* Faint paper fibres and a ruled-envelope feel, drawn in CSS. */
  background-image:
    radial-gradient(circle at 20% 10%, rgba(242, 180, 138, .28), transparent 42%),
    repeating-linear-gradient(0deg, transparent 0 31px, rgba(31, 24, 48, .035) 31px 32px);
  font: 400 1.0625rem/1.6 var(--body);
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--display); font-weight: 900; line-height: 1.05; margin: 0; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--teal-deep); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1160px, 100%); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 10; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 10px; font-family: var(--ui); font-weight: 800; }
.skip:focus { top: 12px; }

.kicker {
  font-family: var(--ui); font-weight: 800; font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase; color: var(--teal-deep);
}

/* Masthead */
.masthead { border-bottom: var(--line) solid var(--ink); background: var(--paper-hi); position: relative; }
.masthead::after { /* airmail edge */
  content: ""; position: absolute; left: 0; right: 0; bottom: -9px; height: 6px;
  background: repeating-linear-gradient(-45deg, var(--coral) 0 12px, transparent 12px 24px, var(--sky) 24px 36px, transparent 36px 48px);
}
.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 900; font-size: 1.15rem; }
.brand img { border-radius: 10px; border: 2px solid var(--ink); }
.masthead nav ul { list-style: none; display: flex; gap: clamp(10px, 2.4vw, 28px); margin: 0; padding: 0; }
.masthead nav a { font-family: var(--ui); font-weight: 700; font-size: .95rem; text-decoration: none; padding: 6px 2px; border-bottom: 2px solid transparent; }
.masthead nav a:hover { border-bottom-color: var(--gold-deep); }

/* Hero */
.hero { padding: clamp(40px, 7vw, 88px) 0 clamp(48px, 7vw, 96px); overflow-x: clip; }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.2rem); margin: 14px 0 22px; max-width: 13ch; }
.hero h1 em { font-style: normal; color: var(--coral-deep); background: linear-gradient(transparent 62%, rgba(255, 200, 61, .7) 62% 92%, transparent 92%); padding: 0 .06em; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); max-width: 34rem; color: var(--ink-soft); }

.soon { margin-top: 30px; display: inline-flex; align-items: center; gap: 16px; padding: 14px 22px 14px 14px;
  background: var(--paper-hi); border: var(--line) solid var(--ink); border-radius: 999px; box-shadow: var(--shadow); }
.soon strong { display: block; font-family: var(--display); font-weight: 900; font-size: 1.2rem; }
.soon span { font-family: var(--ui); font-size: .92rem; color: var(--ink-soft); }
.postmark { width: 64px; height: 64px; color: var(--coral-deep); transform: rotate(-12deg); flex: none; }

.trailer { margin: 0; justify-self: center; width: min(100%, 380px); position: relative; }
.trailer__stack { position: relative; }
.trailer__stack::before { /* a tilted card behind the trailer */
  content: ""; position: absolute; inset: 18px -18px -16px 18px; border-radius: 40px;
  background: var(--sky); border: var(--line) solid var(--ink); transform: rotate(4deg); z-index: 0;
}
.trailer__frame { position: relative; z-index: 1; border: 3px solid var(--ink); border-radius: 40px; overflow: hidden; background: var(--ink); box-shadow: 8px 10px 0 var(--ink); aspect-ratio: 720 / 1560; }
.trailer video { width: 100%; height: 100%; object-fit: cover; background: var(--sunset); }
.trailer figcaption { position: relative; z-index: 1; margin-top: 26px; font-family: var(--ui); font-size: .88rem; color: var(--ink-soft); text-align: center; }

/* Section heads */
.section-head { max-width: 46rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { font-size: clamp(2rem, 4.6vw, 3.4rem); margin: 10px 0 14px; }
.section-head p:last-child { color: var(--ink-soft); font-size: 1.1rem; }
.hl { color: var(--teal-deep); }

/* Choice */
.choice { padding: clamp(56px, 8vw, 104px) 0; background: var(--paper-hi); border-block: var(--line) solid var(--ink); }
.choice__grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: clamp(16px, 3vw, 36px); align-items: stretch; }
.option { display: grid; grid-template-columns: minmax(120px, 230px) 1fr; gap: 22px; align-items: start;
  background: var(--paper); border: var(--line) solid var(--ink); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.option picture img { border-radius: 16px; border: 2px solid var(--ink); width: 100%; height: auto; }
.option h3 { font-size: 1.45rem; margin-bottom: 12px; }
.option p + p { margin-top: 10px; }
.option .risk { font-family: var(--ui); font-size: .95rem; padding: 10px 12px; border-left: 4px solid var(--coral-deep); background: rgba(255, 140, 120, .16); border-radius: 0 10px 10px 0; }
.tag { display: inline-block; font-size: .95rem; padding: 3px 10px 4px; margin: 0 4px 6px 0; border: 2px solid var(--ink); border-radius: 999px; vertical-align: .15em; }
.tag--coral { background: var(--coral); }
.tag--teal { background: var(--teal); }
.option--carry { transform: rotate(-.6deg); }
.option--post { transform: rotate(.6deg); }
.choice__or { display: grid; place-items: center; position: relative; min-width: 56px; font-family: var(--display); font-weight: 900; font-size: 1.3rem; }
.choice__or::before { content: ""; position: absolute; top: 8%; bottom: 8%; left: 50%; border-left: 3px dashed var(--ink); opacity: .35; }
.choice__or span { position: relative; background: var(--gold); border: var(--line) solid var(--ink); border-radius: 50%; width: 56px; height: 56px; display: grid; place-items: center; box-shadow: 3px 3px 0 var(--ink); }

.ratecard { margin: clamp(32px, 5vw, 56px) auto 0; max-width: 560px; background: var(--paper);
  border: var(--line) dashed var(--ink); border-radius: 14px; padding: 20px 24px; text-align: center; }
.ratecard h3 { font-size: 1.15rem; margin-bottom: 10px; }
.ratecard table { width: 100%; border-collapse: collapse; font-family: var(--ui); }
.ratecard th { font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); padding: 6px; border-bottom: 2px solid var(--ink); }
.ratecard td { font-weight: 800; font-size: 1.15rem; padding: 6px; border-bottom: 1px dashed rgba(31, 24, 48, .3); }
.ratecard td:last-child { color: var(--teal-deep); }
.ratecard p { margin-top: 12px; }

/* Routes */
.routes { padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); }
.routes__scroller { overflow-x: auto; scroll-snap-type: x proximity; padding: 10px 0 26px; scrollbar-color: var(--ink) transparent; }
.routes__scroller:focus-visible { outline-offset: -3px; }
.routes__list { list-style: none; margin: 0; padding: 0 var(--gutter); display: grid; grid-auto-flow: column; grid-auto-columns: clamp(170px, 44vw, 230px); gap: clamp(16px, 2.4vw, 26px); width: max-content; }
.postcard { scroll-snap-align: start; background: var(--paper-hi); border: var(--line) solid var(--ink); border-radius: 18px; padding: 10px 10px 14px; box-shadow: 4px 5px 0 var(--ink); transition: transform .2s ease; }
.postcard:nth-child(odd) { transform: rotate(-1.2deg); }
.postcard:nth-child(even) { transform: rotate(1deg) translateY(14px); }
.postcard img { border-radius: 12px; border: 2px solid var(--ink); width: 100%; height: auto; }
.postcard p { margin-top: 12px; font-family: var(--display); font-weight: 900; font-size: 1.05rem; line-height: 1.2; display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: baseline; }
.postcard small { grid-column: 2; font-family: var(--ui); font-weight: 600; font-size: .82rem; color: var(--ink-soft); }
.num { grid-row: span 2; font-size: .8rem; background: var(--gold); border: 2px solid var(--ink); border-radius: 8px; padding: 2px 6px; }
.routes__note { margin-top: 16px; font-family: var(--ui); font-size: .9rem; color: var(--ink-soft); }

@media (min-width: 1100px) {
  .routes__scroller { overflow: visible; }
  .routes__list { width: auto; max-width: 1160px; margin: 0 auto; grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); grid-auto-columns: auto; row-gap: 44px; }
}

/* How */
.how { padding: clamp(56px, 8vw, 104px) 0; background: var(--ink); color: var(--paper); }
.how .kicker { color: var(--gold); }
.how .section-head h2 { color: var(--paper); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 3vw, 32px); counter-reset: step; }
.steps li { counter-increment: step; background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 26px 24px 28px; position: relative; box-shadow: 6px 7px 0 var(--gold); }
.steps li::before { content: "0" counter(step); position: absolute; top: 18px; right: 20px; font-family: var(--display); font-weight: 900; font-size: 2.4rem; color: var(--paper-shade); }
.steps svg { width: 64px; height: 64px; color: var(--ink); margin-bottom: 14px; }
.steps h3 { font-size: 1.45rem; margin-bottom: 8px; }

/* Price */
.price { padding: clamp(56px, 8vw, 104px) 0; }
.ticket { display: grid; grid-template-columns: 1fr 1.25fr; border: 3px solid var(--ink); border-radius: var(--radius); background: var(--paper-hi); box-shadow: 8px 9px 0 var(--ink); overflow: hidden; }
.ticket__part { padding: clamp(24px, 4vw, 40px); }
.ticket__part h2 { font-size: clamp(1.7rem, 3.2vw, 2.4rem); margin: 10px 0 12px; }
.ticket__part--paid { background: var(--gold); border-left: 3px dashed var(--ink); position: relative; }
.ticket__part--paid::before, .ticket__part--paid::after { /* punched holes */
  content: ""; position: absolute; left: -16px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); border: 3px solid var(--ink);
}
.ticket__part--paid::before { top: -16px; }
.ticket__part--paid::after { bottom: -16px; }
.ticket__part--paid .kicker { color: var(--ink); }
.ticket__price { font-family: var(--display); font-weight: 900; font-size: 1.3rem; margin: 8px 0 12px; }
.ticket__price .amount { font-size: clamp(2.6rem, 6vw, 3.6rem); margin-right: 8px; }
.ticket__price .per { white-space: nowrap; display: inline-block; }
.price__soon { margin-top: 28px; text-align: center; font-family: var(--ui); font-size: 1.05rem; }

/* Footer */
.footer { border-top: var(--line) solid var(--ink); padding: 28px 0 36px; font-family: var(--ui); text-align: center; background: var(--paper-hi); }
.footer__small { margin-top: 6px; font-size: .85rem; color: var(--ink-soft); }

/* Responsive */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero h1 { max-width: 15ch; }
  .trailer { width: min(100% - 24px, 340px); }
  .trailer__stack::before { inset: 12px -8px -10px 10px; }
  .choice__grid { grid-template-columns: 1fr; }
  .choice__or { height: 64px; }
  .choice__or::before { top: 50%; bottom: auto; left: 8%; right: 8%; border-left: 0; border-top: 3px dashed var(--ink); }
  .option { grid-template-columns: minmax(110px, 38%) 1fr; }
  .option--carry, .option--post { transform: none; }
  .steps { grid-template-columns: 1fr; }
  .ticket { grid-template-columns: 1fr; }
  .ticket__part--paid { border-left: 0; border-top: 3px dashed var(--ink); }
  .ticket__part--paid::before { top: -16px; left: -16px; }
  .ticket__part--paid::after { top: -16px; bottom: auto; left: auto; right: -16px; }
}
@media (max-width: 560px) {
  .masthead nav { display: none; }
  .option { grid-template-columns: 1fr; }
  .option picture { max-width: 190px; }
  .soon { border-radius: 22px; }
}

/* Motion */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .postcard:hover { transform: rotate(0) translateY(-6px); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
