/* umisfilm.com — quiet retro.
   Black and white, hairline rules, small-caps mono labels, a status bar.
   The restraint is the point: one display face, used once. */

@font-face {
  font-family: 'Romantic';
  src: url('/ROMANTIC.TTF') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Instrument Serif — diary mastheads. Self-hosted (SIL OFL), latin subset
   only, so no third-party request and nothing about visitors goes to Google.
   `swap` means a headline renders in Georgia for a beat rather than not at
   all; diary pages preload the file, so that beat is usually invisible. */
@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Instrument Serif';
  src: url('/fonts/instrument-serif-latin-400-italic.woff2') format('woff2');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+2000-206F, U+2122, U+2212, U+FEFF, U+FFFD;
}

:root {
  /* Light only, on purpose. There is no dark theme and no toggle — the site
     is black ink on white paper and stays that way. `color-scheme: light`
     stops the browser dark-mode-ing scrollbars and form controls. */
  color-scheme: light;

  --paper: #fff;
  --ink: #111;
  --rule: #d8d8d8;
  --dim: #8a8a8a;

  --serif: 'Times New Roman', Georgia, serif;
  --mono: ui-monospace, 'SF Mono', 'Courier New', Courier, monospace;
  --display: 'Romantic', 'Times New Roman', serif;

  /* Masthead face — diary titles only. Georgia is the fallback because its
     proportions are closest of the fonts that ship everywhere, so the swap
     when Instrument Serif lands is barely visible. */
  --masthead: 'Instrument Serif', Georgia, 'Times New Roman', serif;

  --measure: 42rem;   /* text column — ~72ch at this size */
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --bar-h: 2.4rem;    /* status bar — houses the player */

  --t: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html {
  -webkit-text-size-adjust: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--rule) transparent;
}

body {
  min-height: 100svh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.6;
  padding-bottom: var(--bar-h);
  transition: background var(--t), color var(--t);
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }

/* ── Type ───────────────────────────────────────────────────────────── */

.wordmark {
  font-family: var(--display);
  font-size: clamp(3.25rem, 11vw, 5.5rem);
  line-height: 0.9;
  letter-spacing: 0.06em;
  user-select: none;
}

/* The small-caps mono label above a section, and the status bar text.
   This carries most of the old-web feel. */
.label {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
}

h1, h2, h3 { font-weight: normal; line-height: 1.25; }
h1 { font-size: 1.75rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.05rem; }

p + p { margin-top: 0.9em; }

a { color: inherit; text-decoration: none; }

/* Links in prose keep an underline — a bare colour change reads as broken
   in a palette with no colour. */
.prose a {
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--rule);
  transition: text-decoration-color var(--t);
}
.prose a:hover { text-decoration-color: var(--ink); }

hr, .rule {
  border: 0;
  border-top: 1px solid var(--rule);
  height: 0;
}

/* ── Layout ─────────────────────────────────────────────────────────── */

.column {
  width: 100%;
  max-width: var(--measure);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.bleed { width: 100%; padding-inline: var(--gutter); }

/* Home: exactly one viewport, never scrolls. */
.screen {
  min-height: calc(100svh - var(--bar-h));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  padding-inline: var(--gutter);
}

/* ── Nav ────────────────────────────────────────────────────────────── */

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(1.5rem, 6vw, 3.5rem);
}

.nav a {
  font-family: var(--serif);
  font-size: 1.0625rem;
  letter-spacing: 0.02em;
  transition: letter-spacing var(--t), opacity var(--t);
}

@media (hover: hover) {
  .nav a:hover { letter-spacing: 0.16em; opacity: 0.55; }
}

.nav a[aria-current='page'] { text-decoration: underline; text-underline-offset: 0.3em; }

/* ── Status bar ─────────────────────────────────────────────────────── */

.statusbar {
  position: fixed;
  inset: auto 0 0 0;
  height: var(--bar-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: var(--gutter);
  background: var(--paper);
  border-top: 1px solid var(--rule);
  z-index: 50;
}

/* ── Buttons ────────────────────────────────────────────────────────── */

.btn {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--dim);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
  transition: color var(--t);
}
.btn:hover { color: var(--ink); }

:where(a, button):focus-visible {
  outline: 1px solid var(--ink);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ── Masthead ───────────────────────────────────────────────────────── */

/* Title / subtitle / date, in that order and at that scale — roughly the
   6.5 : 2.2 : 1 contrast of a newspaper front page. Used at listing size in
   the diary index and full size on an entry. Set `--scale` to resize the whole
   stack; everything below is relative to it. */
.masthead {
  --scale: 1;
  min-width: 0;
}

.masthead__title {
  font-family: var(--masthead);
  font-weight: 400;
  font-size: calc(clamp(1.9rem, 6vw, 2.9rem) * var(--scale));
  /* Instrument Serif is already narrow with tall ascenders, so it wants air
     between lines and none between letters — the opposite of what a wider
     fallback like Georgia would need. */
  line-height: 1.04;
  letter-spacing: 0;
  text-wrap: balance;
  transition: font-style var(--t);
}

.masthead__sub {
  font-family: var(--serif);
  font-size: calc(1.0625rem * var(--scale));
  line-height: 1.35;
  margin-top: calc(0.6rem * var(--scale));
  max-width: 34rem;
}

/* Masthead italic, matching the reference. This also earns the italic file its
   keep: it was previously only used on title hover, which meant the first
   hover kicked off a 21 KB download and the headline jumped mid-transition.
   Rendering the date in it means both weights are loaded up front. */
.masthead__date {
  font-family: var(--masthead);
  font-style: italic;
  font-size: calc(0.95rem * var(--scale));
  color: var(--dim);
  margin-top: calc(0.45rem * var(--scale));
}

/* ── Masonry ────────────────────────────────────────────────────────── */

/* Roll filter. Reads as a row of small-caps mono toggles. */
.rolls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
  padding-block: 0.9rem 1.2rem;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 1.2rem;
}

.rolls__btn {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--dim);
  transition: color var(--t);
}
.rolls__btn:hover { color: var(--ink); }
.rolls__btn[aria-pressed='true'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}
.rolls__n { opacity: 0.5; }

/* Tiles are absolutely positioned by the layout maths, so the container needs
   an explicit height — it is set inline from the tallest column. */
.masonry {
  position: relative;
  width: 100%;
}

.tile {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  padding: 0;
  border: 0;
  background: color-mix(in srgb, var(--ink) 7%, transparent);
  overflow: hidden;
  cursor: zoom-in;
  will-change: transform;
}

.tile__blur,
.tile__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The 20px placeholder, scaled up and smeared. It sits under the real image
   and is simply covered once that arrives. */
.tile__blur {
  filter: blur(12px);
  transform: scale(1.15);
}

.tile__img {
  opacity: 0;
  transition: opacity 0.45s ease;
}
.tile__img.is-loaded { opacity: 1; }

/* ── Lightbox ───────────────────────────────────────────────────────── */

.lb {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  animation: fade-in 0.2s ease both;
}

.lb__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem var(--gutter);
  border-bottom: 1px solid var(--rule);
  flex: none;
}

.lb__stage {
  flex: 1;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: var(--gutter);
}

.lb__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0;
  transition: opacity 0.35s ease;
}
.lb__img.is-loaded { opacity: 1; }

.lb__nav {
  flex: none;
  background: none;
  border: 0;
  cursor: pointer;
  color: var(--dim);
  font-size: 2rem;
  line-height: 1;
  padding: 0.5rem 0.75rem;
  transition: color var(--t);
}
.lb__nav:hover { color: var(--ink); }

@media (max-width: 34rem) {
  .lb__count { display: none; }
  .lb__nav { font-size: 1.5rem; padding: 0.5rem 0.25rem; }
}

/* ── Page transitions ───────────────────────────────────────────────── */

/* Deliberately short.
 *
 * This was a 220ms fade-out crossed with a 300ms fade-in, and <main> carried
 * `transition:animate="fade"` on top of it — two overlapping transitions, so
 * roughly 300ms of animation stood between a click and the page being there.
 * Navigation itself measures 25ms. The animation *was* the slowness.
 *
 * It costs more than the duration suggests: a view transition snapshots the
 * whole scrollable page, and /film is ~12 screens tall, so that texture gets
 * rasterised twice per navigation — on the CPU when the browser has no GPU.
 *
 * `@view-transition { navigation: auto }` is gone too: that enables
 * cross-document transitions, which ClientRouter makes moot by keeping
 * navigation same-document. It was only ever redundant. */
::view-transition-old(root) { animation: fade-out 90ms ease both; }
::view-transition-new(root) { animation: fade-in 90ms ease both; }

@keyframes fade-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

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

  /* Exempt: the scroll bar is a position readout, not motion. Its animation is
     driven by scroll offset rather than time, so clamping the duration would
     just freeze it at zero and leave a permanently empty bar. */
  .scrollprogress__fill { animation-duration: auto !important; }
}

/* ===== Player (status bar) ===== */
.player {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
  }

  .player__btn {
    flex: none;
    background: none;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--dim);
    font-size: 0.95rem;
    line-height: 1;
    transition: color var(--t);
  }
  .player__btn:hover {
    color: var(--ink);
  }

  .player__play {
    width: 0.85rem;
    height: 0.85rem;
    display: grid;
    place-items: center;
  }

  .player__mark {
    width: 100%;
    height: 100%;
    fill: var(--dim);
    transform-origin: 50% 50%;
    transition: transform 0.6s ease-in-out, fill var(--t);
  }
  .player__play:hover .player__mark,
  .player.is-playing .player__mark {
    fill: var(--ink);
  }

  /* Track name over a rule that fills as the song plays. */
  .player__seek {
    position: relative;
    flex: 0 1 auto;
    min-width: 0;
    cursor: pointer;
    padding-bottom: 3px;
    border-bottom: 1px solid var(--rule);
  }

  .player__title {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: color var(--t);
  }
  .player.is-playing .player__title {
    color: var(--ink);
  }
  .player__seek:hover .player__title {
    color: var(--ink);
  }

  /* Full width, scaled down to nothing — so progress is a compositor-only
     transform rather than a layout-triggering width change. */
  .player__fill {
    position: absolute;
    left: 0;
    bottom: -1px;
    height: 1px;
    width: 100%;
    background: var(--ink);
    transform: scaleX(0);
    transform-origin: 0 50%;
    will-change: transform;
  }

  .player__time {
    flex: none;
    font-variant-numeric: tabular-nums;
  }

  /* On a narrow screen the skip buttons and clock go before the title does. */
  @media (max-width: 30rem) {
    .player__time,
    #prev,
    #next {
      display: none;
    }
  }

/* ===== Scroll progress bar ===== */
.scrollprogress {
    position: fixed;
    inset: 0 0 auto 0;
    height: 2px;
    z-index: 60;
    pointer-events: none;
  }

  .scrollprogress__fill {
    height: 100%;
    background: var(--ink);
    transform-origin: 0 50%;
    /* Driven by the JS fallback; overridden by the timeline below. */
    transform: scaleX(var(--p, 0));
  }

  @supports (animation-timeline: scroll()) {
    .scrollprogress__fill {
      animation: scrollprogress linear both;
      animation-timeline: scroll(root block);
    }
  }

  @keyframes scrollprogress {
    from {
      transform: scaleX(0);
    }
    to {
      transform: scaleX(1);
    }
  }

  /* Nothing to indicate on a page that doesn't scroll. */
  @media (prefers-reduced-motion: reduce) {
    .scrollprogress__fill {
      transition: none;
    }
  }

/* ===== Status bar ===== */
.statusbar__right {
    flex: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  @media (max-width: 26rem) {
    .statusbar__right {
      display: none;
    }
  }

/* ===== Top bar / nav ===== */
.topbar {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding-block: 1.25rem;
    flex-wrap: wrap;
  }

  .topbar__mark {
    font-family: var(--display);
    font-size: 1.65rem;
    letter-spacing: 0.05em;
    line-height: 1;
  }

  @media (max-width: 34rem) {
    .topbar {
      justify-content: center;
      gap: 0.75rem;
    }
    .topbar .nav {
      width: 100%;
      gap: 1.5rem;
    }
  }

/* ===== /diary listing ===== */
.page {
    padding-block: 1rem 4rem;
  }

  .entries {
    list-style: none;
    margin-top: 1.5rem;
  }

  .entry {
    border-top: 1px solid var(--rule);
  }
  .entry:last-child {
    border-bottom: 1px solid var(--rule);
  }

  /* Type leads, image follows — the masthead is the point. */
  .entry__link {
    display: flex;
    gap: 1.5rem;
    align-items: center;
    justify-content: space-between;
    padding-block: 2rem;
  }

  .entry__cover {
    flex: none;
    width: 4.5rem;
    aspect-ratio: 3 / 4;
    object-fit: cover;
    background: color-mix(in srgb, var(--ink) 7%, transparent);
    filter: grayscale(1);
    transition: filter var(--t), opacity var(--t);
  }

  @media (hover: hover) {
    .entry__link:hover .entry__cover {
      filter: grayscale(0);
    }
    .entry__link:hover .masthead__title {
      font-style: italic;
    }
  }

  .empty {
    color: var(--dim);
    margin-top: 1.25rem;
  }

  @media (max-width: 30rem) {
    .entry__cover {
      display: none;
    }
  }

/* ===== /diary detail ===== */
.page--detail {
    padding-block: 1.5rem 4rem;
  }

  /* Full masthead size — the listing runs the same stack at --scale: 1. */
  .masthead--entry {
    --scale: 1.7;
    margin-bottom: 2rem;
  }

  hr {
    margin-block: 2rem;
  }

  .prose hr {
    margin-block: 1.5rem;
  }

  .prose h2 {
    margin-block: 1.75rem 0.5rem;
  }

  .prose img {
    margin-block: 1.5rem;
  }

  .prose blockquote {
    border-left: 1px solid var(--rule);
    padding-left: 1rem;
    color: var(--dim);
    font-style: italic;
    margin-block: 1.25rem;
  }

  .back {
    display: inline-block;
    transition: color var(--t);
  }
  .back:hover {
    color: var(--ink);
  }

/* ===== /gallery ===== */
.gallery {
    padding-bottom: 3rem;
  }

/* ===== Home ===== */
/* Home is the one page that never scrolls — everything is a click away. */
  .screen {
    gap: 1.5rem;
  }

  .home__rule {
    width: min(18rem, 60%);
  }

  .tagline {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.05rem;
    color: var(--dim);
    letter-spacing: 0.02em;
  }

/* ===== raw-JS port: tile reveal and hover =====
   The React version drove these with GSAP. Plain CSS transitions do the same
   thing with no library. `is-pending` is applied by JS only, so if scripting
   fails the photos are visible rather than stuck at opacity 0. */

.tile {
  transition: opacity 0.55s ease, transform 0.3s ease, filter 0.55s ease;
}

.tile.is-pending {
  opacity: 0;
  transform: translateY(24px);
  filter: blur(6px);
}

@media (hover: hover) {
  .tile:not(.is-pending):hover {
    transform: scale(1.03);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tile {
    transition: none;
  }
}

/* ===== raw-JS port: home tagline =====
   This was a React component pulling in framer-motion — 102 KB of JavaScript
   to fade in three words, and it made the home page the heaviest on the site.
   A keyframe does the same thing for nothing. */

.tagline {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.05rem;
  color: var(--dim);
  letter-spacing: 0.02em;
  animation: tagline-in 0.6s 0.15s ease both;
}

@keyframes tagline-in {
  from {
    opacity: 0;
    transform: translateY(10px);
    filter: blur(6px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .tagline {
    animation: none;
  }
}

/* ===== /backpacking ===== */

.trip {
  padding-bottom: 3rem;
}

.trip__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding-block: 0.9rem 1rem;
  border-bottom: 1px solid var(--rule);
}

.trip__picks {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.1rem;
}

.trip__pick {
  font-family: var(--mono);
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: var(--dim);
  transition: color var(--t);
}
.trip__pick:hover { color: var(--ink); }
.trip__pick[aria-pressed='true'] {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 0.35em;
}

.trip__tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.6rem;
  border-bottom: 1px solid var(--rule);
}
.trip__tools-right { display: flex; gap: 1.1rem; }
.trip__tools .btn[disabled] { opacity: 0.3; cursor: default; }

/* Map left, notes right — the notes column is the blog. */
.trip__split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 22rem;
  gap: 1.5rem;
  margin-top: 1.25rem;
  align-items: start;
}

.trip__map {
  height: min(55vh, 460px);
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--ink) 4%, transparent);
}
.trip__map.is-drawing { cursor: crosshair; }

.trip__notes {
  max-height: min(70vh, 640px);
  overflow-y: auto;
  padding-right: 0.5rem;
}

.trip__head {
  padding-bottom: 0.9rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--rule);
}
.trip__head .masthead__title { font-size: 1.9rem; line-height: 1.04; }

.trip__day { padding-block: 0.9rem; border-bottom: 1px solid var(--rule); }
.trip__day:last-child { border-bottom: 0; }
.trip__day .label { display: block; margin-bottom: 0.3rem; }

/* Leaflet ships its own look; pull it back to the site's palette. */
.leaflet-container {
  font-family: var(--mono);
  font-size: 0.65rem;
  background: var(--paper);
}
.leaflet-control-zoom a {
  border-radius: 0 !important;
  color: var(--ink) !important;
  border-color: var(--rule) !important;
}
.leaflet-control-attribution {
  background: rgba(255, 255, 255, 0.85) !important;
  font-size: 0.6rem !important;
}
.leaflet-tooltip {
  border-radius: 0;
  border: 1px solid var(--ink);
  font-family: var(--mono);
  font-size: 0.6rem;
  box-shadow: none;
}

@media (max-width: 60rem) {
  .trip__split { grid-template-columns: 1fr; }
  .trip__map { height: 55vh; }
  .trip__notes { max-height: none; overflow: visible; }
}

/* OpenStreetMap tiles are full colour; the site is not. Desaturating them in
   CSS keeps the map legible without needing a paid grey basemap. */
.trip__map .leaflet-tile-pane {
  filter: grayscale(1) contrast(0.92) brightness(1.06);
}

/* ===== /backpacking: waypoints + planner output ===== */

/* The route, written as a list in the page. Visible on purpose — it is both
   the data and a useful summary of the trip. */
.waypoints {
  list-style: none;
  counter-reset: wp;
  margin-bottom: 1.5rem;
}

.waypoints li {
  counter-increment: wp;
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  padding-block: 0.4rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.95rem;
}

.waypoints li::before {
  content: counter(wp, decimal-leading-zero);
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  color: var(--dim);
  flex: none;
  min-width: 1.5rem;
}

.trip__masthead {
  padding-block: 0.5rem 1.25rem;
}

/* The block the planner hands you to paste into a trip page. */
.draw-output {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--ink);
}

.draw-output pre {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.draw-output code {
  font-family: var(--mono);
  font-size: 0.72rem;
  line-height: 1.7;
  white-space: pre;
}

/* On the planner page the map stands alone, with no notes column beside it. */
.trip__bar + .trip__tools + .trip__map,
.trip__bar + .trip__map {
  margin-top: 1.25rem;
}

/* ===== trip pages read as journal entries =====
   Writing first in the normal text column; the map sits above it and the
   waypoints fold away, so the route data stays editable without breaking up
   the prose. */

.page--detail .trip__map {
  margin-block: 1.5rem 0;
}

.waypoints-wrap {
  border-bottom: 1px solid var(--rule);
}

.waypoints-wrap > summary {
  cursor: pointer;
  padding-block: 0.7rem;
  list-style: none;
  transition: color var(--t);
}
.waypoints-wrap > summary::-webkit-details-marker { display: none; }
.waypoints-wrap > summary:hover { color: var(--ink); }

/* A plain +/- rather than the browser's triangle. */
.waypoints-wrap > summary::after {
  content: ' +';
  font-family: var(--mono);
}
.waypoints-wrap[open] > summary::after { content: ' \2212'; }

.waypoints-wrap .waypoints {
  margin-bottom: 1rem;
}
.waypoints-wrap .waypoints li:last-child {
  border-bottom: 0;
}
