/* ============================================================
   Study Trip 2027, bilingual site. Mobile first.
   Colours come only from tokens.css (generated from src/tokens.js).
   Shades are made by mixing two tokens or giving a token transparency;
   no new colours.
   ============================================================ */

:root {
  --display: "Libre Caslon Text", Georgia, serif;
  --font: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --hand: "Gochi Hand", "Comic Sans MS", cursive;
  --mono: "JetBrains Mono", ui-monospace, monospace;

  --radius: 8px;
  --radius-card: 16px;
  --max: 72rem;
  --gutter: 1rem;
  --header-h: 4rem;
  --shadow: 0 18px 40px -18px color-mix(in srgb, var(--maroon-deep) 70%, transparent);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (min-width: 48rem) {
  :root {
    --gutter: 2rem;
    --header-h: 5rem;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 1rem);
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--maroon);
  margin: 0;
  overflow-wrap: break-word;
  hyphens: auto;
}

p {
  margin: 0 0 1rem;
}

a {
  color: inherit;
}

/* Focus: gold-bright ring with a maroon-deep halo, so it stays visible on
   cream (where gold-bright alone has too little contrast) and on dark. */
:focus-visible {
  outline: 3px solid var(--gold-bright);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--maroon-deep);
  border-radius: 4px;
}

main:focus {
  outline: none;
}

.sr-only {
  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-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 0.75rem 1rem;
  background: var(--gold);
  color: var(--ink);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.skip-link:focus {
  top: 0.75rem;
}

.container {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
}

/* ---------- Buttons and links ---------- */

/* Button system (Design canvas "Buttons — Studiereis 2027"): a pill with an
   ink border and a hard shadow. Hover lifts it, a click stamps it in. */
.btn {
  --btn-ink: var(--flap-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.25rem;
  max-width: 100%;
  padding: 0 1.875rem;
  border: 2px solid var(--btn-ink);
  border-radius: 999px;
  font: 700 1rem/1.2 var(--mono);
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 6px 6px 0 var(--btn-ink);
  transition: transform 0.12s ease, box-shadow 0.12s ease, background-color 0.12s ease;
}

/* The label wraps only when the button is wider than its container (narrow
   phones); otherwise it stays on one line. */
.btn > span:first-child {
  min-width: 0;
  padding-block: 0.5rem;
  white-space: normal;
}

.btn svg {
  flex: none;
}

.btn:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 var(--btn-ink);
}

.btn:active {
  transform: translate(4px, 4px);
  box-shadow: 2px 2px 0 var(--btn-ink);
}

/* Focus: a dashed perforation line around the pill (gold on dark). */
.btn:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 5px;
  border-radius: 999px;
  box-shadow: 6px 6px 0 var(--btn-ink);
}

.btn--cream:focus-visible,
.btn--gold:focus-visible,
.btn--ghost:focus-visible {
  outline-color: var(--gold);
}

.btn--cream {
  background: var(--cream);
  color: var(--ink);
}

.btn--wine {
  background: var(--maroon);
  color: var(--cream);
}

.btn--wine:hover {
  background: var(--maroon-hover);
}

.btn--gold {
  background: var(--gold);
  color: var(--ink);
}

.btn--paper {
  background: var(--cream-2);
  color: var(--ink);
}

.btn--ghost,
.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: transparent;
  color: var(--cream);
  border-color: var(--cream);
  box-shadow: none;
}

.btn--ghost:hover {
  background: color-mix(in srgb, var(--cream) 10%, transparent);
  transform: none;
}

.btn--ghost:active {
  transform: translateY(2px);
  box-shadow: none;
}

/* Ticket: the label, then a perforated stub with the plane. */
.btn--ticket {
  padding-right: 0;
}

.btn__stub {
  display: flex;
  align-items: center;
  align-self: stretch;
  margin-left: 0.375rem;
  padding: 0 1.25rem 0 1rem;
  border-left: 2px dashed currentColor;
}

.text-link {
  color: var(--maroon);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
}

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

.text-link--light {
  color: var(--cream);
}

.text-link--light:hover {
  color: var(--gold);
  text-decoration-color: var(--gold);
}

/* ---------- Placeholder and status labels ---------- */

.tbd {
  display: inline-block;
  padding: 0.05em 0.5em;
  border: 1px dashed var(--maroon-soft);
  border-radius: 4px;
  background: var(--cream-2);
  color: var(--maroon-soft);
  font-family: var(--mono);
  font-size: 0.8125em;
  font-weight: 500;
  line-height: 1.5;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--maroon-deep);
  color: var(--cream);
}

.site-header--overlay {
  position: absolute;
  inset: 0 0 auto;
  background: linear-gradient(180deg, color-mix(in srgb, var(--maroon-deep) 92%, transparent) 0%, color-mix(in srgb, var(--maroon-deep) 0%, transparent) 100%);
}

.site-header__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  width: min(100% - 2 * var(--gutter), 90rem);
  min-height: var(--header-h);
  margin-inline: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--cream);
  flex: none;
}

.brand__logo {
  width: 2.5rem;
  height: auto;
}

.brand__name {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
  white-space: nowrap;
}

.site-header__tools {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.site-nav__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.75rem;
}

.nav-link {
  position: relative;
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--cream);
  text-decoration: none;
  font-weight: 500;
}

/* Underline: gold bar under the active item, as in the template. */
.nav-link::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0.2rem;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-link:hover::after {
  transform: scaleX(0.5);
}

.nav-link[aria-current="page"] {
  color: var(--gold);
}

.nav-link[aria-current="page"]::after {
  transform: scaleX(1);
}

.lang-switch {
  display: flex;
  align-items: center;
  gap: 0.15rem;
  font-family: var(--mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--cream);
}

.lang-switch__link {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.25rem;
  color: var(--cream);
  text-decoration: none;
  border-radius: 4px;
}

.lang-switch__link:hover {
  color: var(--gold);
}

.lang-switch__link[aria-current="true"] {
  color: var(--gold);
  text-decoration: underline 2px;
  text-underline-offset: 0.35em;
}

.lang-switch__sep {
  opacity: 0.7;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid color-mix(in srgb, var(--cream) 50%, transparent);
  border-radius: var(--radius);
  background: transparent;
  color: var(--cream);
  font: 600 0.9375rem var(--font);
  cursor: pointer;
}

.menu-toggle:hover {
  border-color: var(--gold);
}

.menu-toggle__close,
.menu-toggle[aria-expanded="true"] .menu-toggle__open {
  display: none;
}

.menu-toggle[aria-expanded="true"] .menu-toggle__close {
  display: inline;
}

/* Mobile: the nav collapses behind the menu button (only when JS runs;
   without JS the links stay visible and wrap). */
@media (max-width: 63.99rem) {
  .site-header__inner {
    flex-wrap: wrap;
  }

  /* The top row gets the header height itself. Otherwise min-height centres
     it only while it is the sole flex line: opening the menu adds a second
     line and the row (with the menu button) jumped up by about 10px. */
  .brand,
  .site-header__tools {
    min-height: var(--header-h);
  }

  .brand__name {
    display: none;
  }

  .site-nav {
    order: 3;
    width: 100%;
    padding-bottom: 0.75rem;
  }

  .menu-toggle[hidden] {
    display: none;
  }

  .js .site-nav {
    display: none;
  }

  .js .site-header.is-open .site-nav {
    display: block;
  }

  .js .site-header.is-open {
    background: var(--maroon-deep);
  }

  .site-nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav-link {
    display: block;
    padding: 0.85rem 0;
    font-size: 1.125rem;
    border-bottom: 1px solid color-mix(in srgb, var(--cream) 15%, transparent);
  }

  .nav-link::after {
    bottom: 0.5rem;
    width: 2.5rem;
  }
}

@media (min-width: 64rem) {
  .menu-toggle {
    display: none;
  }

  .site-nav {
    margin-left: auto;
  }

  .site-header__tools {
    margin-left: 1.5rem;
    padding-left: 1.5rem;
    border-left: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
  }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--maroon-deep);
  color: var(--cream);
  padding: calc(var(--header-h) + 1.5rem) 0 2.5rem;
}

.hero__bg,
.hero__bg-img {
  position: absolute;
  inset: 0;
  z-index: -2;
}

.hero__bg-img {
  opacity: 0;
  transition: opacity 0.8s var(--ease);
}

.hero__bg-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__bg-img.is-active {
  opacity: 1;
}

/* maroon-deep overlay so cream text reaches AA on any photo. Strongest
   behind the text column, lighter behind the carousel. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--maroon-deep) 86%, transparent) 0%, color-mix(in srgb, var(--maroon-deep) 80%, transparent) 60%, color-mix(in srgb, var(--maroon-deep) 92%, transparent) 100%);
}

.hero__inner {
  width: min(100% - 2 * var(--gutter), 90rem);
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
}

.hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
}

.hero__title {
  color: var(--cream);
  font-size: clamp(2.5rem, 11vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  hyphens: manual;
}

/* "Madrid &" and "València" each on their own line, never hyphenated. */
.hero__title-line {
  display: block;
  white-space: nowrap;
}

.hero__dates {
  margin: 0.75rem 0 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero__intro {
  max-width: 36rem;
  margin: 1.25rem 0 1.5rem;
  font-size: 1.0625rem;
  color: var(--cream);
}

.hero__board {
  width: 100%;
  margin-top: 1.5rem;
}

/* Mobile: the board sits right below the heading. */
@media (max-width: 63.99rem) {
  .hero__title {
    order: 1;
  }
  .hero__hand {
    order: 2;
  }
  .hero__dates {
    order: 3;
  }
  .hero__board {
    order: 4;
  }
  .hero__intro {
    order: 5;
  }
  .hero__cta {
    order: 6;
  }
}

@media (min-width: 64rem) {
  .hero {
    min-height: min(100svh, 60rem);
    display: flex;
    align-items: center;
    padding: calc(var(--header-h) + 2rem) 0 3rem;
  }

  .hero__inner {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    align-items: center;
    gap: 3rem;
  }

  /* More room between the text column and the left edge. */
  .hero__text {
    padding-left: clamp(1rem, 3vw, 3rem);
  }

  .hero::before {
    background: linear-gradient(90deg, color-mix(in srgb, var(--maroon-deep) 90%, transparent) 0%, color-mix(in srgb, var(--maroon-deep) 82%, transparent) 45%, color-mix(in srgb, var(--maroon-deep) 45%, transparent) 75%, color-mix(in srgb, var(--maroon-deep) 30%, transparent) 100%);
  }

  .hero__board {
    max-width: 34rem;
    margin-top: 2rem;
  }

  .hero__carousel {
    min-width: 0;
  }
}

/* ---------- Split-flap countdown ---------- */

.flapboard {
  --flap-w: clamp(1.45rem, 6.6vw, 2.5rem);
  display: inline-block;
  max-width: 100%;
  padding: 0.75rem clamp(0.6rem, 2.5vw, 1.1rem) 0.85rem;
  background: var(--flap-bg);
  color: var(--flap-ink);
  border: 2px solid var(--gold);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

@media (min-width: 64rem) {
  .flapboard {
    /* Scales with the text column so the board never outgrows its frame. */
    --flap-w: clamp(1.8rem, 2.4vw, 2.6rem);
  }
}

.flapboard__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  padding-bottom: 0.6rem;
  margin-bottom: 0.7rem;
  border-bottom: 1px dashed color-mix(in srgb, var(--flap-ink) 30%, transparent);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.flapboard__title {
  color: var(--gold);
}

.flapboard__date {
  color: var(--flap-ink);
}

.flapboard__digits {
  display: flex;
  gap: clamp(0.45rem, 2.2vw, 0.9rem);
}

.flap-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
}

.flap-group__cells,
.flap-word {
  display: flex;
  gap: 3px;
}

.flap-group__label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--flap-ink);
  white-space: nowrap;
}

.flapboard__message {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem clamp(0.6rem, 2.5vw, 1rem);
  padding-bottom: 0.25rem;
}

.flapboard__message[hidden] {
  display: none;
}

.flapboard__digits[hidden] {
  display: none;
}

/* A flap is two halves showing the same character, split by a hinge.
   The script adds two "leaves" during a flip: the old top half falls down,
   then the new bottom half folds into place. */
.flap {
  position: relative;
  display: block;
  width: var(--flap-w);
  height: calc(var(--flap-w) * 1.4);
  perspective: calc(var(--flap-w) * 8);
  font-family: var(--mono);
  font-weight: 700;
  font-size: calc(var(--flap-w) * 0.92);
  color: var(--flap-ink);
  font-variant-numeric: tabular-nums;
}

.flap__half,
.flap__leaf {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(50% - 0.5px);
  overflow: hidden;
  backface-visibility: hidden;
}

.flap__half--top,
.flap__leaf--top {
  top: 0;
  border-radius: 4px 4px 0 0;
  background: color-mix(in srgb, var(--flap-ink) 10%, var(--flap-bg));
  transform-origin: 50% 100%;
}

.flap__half--bottom,
.flap__leaf--bottom {
  bottom: 0;
  border-radius: 0 0 4px 4px;
  background: color-mix(in srgb, var(--flap-ink) 6%, var(--flap-bg));
  transform-origin: 50% 0;
}

.flap__char {
  position: absolute;
  left: 0;
  right: 0;
  height: calc(var(--flap-w) * 1.4);
  display: grid;
  place-items: center;
  line-height: 1;
}

.flap__half--bottom .flap__char,
.flap__leaf--bottom .flap__char {
  bottom: 0;
}

.flap__half--top .flap__char,
.flap__leaf--top .flap__char {
  top: 0;
}

.flap__leaf--top {
  z-index: 2;
}

.flap__leaf--bottom {
  z-index: 3;
}

/* ---------- Carousel ---------- */

.carousel {
  position: relative;
}

/* Card width and the distance between card centres. The three visible cards
   (active plus one each side, scaled down) always fit inside the viewport. */
.carousel {
  --card-w: clamp(9rem, 48vw, 16rem);
  --step: calc(var(--card-w) * 0.5);
}

@media (min-width: 48rem) {
  .carousel {
    --step: calc(var(--card-w) * 0.62);
  }
}

@media (min-width: 64rem) {
  .carousel {
    --card-w: clamp(13rem, 20vw, 17rem);
    --step: calc(var(--card-w) * 0.7);
  }
}

/* Without JS: a plain scrollable row. */
.carousel__viewport {
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 1.5rem 0.5rem 0.75rem;
}

.carousel__track {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
}

.carousel__slide {
  flex: none;
  width: var(--card-w);
  scroll-snap-align: center;
}

/* With JS: cards are stacked around the centre. Each slide gets --k, its
   place relative to the active card (0 = centre, -1 left, 1 right). Only
   transform and opacity animate, so nothing reflows mid-slide and the jump
   from the last card back to the first is just one more step. */
.js .carousel__viewport {
  overflow: hidden;
  touch-action: pan-y;
}

.js .carousel__track {
  position: relative;
  display: block;
  height: calc(var(--card-w) * 1.25 + 4.5rem);
}

.js .carousel__slide {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(calc(-50% + var(--k, 0) * var(--step))) scale(var(--s, 1));
  transform-origin: 50% 40%;
  transition: transform 0.7s var(--ease), opacity 0.7s var(--ease);
}

.js .carousel__slide.is-active {
  --s: 1;
  z-index: 3;
}

.js .carousel__slide.is-side {
  --s: 0.8;
  z-index: 2;
}

.js .carousel__slide.is-far {
  --s: 0.65;
  z-index: 1;
  opacity: 0;
  pointer-events: none;
}

/* Polaroid: cream frame, photo, handwritten caption on the active card. */
.carousel__card {
  position: relative;
  display: block;
  margin: 0;
  padding: 0.5rem 0.5rem 0.6rem;
  background: var(--cream-2);
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: rotate(var(--tilt, 0deg));
  transition: transform 0.3s var(--ease);
}

.carousel__slide:nth-child(odd) .carousel__card {
  --tilt: -2deg;
}

.carousel__slide:nth-child(even) .carousel__card {
  --tilt: 1.5deg;
}

.carousel__slide.is-active .carousel__card {
  --tilt: -1deg;
}

.carousel__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: 2px;
}

.carousel__slide:not(.is-active) .carousel__img img {
  filter: saturate(0.85) brightness(0.9);
}

.carousel__label {
  display: block;
  padding: 0.45rem 0.25rem 0.1rem;
  font-family: var(--hand);
  font-size: 1.375rem;
  line-height: 1.15;
  text-align: center;
  color: var(--ink);
}

.carousel__slide:not(.is-active) .carousel__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  margin: 0;
  padding: 0;
}

/* Tape only on the active polaroid. */
.carousel__slide:not(.is-active) .tape--polaroid {
  display: none;
}

/* ---------- Page header (other pages) ---------- */

.page-header {
  padding: 3rem 0 2.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--maroon-soft);
}

.page-header__title {
  font-size: clamp(2.25rem, 8vw, 4rem);
}

.page-header__intro {
  max-width: 40rem;
  margin: 1rem 0 0;
  font-size: 1.125rem;
}

@media (min-width: 48rem) {
  .page-header {
    padding: 4.5rem 0 3.5rem;
  }
}

/* ---------- Sections ---------- */

.section {
  padding: 3rem 0;
}

.section--cream {
  background: var(--cream);
}

.section--light {
  background: var(--cream-2);
  border-block: 1px solid var(--line);
}

.section--maroon {
  background: var(--maroon);
  color: var(--cream);
}

.section__title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin-bottom: 0.75rem;
}

.section__intro {
  max-width: 40rem;
  margin-bottom: 2rem;
  color: var(--maroon-soft);
  font-size: 1.0625rem;
}

@media (min-width: 48rem) {
  .section {
    padding: 4.5rem 0;
  }
}

.note {
  margin-top: 1.5rem;
}

.empty {
  padding: 1.5rem;
  border: 1px dashed var(--maroon-soft);
  border-radius: var(--radius-card);
  background: var(--cream-2);
  color: var(--maroon-soft);
}

/* ---------- Home: cities, dates, CTA ---------- */

.city-grid {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 48rem) {
  .city-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.city-card {
  padding: 1.5rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
}

.city-card__dates {
  margin-bottom: 0.4rem;
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon-soft);
}

.city-card__title {
  font-size: clamp(1.35rem, 6.5vw, 1.75rem);
  hyphens: manual;
  margin-bottom: 0.75rem;
}

/* Programme per city, inside the city card: one row per day. */
.city-card .day-list {
  grid-column: 1 / -1;
}

.day-list {
  list-style: none;
  margin: 0;
  padding: 0;
  border-top: 2px dashed var(--line);
}

.day-row {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.75rem;
  align-items: baseline;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--line);
}

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

.day-row__date {
  font-weight: 600;
  color: var(--maroon);
}

.day-row__date::first-letter {
  text-transform: uppercase;
}


/* ---------- Sign-up ---------- */

.status-card {
  max-width: 40rem;
  padding: 1.75rem;
  border-radius: var(--radius-card);
  background: var(--cream-2);
  border: 1px solid var(--line);
}

/* Empty state: dashed border, so it reads as "not yet" and not as an error. */
.status-card--closed {
  border: 2px dashed var(--maroon-soft);
}

.status-card--open {
  border: 2px solid var(--gold);
}

.status-card__title {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
}

/* Open sign-up: the form box and the dates box side by side on wide screens. */
.signup-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

@media (min-width: 56rem) {
  .signup-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  }
}

.signup-grid .status-card {
  max-width: none;
}

.status-card--open .btn {
  margin-block: 0.5rem 1rem;
}

.signup-dates .facts {
  margin-bottom: 0;
}

.facts {
  display: grid;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.facts div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.facts dt {
  font-weight: 600;
  min-width: 9rem;
}

.facts dd {
  margin: 0;
}

.facts--large {
  font-size: 1.125rem;
}

.steps {
  max-width: 40rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 1rem;
}

.steps li {
  position: relative;
  padding: 0.25rem 0 0 3.25rem;
  min-height: 2.5rem;
  counter-increment: step;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: var(--radius);
  background: var(--flap-bg);
  color: var(--flap-ink);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.875rem;
}

/* ---------- FAQ ---------- */

.faq {
  max-width: 48rem;
  border-top: 1px solid var(--line);
}

.faq__item {
  border-bottom: 1px solid var(--line);
}

.faq__q {
  position: relative;
  display: block;
  padding: 1.1rem 2.5rem 1.1rem 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.125rem;
  color: var(--maroon);
  cursor: pointer;
  list-style: none;
}

.faq__q::-webkit-details-marker {
  display: none;
}

.faq__q::after {
  content: "+";
  position: absolute;
  right: 0.25rem;
  top: 50%;
  translate: 0 -50%;
  display: grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  background: var(--gold);
  color: var(--ink);
  font: 700 1.125rem/1 var(--mono);
  transition: rotate 0.2s var(--ease);
}

.faq__item[open] .faq__q::after {
  content: "−";
}

.faq__q:hover {
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.25em;
}

.faq__a {
  padding: 0 0 1.25rem;
  max-width: 40rem;
}

.faq__a p {
  margin: 0;
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--maroon-deep);
  color: var(--cream);
  padding: 2.5rem 0;
}

.site-footer__inner {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin-inline: auto;
  display: grid;
  gap: 1.5rem;
}

.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-footer__brand img {
  width: 2.5rem;
  height: auto;
  flex: none;
}

.site-footer__brand p {
  margin: 0;
}

.site-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
}

.site-footer__links a {
  display: inline-block;
  padding: 0.5rem 0;
  color: var(--cream);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 0.3em;
}

.site-footer__links a:hover {
  color: var(--gold);
}

@media (min-width: 48rem) {
  .site-footer__inner {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

/* ============================================================
   Collage layer, after svsticky/Studytrip: paper grain, tape,
   pins, handwriting, scalloped note, boarding pass.
   ============================================================ */

/* Paper grain over everything. The noise is greyscale; multiply keeps the
   token colours underneath. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: 0.1;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.hand {
  font-family: var(--hand);
  font-weight: 400;
}

/* Washi tape with a woven grid and torn ends. */
.tape {
  position: absolute;
  z-index: 3;
  width: 9rem;
  height: 2rem;
  background-color: color-mix(in srgb, var(--ink) 85%, transparent);
  background-image: linear-gradient(color-mix(in srgb, var(--cream) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--cream) 10%, transparent) 1px, transparent 1px);
  background-size: 8px 8px;
  clip-path: polygon(0 8%, 3% 0, 97% 4%, 100% 0, 98% 30%, 100% 55%, 97% 100%, 4% 96%, 0 100%, 2% 60%);
  pointer-events: none;
}

/* On the dark hero the tape is light paper, so it stays visible. */
.hero .tape {
  background-color: color-mix(in srgb, var(--line) 80%, transparent);
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--ink) 10%, transparent) 1px, transparent 1px);
}

.tape--board-left,
.tape--board-right {
  top: -0.9rem;
  width: 5.5rem;
  height: 1.6rem;
}

.tape--board-left {
  left: -1rem;
  transform: rotate(-28deg);
}

.tape--board-right {
  right: -1rem;
  transform: rotate(28deg);
}

.tape--polaroid {
  top: -0.9rem;
  left: 50%;
  width: 6rem;
  height: 1.6rem;
  transform: translateX(-50%) rotate(-3deg);
}

.tape--card {
  top: -0.85rem;
  left: 1.5rem;
  width: 6.5rem;
  height: 1.6rem;
  transform: rotate(-4deg);
}

.tape--pass {
  top: -0.9rem;
  left: 50%;
  width: 8rem;
  transform: translateX(-50%) rotate(-2deg);
}

/* Push pin in house colours. */
.pin {
  position: absolute;
  z-index: 3;
  width: 30px;
  height: 42px;
  filter: drop-shadow(2px 4px 2px color-mix(in srgb, var(--maroon-deep) 35%, transparent));
}

.pin__needle {
  fill: var(--line);
}
.pin__base {
  fill: var(--maroon);
}
.pin__body {
  fill: var(--maroon-soft);
}
.pin__head {
  fill: var(--gold);
}

/* ---------- Hero collage ---------- */

.hero__title {
  text-shadow: 3px 3px 0 var(--gold), 6px 6px 0 color-mix(in srgb, var(--maroon) 80%, transparent);
}

.hero__hand {
  position: relative;
  margin: 0.75rem 0 0.5rem;
  padding-bottom: 0.6rem;
  font-family: var(--hand);
  font-size: clamp(1.6rem, 6vw, 2.4rem);
  line-height: 1.1;
  color: var(--gold);
  transform: rotate(-3deg);
  transform-origin: left center;
}

.swoosh {
  position: absolute;
  left: 2%;
  bottom: -0.4rem;
  width: 96%;
  height: 0.9rem;
  fill: none;
  stroke: var(--cream);
  stroke-width: 2.5;
  stroke-linecap: round;
}

/* Shrink-wrap the board so the tapes sit on its own corners. */
.hero__board {
  position: relative;
  width: fit-content;
  max-width: 100%;
  transform: rotate(-1.2deg);
}

.hero__carousel {
  position: relative;
}

.plane {
  position: absolute;
  pointer-events: none;
}

.plane__body {
  fill: var(--cream);
}
.plane__wing {
  fill: var(--gold);
}
.plane__glass {
  fill: var(--maroon);
}

/* On the ticket section, flying past the heading towards the boarding pass. */
.ticket-intro {
  position: relative;
}

.plane--ticket {
  display: none;
}

@media (min-width: 48rem) {
  .plane--ticket {
    display: block;
    top: -0.5rem;
    right: -9rem;
    width: 8.5rem;
    transform: rotate(-8deg);
  }
}

@media (min-width: 48rem) and (max-width: 63.99rem) {
  .plane--ticket {
    right: -4rem;
    width: 6.5rem;
  }
}

.waves {
  position: absolute;
  pointer-events: none;
  fill: none;
  stroke-width: 2;
}

.waves--hero {
  display: none;
}

@media (min-width: 64rem) {
  .waves--hero {
    display: block;
    top: calc(var(--header-h) + 1rem);
    right: 1.5rem;
    width: 12rem;
    stroke: color-mix(in srgb, var(--cream) 35%, transparent);
  }
}

/* ---------- Paper cards ---------- */

.paper-card {
  position: relative;
  background: var(--cream-2);
  border: 0;
  border-radius: 4px;
  box-shadow: 0 1px 0 var(--line), 0 14px 30px -18px color-mix(in srgb, var(--maroon-deep) 55%, transparent);
}

.section--light .paper-card {
  background: var(--cream);
}

.city-card:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.city-card:nth-child(even) {
  transform: rotate(0.5deg);
}

.city-card {
  padding-top: 2rem;
}

.section__hand {
  margin: -0.5rem 0 1.75rem;
  font-size: 1.5rem;
  color: var(--maroon-soft);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.section__title--shadow {
  text-shadow: 2px 2px 0 var(--line);
}

.page-header {
  position: relative;
  overflow: hidden;
}

.page-header .eyebrow {
  font-family: var(--hand);
  font-size: 1.5rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  transform: rotate(-2deg);
  transform-origin: left center;
}

.page-header__title {
  text-shadow: 3px 3px 0 var(--line);
}

/* ---------- Key dates: pinned scalloped note ---------- */

.section--note {
  position: relative;
  overflow: hidden;
}

.waves--note {
  display: none;
  stroke: color-mix(in srgb, var(--cream) 30%, transparent);
}

@media (min-width: 48rem) {
  .waves--note {
    display: block;
    top: 2rem;
    right: 2rem;
    width: 14rem;
  }
}

.scallop {
  --r: 12px;
  --d: calc(2 * var(--r));
  position: relative;
  max-width: 36rem;
  margin: 0 auto;
  padding: 4rem clamp(1.5rem, 6vw, 3.5rem) 3.25rem;
  background: var(--cream);
  color: var(--ink);
  filter: drop-shadow(0 20px 30px color-mix(in srgb, var(--maroon-deep) 50%, transparent));
  -webkit-mask: linear-gradient(black 0 0) center / calc(100% - var(--d)) calc(100% - var(--d)) no-repeat,
    radial-gradient(circle closest-side, black 98%, transparent) top / var(--d) var(--d) round no-repeat,
    radial-gradient(circle closest-side, black 98%, transparent) bottom / var(--d) var(--d) round no-repeat,
    radial-gradient(circle closest-side, black 98%, transparent) left / var(--d) var(--d) no-repeat round,
    radial-gradient(circle closest-side, black 98%, transparent) right / var(--d) var(--d) no-repeat round;
  mask: linear-gradient(black 0 0) center / calc(100% - var(--d)) calc(100% - var(--d)) no-repeat,
    radial-gradient(circle closest-side, black 98%, transparent) top / var(--d) var(--d) round no-repeat,
    radial-gradient(circle closest-side, black 98%, transparent) bottom / var(--d) var(--d) round no-repeat,
    radial-gradient(circle closest-side, black 98%, transparent) left / var(--d) var(--d) no-repeat round,
    radial-gradient(circle closest-side, black 98%, transparent) right / var(--d) var(--d) no-repeat round;
  transform: rotate(-0.8deg);
}

.pin--left {
  top: 1.25rem;
  left: 18%;
  transform: rotate(-12deg);
}

.pin--right {
  top: 1.25rem;
  right: 18%;
  transform: rotate(10deg);
}

.scallop__title {
  margin-bottom: 1.5rem;
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(1.9rem, 6vw, 2.6rem);
  letter-spacing: -0.03em;
  color: var(--maroon);
  text-shadow: 2px 2px 0 var(--line);
}

.scallop--timeline {
  max-width: 42rem;
}

.timeline__hand {
  margin: 0 0 0.25rem;
  font-size: 1.375rem;
  color: var(--maroon-soft);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.timeline__intro {
  margin: -0.75rem 0 1.75rem;
  color: var(--maroon-soft);
}

/* The moments, joined by a dashed line running through the date tiles. Each
   item draws its own piece of line, so it also works in two columns. */
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}

.timeline__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.4rem 0;
}

.timeline__item::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 1.5rem;
  border-left: 2px dashed var(--maroon-soft);
}

.timeline__item:first-child::before {
  top: 50%;
}

.timeline__item:last-child::before {
  bottom: 50%;
}

/* Wide screens: two columns, filled top to bottom (--rows is set in the HTML). */
@media (min-width: 52rem) {
  .scallop--timeline {
    max-width: 58rem;
  }
  .timeline {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(var(--rows), auto);
    grid-auto-flow: column;
    column-gap: 2.5rem;
  }
  .timeline__item.is-col-start::before {
    top: 50%;
  }
  .timeline__item.is-col-end::before {
    bottom: 50%;
  }
}

.timeline__item .date-tile {
  position: relative;
  z-index: 1;
}

.timeline__body {
  min-width: 0;
}

.timeline__body p {
  margin: 0;
}

.timeline__badge {
  display: inline-block;
  margin-left: 0.5rem;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1.5;
  vertical-align: 0.15em;
}

.timeline__badge[hidden] {
  display: none;
}

.timeline__badge--next {
  background: var(--maroon);
  color: var(--cream);
}

.timeline__badge--past {
  border: 1px solid var(--maroon-soft);
  color: var(--maroon-soft);
}

.timeline__title {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--maroon);
}

.timeline__host {
  font-size: 0.875rem;
  font-weight: 500;
}

.timeline__when {
  font-size: 0.9375rem;
  color: var(--ink);
}

.timeline__time {
  white-space: nowrap;
}

/* Trip days in gold; departure gets the big serif title. */
.timeline__item--trip .date-tile {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--maroon);
}

.timeline__item--highlight .timeline__title {
  font-family: var(--display);
  font-size: 1.25rem;
}

/* The next moment stands out; moments that are over step back without
   losing text contrast (only the tile fades, the text stays readable). */
.timeline__item.is-next .date-tile {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.timeline__item.is-past .date-tile {
  background: var(--line);
  color: var(--maroon-soft);
  box-shadow: none;
}

.timeline__item:nth-child(even) .date-tile {
  transform: rotate(2deg);
}

.date-tile {
  flex: none;
  display: grid;
  place-items: center;
  align-content: center;
  width: 4rem;
  height: 4rem;
  border-radius: 6px;
  background: var(--maroon);
  color: var(--cream);
  box-shadow: 3px 3px 0 var(--gold);
  transform: rotate(-3deg);
  line-height: 1;
}

.date-tile__day {
  font-family: var(--display);
  font-size: 1.6rem;
  font-weight: 700;
}

.date-tile__month {
  font-size: 0.8125rem;
  font-weight: 600;
}

.date-tile--tbd {
  background: var(--cream-2);
  color: var(--maroon-soft);
  border: 2px dashed var(--maroon-soft);
  box-shadow: none;
}

/* Smaller tiles in the timeline. */
.timeline .date-tile {
  width: 3rem;
  height: 3rem;
}

.timeline .date-tile__day {
  font-size: 1.2rem;
}

.timeline .date-tile__month {
  font-size: 0.6875rem;
}

/* ---------- Boarding pass ---------- */

.ticket-intro {
  max-width: 38rem;
  margin: 0 auto 2.5rem;
  text-align: center;
}

.ticket-intro .section__title {
  font-size: clamp(2.25rem, 7vw, 3.5rem);
}

.pass {
  position: relative;
  display: grid;
  max-width: 56rem;
  margin: 0 auto;
  color: var(--ink);
  /* WORKAROUND: a filter: drop-shadow here made Chrome skip painting all text
     inside the pass on narrow screens. box-shadow on the two halves instead
     (on wider screens the notch mask clips the main half's shadow). */
  transform: rotate(-1deg);
}

.pass__main,
.pass__stub {
  padding: clamp(1.25rem, 4vw, 2.25rem);
  box-shadow: 0 24px 30px -12px color-mix(in srgb, var(--maroon-deep) 40%, transparent);
}

.pass__main {
  background: var(--cream);
  border-radius: 8px 8px 0 0;
}

.pass__stub {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  background: var(--gold);
  border-radius: 0 0 8px 8px;
  border-top: 2px dashed var(--maroon);
  text-align: center;
}

.pass__stub .text-link {
  color: var(--ink);
  text-decoration-color: var(--maroon);
}

.pass__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.pass__logo {
  width: 2.75rem;
  height: auto;
}

.pass__class {
  padding: 0.25rem 0.9rem;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--cream);
  font-family: var(--hand);
  font-size: 1.125rem;
  transform: rotate(2deg);
}

.pass__route {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 1.5rem;
}

.pass__stop {
  display: grid;
  justify-items: center;
}

.pass__code {
  font-family: var(--display);
  font-size: clamp(1.4rem, 3.6vw, 2.75rem);
  line-height: 1;
  color: var(--maroon);
}

.pass__city {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon-soft);
}

/* Phones: the four stops don't fit on one line, so the route becomes two
   rows: AMS → MAD, then VLC → AMS. The MAD → VLC connector is hidden; the
   second row simply continues the trip. */
@media (max-width: 29.99rem) {
  .pass__route {
    display: grid;
    grid-template-columns: auto 1fr auto;
    row-gap: 1rem;
  }

  .pass__route > .pass__hop:nth-child(4) {
    display: none;
  }
}

.pass__hop {
  flex: 1 1 1.5rem;
  min-width: 1.25rem;
  height: 0;
  border-top: 2px dashed var(--maroon-soft);
}

.pass__details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

.pass__details dt {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon-soft);
}

.pass__details dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

.pass__boarding {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.pass__barcode {
  width: 9rem;
  height: 3rem;
  background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 13px);
}

@media (min-width: 48rem) {
  .pass {
    /* wide enough for the ticket button (about 14rem) */
    grid-template-columns: 1fr 17rem;
  }
  .pass__main {
    border-radius: 8px 0 0 8px;
    /* punched notches where the stub tears off */
    -webkit-mask: radial-gradient(circle 14px at 100% 0, transparent 98%, black) top / 100% 51% no-repeat,
      radial-gradient(circle 14px at 100% 100%, transparent 98%, black) bottom / 100% 51% no-repeat;
    mask: radial-gradient(circle 14px at 100% 0, transparent 98%, black) top / 100% 51% no-repeat,
      radial-gradient(circle 14px at 100% 100%, transparent 98%, black) bottom / 100% 51% no-repeat;
  }
  .pass__stub {
    padding-inline: 1.25rem;
    justify-content: center;
    border-radius: 0 8px 8px 0;
    border-top: 0;
    border-left: 2px dashed var(--maroon);
  }
  .pass__details {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* What's in and out of the price, under the details. */
.pass__perks {
  display: grid;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--line);
}

@media (min-width: 40rem) {
  .pass__perks {
    grid-template-columns: 3fr 2fr;
  }
}

.pass__perk-title {
  margin: 0 0 0.4rem;
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--maroon-soft);
}

.pass__perk-items {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.45;
}

/* Items are lowercase so they read as one line; the first one starts with a capital. */
.pass__perk-items::first-letter {
  text-transform: uppercase;
}

.pass__mark {
  margin-right: 0.4rem;
  font-weight: 700;
  color: var(--maroon);
}

.pass__perk--excluded .pass__mark {
  color: var(--maroon-soft);
}

/* Price on the stub. */
.pass__price {
  display: grid;
  justify-items: center;
  gap: 0.15rem;
  margin: 0;
}

.pass__price-label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pass__price-amount {
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 2.5rem);
  line-height: 1.05;
  color: var(--maroon);
}

.pass__price-note {
  max-width: 12rem;
  font-size: 0.8125rem;
  line-height: 1.3;
}

/* ---------- FAQ and steps ---------- */

.faq.paper-card {
  padding: 1.5rem clamp(1rem, 4vw, 2rem) 0.5rem;
  border-top: 0;
}

.faq__item:last-child {
  border-bottom: 0;
}

.steps li::before {
  font-family: var(--hand);
  font-size: 1.25rem;
  font-weight: 400;
  background: var(--gold);
  color: var(--ink);
  transform: rotate(-4deg);
}

.facts.paper-card {
  max-width: 40rem;
  padding: 1.75rem;
}

.status-card.paper-card {
  padding-top: 2.25rem;
}

/* ---------- Sponsors ---------- */

.section--sponsors {
  text-align: center;
}

.section--sponsors .section__intro {
  margin-inline: auto;
}

.sponsors__hand {
  margin: 0 0 0.25rem;
  transform-origin: center;
}

/* Taped polaroids with the logo and the name. */
.sponsor-wall {
  list-style: none;
  margin: 2.5rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2.5rem clamp(1.5rem, 5vw, 3.5rem);
}

.sponsor {
  position: relative;
  display: block;
  width: clamp(14rem, 72vw, 17rem);
  padding: 0.6rem;
  background: var(--cream);
  color: var(--ink);
  text-decoration: none;
  border-radius: 4px;
  box-shadow: var(--shadow);
  transform: rotate(-3deg);
  transition: transform 0.25s var(--ease);
}

.sponsor-wall li:nth-child(even) .sponsor {
  transform: rotate(2.5deg);
}

a.sponsor:hover,
a.sponsor-mini:hover {
  transform: rotate(0) translateY(-4px);
}

/* Logo tile: landscape, logo centred with breathing room. */
.sponsor__tile {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 9;
  padding: 1.25rem 1.5rem;
  border-radius: 2px;
}

.sponsor__tile--light,
.sponsor-mini__tile--light {
  background: var(--cream-2);
}

.sponsor__tile--dark,
.sponsor-mini__tile--dark {
  background: var(--maroon-deep);
}

.sponsor__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Footer row on every page. */
.sponsor-strip {
  width: min(100% - 2 * var(--gutter), var(--max));
  margin: 0 auto 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid color-mix(in srgb, var(--cream) 20%, transparent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
}

.sponsor-strip__title {
  margin: 0;
  font-family: var(--hand);
  font-size: 1.375rem;
  color: var(--gold);
}

.sponsor-strip__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.sponsor-mini {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--cream);
  text-decoration: none;
  font-weight: 600;
}

.sponsor-mini__tile {
  display: grid;
  place-items: center;
  width: 7.5rem;
  height: 3.5rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
}

/* In the dark footer the dark tile needs an edge to read as a tile. */
.sponsor-mini__tile--dark {
  outline: 1px solid color-mix(in srgb, var(--cream) 30%, transparent);
}

.sponsor-mini__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ---------- Photos ---------- */

/* City card on home: a small taped polaroid next to the text. */
.city-card {
  display: grid;
  gap: 1.25rem;
  align-items: start;
}

.city-card__photo {
  display: block;
  padding: 0.4rem 0.4rem 1.1rem;
  background: var(--cream);
  box-shadow: 0 10px 22px -14px color-mix(in srgb, var(--maroon-deep) 70%, transparent);
  transform: rotate(-2deg);
}

.city-card:nth-child(even) .city-card__photo {
  transform: rotate(2deg);
}

.city-card__photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.city-card {
  grid-template-columns: minmax(6rem, 38%) 1fr;
}

/* Polaroid wall (recap photos). */
.gallery {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem 1rem;
}

@media (min-width: 48rem) {
  .gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.25rem 1.75rem;
  }
}

@media (min-width: 64rem) {
  .gallery {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.polaroid-photo {
  position: relative;
  margin: 0;
  padding: 0.45rem 0.45rem 0.3rem;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(-2deg);
  transition: transform 0.25s var(--ease);
}

.gallery__item:nth-child(3n + 2) .polaroid-photo {
  transform: rotate(1.8deg);
}

.gallery__item:nth-child(3n) .polaroid-photo {
  transform: rotate(-0.8deg);
}

.polaroid-photo:hover {
  transform: rotate(0) scale(1.03);
}

.polaroid-photo__img img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.polaroid-photo__caption {
  padding-top: 0.35rem;
  font-family: var(--hand);
  font-size: 1.2rem;
  line-height: 1.2;
  text-align: center;
  color: var(--ink);
}

/* ---------- Reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ---------- Recap Tokyo 2026 ---------- */

/* Photo header: the group photo under a maroon wash, the trip logo stuck on
   like a sticker. The overlay header sits on top, as on home. */
.recap-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--maroon-deep);
  color: var(--cream);
  padding: calc(var(--header-h) + 3rem) 0 3.5rem;
}

.recap-hero__bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 70%;
}

.recap-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(100deg, color-mix(in srgb, var(--maroon-deep) 92%, transparent) 0%, color-mix(in srgb, var(--maroon-deep) 78%, transparent) 55%, color-mix(in srgb, var(--maroon-deep) 55%, transparent) 100%);
}

.recap-hero__inner {
  display: grid;
  gap: 2rem;
  align-items: center;
}

.recap-hero__hand {
  margin: 0 0 0.25rem;
  font-size: 1.75rem;
  color: var(--gold);
  transform: rotate(-3deg);
  transform-origin: left center;
}

.recap-hero__title {
  color: var(--cream);
  font-size: clamp(3rem, 13vw, 6.5rem);
  line-height: 1;
  letter-spacing: -0.01em;
}

.recap-hero__dates {
  margin: 1rem 0 0;
  font-family: var(--mono);
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.recap-hero__intro {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  font-size: 1.125rem;
  color: var(--cream);
}

@media (min-width: 48rem) {
  .recap-hero {
    padding: calc(var(--header-h) + 5rem) 0 5.5rem;
  }
}

/* Overview: one card per previous trip. Trips without photos show their
   airport code on maroon, like a luggage tag. */
.trip-grid {
  list-style: none;
  margin: 2rem 0 0;
  padding: 0;
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 40rem) {
  .trip-grid {
    grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr));
  }
}

.trip-card {
  display: flex;
  flex-direction: column;
  padding: 0.6rem 0.6rem 1.25rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.trip-card:nth-child(odd) {
  transform: rotate(-0.8deg);
}

.trip-card:nth-child(even) {
  transform: rotate(0.7deg);
}

.trip-card__photo {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 10px;
}

.trip-card__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trip-card__photo--code {
  display: grid;
  place-items: center;
  background: var(--maroon);
  color: var(--gold);
  font-family: var(--mono);
  font-size: clamp(3rem, 10vw, 4.5rem);
  font-weight: 700;
  letter-spacing: 0.08em;
}

.trip-card__body {
  padding: 1rem 0.65rem 0;
}

.trip-card__body p {
  margin: 0;
}

.trip-card__year {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--maroon-soft);
}

.trip-card__title {
  margin: 0.25rem 0 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

.trip-card__country {
  font-family: var(--hand);
  font-size: 1.25rem;
  color: var(--maroon-soft);
}

.trip-card__body .trip-card__dates {
  margin: 0.75rem 0 1rem;
  font-weight: 600;
}

/* Tokyo 2026: logo next to the story, then facts and album. */
.recap-story {
  display: grid;
  gap: 1.5rem;
  align-items: center;
}

@media (min-width: 48rem) {
  .recap-story:not(.recap-story--text) {
    grid-template-columns: 14rem 1fr;
  }
}

.recap-story__logo {
  width: min(14rem, 70%);
  height: auto;
  padding: 0.6rem;
  background: var(--cream-2);
  border-radius: 6px;
  box-shadow: var(--shadow);
  transform: rotate(-4deg);
}

.recap-album__title {
  margin: 3rem 0 0;
  font-size: clamp(1.5rem, 5vw, 2rem);
}

/* Lead text and the trip in four facts, as stamped ticket stubs. */
.recap-lead {
  max-width: 44rem;
  margin: 0;
  font-size: 1.1875rem;
}

.recap-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
}

@media (min-width: 48rem) {
  .recap-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
  }
}

/* Same paper card as the trip cards above (solid edge, soft shadow, a slight
   tilt). No dashed border: on this site dashed means "not known yet". */
.recap-facts__item {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.25rem 1.1rem 1.35rem;
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-top: 4px solid var(--maroon);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
}

.section--light .recap-facts__item {
  background: var(--cream);
}

.recap-facts__item:nth-child(odd) {
  transform: rotate(-1deg);
}

.recap-facts__item:nth-child(even) {
  transform: rotate(0.8deg);
}

.recap-facts dd {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(1.5rem, 5vw, 2.125rem);
  font-weight: 700;
  line-height: 1.1;
  color: var(--maroon);
  overflow-wrap: anywhere;
}

.recap-facts dt {
  font-size: 0.9375rem;
  line-height: 1.4;
  color: var(--maroon-soft);
}

.recap-facts dd .tbd {
  font-size: 1rem;
}

/* Recap wall: columns instead of a grid, so every photo keeps its own shape
   and nothing gets cropped. Fewer, wider columns than the atmosphere gallery. */
.gallery--recap {
  display: block;
  columns: 1;
  column-gap: 1.75rem;
}

@media (min-width: 30rem) {
  .gallery--recap {
    columns: 2;
  }
}

@media (min-width: 64rem) {
  .gallery--recap {
    columns: 3;
    column-gap: 2.25rem;
  }
}

.gallery--recap .gallery__item {
  /* inline-block keeps Safari from splitting an item (and its shadow) over
     two columns; the bottom padding keeps the shadow inside the item. */
  display: inline-block;
  width: 100%;
  break-inside: avoid;
  padding: 0.75rem 0.25rem 1.75rem;
}

.gallery--recap .polaroid-photo {
  padding: 0.6rem;
}

.gallery--recap .polaroid-photo__img img {
  display: block;
  aspect-ratio: auto;
  object-fit: fill;
}

.recap-teaser__more {
  margin: 2rem 0 0;
}

/* ---------- Next trip (end of the recap) ---------- */

.next-trip__inner {
  display: grid;
  justify-items: center;
  gap: 2rem;
  text-align: center;
}

.next-trip__label {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem 1rem;
  margin: 0;
  padding: 0.4rem 0.9rem;
  border-radius: 4px;
  background: var(--flap-bg);
  color: var(--gold);
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.next-trip__route {
  display: grid;
  grid-template-columns: minmax(5rem, 9rem) minmax(5rem, 1fr) minmax(6.5rem, 11rem);
  align-items: end;
  gap: 0.5rem;
  width: min(100%, 44rem);
}

/* Last year's logo as a little polaroid, already a memory. */
.next-trip__from {
  position: relative;
  display: block;
  padding: 0.5rem 0.5rem 1.6rem;
  background: var(--cream);
  box-shadow: var(--shadow);
  transform: rotate(-5deg);
}

.next-trip__from img {
  display: block;
  width: 100%;
  height: auto;
}

.next-trip__year {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.2rem;
  font-family: var(--hand);
  font-size: 1rem;
  color: var(--ink);
}

.next-trip__flight {
  position: relative;
  align-self: center;
  display: block;
  aspect-ratio: 400 / 110;
}

.next-trip__arc {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.next-trip__dash {
  fill: none;
  stroke: var(--gold);
  stroke-width: 3;
  stroke-dasharray: 8 9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}

.next-trip__reveal {
  fill: none;
  stroke: white; /* mask luminance, not a visible colour: white = show the route */
  stroke-width: 24;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

/* The plane faces left in its drawing; mirrored, it flies left to right, from Tokyo to Madrid. */
.plane--next {
  right: -6%;
  top: 10%;
  width: 34%;
  min-width: 3rem;
  transform: scaleX(-1) rotate(-22deg);
}

.next-trip__to {
  width: 100%;
  height: auto;
  transform: rotate(-3deg);
}

/* Animation, only with JS and without reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js [data-next-trip]:not(.is-visible) .next-trip__reveal {
    stroke-dashoffset: 1;
  }

  .js [data-next-trip]:not(.is-visible) .plane--next {
    opacity: 0;
    transform: translate(-180%, 60%) scaleX(-1) rotate(-30deg);
  }

  .js [data-next-trip]:not(.is-visible) .next-trip__to {
    opacity: 0;
    transform: scale(1.35) rotate(-12deg);
  }

  .next-trip__reveal {
    transition: stroke-dashoffset 1.4s var(--ease);
  }

  .plane--next {
    transition: transform 1.4s var(--ease), opacity 0.4s linear;
  }

  /* Stamped on once the plane lands. */
  .next-trip__to {
    transition: transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1) 1.3s, opacity 0.2s linear 1.3s;
  }
}

/* ---------- Committee (contact) ---------- */

.crew {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  gap: 1.25rem;
}

.crew__member {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  padding: 1.1rem 1.25rem 1.25rem;
}

.crew__member:nth-child(odd) {
  transform: rotate(-0.6deg);
}

.crew__member:nth-child(even) {
  transform: rotate(0.5deg);
}

.crew__roles {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0.35rem;
}

.crew__role {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
}

.crew__name {
  font-family: var(--display);
  font-size: 1.25rem;
  line-height: 1.25;
  color: var(--ink);
}

/* ---------- Contact form ---------- */

.contact-grid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 64rem) {
  .contact-grid {
    grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
    gap: 3.5rem;
  }
}

.contact-form {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.25rem, 4vw, 2.25rem);
}

.contact-form[hidden] {
  display: none;
}

.contact-form__title,
.contact-mail__title {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
}

.contact-mail__title {
  margin-bottom: 1rem;
}

.contact-mail .facts {
  margin: 0;
  padding: 1.25rem 1.5rem;
}

.field {
  display: grid;
  gap: 0.4rem;
}

.field__label {
  font-family: var(--mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--maroon);
}

.field__optional {
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: none;
  color: var(--maroon-soft);
}

.field__input {
  width: 100%;
  min-height: 3rem;
  padding: 0.7rem 1rem;
  border: 2px solid var(--ink);
  border-radius: 12px;
  background: var(--cream);
  color: var(--ink);
  font: 400 1rem/1.5 var(--font);
}

.field__input--area {
  min-height: 9rem;
  resize: vertical;
}

/* Same dashed "perforation" focus line as the buttons. */
.field__input:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 3px;
  box-shadow: none;
  border-radius: 12px;
}

.field__input[aria-invalid="true"] {
  border-color: var(--maroon);
  border-width: 3px;
}

.field__error {
  margin: 0;
  font-weight: 600;
  color: var(--maroon);
}

.field__error::before {
  content: "✕ ";
}

/* Spam trap for bots: off screen, out of the tab order and hidden from screen readers. */
.field--trap {
  position: absolute;
  left: -100vw;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.contact-form__privacy {
  margin: 0;
}

.contact-form .btn {
  justify-self: start;
}

.contact-form .btn:disabled {
  cursor: progress;
  opacity: 0.7;
  transform: none;
}

.contact-form__status {
  margin: 1rem 0 0;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  border: 2px solid var(--ink);
  background: var(--cream-2);
  font-weight: 600;
}

.contact-form__status[data-state="success"] {
  margin-top: 0;
  padding: 1.5rem;
  background: var(--gold);
  box-shadow: 6px 6px 0 var(--flap-bg);
  font-size: 1.125rem;
}

.contact-form__status[data-state="error"] {
  border-color: var(--maroon);
  border-style: dashed;
}

.contact-form__status:focus-visible {
  outline: 3px dashed var(--ink);
  outline-offset: 4px;
}

