/*
  Kin & Kith Studios: "Down the creek", a scroll along the explorer's old map.
  One stylesheet for every page. Phone first: the plain rules are for phones, and the @media blocks near the end
  spread things out for tablets (700 px and wider) and computers (900 px and wider).
*/

/* ---------- Fonts: the game's own, cut to Latin letters (tools/build_fonts.mjs) ---------- */

@font-face {
  font-family: "Fredoka";
  src: url("/fonts/fredoka-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "Nunito";
  src: url("/fonts/nunito-800.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}
@font-face {
  font-family: "Lilita One";
  src: url("/fonts/lilita-one.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
/* Luckiest Guy is only in the title sign, where its letters are already outlines, so no page asks for it. */
@font-face {
  font-family: "Luckiest Guy";
  src: url("/fonts/luckiest-guy.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}

/* ---------- Colours and sizes ---------- */

:root {
  --paper: #E9D8B4;        /* the map paper */
  --paper-bar: #E2CDA2;    /* the top bar, a touch darker */
  --paper-card: #F4E9CF;   /* the cards and the menu, lighter */
  --photo: #FBF5E6;        /* the photos' white borders */
  --ink: #3D3326;
  /* The prompt's softer ink #7A6A50 is too faint for small text on these papers (3.4 to 4.4 to 1), so it's darkened
     just enough to pass the 4.5 to 1 accessibility level on all three (tools/contrast.mjs). */
  --ink-soft: #635540;
  /* The footer's #6E604A, darkened the same way (4.35 to 1 before). */
  --ink-foot: #6A5C47;
  /* Darker than the ink, for text on the teal (the ink on teal is only 4.4 to 1). */
  --ink-dark: #241C13;
  --warm: #D9774A;
  --mustard: #E2B24A;
  --teal: #4FA99B;
  --sage: #8FB89A;
  /* The river: the teal at 55% over the map paper, as one solid colour, so its pieces can overlap without dark seams. */
  --river: #94BEA6;
  --line: 2.5px;
  --shadow: 4px 4px 0 rgba(61, 51, 38, 0.25);
  --bar-height: 60px;

  /* The river's layout on a phone: its width; its middle this far in from the side it runs down; how far it wanders
     either side beside a card and behind the photos; how tall each crossing is; the gaps above and below each card;
     and how far a card keeps from the edge on its pin's side and on the river's side. */
  --river-width: 26px;
  --river-edge: 21px;
  --river-wander: 7px;
  --swing: 34px;
  --bend-in: 112px;
  --bend-out: 112px;
  --gap-top: 58px;
  --gap-bottom: 26px;
  --card-pin-side: 18px;
  --card-river-side: 46px;
}

/* ---------- Basics ---------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  /* So a link to a stop doesn't leave it under the sticky bar. */
  scroll-padding-top: calc(var(--bar-height) + 16px);
}

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

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font: 600 17px/1.55 "Nunito", system-ui, sans-serif;
  /* The map paper with a faint dot grid: ink dots at 6%, every 14 px. */
  background-color: var(--paper);
  background-image: radial-gradient(circle at 7px 7px, rgba(61, 51, 38, 0.06) 1.3px, transparent 1.8px);
  background-size: 14px 14px;
}

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

h1,
h2,
h3 {
  font-family: "Fredoka", system-ui, sans-serif;
  font-weight: 600;
  line-height: 1.2;
  /* Even line lengths, so a heading never leaves one word alone on its last line. */
  text-wrap: balance;
}

a {
  color: var(--ink);
}

strong {
  font-weight: 800;
}

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 60;
  padding: 10px 16px;
  background: var(--paper-card);
  border: var(--line) solid var(--ink);
  border-radius: 10px;
  font-weight: 800;
  text-decoration: none;
}
.skip:focus {
  top: 10px;
}

/* The photos switch (data-photos on <body>): off hides the photos and their lines in the menu and the bar. */
body[data-photos="off"] .photos,
body[data-photos="off"] .if-photos {
  display: none;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 22px;
  border: var(--line) solid var(--ink);
  border-radius: 999px;
  box-shadow: 3px 3px 0 rgba(61, 51, 38, 0.25);
  color: var(--ink);
  font: 600 18px/1.15 "Fredoka", system-ui, sans-serif;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
/* The narrowest phones: a little less room round the words so "Wishlist on Steam" and its tag stay on one line. */
@media (max-width: 389.98px) {
  .btn {
    gap: 8px;
    padding-left: 15px;
    padding-right: 15px;
    font-size: 17px;
  }
}
.btn-steam {
  background: var(--mustard);
  white-space: nowrap;
}
.btn-discord {
  background: var(--teal);
  color: var(--ink-dark);
}
.btn-email {
  background: var(--paper-card);
  padding-left: 16px;
  padding-right: 16px;
  font-size: clamp(15px, 4.15vw, 18px);
  max-width: 100%;
}
a.btn:hover {
  box-shadow: 4px 5px 0 rgba(61, 51, 38, 0.3);
  transform: translate(-1px, -1px);
}
a.btn:active {
  box-shadow: 1px 1px 0 rgba(61, 51, 38, 0.25);
  transform: translate(2px, 2px);
}
@media (prefers-reduced-motion: no-preference) {
  a.btn {
    transition: transform 0.12s ease, box-shadow 0.12s ease;
  }
}
/* Not available yet (the Steam button until its link is set): a dashed edge, no lift, and the SOON tag. */
.btn[aria-disabled="true"] {
  border-style: dashed;
  box-shadow: none;
  cursor: default;
}
.btn[aria-disabled="true"]:hover,
.btn[aria-disabled="true"]:active {
  box-shadow: none;
  transform: none;
}
.soon {
  padding: 3px 7px 2px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--paper-card);
  font: 800 11px/1.2 "Nunito", system-ui, sans-serif;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ---------- Map pins: a teardrop with an ink outline and its number (Fredoka) ---------- */

.pin {
  --pin: 36px;
  --pin-colour: var(--mustard);
  position: absolute;
  width: var(--pin);
  height: calc(var(--pin) * 1.21);
  filter: drop-shadow(2px 3px 0 rgba(61, 51, 38, 0.25));
}
.pin::before {
  /* A square with three round corners, turned so its square corner points down: a map pin. */
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pin);
  height: var(--pin);
  border: var(--line) solid var(--ink);
  border-radius: 50% 50% 50% 0;
  background: var(--pin-colour);
  transform: rotate(-45deg);
}
.pin > span {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--pin);
  height: var(--pin);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-dark);
  font: 600 calc(var(--pin) * 0.48)/1 "Fredoka", system-ui, sans-serif;
}
.pin-mustard {
  --pin-colour: var(--mustard);
}
.pin-teal {
  --pin-colour: var(--teal);
}
.pin-sage {
  --pin-colour: var(--sage);
}
.pin-white {
  --pin-colour: var(--photo);
}
.pin-pale {
  --pin-colour: #E9DFC6;
}
.pin-small {
  --pin: 27px;
  position: relative;
  flex: none;
  filter: none;
}
.pin-star {
  position: relative;
  width: 12px;
  height: 12px;
  background: var(--ink);
  clip-path: polygon(50% 0, 62% 35%, 100% 38%, 70% 60%, 80% 98%, 50% 76%, 20% 98%, 30% 60%, 0 38%, 38% 35%);
}

/* ---------- The top bar ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: var(--paper-bar);
  border-bottom: var(--line) solid var(--ink);
}
.bar-in {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 1124px;
  height: calc(var(--bar-height) - var(--line));
  margin: 0 auto;
  padding: 0 6px 0 14px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  margin-right: auto;
  color: var(--ink);
  text-decoration: none;
}
.brand-mark {
  width: 27px;
  height: 30px;
}
.brand-words {
  display: flex;
  flex-direction: column;
}
.brand-name {
  font: 600 17px/1 "Fredoka", system-ui, sans-serif;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.brand-studios {
  margin-top: 4px;
  color: var(--ink-soft);
  font: 800 9.5px/1 "Nunito", system-ui, sans-serif;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}
.places,
.bar-steam {
  display: none;
}

.menu-button {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
/* Three lines, which turn into a cross while the menu is open. */
.menu-lines,
.menu-lines::before,
.menu-lines::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
}
.menu-lines {
  position: relative;
}
.menu-lines::before,
.menu-lines::after {
  content: "";
  position: absolute;
  left: 0;
}
.menu-lines::before {
  top: -8px;
}
.menu-lines::after {
  top: 8px;
}
.menu-button[aria-expanded="true"] .menu-lines {
  background: transparent;
}
.menu-button[aria-expanded="true"] .menu-lines::before {
  top: 0;
  transform: rotate(45deg);
}
.menu-button[aria-expanded="true"] .menu-lines::after {
  top: 0;
  transform: rotate(-45deg);
}

/* ---------- The menu (phones and tablets): drops down under the bar ---------- */

.menu {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  max-height: calc(100vh - var(--bar-height));
  max-height: calc(100dvh - var(--bar-height));
  overflow-y: auto;
  background: var(--paper-card);
  border-bottom: var(--line) solid var(--ink);
  /* The bar's ink line sits just above it. */
  margin-top: 0;
}
.menu[hidden] {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .menu:not([hidden]) {
    animation: menu-drop 0.18s ease-out;
  }
}
@keyframes menu-drop {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
}
.menu nav {
  max-width: 520px;
  margin: 0 auto;
  padding: 16px 20px 22px;
}
.menu-head {
  margin: 0 0 6px;
  color: var(--ink-soft);
  font: 400 15px/1.2 "Lilita One", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.menu-list {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}
.menu-list li + li {
  border-top: 2px dashed rgba(61, 51, 38, 0.4);
}
.menu-list a {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 9px 4px;
  color: var(--ink);
  text-decoration: none;
}
.menu-list .pin-small {
  margin-top: 6px;
}
.place {
  display: flex;
  flex-direction: column;
}
.place-name {
  font: 600 19px/1.2 "Fredoka", system-ui, sans-serif;
}
.place-note {
  color: var(--ink-soft);
  font: 600 14px/1.35 "Nunito", system-ui, sans-serif;
}
.menu-steam {
  width: 100%;
}

/* The rest of the page dimmed behind the open menu. */
.dim {
  position: fixed;
  inset: 0;
  z-index: 25;
  background: rgba(61, 51, 38, 0.35);
}
.dim[hidden] {
  display: none;
}

/* ---------- The map: everything between the bar and the footer ---------- */

.map {
  max-width: 1124px;
  margin: 0 auto;
  padding: 0 12px;
}

/* The intro, centred */
.intro {
  position: relative;
  padding: 34px 6px 38px;
  text-align: center;
}
.lockup {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0;
}
.lockup-mark {
  width: 120px;
  height: auto;
  margin-bottom: 16px;
}
.lockup-name {
  font: 600 34px/1.05 "Fredoka", system-ui, sans-serif;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.lockup-studios {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  color: var(--ink-soft);
  font: 800 13px/1 "Nunito", system-ui, sans-serif;
  letter-spacing: 0.5em;
  text-transform: uppercase;
}
.lockup-studios::before,
.lockup-studios::after {
  content: "";
  width: 22px;
  height: 1.5px;
  background: currentColor;
}
/* The letter spacing also leaves a space after the last letter; the same space before the word keeps it centred
   between its two lines. */
.lockup-studios::before {
  margin-right: 0.5em;
}
.tagline {
  max-width: 19em;
  margin: 18px auto 0;
  font-size: 18px;
  line-height: 1.45;
}
.follow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 22px 0 0;
  color: var(--ink-soft);
  font: 400 14px/1.2 "Lilita One", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.follow-arrow {
  width: 10px;
  height: 15px;
}
.follow-arrow path {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- The river ----------
   Drawn in pieces, one set per section, so it always joins up whatever height the cards turn out to be. Every section
   starts and ends with the river in the middle of the page; in between it crosses to the side its card leaves free
   (r-in), runs down beside the card (r-run) and crosses back (r-out), slipping behind the card's corners as it goes.
   The crossings have a fixed height and the run takes the rest, so the pieces are stretched to fit: the band and the
   dotted line keep their real thickness however a piece is stretched (vector-effect), and every piece starts and ends
   heading straight down, so the joins are smooth. Each piece's size is spelled out, as an SVG left to work out its own
   size would stay square. */

.river {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.river svg {
  position: absolute;
  overflow: visible;
  max-width: none;
}
.r-band {
  fill: none;
  stroke: var(--river);
  stroke-width: var(--river-width);
  vector-effect: non-scaling-stroke;
}
.r-route {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.8;
  stroke-width: 2.6px;
  stroke-linecap: round;
  stroke-dasharray: 0 8.5;
  vector-effect: non-scaling-stroke;
}
/* Where the river starts, just under "Follow the creek": a rounded spring. */
.r-start {
  left: calc(50% - 5px);
  width: 10px;
  bottom: 0;
  height: 22px;
}
.r-start .r-band,
.r-end .r-band {
  stroke-linecap: round;
}
.r-in {
  top: 0;
  height: var(--bend-in);
}
.r-out {
  bottom: 0;
  height: var(--bend-out);
}
.r-run {
  top: var(--bend-in);
  height: calc(100% - var(--bend-in) - var(--bend-out));
  width: calc(var(--river-wander) * 2);
}
/* The last run goes on to the end of the river, just past the last card. */
.r-run.r-end {
  height: calc(100% - var(--bend-in));
}
.r-swing {
  top: 0;
  height: 100%;
  left: calc(50% - var(--swing));
  width: calc(var(--swing) * 2);
}

/* Phones and tablets: a card on the left leaves the river the right-hand side (stops 1 and 3); a card on the right
   leaves it the left (stop 2). A crossing piece runs from its top left to its bottom right; mirrored, the other way. */
.stop-1 .r-in,
.stop-1 .r-out,
.stop-3 .r-in {
  left: 50%;
  width: calc(50% - var(--river-edge));
}
.stop-1 .r-out,
.stop-2 .r-in,
.stop-2 .r-run {
  transform: scaleX(-1);
}
.stop-1 .r-run,
.stop-3 .r-run {
  left: calc(100% - var(--river-edge) - var(--river-wander));
}
.stop-2 .r-in,
.stop-2 .r-out {
  left: var(--river-edge);
  width: calc(50% - var(--river-edge));
}
.stop-2 .r-run {
  left: calc(var(--river-edge) - var(--river-wander));
}

/* The little map marks beside the river: ink at 55%. */
.mark {
  position: absolute;
  opacity: 0.55;
}
.stop-1 .mark-hills {
  left: 21%;
  top: 14px;
}
.stop-2 .mark-waves {
  right: 24%;
  top: 18px;
}
.stop-3 .mark-hills {
  left: 22%;
  top: 14px;
}
.stop-3 .mark-x {
  right: calc(var(--river-edge) + 26px);
  bottom: 6px;
}

/* ---------- The stops ---------- */

.stop {
  position: relative;
  padding: var(--gap-top) 0 var(--gap-bottom);
}
.stop-3 {
  padding-bottom: 50px;
}
.card {
  position: relative;
  z-index: 1;
  margin: 0 var(--card-river-side) 0 var(--card-pin-side);
  padding: 20px 16px 22px;
  background: var(--paper-card);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
}
@media (max-width: 389.98px) {
  .card {
    padding-left: 13px;
    padding-right: 13px;
  }
}
/* Stop 2's card sits on the right, with its pin on the right. */
.stop-2 .card {
  margin: 0 var(--card-pin-side) 0 var(--card-river-side);
}
.card .pin {
  top: -17px;
  left: calc(var(--pin) / -2 - 2px);
}
.stop-2 .card .pin {
  left: auto;
  right: calc(var(--pin) / -2 - 2px);
}
.label {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font: 400 14px/1.25 "Lilita One", system-ui, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
/* Clear of the pin on a left-hand card. */
.stop-1 .label,
.stop-3 .label {
  padding-left: 14px;
}
.stop-2 .label {
  padding-right: 14px;
}
.sign {
  margin: 0 0 14px;
}
.sign img {
  width: 100%;
  height: auto;
}
.card p {
  margin: 0 0 18px;
}
.card-title {
  margin: 0 0 8px;
  font-size: 22px;
}
.bottle-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px;
}
.bottle-line .card-title {
  margin: 0;
}
.bottle {
  flex: none;
  width: 54px;
  height: auto;
}

/* ---------- The photos: pinned to the map with a strip of tape ---------- */

.photos {
  position: relative;
  padding: 34px 2px 34px;
}
.photo-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.photo-list li:nth-child(3) {
  grid-column: 1 / -1;
  justify-self: center;
  width: 58%;
}
.photo {
  --tilt: -4deg;
  position: relative;
  display: block;
  padding: 6px 6px 0;
  background: var(--photo);
  border-radius: 3px;
  box-shadow: var(--shadow);
  color: var(--ink);
  text-decoration: none;
  transform: rotate(var(--tilt));
}
.photo-2 {
  --tilt: 3deg;
}
.photo-3 {
  --tilt: -2deg;
}
/* The tape across the top. */
.photo::before {
  content: "";
  position: absolute;
  top: -9px;
  left: 28%;
  width: 44%;
  height: 18px;
  background: rgba(226, 178, 74, 0.55);
  transform: rotate(-4deg);
}
.photo-2::before {
  transform: rotate(5deg);
}
.photo img {
  width: 100%;
  height: auto;
}
.photo-caption {
  display: block;
  padding: 7px 2px 9px;
  font: 400 11.5px/1.2 "Lilita One", system-ui, sans-serif;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
}
/* A little paper label, so the river can run behind it like a name on a map. */
.photo-hint {
  position: relative;
  z-index: 1;
  width: fit-content;
  margin: 22px auto 0;
  padding: 2px 10px;
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink-soft);
  font-size: 14px;
  text-align: center;
}

/* ---------- The photo viewer (made by site.js) ---------- */

.viewer {
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  /* Sideways swipes belong to the viewer (they step through the photos): without this, a swipe to the right can make
     the browser go back a page. Up-and-down and pinching still work as usual. */
  touch-action: pan-y pinch-zoom;
  overscroll-behavior: contain;
}
.viewer[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}
.viewer::backdrop {
  background: rgba(36, 28, 19, 0.82);
}
.viewer-frame {
  max-width: calc(100vw - 24px);
  margin: 0 12px;
  padding: 8px 8px 0;
  background: var(--photo);
  border-radius: 4px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.viewer-img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 150px);
  max-height: calc(100dvh - 150px);
}
.viewer-caption {
  padding: 10px 4px 12px;
  font: 400 16px/1.2 "Lilita One", system-ui, sans-serif;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}
.viewer-close {
  position: fixed;
  top: 12px;
  right: 12px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: var(--line) solid var(--ink);
  border-radius: 50%;
  background: var(--paper-card);
  color: var(--ink);
  cursor: pointer;
}
.viewer-close span,
.viewer-close span::before {
  display: block;
  width: 22px;
  height: 3px;
  border-radius: 2px;
  background: currentColor;
  transform: rotate(45deg);
}
.viewer-close span::before {
  content: "";
  transform: rotate(90deg);
}
.viewer-close:focus-visible {
  outline-color: var(--paper-card);
}

/* ---------- The privacy page: one readable column on a card ---------- */

.page {
  padding: 28px 12px 12px;
}
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 20px 30px;
  background: var(--paper-card);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  font-size: 17px;
  line-height: 1.6;
}
/* The text itself never wider than 680 px. */
.doc > * {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.doc h1 {
  margin-top: 0;
  margin-bottom: 4px;
  font-size: 32px;
}
.doc .updated {
  margin-top: 0;
  color: var(--ink-soft);
  font-size: 15px;
}
.doc h2 {
  margin-top: 34px;
  margin-bottom: 8px;
  padding-top: 18px;
  border-top: 2px dashed rgba(61, 51, 38, 0.3);
  font-size: 23px;
}
.doc p,
.doc ul {
  margin-top: 0;
  margin-bottom: 14px;
}
.doc ul {
  padding-left: 22px;
}
.doc li {
  margin-bottom: 6px;
}
.doc li::marker {
  color: var(--ink-soft);
}
.doc a {
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  overflow-wrap: anywhere;
}
.policy-table {
  width: 100%;
  margin-bottom: 18px;
  border-collapse: collapse;
  font-size: 15.5px;
  line-height: 1.5;
}
.policy-table th,
.policy-table td {
  padding: 9px 10px;
  border: 1.5px solid rgba(61, 51, 38, 0.35);
  text-align: left;
  vertical-align: top;
}
.policy-table th {
  background: var(--paper-bar);
  font: 600 15.5px/1.3 "Fredoka", system-ui, sans-serif;
}
.policy-table td:first-child {
  font-weight: 800;
}
/* Phones: each row becomes a little block of labelled lines instead of a table that would need scrolling sideways. */
@media (max-width: 639.98px) {
  .policy-table,
  .policy-table tbody,
  .policy-table tr,
  .policy-table td {
    display: block;
  }
  .policy-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .policy-table tr {
    margin-bottom: 12px;
    border: 1.5px solid rgba(61, 51, 38, 0.35);
    border-radius: 10px;
    overflow: hidden;
  }
  .policy-table td {
    padding: 8px 12px;
    border: 0;
  }
  .policy-table td + td {
    border-top: 1.5px dashed rgba(61, 51, 38, 0.25);
  }
  .policy-table td:first-child {
    background: var(--paper-bar);
  }
  .policy-table td::before {
    content: attr(data-label);
    display: block;
    color: var(--ink-soft);
    font: 800 12px/1.4 "Nunito", system-ui, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }
}
@media (min-width: 700px) {
  .page {
    padding: 44px 24px 20px;
  }
  .doc {
    padding: 40px 40px 44px;
  }
  .doc h1 {
    font-size: 40px;
  }
  .doc h2 {
    font-size: 26px;
  }
}

/* The bar's and menu's link to the page you're on. */
.places a[aria-current="page"] {
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

/* ---------- The 404 page ---------- */

.lost {
  display: flex;
  justify-content: center;
  padding-top: 40px;
  padding-bottom: 40px;
}
.lost-card {
  max-width: 520px;
  padding: 26px 24px 32px;
  background: var(--paper-card);
  border: var(--line) solid var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  text-align: center;
}
.lost-river {
  width: 220px;
  margin: 0 auto 10px;
}
.lost-band {
  fill: none;
  stroke: var(--river);
  stroke-width: 22;
  stroke-linecap: round;
}
.lost-route {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.8;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-dasharray: 0 8.5;
}
.lost-x {
  fill: none;
  stroke: var(--ink);
  stroke-opacity: 0.55;
  stroke-width: 3.5;
  stroke-linecap: round;
}
.lost h1 {
  margin: 0 0 8px;
  font-size: 30px;
}
.lost p {
  margin: 0 0 22px;
  color: var(--ink-soft);
}
.btn-home {
  background: var(--mustard);
}
@media (min-width: 700px) {
  .lost {
    padding-top: 80px;
    padding-bottom: 70px;
  }
  .lost-card {
    padding: 34px 44px 40px;
  }
  .lost h1 {
    font-size: 36px;
  }
}

/* ---------- The footer ---------- */

.foot {
  padding: 22px 16px 34px;
  color: var(--ink-foot);
  font-size: 13.5px;
  line-height: 1.55;
  text-align: center;
}
.foot-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}
.foot-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 10px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
  text-underline-offset: 3px;
}
.foot p {
  max-width: 36em;
  margin: 0 auto;
}

/* ---------- Tablets (700 px and wider) ----------
   The same scroll, with more room: each card is about 460 px wide on its own side, the river runs beside it on the
   open side (a set distance from the card, never closer to the middle than its own little swing), and the photos sit
   three in a row. */

@media (min-width: 700px) {
  :root {
    --river-width: 30px;
    --river-wander: 12px;
    --swing: 44px;
    --bend-in: 134px;
    --bend-out: 134px;
    --gap-top: 70px;
    --gap-bottom: 32px;
    --card-pin-side: 28px;
    --card-w: min(460px, calc(100% - var(--card-pin-side) - 150px));
    /* A card sits this far in from its own side: near the edge on a tablet, and on a wide screen close to the middle,
       its inner edge 40 px short of it, so the river runs between the cards. */
    --card-margin: max(var(--card-pin-side), calc(50% - 40px - var(--card-w)));
    /* How far in from the open side the river runs: 62 px clear of the card on a tablet, and on a wide screen 46 px
       past the middle (whichever is further from the card). */
    --river-edge: min(calc(50% - 46px), calc(100% - var(--card-margin) - var(--card-w) - 62px));
  }
  .map {
    padding: 0 24px;
  }
  .intro {
    padding-top: 48px;
    padding-bottom: 42px;
  }
  .lockup-mark {
    width: 140px;
  }
  .lockup-name {
    font-size: 42px;
  }
  .lockup-studios {
    margin-top: 10px;
    font-size: 14px;
  }
  .lockup-studios::before,
  .lockup-studios::after {
    width: 28px;
  }
  .tagline {
    font-size: 20px;
  }
  .follow {
    font-size: 15px;
  }
  .card {
    width: var(--card-w);
    margin: 0 auto 0 var(--card-margin);
    padding: 26px 28px 28px;
  }
  .stop-2 .card {
    margin: 0 var(--card-margin) 0 auto;
  }
  .card .pin {
    --pin: 40px;
    top: -19px;
  }
  .label {
    font-size: 15px;
  }
  .stop-1 .label,
  .stop-3 .label {
    padding-left: 12px;
  }
  .card p {
    font-size: 18px;
  }
  .card-title {
    font-size: 25px;
  }
  .bottle {
    width: 62px;
  }
  .btn-email {
    font-size: 18px;
  }
  .photos {
    padding: 46px 0 40px;
  }
  .photo-list {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    max-width: 760px;
    margin: 0 auto;
  }
  .photo-list li:nth-child(3) {
    grid-column: auto;
    width: auto;
  }
  /* The middle photo pinned a little lower, over the river. */
  .photo-list li:nth-child(2) {
    margin-top: 26px;
  }
  .photo {
    padding: 7px 7px 0;
  }
  .photo-caption {
    font-size: 12.5px;
  }
  .photo-hint {
    margin-top: 28px;
    font-size: 15px;
  }
  .mark {
    transform: scale(1.25);
  }
  /* Marks in the middle of the open space beyond the river, opposite each card. */
  .stop-1 .mark-hills,
  .stop-3 .mark-hills {
    left: auto;
    right: calc((var(--river-edge) - 40px) / 2 - 23px);
    top: 46%;
  }
  .stop-3 .mark-hills {
    top: 40%;
  }
  .stop-2 .mark-waves {
    right: auto;
    left: calc((var(--river-edge) - 40px) / 2 - 20px);
    top: 52%;
  }
  .stop-3 .mark-x {
    right: calc(var(--river-edge) + 34px);
    bottom: 8px;
  }
  .foot {
    padding-top: 30px;
    font-size: 14px;
  }
}

/* ---------- Computers (900 px and wider) ----------
   The bar spreads out with the places as links across it and the Steam button at the right; no menu button. The page
   is never wider than about 1100 px. */

@media (min-width: 900px) {
  :root {
    --bar-height: 70px;
    --river-width: 34px;
    --river-wander: 16px;
    --swing: 54px;
    --bend-in: 112px;
    --bend-out: 112px;
    --card-w: 460px;
    --card-pin-side: 30px;
  }
  .bar-in {
    gap: 8px;
    max-width: 1148px;
    padding: 0 24px;
  }
  .brand-mark {
    width: 31px;
    height: 34px;
  }
  .brand-name {
    font-size: 18px;
  }
  .brand-studios {
    font-size: 10px;
  }
  .menu-button,
  .menu,
  .dim {
    display: none;
  }
  .places {
    display: block;
  }
  .places ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
  }
  .places a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    border-radius: 8px;
    font: 600 16px/1.2 "Fredoka", system-ui, sans-serif;
    text-decoration: none;
    white-space: nowrap;
  }
  .brand-words {
    white-space: nowrap;
  }
  .places a:hover {
    text-decoration: underline;
    text-decoration-thickness: 2px;
    text-underline-offset: 5px;
  }
  .bar-steam {
    display: inline-flex;
    margin-left: 10px;
    padding: 6px 16px;
    font-size: 16px;
  }
  .map {
    max-width: 1148px;
  }
  .intro {
    padding-top: 56px;
  }
  .lockup-mark {
    width: 156px;
    margin-bottom: 20px;
  }
  .lockup-name {
    font-size: 48px;
  }
  .lockup-studios {
    font-size: 15px;
  }
  .tagline {
    font-size: 21px;
  }
  /* The photos spread out wider, across the river. */
  .photo-list {
    max-width: 1000px;
    gap: 44px;
  }
  .photo-list li:nth-child(2) {
    margin-top: 34px;
  }
  .photo {
    padding: 9px 9px 0;
  }
  .photo-caption {
    padding: 9px 4px 11px;
    font-size: 14px;
  }
  .mark {
    transform: scale(1.5);
  }
}

/* Between 900 and 1100 px the bar is a little tight, so its words and gaps are a touch smaller. */
@media (min-width: 900px) and (max-width: 1099.98px) {
  .bar-in {
    gap: 4px;
    padding: 0 16px;
  }
  .places a {
    padding: 0 7px;
    font-size: 15px;
  }
  .bar-steam {
    gap: 7px;
    margin-left: 6px;
    padding: 6px 13px;
    font-size: 15px;
  }
}
