/* Landfall website, Twilight Harbour.
 * Colours are the app's own tokens (DESIGN.md at the repository root, Theme.swift).
 * Type follows the app: New York, SF Pro and SF Pro Rounded on Apple devices through the ui-*
 * generic families. Elsewhere the self-hosted Source Serif 4 and Nunito stand in; they are
 * declared under their own names so Apple devices never download them. */

@font-face {
  font-family: "Landfall Serif";
  src: url("/assets/fonts/source-serif-4-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Landfall Serif";
  src: url("/assets/fonts/source-serif-4-italic-latin.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Landfall Rounded";
  src: url("/assets/fonts/nunito-800-latin.woff2") format("woff2");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #0c1418;
  --horizon: #15242b;
  --surface: #152127;
  --elevated: #1b2a31;
  --hairline: #283940;
  --primary: #2fb7ae;
  --primary-dim: #1e8c86;
  --accent: #f3b65c;
  --ink: #f6f3ec;
  --ink-serif: #fbf8f1;
  --muted: #a7b6bc;
  --faint: #8e9da4;

  --serif: ui-serif, "New York", "Landfall Serif", Georgia, serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --round: ui-rounded, "SF Pro Rounded", "Landfall Rounded", system-ui, sans-serif;

  --gutter: clamp(1.25rem, 0.6rem + 3.2vw, 6rem);
  --measure: 36rem;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  color-scheme: dark;
  accent-color: var(--primary);
  scrollbar-color: var(--hairline) var(--bg);
}

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

/* A solid root colour: iOS Safari tints the status bar and toolbar areas from it and shows black
   when the page only paints gradients. */
html {
  background-color: var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 2rem;
}

body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(180deg, var(--horizon) 0, var(--bg) 46rem) no-repeat, var(--bg);
  color: var(--ink);
  font-family: var(--ui);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection {
  background: rgba(243, 182, 92, 0.85);
  color: var(--bg);
}

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

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 500;
  color: var(--ink-serif);
  text-wrap: balance;
  margin: 0;
}

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

a {
  color: var(--primary);
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: rgba(47, 183, 174, 0.45);
  text-underline-offset: 0.22em;
  transition: color 180ms var(--ease-out), text-decoration-color 180ms var(--ease-out);
}

a:hover {
  color: var(--ink);
  text-decoration-color: var(--primary);
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--elevated);
  color: var(--ink);
}

.skip:focus {
  top: 1rem;
}

/* ---------- Header and footer ---------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: clamp(1.25rem, 0.9rem + 1.2vw, 2.25rem) var(--gutter) 0;
  position: relative;
  z-index: 2;
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink-serif);
  text-decoration: none;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.4rem;
  letter-spacing: -0.01em;
}

.wordmark:hover {
  color: var(--ink-serif);
}

.mark {
  width: 2rem;
  height: 2rem;
  flex: none;
}

.mark-sun {
  color: var(--accent);
}

.mark-sea {
  color: var(--faint);
}

.mark-route {
  stroke: var(--primary);
}

.mark-ship {
  fill: var(--accent);
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 0.6rem + 1.4vw, 2.25rem);
  font-size: 0.9375rem;
}

.site-header nav a {
  color: var(--muted);
  text-decoration: none;
  padding-block: 0.5rem;
}

.site-header nav a:hover,
.site-header nav a[aria-current="page"] {
  color: var(--ink);
}

.site-header nav a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-color: var(--accent);
  text-underline-offset: 0.45em;
}

.site-header .lang-switch {
  padding: 0.35rem 0.85rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
}

.site-header .lang-switch:hover {
  border-color: var(--primary-dim);
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem 3rem;
  margin-top: clamp(4rem, 3rem + 4vw, 7rem);
  padding: 2.25rem var(--gutter) 2.75rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.9375rem;
  color: var(--faint);
}

.footer-sign {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.footer-name {
  font-family: var(--serif);
  font-weight: 600;
  color: var(--ink-serif);
  font-size: 1.1rem;
  margin-right: 0.4rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
}

.site-footer nav a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer nav a:hover {
  color: var(--ink);
}

/* ---------- The voyage: home page ---------- */

.voyage {
  position: relative;
  padding-inline: var(--gutter);
  /* The hero glow and the tilted postcards reach past the edges; clip, never scroll sideways. */
  overflow-x: clip;
}

.route {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}

.route path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-wake {
  stroke: rgba(47, 183, 174, 0.12);
  stroke-width: 9;
}

.route-line {
  stroke: var(--primary);
  stroke-width: 2;
}

.hero,
.chapter,
.homeport {
  position: relative;
  z-index: 1;
}

.node {
  position: absolute;
  width: 0.875rem;
  height: 0.875rem;
  border-radius: 50%;
  border: 2px solid var(--primary-dim);
  background: var(--bg);
  transition: background-color 400ms var(--ease-out), border-color 400ms var(--ease-out), box-shadow 600ms var(--ease-out);
}

.node.is-lit {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: 0 0 0 5px rgba(47, 183, 174, 0.14);
}

.node--here.is-lit,
.node--end.is-lit {
  border-color: var(--accent);
  background: var(--accent);
  box-shadow: 0 0 0 6px rgba(243, 182, 92, 0.16), 0 6px 22px rgba(243, 182, 92, 0.35);
}

/* Hero */

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  min-height: min(56rem, calc(100svh - 5.5rem));
  padding-block: clamp(2.5rem, 1.5rem + 3vw, 4.5rem) clamp(3rem, 2rem + 4vw, 6rem);
}

.hero-copy {
  max-width: 40rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 1.45rem + 3.6vw, 4.85rem);
  line-height: 1.03;
  letter-spacing: -0.022em;
}

.lede {
  margin-top: clamp(1.25rem, 1rem + 0.8vw, 1.75rem);
  max-width: 34rem;
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
  line-height: 1.55;
  color: var(--muted);
}

.hero-steps {
  list-style: none;
  counter-reset: step;
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 1.75rem;
  margin: clamp(1.75rem, 1.4rem + 1vw, 2.5rem) 0 0;
  padding: 0;
  font-size: 0.9375rem;
  color: var(--ink);
}

.hero-steps li {
  counter-increment: step;
  display: flex;
  align-items: baseline;
  gap: 0.55rem;
}

.hero-steps li::before {
  content: counter(step);
  font-family: var(--round);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
}

.availability {
  display: grid;
  gap: 0.2rem;
  margin-top: clamp(1.75rem, 1.4rem + 1vw, 2.5rem);
  padding-top: 1.1rem;
  border-top: 1px solid var(--hairline);
  max-width: 34rem;
  font-size: 0.9375rem;
  color: var(--faint);
}

.availability-platform {
  color: var(--ink);
}

/* Apple's badge artwork must not be recoloured or resized below 40px onscreen. */
.app-store-badge {
  justify-self: start;
  margin-top: 0.75rem;
  line-height: 0;
  border-radius: 8px;
}

.app-store-badge img {
  display: block;
  width: auto;
  height: 48px;
}

.cue {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.75rem;
  font-weight: 600;
  text-decoration: none;
}

.cue svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 240ms var(--ease-out);
}

.cue:hover svg {
  transform: translateY(3px);
}

.hero-phone {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
  position: relative;
}

/* The one amber glow of the first viewport: the horizon light behind the phone. */
.hero-phone::before {
  content: "";
  position: absolute;
  inset: 12% -18% 30%;
  background: radial-gradient(50% 50% at 50% 50%, rgba(243, 182, 92, 0.16), transparent 70%);
  filter: blur(20px);
  z-index: -1;
}

.hero-phone figcaption,
.chapter-media figcaption {
  max-width: 22rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--faint);
  display: grid;
  justify-items: center;
  gap: 0.6rem;
}

.replay {
  appearance: none;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--ink);
  font: 600 0.8125rem/1 var(--ui);
  padding: 0.6rem 1rem;
  border-radius: 999px;
  cursor: pointer;
  transition: border-color 180ms var(--ease-out), color 180ms var(--ease-out);
}

.replay:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.replay[hidden] {
  display: none;
}

/* Phone frame. Drawn, not a bitmap of a device, so the screen stays the app's own pixels. */

.phone {
  --w: clamp(15rem, 10rem + 13vw, 22.5rem);
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * 0.028);
  border-radius: calc(var(--w) * 0.155);
  background: linear-gradient(160deg, #24333a, #10191d 45%, #1b2a31);
  box-shadow:
    inset 0 0 0 1px rgba(246, 243, 236, 0.08),
    0 1px 0 rgba(246, 243, 236, 0.06),
    0 30px 60px -10px rgba(0, 0, 0, 0.6),
    0 70px 120px -30px rgba(0, 0, 0, 0.55);
}

/* Each capture keeps its own height (cropped where the app's next section would be cut in half);
   the width and height attributes give the ratio before the file loads. */
.phone-screen {
  width: 100%;
  height: auto;
  border-radius: calc(var(--w) * 0.13);
  background: var(--bg);
}

/* Sized by height too, so the whole phone and its caption fit the first viewport. */
.phone--hero {
  --w: min(clamp(16rem, 10rem + 14vw, 23rem), max(16rem, calc((100svh - 13rem) * 0.46)));
}

/* The voyage starts at Hamburg on the recorded map (measured on the 600 x 1304 captures inside the
   frame's 2.8 % bezel) and site.js leads the line out past the phone's left edge. The German
   sheet is taller, so the app frames its map lower and Hamburg sits elsewhere in that recording. */
.node--start {
  left: 40.1%;
  top: 53.8%;
  width: 1.15rem;
  height: 1.15rem;
  transform: translate(-50%, -50%);
  background: transparent;
  z-index: 1;
}

:lang(de) .node--start {
  left: 41.0%;
  top: 49.9%;
}

.node--start.is-lit {
  background: transparent;
  box-shadow: 0 0 0 4px rgba(47, 183, 174, 0.18);
}

/* Chapters */

.chapter {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2.5rem, 1rem + 6vw, 8rem);
  padding-block: clamp(5rem, 3rem + 7vw, 10rem);
}

.chapter-text {
  position: relative;
  max-width: var(--measure);
  justify-self: end;
}

.chapter--flip .chapter-text {
  order: 2;
  justify-self: start;
}

.chapter-text .node {
  left: -2.75rem;
  top: 0.75rem;
}

.chapter h2 {
  font-size: clamp(2.05rem, 1.35rem + 2.2vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.018em;
  margin-bottom: clamp(1.25rem, 1rem + 0.6vw, 1.75rem);
}

.chapter-text p + p {
  margin-top: 1rem;
}

.chapter-text p {
  color: var(--muted);
}

.chapter-media {
  margin: 0;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.chapter--flip .chapter-media {
  order: 1;
}

/* Two phones, overlapped: the explorer behind, the port day in front. */
.chapter-media--pair {
  grid-template-areas: "stack";
  justify-items: center;
  padding-block: 3rem;
}

.chapter-media--pair .phone {
  grid-area: stack;
}

.chapter-media--pair .phone--back {
  --w: clamp(13rem, 9rem + 10vw, 19rem);
  transform: translate(-38%, -9%) rotate(-4deg);
  opacity: 0.9;
}

.chapter-media--pair .phone--front {
  transform: translate(26%, 8%);
}

/* Postcards */

.chapter--postcards {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  gap: clamp(3rem, 2rem + 3vw, 5rem);
}

.chapter--postcards .chapter-text {
  justify-self: center;
  max-width: 42rem;
}

.postcards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 22rem));
  justify-content: center;
  align-items: start;
  gap: clamp(1rem, 0.4rem + 1.6vw, 2rem);
  width: 100%;
}

.postcard {
  overflow: hidden;
  border-radius: 30px;
  background: var(--elevated);
  border: 1px solid var(--hairline);
  box-shadow: 0 10px 18px -12px rgba(0, 0, 0, 0.7);
  transition: transform 420ms var(--ease-out), box-shadow 420ms var(--ease-out);
}

.postcard:nth-child(1) {
  transform: rotate(-2deg) translateY(1.5rem);
}

.postcard:nth-child(2) {
  transform: rotate(0.8deg);
}

.postcard:nth-child(3) {
  transform: rotate(-0.6deg) translateY(2.75rem);
}

.postcard:hover {
  transform: rotate(0deg) translateY(-0.4rem);
  box-shadow: 0 16px 24px -14px rgba(0, 0, 0, 0.75);
}

/* The hero photo the app puts on a postcard: the place's Wikidata image from Wikimedia Commons,
   self-hosted here and credited on the card, as CC BY-SA requires. */
.postcard-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 2 / 1;
  object-fit: cover;
  background: var(--surface);
}

.postcard-body {
  padding: 1.5rem 1.6rem 1.4rem;
}

.postcard h3 {
  font-size: 1.5rem;
  line-height: 1.18;
  margin: 0 0 0.7rem;
}

.postcard-body > p:not(.postcard-meta):not(.postcard-credit) {
  font-size: 0.9875rem;
  line-height: 1.55;
  color: var(--muted);
}

.postcard-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin-top: 1.1rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--hairline);
  font-size: 0.8125rem;
  color: var(--faint);
}

.postcard-when {
  color: var(--accent);
  font-variant-numeric: tabular-nums;
}

.postcard-credit {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--faint);
}

.postcard-credit a {
  color: inherit;
  text-decoration-color: rgba(142, 157, 164, 0.45);
}

.postcard-credit a:hover {
  color: var(--ink);
  text-decoration-color: var(--primary);
}

/* Narrow and centred so it stays clear of the route line running beside the postcards. */
.sample-note {
  max-width: 32rem;
  text-align: center;
  margin-top: 2rem;
  font-size: 0.8125rem;
  color: var(--faint);
}

/* Aboard */

.chapter-text .aboard-day {
  font-family: var(--round);
  font-weight: 800;
  font-size: clamp(3.25rem, 2rem + 4.4vw, 6.25rem);
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--accent);
  margin-bottom: 1.25rem;
}

/* Photos: the voyage film runs under both columns, framed like a postcard rather than a phone. */

.chapter-film {
  grid-column: 1 / -1;
  margin: 0;
  width: min(100%, 60rem);
  justify-self: center;
  display: grid;
  justify-items: center;
  gap: 1.1rem;
}

.film {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: 22px;
  border: 1px solid var(--hairline);
  background: var(--bg);
  box-shadow:
    0 30px 60px -10px rgba(0, 0, 0, 0.6),
    0 70px 120px -30px rgba(0, 0, 0, 0.55);
}

.chapter-film figcaption {
  max-width: 36rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.5;
  color: var(--faint);
}

/* Together */

.together-quote {
  margin: 0;
  max-width: 34rem;
  justify-self: end;
}

.together-quote p {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.75rem, 1.2rem + 1.8vw, 2.75rem);
  line-height: 1.25;
  color: var(--ink-serif);
  text-indent: -0.42em;
}

.together-quote p::before {
  content: open-quote;
  color: var(--accent);
}

.together-quote p::after {
  content: close-quote;
  color: var(--accent);
}

:lang(de) .together-quote p {
  quotes: "„" "“";
}

:lang(en) .together-quote p {
  quotes: "“" "”";
}

.together-quote footer {
  margin-top: 1.25rem;
  font-size: 0.875rem;
  color: var(--faint);
}

/* Home port: the close */

.homeport {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-block: clamp(6rem, 4rem + 6vw, 10rem) clamp(2rem, 1rem + 2vw, 3rem);
  max-width: 44rem;
  margin-inline: auto;
}

.homeport .node--end {
  position: relative;
  width: 1.1rem;
  height: 1.1rem;
  margin-bottom: 2.25rem;
}

.homeport h2 {
  font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.homeport-lede {
  margin-top: 1.5rem;
  color: var(--muted);
  font-size: 1.125rem;
}

.availability--close {
  justify-items: center;
  margin-inline: auto;
}

.homeport-help {
  margin-top: 1.5rem;
}

/* ---------- Reading pages: support, privacy, imprint ---------- */

.prose-page {
  display: grid;
  grid-template-columns: minmax(0, 15rem) minmax(0, 46rem);
  gap: clamp(2rem, 1rem + 4vw, 6rem);
  padding: clamp(3rem, 2rem + 4vw, 6rem) var(--gutter) 0;
  max-width: 82rem;
}

.prose-page--short {
  grid-template-columns: minmax(0, 46rem);
}

.prose-head {
  grid-column: 1 / -1;
  max-width: 50rem;
}

.prose-head h1 {
  font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem);
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.prose-head .lede {
  max-width: 42rem;
}

.toc {
  position: sticky;
  top: 2rem;
  align-self: start;
  font-size: 0.9375rem;
}

.toc h2 {
  font-family: var(--ui);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--faint);
  margin-bottom: 0.75rem;
}

.toc ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.15rem;
  border-left: 1px solid var(--hairline);
}

.toc a {
  display: block;
  padding: 0.3rem 0 0.3rem 1rem;
  margin-left: -1px;
  border-left: 1px solid transparent;
  color: var(--muted);
  text-decoration: none;
  line-height: 1.4;
}

.toc a:hover {
  color: var(--ink);
  border-left-color: var(--primary);
}

.prose {
  max-width: 44rem;
}

.prose > section + section {
  margin-top: clamp(3rem, 2.4rem + 2vw, 4.5rem);
}

.prose h2 {
  font-size: clamp(1.6rem, 1.3rem + 1vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1rem;
  scroll-margin-top: 2rem;
}

.prose h3 {
  font-family: var(--ui);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
  margin: 1.75rem 0 0.5rem;
}

.prose p,
.prose li,
.prose dd {
  color: var(--muted);
}

.prose p + p,
.prose p + ul,
.prose ul + p,
.prose dl + p,
.prose p + dl {
  margin-top: 1rem;
}

.prose strong {
  color: var(--ink);
  font-weight: 600;
}

.prose ul {
  margin: 1rem 0 0;
  padding-left: 1.2rem;
}

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

.prose li::marker {
  color: var(--primary-dim);
}

.prose dl {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
  border-top: 1px solid var(--hairline);
}

.prose dt,
.prose dd {
  margin: 0;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--hairline);
}

.prose dt {
  color: var(--ink);
  font-weight: 600;
  padding-right: 1.5rem;
}

.address {
  font-style: normal;
  color: var(--ink);
  line-height: 1.6;
}

.address + p {
  margin-top: 1rem;
}

.at-a-glance {
  margin-top: 2.25rem;
  padding: 1.75rem 1.9rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  max-width: 46rem;
}

.at-a-glance h2 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.at-a-glance ul {
  margin: 0;
  padding-left: 1.2rem;
  color: var(--muted);
}

.at-a-glance li + li {
  margin-top: 0.45rem;
}

.at-a-glance li::marker {
  color: var(--accent);
}

.contact-ways {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.25rem;
  max-width: 46rem;
}

.contact-way {
  display: grid;
  gap: 0.35rem;
  padding: 1.4rem 1.5rem;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  text-decoration: none;
  color: var(--muted);
  transition: border-color 200ms var(--ease-out), background-color 200ms var(--ease-out);
}

.contact-way:hover {
  border-color: var(--primary-dim);
  background: var(--elevated);
  color: var(--muted);
}

.contact-way strong {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.35rem;
  color: var(--ink-serif);
}

.contact-way span:last-child {
  color: var(--primary);
}

/* FAQ: native disclosure, styled. */

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

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

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.15rem 0;
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--ink-serif);
  border-radius: 6px;
}

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

.faq summary::after {
  content: "";
  flex: none;
  width: 0.55rem;
  height: 0.55rem;
  margin-right: 0.3rem;
  border-right: 1.6px solid var(--primary);
  border-bottom: 1.6px solid var(--primary);
  transform: translateY(-0.2rem) rotate(45deg);
  transition: transform 240ms var(--ease-out);
}

.faq details[open] summary::after {
  transform: translateY(0.1rem) rotate(-135deg);
}

.faq summary:hover {
  color: var(--ink);
}

.faq .answer {
  padding: 0 0 1.4rem;
  max-width: 40rem;
}

.faq .answer p + p,
.faq .answer p + ul {
  margin-top: 0.75rem;
}

.faq .answer ul {
  margin: 0.75rem 0 0;
}

.note-unverified {
  margin-top: 1rem;
  font-size: 0.9375rem;
  color: var(--faint);
}

.updated {
  margin-top: 3rem;
  font-size: 0.875rem;
  color: var(--faint);
}

/* ---------- Language entry points and 404 ---------- */

.chooser,
.not-found {
  min-height: 100svh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 1.25rem;
  padding: 3rem var(--gutter);
}

.chooser-mark .mark {
  width: 4.5rem;
  height: 4.5rem;
}

.chooser h1 {
  font-size: clamp(2.5rem, 2rem + 2vw, 3.5rem);
}

.chooser-links {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.chooser-links a {
  padding: 0.7rem 1.4rem;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  color: var(--ink);
  text-decoration: none;
}

.chooser-links a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.not-found-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 22rem));
  gap: clamp(2rem, 1rem + 4vw, 5rem);
  text-align: left;
  margin-top: 1rem;
}

.not-found h1,
.not-found h2 {
  font-size: clamp(1.9rem, 1.5rem + 1.6vw, 2.75rem);
  line-height: 1.1;
  margin-bottom: 1rem;
}

.not-found p {
  color: var(--muted);
}

.not-found p + p {
  margin-top: 1rem;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 3.5rem;
  }

  .voyage {
    padding-left: calc(var(--gutter) + 1.75rem);
  }

  .chapter {
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
  }

  .chapter-text,
  .chapter--flip .chapter-text {
    order: 0;
    justify-self: start;
  }

  .chapter--flip .chapter-media {
    order: 1;
  }

  .chapter-text .node {
    left: -2.1rem;
    top: 0.65rem;
  }

  .together-quote {
    justify-self: start;
  }

  .postcards {
    grid-template-columns: minmax(0, 24rem);
    justify-content: start;
    gap: 1.25rem;
  }

  .chapter--postcards {
    justify-items: start;
  }

  .chapter--postcards .chapter-text {
    justify-self: start;
  }

  .postcard:nth-child(n) {
    transform: none;
  }

  .chapter-media--pair {
    padding-block: 1.5rem 3rem;
  }

  .chapter-media--pair .phone--back {
    transform: translate(-22%, -6%) rotate(-4deg);
  }

  .chapter-media--pair .phone--front {
    transform: translate(18%, 8%);
  }

  .homeport {
    justify-items: start;
    text-align: left;
    margin-inline: 0;
  }

  .homeport .node--end {
    position: absolute;
    left: -2.2rem;
    top: calc(clamp(6rem, 4rem + 6vw, 10rem) + 0.85rem);
    margin: 0;
  }

  .availability--close {
    justify-items: start;
    margin-inline: 0;
  }

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

  .toc {
    position: static;
  }

  .not-found-pair {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 560px) {
  .site-header {
    flex-wrap: wrap;
    row-gap: 0.75rem;
  }

  .site-header nav {
    gap: 1.1rem;
  }

  .hero-phone figcaption {
    max-width: 18rem;
  }

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

  .footer-tagline {
    display: block;
  }

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

  .prose dt {
    padding-bottom: 0;
    border-bottom: 0;
  }

  .chapter-media--pair .phone--back {
    display: none;
  }

  .chapter-media--pair .phone--front {
    transform: none;
  }

  .chapter-media--pair {
    padding-block: 0;
  }
}

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

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