@font-face { font-family: "Fraunces"; font-weight: 500; font-display: swap; src: url("fonts/Fraunces_500Medium.ttf") format("truetype"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 400; font-display: swap; src: url("fonts/HankenGrotesk_400Regular.ttf") format("truetype"); }
@font-face { font-family: "Hanken Grotesk"; font-weight: 600; font-display: swap; src: url("fonts/HankenGrotesk_600SemiBold.ttf") format("truetype"); }

/* Colours, type and radii come from src/theme.js in the app. */
:root {
  --night: #0b0a0d;
  --navy: #101626;
  --cream: #f4efe6;
  --sill: #d9d3c6;
  --mute: #9aa0b4;
  --muted: #9aa0b4;
  --gold: #e9bd74;
  --button-ink: #1a1510;
  --hairline: rgba(255, 255, 255, 0.1);
  --wall-overlay: rgba(10, 14, 26, 0.55);
  --number-shadow: rgba(8, 8, 20, 0.45);

  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --r-button: 19px;
  --r-card: 18px;
  --r-arch-top: 150px;
  --r-arch-base: 14px;

  --gutter: 24px;
  --measure: 34rem;
  --page: 1180px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; color-scheme: dark; }
body {
  margin: 0;
  background: var(--navy);
  color: var(--cream);
  font: 400 19px/1.5 var(--sans);
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(var(--wall-overlay), var(--wall-overlay)), url("wall.jpg") center / cover no-repeat;
  z-index: -1;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--gold); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--cream); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { font-family: var(--serif); font-weight: 500; margin: 0; letter-spacing: 0; }
h1 { font-size: clamp(34px, 4.4vw, 52px); line-height: 1.1; }
h2 { font-size: clamp(28px, 3.2vw, 38px); line-height: 1.15; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter); }

/* Header */
.top {
  position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  max-width: var(--page); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px var(--gutter);
}
.mark { display: flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; font: 500 25px/1 var(--serif); }
.mark img { width: 36px; height: 36px; border-radius: 9px; }
.top nav a { color: var(--cream); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--gold); }

/* Buttons */
.store {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px;
  background: var(--gold); color: var(--button-ink);
  border-radius: var(--r-button);
  font: 600 19px/1 var(--sans); text-decoration: none;
  transition: transform 120ms ease-out, background-color 120ms ease-out;
}
.store:hover { color: var(--button-ink); background: #f1cb8b; }
.store:active { transform: scale(0.97); }
.store svg { width: 20px; height: 20px; fill: currentColor; }
.note { font-size: 15px; color: var(--mute); }

/* Hero: the window */
.hero { position: relative; background: var(--night); }
.hero-grid { padding-top: 64px; }
.window { position: relative; overflow: hidden; }
.window img { width: 100%; aspect-ratio: 1320 / 1900; object-fit: cover; object-position: top; }
.count {
  position: absolute; left: 0; right: 0; top: 13%;
  text-align: center; color: var(--cream);
  text-shadow: 0 3px 28px var(--number-shadow);
}
.count b { display: block; font: 500 clamp(96px, 30vw, 150px)/0.95 var(--serif); }
.count span { display: block; margin-top: 6px; font-size: 19px; }
.rail { position: absolute; left: 8%; top: 34%; width: 7.5%; transform: translateX(-50%); display: grid; gap: 14px; justify-items: center; }
.rail button, .picker button { position: relative; padding: 0; border: 0; background: none; border-radius: 50%; cursor: pointer; line-height: 0; transition: transform 0.15s; }
.rail button { width: 100%; }
.rail button::after { content: ""; position: absolute; inset: -8px; }
.rail img, .picker img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 50%; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); }
.rail button.on { width: 128%; }
.rail button.on, .picker button.on { outline: 2px solid var(--gold); outline-offset: 2px; }
.rail button:focus-visible, .picker button:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.window, .panel { transition: opacity 0.18s; }
.window.out, .panel.out { opacity: 0; }
.explore { display: grid; gap: 28px; }
.picker { display: flex; flex-wrap: wrap; gap: 14px; }
.picker button { width: 44px; height: 44px; }
.picker button:hover { transform: scale(1.08); }
.panel { display: grid; grid-template-columns: minmax(0, 150px) 1fr; gap: 20px; align-items: start; }
.panel > img { width: 100%; aspect-ratio: 1020 / 1480; object-fit: cover; border-radius: var(--r-arch-top) var(--r-arch-top) var(--r-arch-base) var(--r-arch-base); }
.facts { display: grid; gap: 10px; }
.facts h3 { font-size: 25px; }
.facts .rule { font-size: 15px; color: var(--gold); margin-top: 6px; }
.facts p { color: var(--sill); max-width: var(--measure); }
@media (min-width: 900px) {
  .panel { grid-template-columns: 300px 1fr; gap: 56px; align-items: center; }
  .facts h3 { font-size: 34px; }
  .picker button { width: 52px; height: 52px; }
}
@media (prefers-reduced-motion: reduce) { .window, .panel, .rail button, .picker button { transition: none; } .picker button:hover { transform: none; } }
.hero-text { position: relative; padding: 0 var(--gutter) 48px; margin-top: -64px; display: grid; gap: 16px; }
.hero-text p { color: var(--sill); max-width: var(--measure); }
.hero-text .store { margin-top: 8px; }
.window::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%;
  background: linear-gradient(to bottom, rgba(11, 10, 13, 0), var(--night));
}

@media (min-width: 900px) {
  .hero { background: none; }
  .hero-grid {
    max-width: var(--page); margin: 0 auto; padding: 96px var(--gutter) 72px;
    display: grid; grid-template-columns: 1fr minmax(0, 480px); gap: 72px; align-items: center;
  }
  .hero-text { margin: 0; padding: 0; gap: 20px; order: -1; }
  .hero-text .store { justify-self: start; }
  .window { border-radius: var(--r-card); box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5); }
  .window::after { display: none; }
}

/* Sections */
.band { padding: 72px 0; }
.band + .band { border-top: 1px solid var(--hairline); }
.lead { display: grid; gap: 14px; max-width: var(--measure); margin-bottom: 36px; }
.lead p { color: var(--sill); }

/* The five skies */
.skies { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 0; padding: 0; list-style: none; }
.skies li { position: relative; }
.skies img { width: 100%; aspect-ratio: 1020 / 1480; object-fit: cover; border-radius: var(--r-arch-top) var(--r-arch-top) var(--r-arch-base) var(--r-arch-base); }
.skies b {
  position: absolute; left: 0; right: 0; top: 20%; text-align: center;
  font: 500 clamp(22px, 4.6vw, 52px)/1 var(--serif);
  text-shadow: 0 2px 14px var(--number-shadow);
}
.skies .bright b { color: #232844; text-shadow: 0 0 8px rgba(244, 239, 230, 0.6); }
.skies-note { margin-top: 12px; font-size: 15px; color: var(--mute); }

/* Regions */
.views { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 32px; padding: 0; list-style: none; }
.views img { width: 100%; aspect-ratio: 1020 / 1480; object-fit: cover; border-radius: var(--r-arch-top) var(--r-arch-top) var(--r-arch-base) var(--r-arch-base); }
.views span { display: block; margin-top: 8px; font-size: 15px; color: var(--mute); text-align: center; }
.flags { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; margin: 0; padding: 0; list-style: none; }
.flags li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); font-size: 15px; }
.flags img { width: 32px; height: 32px; }
@media (min-width: 900px) {
  .views { grid-template-columns: repeat(6, 1fr); gap: 12px; }
  .flags li { font-size: 19px; }
  .flags { grid-template-columns: repeat(4, 1fr); gap: 0 32px; }
}

/* Two columns with a picture */
.pair { display: grid; gap: 32px; align-items: center; }
.pair figure { margin: 0; position: relative; }
.pair .count { top: 21%; }
.pair .count b { font-size: clamp(72px, 20vw, 104px); }
.count.bright { color: #232844; text-shadow: 0 0 8px rgba(244, 239, 230, 0.6); }
.pair figure img { width: 100%; border-radius: var(--r-card); aspect-ratio: 1320 / 1600; object-fit: cover; object-position: 50% 33%; }
.pair .lead { margin: 0; }
@media (min-width: 900px) {
  .pair { grid-template-columns: minmax(0, 420px) 1fr; gap: 72px; }
}

/* Rows, like the sheet in the app */
.trips { display: grid; gap: 8px; }
.trips > img { width: 150px; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent); mask-image: radial-gradient(closest-side, #000 72%, transparent); }
@media (min-width: 900px) {
  .trips { grid-template-columns: 1fr minmax(0, 360px); gap: 72px; align-items: center; }
  .trips > img { width: 100%; order: 1; }
}
.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--hairline); max-width: 44rem; }
.rows li { padding: 20px 0; border-bottom: 1px solid var(--hairline); display: grid; gap: 4px; }
.rows h3 { font-size: 25px; line-height: 1.2; }
.rows p { color: var(--sill); }
.answer { margin-top: 10px; padding: 16px 18px; border-radius: var(--r-card); background: rgba(16, 22, 38, 0.8); border: 1px solid var(--hairline); }
.answer b { font-weight: 600; color: var(--gold); }

/* Closing */
.close { text-align: center; padding: 88px 0 72px; }
.close img { width: 112px; height: 112px; border-radius: 26px; margin: 0 auto 24px; }
.close .lead { margin: 0 auto 28px; justify-items: center; }
.caution { margin-top: 28px; font-size: 15px; color: var(--mute); max-width: var(--measure); margin-left: auto; margin-right: auto; }

/* Footer */
.foot { border-top: 1px solid var(--hairline); padding: 28px 0 40px; font-size: 15px; color: var(--mute); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot a { color: var(--sill); }
.foot a:hover, .foot a[aria-current] { color: var(--gold); }

/* Legal and support pages */
.doc-top { max-width: 46rem; margin: 0 auto; padding: 20px var(--gutter); display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.doc-top nav { display: flex; gap: 20px; font-size: 15px; }
.doc-top nav a { color: var(--sill); text-decoration: none; }
.doc-top nav a:hover, .doc-top nav a[aria-current] { color: var(--gold); }
.doc main { max-width: 46rem; margin: 0 auto 48px; padding: 32px var(--gutter) 56px; font-size: 18px; line-height: 1.65; background: rgba(11, 10, 13, 0.9); }
@media (min-width: 760px) { .doc main { border-radius: var(--r-card); padding: 40px 48px 56px; } }
.doc-sky { width: 64px; aspect-ratio: 1020 / 1480; object-fit: cover; border-radius: var(--r-arch-top) var(--r-arch-top) var(--r-arch-base) var(--r-arch-base); margin-bottom: 20px; }
.doc h1 { margin: 0 0 8px; }
.doc h2 { font-size: 27px; margin: 48px 0 12px; }
.doc h3 { font: 600 18px/1.4 var(--sans); margin: 24px 0 6px; }
.doc p, .doc li { color: var(--sill); }
.doc p + p { margin-top: 14px; }
.doc strong { color: var(--cream); font-weight: 600; }
.doc ul { padding-left: 22px; margin: 12px 0; }
.doc li { margin: 8px 0; }
.updated { color: var(--mute); font-size: 15px; }
.doc .lede { font-size: 20px; color: var(--cream); margin-top: 28px; }
.card { background: var(--navy); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 20px 22px; margin: 20px 0; }
.card ul { margin: 0; }
.table { overflow-x: auto; margin: 16px 0; }
.doc table { width: 100%; border-collapse: collapse; font-size: 16px; }
.doc th, .doc td { text-align: left; padding: 12px 10px 12px 0; border-bottom: 1px solid var(--hairline); vertical-align: top; color: var(--sill); }
.doc th { color: var(--mute); font-weight: 600; font-size: 14px; }
.pill { display: inline-block; border: 1px solid var(--hairline); background: var(--navy); border-radius: 999px; padding: 4px 12px; font-size: 15px; margin: 4px 4px 4px 0; color: var(--sill); }
.contact { background: var(--navy); border: 1px solid var(--hairline); border-radius: var(--r-card); padding: 22px 24px; margin: 24px 0; }
.contact h3 { margin-top: 0; }
.contact a { font-size: 20px; font-weight: 600; }
.qa { border-bottom: 1px solid var(--hairline); padding: 20px 0; }
.qa:last-of-type { border-bottom: 0; }
.qa h3 { margin: 0 0 6px; }
.qa p { margin: 0; }
.doc-foot { margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--hairline); color: var(--mute); font-size: 15px; }
.doc-foot p { color: var(--mute); }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
