/* Rune: the pixel harbour. Built on the pixel-world rules of leander-endres.de/neu
   (docs/STYLEGUIDE.md there): solid pixel scenes, a calm left side for text,
   notched dialogue boxes, crenellated edges between blocks. No blur, no gradient,
   no rounded corner. Every colour below has a source. */

@font-face {
  font-family: "Jersey 25";
  src: url("fonts/jersey-25.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Geist Pixel";
  src: url("fonts/geist-pixel-square.woff2") format("woff2");
  font-display: swap;
}

@font-face {
  font-family: "Geist";
  src: url("fonts/geist-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --night: #141c52;   /* night sky of the harbour scenes (pixel world) */
  --blue: #2c4bfd;    /* day sky, pixel-world blue */
  --ink: #0b1030;     /* near-black tinted to the blue (pixel world) */
  --paper: #f4f4f4;   /* flat sections (pixel world) */
  --white: #fff;
  --ice: #b9eafe;     /* the glowing rune in the app icon, light */
  --glow: #6cc4fd;    /* the glowing rune in the app icon, mid */
  --red: #f80316;     /* the ninja headband in the app icon */
  --px: clamp(3px, 0.3vw, 5px);
  --gutter: clamp(1.25rem, 5vw, 5rem);
  --display: "Jersey 25", ui-monospace, monospace;
  --ui: "Geist Pixel", ui-monospace, monospace;
  --text: "Geist", system-ui, -apple-system, sans-serif;
  /* Notched corners like a game dialogue box. */
  --notch: polygon(
    0 var(--px), var(--px) var(--px), var(--px) 0,
    calc(100% - var(--px)) 0, calc(100% - var(--px)) var(--px), 100% var(--px),
    100% calc(100% - var(--px)), calc(100% - var(--px)) calc(100% - var(--px)), calc(100% - var(--px)) 100%,
    var(--px) 100%, var(--px) calc(100% - var(--px)), 0 calc(100% - var(--px))
  );
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--night);
}

body {
  margin: 0;
  background: var(--night);
  color: var(--white);
  font-family: var(--text);
  font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.2rem);
  line-height: 1.5;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-underline-offset: 0.2em; }

:focus-visible {
  outline: var(--px) solid var(--ice);
  outline-offset: var(--px);
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  padding: 0.5rem 0.9rem;
  background: var(--white);
  color: var(--ink);
}

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

/* Type: pixel faces for what a game would print, Geist for reading. */

h2 {
  margin: 0 0 1.2rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.6rem, 1.6rem + 4vw, 5rem);
  line-height: 0.95;
  text-wrap: balance;
}

h3,
.label,
.press,
.meta,
.hud ol,
.slot,
.inventory strong,
.members strong {
  font-family: var(--ui);
  font-weight: 400;
}

h3 {
  margin: 0 0 1.4rem;
  font-size: clamp(1rem, 0.85rem + 0.6vw, 1.3rem);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.label {
  margin: 0 0 1rem;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--glow);
}

.paper .label { color: var(--blue); }

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

/* Scenes: one picture, cover-cropped, pixels kept sharp. */

.layer,
.layer img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.layer img {
  object-fit: cover;
  object-position: var(--fx, 70%) 50%;
  image-rendering: pixelated;
}

/* Title screen */

.title {
  position: relative;
  height: 100svh;
  min-height: 38rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  --fx: 66%;
}

.hud {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem var(--gutter);
}

.home {
  display: block;
  width: clamp(3.2rem, 4.6vw, 4.4rem);
}

.home img { width: 100%; image-rendering: pixelated; }

.home:hover img { translate: 0 calc(var(--px) * -1); }

/* Navigation as a level-select window: a double pixel frame and a cursor. */
.hud nav {
  position: relative;
  padding: 0.55rem 0.7rem;
  background: var(--ink);
  border: var(--px) solid var(--white);
  box-shadow: inset 0 0 0 var(--px) var(--blue);
  clip-path: var(--notch);
}

.hud nav::before {
  content: "Select level";
  position: absolute;
  left: 1.1rem;
  top: calc(var(--px) * -0.5);
  padding: 0 0.4rem;
  font-family: var(--ui);
  font-size: 0.6rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: var(--ink);
  color: var(--glow);
}

.hud ol {
  display: flex;
  gap: 0.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.85rem;
}

.hud ol a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.55rem 0.35rem 1.1rem;
  text-decoration: none;
  white-space: nowrap;
}

.hud ol a::before {
  content: "▶";
  position: absolute;
  left: 0.1rem;
  font-size: 0.7em;
  color: var(--ice);
  opacity: 0;
}

.hud ol a span {
  display: inline-grid;
  place-items: center;
  width: 1.45em;
  height: 1.45em;
  background: var(--ice);
  color: var(--ink);
  clip-path: var(--notch);
}

.hud ol a:hover,
.hud ol a:focus-visible { color: var(--ice); outline: none; }

.hud ol a:hover::before,
.hud ol a:focus-visible::before { opacity: 1; }

.hud ol a:hover span,
.hud ol a:focus-visible span { background: var(--white); }

.title-copy {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  top: clamp(6.5rem, 17vh, 10rem);
  max-width: min(34rem, 44vw);
}

.logo { margin: 0 0 1.2rem; }

.logo img {
  width: clamp(16rem, 8rem + 20vw, 30rem);
  image-rendering: pixelated;
}

.line {
  padding: 0.9rem 1.1rem;
  background: var(--ink);
  border: var(--px) solid var(--white);
  clip-path: var(--notch);
  margin-bottom: 1.8rem;
  font-size: 1.1em;
  font-weight: 500;
}

.press {
  display: inline-block;
  padding: 0.85rem 1.35rem;
  background: var(--ice);
  color: var(--ink);
  font-size: 1rem;
  text-transform: uppercase;
  text-decoration: none;
  clip-path: var(--notch);
  box-shadow: inset 0 calc(var(--px) * -1) 0 var(--glow);
}

.press:hover { background: var(--white); }

.press::after {
  content: "▶";
  display: inline-block;
  margin-left: 0.6em;
  font-size: 0.75em;
}

.meta {
  margin-top: 1rem;
  font-size: 0.8rem;
  color: rgb(255 255 255 / 0.78);
}

/* Blocks between scenes start with a crenellated pixel edge. */

.flat {
  position: relative;
  padding: clamp(3.5rem, 9vh, 6.5rem) var(--gutter);
  --c-ground: var(--night);
  background: var(--c-ground);
}

.flat::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: calc(var(--px) * -4);
  height: calc(var(--px) * 4);
  background:
    linear-gradient(90deg, var(--c-ground) 50%, transparent 0) 0 0 / calc(var(--px) * 8) 50% repeat-x,
    linear-gradient(var(--c-ground), var(--c-ground)) 0 100% / 100% 50% no-repeat;
}

.night { --c-ground: var(--night); }
.ink { --c-ground: var(--ink); }
.paper { --c-ground: var(--paper); color: var(--ink); }

/* Copy and a screenshot side by side. */

.split {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
  max-width: 88rem;
  margin: 0 auto;
}

.split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.split.flip .copy { order: 2; }

.copy > p:not(.label) { max-width: 34rem; }

.points {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
  max-width: 34rem;
}

.points li {
  position: relative;
  padding-left: 1.6rem;
}

.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: calc(var(--px) * 2);
  height: calc(var(--px) * 2);
  background: var(--glow);
  box-shadow: var(--px) var(--px) 0 var(--ink);
}

.paper .points li::before { background: var(--blue); box-shadow: var(--px) var(--px) 0 var(--glow); }

/* Screenshots sit in a hard pixel frame with a stepped shadow. */
.shot {
  margin: 0;
  padding: var(--px);
  background: var(--white);
  box-shadow:
    calc(var(--px) * 2) calc(var(--px) * 2) 0 var(--ink),
    calc(var(--px) * 3) calc(var(--px) * 3) 0 var(--glow);
}

.paper .shot { background: var(--ink); box-shadow: calc(var(--px) * 2) calc(var(--px) * 2) 0 var(--blue); }

.shot img { width: 100%; }

/* Scenes with a dialogue box. */

.level { position: relative; isolation: isolate; }

.stage {
  position: relative;
  height: 100svh;
  min-height: 36rem;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  --fx: 72%;
}

.stage.day { background: var(--blue); --fx: 70%; }

.box {
  position: absolute;
  z-index: 2;
  left: var(--gutter);
  bottom: clamp(1.5rem, 7vh, 4.5rem);
  width: min(34rem, calc(100% - 2 * var(--gutter)));
  padding: clamp(1.2rem, 2.5vw, 2rem);
  background: var(--ink);
  border: var(--px) solid var(--white);
  clip-path: var(--notch);
}

.box h2 { font-size: clamp(2.4rem, 1.4rem + 3.4vw, 4.4rem); }

.box .press { margin-top: 1.4rem; }

.box a:not(.press) { color: var(--ice); }

.needs {
  margin: 1.3rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.3rem;
  font-size: 0.9em;
  color: rgb(255 255 255 / 0.82);
}

.needs li::before { content: "+ "; font-family: var(--ui); color: var(--glow); }

/* The agents as an RPG party. */

.party h3 { color: var(--glow); }

.members {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--px);
  max-width: 88rem;
}

.members li {
  display: grid;
  align-content: start;
  gap: 0.5rem;
  padding: 1.2rem 1.1rem 1.4rem;
  background: var(--night);
  border: var(--px) solid rgb(255 255 255 / 0.14);
}

.slot {
  display: inline-grid;
  place-items: center;
  width: 1.8rem;
  height: 1.8rem;
  background: var(--ice);
  color: var(--ink);
  font-size: 0.85rem;
  clip-path: var(--notch);
}

.members strong { font-size: 1.05rem; color: var(--white); }

.members li > span:last-child { font-size: 0.95em; color: rgb(255 255 255 / 0.8); }

.notes {
  grid-template-columns: 1fr 1fr;
  align-items: start;
  margin: 2.4rem 0 0;
  max-width: 88rem;
  color: rgb(255 255 255 / 0.85);
}

/* Inventory: slots in a grid, like a game's item bag. */

.inventory {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--px);
  max-width: 88rem;
}

.inventory li {
  display: grid;
  gap: 0.35rem;
  padding: 1.1rem 1.2rem;
  background: var(--night);
  border: var(--px) solid rgb(255 255 255 / 0.12);
}

.inventory strong { color: var(--ice); font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.06em; }

.inventory span { font-size: 0.95em; color: rgb(255 255 255 / 0.82); }

/* Footer */

.footer {
  display: grid;
  justify-items: start;
  gap: 0.8rem;
  padding-block: 3rem 3.5rem;
}

.footer img { width: 3.5rem; image-rendering: pixelated; }

.footer a { color: var(--ice); }

.small { font-size: 0.85em; color: rgb(255 255 255 / 0.65); }

/* Shared bits: keys, inline code, a hidden heading, follow-on links. */

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

kbd,
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.86em;
}

kbd {
  display: inline-block;
  padding: 0.05em 0.45em;
  background: var(--ink);
  color: var(--white);
  clip-path: var(--notch);
  --px: 2px;
  white-space: nowrap;
}

.paper kbd { box-shadow: inset 0 -2px 0 var(--blue); }
.night kbd,
.ink kbd { background: var(--white); color: var(--ink); box-shadow: inset 0 -2px 0 var(--glow); }

code {
  padding: 0.05em 0.3em;
  background: rgb(255 255 255 / 0.1);
}

.paper code { background: rgb(11 16 48 / 0.07); }

.more {
  margin-top: 1.4rem;
  font-family: var(--ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.more a { color: var(--ice); }
.paper .more a { color: var(--blue); }

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

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.press.ghost {
  background: var(--ink);
  color: var(--white);
  box-shadow: inset 0 0 0 var(--px) var(--white);
}

.press.ghost:hover { background: var(--night); color: var(--ice); }
.press.ghost::after { content: "?"; }

/* Three pillars under the title screen. */

.pillars {
  margin: 0 auto;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 88rem;
}

.pillars h3 {
  margin-bottom: 0.7rem;
  font-family: var(--display);
  font-size: clamp(1.7rem, 1.2rem + 1.4vw, 2.4rem);
  line-height: 1;
  text-transform: none;
  letter-spacing: 0;
}

.pillars p:not(.label) { color: rgb(255 255 255 / 0.84); }

/* Two screenshots side by side, and portrait screenshots in the manual. */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.5rem, 3vw, 3rem);
  max-width: 88rem;
  margin: 3rem 0 0;
}

.shot figcaption {
  padding: 0.7rem 0.4rem 0.4rem;
  font-size: 0.9em;
  color: var(--ink);
}

.page .shot.portrait { max-width: 26rem; }

/* Agent turn in three steps, and privacy facts. */

.spaced { margin-top: 3rem; }

.steps,
.facts {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: var(--px);
  max-width: 88rem;
}

.steps { grid-template-columns: repeat(3, minmax(0, 1fr)); counter-reset: step; }

.steps li,
.facts li {
  display: grid;
  align-content: start;
  gap: 0.45rem;
  padding: 1.2rem 1.2rem 1.4rem;
  background: var(--night);
  border: var(--px) solid rgb(255 255 255 / 0.14);
}

.steps li { counter-increment: step; }

.steps strong::before {
  content: counter(step) " ";
  color: var(--glow);
}

.steps strong,
.facts strong {
  font-family: var(--ui);
  font-weight: 400;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--white);
}

.steps span,
.facts span { font-size: 0.95em; color: rgb(255 255 255 / 0.82); }

.facts { grid-template-columns: 1fr 1fr; }
.facts li { background: var(--ink); }
.facts strong { color: var(--ice); }

/* FAQ as a list of chests you open. */

.narrow { max-width: 52rem; margin: 0 auto; }

.faq { display: grid; gap: var(--px); }

.faq details {
  background: var(--white);
  border: var(--px) solid var(--ink);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.2rem;
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.faq summary::after {
  content: "+";
  font-family: var(--ui);
  color: var(--blue);
}

.faq details[open] summary::after { content: "−"; }

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

.faq details p { padding: 0 1.2rem 1.2rem; max-width: 44rem; }

.box .small { margin-top: 1rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1.4rem;
  font-family: var(--ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.footer-links a { color: var(--white); text-decoration: none; }
.footer-links a:hover { color: var(--ice); }

/* The manual: a shorter title scene, then contents and pages on paper. */

.title.short {
  height: 78svh;
  min-height: 34rem;
}

.title.short .title-copy { top: auto; bottom: clamp(2rem, 8vh, 5rem); }

.title.short h1 {
  margin: 0 0 1rem;
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(3.4rem, 2rem + 5vw, 6.5rem);
  line-height: 0.9;
}

.manual {
  display: grid;
  grid-template-columns: minmax(14rem, 17rem) minmax(0, 48rem);
  gap: clamp(2rem, 5vw, 5rem);
  justify-content: center;
  align-items: start;
}

.toc {
  position: sticky;
  top: 1.5rem;
  max-height: calc(100svh - 3rem);
  overflow-y: auto;
  padding: 1.1rem 1rem;
  background: var(--ink);
  color: var(--white);
  clip-path: var(--notch);
  overscroll-behavior: contain;
}

.toc summary {
  font-family: var(--ui);
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--glow);
  list-style: none;
  pointer-events: none;
}

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

.toc ol {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.05rem;
  font-size: 0.92rem;
}

.toc a {
  display: block;
  padding: 0.28rem 0.5rem 0.28rem 1.1rem;
  position: relative;
  text-decoration: none;
  color: rgb(255 255 255 / 0.82);
}

.toc a::before {
  content: "▶";
  position: absolute;
  left: 0.1rem;
  font-size: 0.6em;
  top: 0.75em;
  color: var(--ice);
  opacity: 0;
}

.toc a:hover,
.toc a[aria-current="true"] { color: var(--white); background: var(--night); }

.toc a[aria-current="true"]::before,
.toc a:hover::before { opacity: 1; }

.page { min-width: 0; }

.page > section { scroll-margin-top: 1.5rem; }

.page > section + section {
  margin-top: 4.5rem;
  padding-top: 3.5rem;
  border-top: var(--px) solid var(--ink);
}

.page h2 { font-size: clamp(2.4rem, 1.6rem + 2.6vw, 3.6rem); }

.page h3 {
  margin: 2.4rem 0 0.9rem;
  font-family: var(--text);
  font-weight: 650;
  font-size: 1.2rem;
  text-transform: none;
  letter-spacing: 0;
}

.page p,
.page ul,
.page ol { margin: 0 0 1rem; }

.page ul,
.page ol { padding-left: 1.3rem; }

.page li + li { margin-top: 0.35rem; }

.page li::marker { color: var(--blue); }

.page a { color: var(--blue); }

.page .lead { font-size: 1.12em; }

.page figure.shot { margin: 1.6rem 0 2rem; }

.note {
  margin: 1.4rem 0;
  padding: 1rem 1.2rem;
  background: var(--white);
  border: var(--px) solid var(--blue);
}

.note strong { font-family: var(--ui); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); font-size: 0.85rem; margin-right: 0.4rem; }

.table-wrap {
  margin: 1.2rem 0 1.8rem;
  overflow-x: auto;
  border: var(--px) solid var(--ink);
  background: var(--white);
}

.page table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.page th,
.page td {
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid rgb(11 16 48 / 0.12);
}

.page th {
  background: var(--ink);
  color: var(--white);
  font-family: var(--ui);
  font-weight: 400;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.page table:has(th:nth-child(3)) { min-width: 21rem; }

.page tr:last-child td { border-bottom: 0; }

.page td:first-child { font-weight: 600; }

.page td kbd { font-size: 0.82em; }

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr));
  gap: var(--px);
  margin: 1.2rem 0 1.8rem;
  padding: 0 !important;
  list-style: none;
}

.cards li {
  margin: 0 !important;
  padding: 1rem 1.1rem 1.2rem;
  background: var(--white);
  border: var(--px) solid var(--ink);
}

.cards strong { display: block; margin-bottom: 0.3rem; font-family: var(--ui); font-weight: 400; text-transform: uppercase; letter-spacing: 0.06em; color: var(--blue); }

.top-link {
  margin-top: 4rem;
  font-family: var(--ui);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Phones and narrow windows: text first, scenes behind a solid box. */

@media (max-width: 900px) {
  .hud nav { display: none; }

  .title-copy {
    max-width: none;
    right: var(--gutter);
    top: auto;
    bottom: clamp(1.5rem, 5vh, 3rem);
  }

  .title { --fx: 72%; }

  .split,
  .split.flip,
  .notes { grid-template-columns: 1fr; }

  .split.flip .copy { order: 0; }

  .members { grid-template-columns: 1fr 1fr; }

  .pillars,
  .steps,
  .facts { grid-template-columns: 1fr; }

  .inventory { grid-template-columns: 1fr 1fr; }

  .duo { grid-template-columns: 1fr; }

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

  .toc {
    position: static;
    max-height: none;
  }

  .toc summary { pointer-events: auto; cursor: pointer; }
  .toc summary::after { content: " +"; }
  .toc[open] summary::after { content: " −"; }
}

/* Phones: the scene on top, the text on solid ground below it, so neither
   covers the other. */
@media (max-width: 700px) {
  .title,
  .stage {
    height: auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
  }

  .title .layer,
  .stage .layer {
    position: relative;
    height: 58svh;
    flex: none;
  }

  .stage .layer { height: 52svh; }

  .hud {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
  }

  .title-copy,
  .box {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    margin: calc(var(--px) * -10) var(--gutter) 2.5rem;
  }

  .title-copy {
    margin-top: -5.5rem;
  }

  .title.short { height: auto; }

  .title.short .title-copy { margin-top: 1.8rem; margin-bottom: 1rem; }

  .logo { margin-bottom: 1rem; }
}

@media (max-width: 520px) {
  .members,
  .inventory { grid-template-columns: 1fr; }
  .logo img { width: min(20rem, 84vw); }
  .title { --fx: 64%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .home:hover img { translate: none; }
}
