:root {
  --ink: #101813;
  --ink-soft: #25352b;
  --forest: #17291f;
  --forest-light: #264534;
  --cream: #f4f0e6;
  --paper: #fbf9f3;
  --gold: #ddb15c;
  --gold-light: #f1d58d;
  --sage: #9cbb91;
  --sage-light: #cfe0c4;
  --line: rgba(16, 24, 19, 0.15);
  --white-line: rgba(255, 255, 255, 0.18);
  --shadow: 0 24px 70px rgba(13, 25, 18, 0.16);
  --radius: 28px;
  --max-width: 1180px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body::selection {
  color: var(--ink);
  background: var(--gold-light);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 1000;
  padding: 10px 16px;
  color: var(--ink);
  background: var(--gold-light);
  border-radius: 10px;
  font-weight: 800;
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 18px 24px;
  color: #fff;
  transition: padding 220ms ease, background-color 220ms ease, box-shadow 220ms ease;
}

.site-header.is-scrolled,
.site-header-solid {
  padding-block: 10px;
  background: rgba(16, 24, 19, 0.94);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.14);
  backdrop-filter: blur(18px);
}

.nav-shell {
  width: min(100%, var(--max-width));
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 5px 12px rgba(0, 0, 0, 0.25));
}

.brand span {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

/* The brand and the repository box beside it use the sans face of their second lines. */
.brand strong {
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.brand small {
  margin-top: 5px;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 38px);
  margin-left: auto;
}

.main-nav a {
  position: relative;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -8px;
  left: 0;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transition: transform 180ms ease;
}

.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: #fff;
}

.main-nav a:hover::after,
.main-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

/* The shop is not open yet: it already has its place in the menu, dimmed, marked "bald" and
   not a link. */
.main-nav .nav-soon,
.main-nav .nav-soon:hover {
  color: rgba(255, 255, 255, 0.5);
  cursor: default;
}

.main-nav .nav-soon::after {
  display: none;
}

.nav-soon small {
  margin-left: 6px;
  padding: 2px 5px;
  color: var(--gold-light);
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  vertical-align: 1px;
  border: 1px solid rgba(240, 210, 140, 0.45);
  border-radius: 4px;
}

/* Startseite opens the homepage's sections (Team, Roadmap, Kontakt) below it on hover or
   keyboard focus; a small chevron says there is more. */
.nav-group {
  position: relative;
  padding-right: 15px;
}

.nav-group::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  width: 6px;
  height: 6px;
  border-right: 1.5px solid rgba(255, 255, 255, 0.6);
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.6);
  rotate: 45deg;
  translate: 0 -75%;
  transition: rotate 160ms ease;
  pointer-events: none;
}

.nav-group:is(:hover, :focus-within)::after {
  rotate: 225deg;
  translate: 0 -25%;
}

.nav-sub {
  position: absolute;
  top: calc(100% + 18px);
  left: -20px;
  display: flex;
  flex-direction: column;
  min-width: 180px;
  padding: 8px;
  background: rgba(16, 24, 19, 0.97);
  border: 1px solid var(--white-line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  opacity: 0;
  visibility: hidden;
  translate: 0 -6px;
  transition: opacity 160ms ease, visibility 160ms, translate 160ms ease;
}

/* Bridges the gap to the link, so the pointer can travel down without the menu closing. */
.nav-sub::before {
  content: "";
  position: absolute;
  right: 0;
  bottom: 100%;
  left: 0;
  height: 20px;
}

.nav-group:is(:hover, :focus-within) .nav-sub {
  opacity: 1;
  visibility: visible;
  translate: 0 0;
}

.nav-sub a {
  padding: 10px 12px;
  border-radius: 8px;
}

.nav-sub a::after {
  display: none;
}

.nav-sub a:hover {
  color: var(--gold-light);
  background: rgba(255, 255, 255, 0.06);
}

.lang-switch {
  flex: none;
  display: flex;
  padding: 3px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 100px;
}

.lang-switch a {
  min-width: 42px;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.84);
  border-radius: 100px;
  font-size: 0.74rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease;
}

.lang-switch a:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.lang-switch a[aria-current="page"] {
  color: var(--ink);
  background: var(--gold-light);
}

/* The patch notes beside the logo, behind a thin line: "Patchnotes" set like "MCTerranova", the
   newest version and its date (from /patchnotes.json, which the server fetches from GitHub) like
   "Anno 1412", but with the version as written ("v5.5"). */
.repo {
  flex: none;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-left: 18px;
  border-left: 1px solid var(--white-line);
  line-height: 1.1;
  white-space: nowrap;
}

.repo-name {
  color: inherit;
  font-size: 1.02rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-decoration: none;
}

.repo-name:hover,
.repo-name[aria-current] {
  color: var(--gold-light);
}

.repo-facts {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.nav-patchnotes {
  display: none;
}

/* Community links as icons: Discord beside the language switch.
   On phones and tablets only Discord stays. */
.social-links {
  display: flex;
  gap: 8px;
}

.social-link {
  flex: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--white-line);
  border-radius: 50%;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.social-link:hover {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* Discord, without a circle, glows in its own blue. While the page is at the top it hangs from
   a short flowering vine (images/vine.svg, drawn for the site) below the header and sways, so
   it is noticed; once the visitor scrolls (the header's is-scrolled), the vine draws up and the
   logo settles into its place in the row. The vine comes down from the very top of the window
   (--reach: from there to the logo's place in the row), and the swing pivots up there. */
.discord-link {
  --drop: 96px;
  --reach: 30px;
  position: relative;
  color: #fff;
  background: none;
  border: 0;
  transform-origin: 50% calc(-1 * (var(--drop) + var(--reach)));
  transition: translate 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.discord-link:hover {
  color: #fff;
  background: none;
}

.discord-link svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 4px rgba(88, 101, 242, 0.95)) drop-shadow(0 0 12px rgba(88, 101, 242, 0.6));
}

.discord-link:hover svg {
  filter: drop-shadow(0 0 5px rgba(122, 133, 255, 1)) drop-shadow(0 0 16px rgba(88, 101, 242, 0.85));
}

.discord-link::before {
  content: "";
  position: absolute;
  bottom: calc(100% - 4px);
  left: 50%;
  width: 27px;
  height: calc(var(--drop) + var(--reach));
  margin-left: -13.5px;
  background: url("/images/vine.svg") center bottom / 27px 132px no-repeat;
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 700ms cubic-bezier(0.2, 0.8, 0.2, 1);
  pointer-events: none;
}

.site-header:not(.is-scrolled, :has(.main-nav.is-open)) .discord-link {
  translate: 0 var(--drop);
  animation: vine-sway 3.2s ease-in-out infinite alternate;
}

.site-header:not(.is-scrolled, :has(.main-nav.is-open)) .discord-link::before {
  transform: scaleY(1);
}

@keyframes vine-sway {
  from {
    rotate: -4deg;
  }

  to {
    rotate: 4deg;
  }
}

.nav-toggle {
  display: none;
  width: 46px;
  height: 46px;
  padding: 12px;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--white-line);
  border-radius: 50%;
}

.nav-toggle > span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle[aria-expanded="true"] > span:nth-child(2) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] > span:nth-child(3) { opacity: 0; }
.nav-toggle[aria-expanded="true"] > span:nth-child(4) { transform: translateY(-6px) rotate(-45deg); }

.hero {
  position: relative;
  min-height: max(760px, 100svh);
  display: grid;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background: #0d1711 url("/images/background.webp") center 44% / cover no-repeat;
}

.hero::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 15, 10, 0.94) 0%, rgba(8, 15, 10, 0.66) 48%, rgba(8, 15, 10, 0.28) 100%),
    linear-gradient(0deg, rgba(10, 18, 12, 0.68) 0%, transparent 40%);
}

.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, rgba(11, 20, 14, 0.68));
}

.hero-noise {
  position: absolute;
  z-index: -1;
  inset: 0;
  opacity: 0.15;
  background-image: radial-gradient(rgba(255, 255, 255, 0.7) 0.6px, transparent 0.6px);
  background-size: 7px 7px;
  mix-blend-mode: soft-light;
  pointer-events: none;
}

/* At least 40px under the fixed header (about 88px tall), even when the window is too low to
   centre the text. */
.hero-content {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 128px auto 100px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 22px;
  color: var(--gold-light);
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.eyebrow > span {
  width: 44px;
  height: 2px;
  background: currentColor;
}

.eyebrow-dark {
  color: #8a652b;
}

.hero h1,
.section h2,
.legal-heading h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3.7rem, 7.8vw, 7.6rem);
  text-wrap: balance;
  text-shadow: 0 14px 45px rgba(0, 0, 0, 0.28);
}

.hero h1 em,
.roadmap-intro h2 em {
  color: var(--gold-light);
  font-weight: inherit;
}

.hero-copy {
  max-width: 650px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.button {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  cursor: pointer;
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.button-primary span {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.button-primary strong {
  padding-left: 14px;
  border-left: 1px solid rgba(16, 24, 19, 0.24);
}

/* The game version under the server address. */
.button-primary strong small {
  display: block;
  color: rgba(16, 24, 19, 0.62);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.button-primary.is-copied {
  background: #d9efcb;
  border-color: #d9efcb;
}

.copy-status {
  min-height: 1.5em;
  margin: 10px 0 0;
  color: var(--gold-light);
  font-size: 0.85rem;
}

/* Philosophy & team: principles, then the team picture labelled like a diagram. */
.team-section {
  position: relative;
  background:
    radial-gradient(circle at 10% 12%, rgba(221, 177, 92, 0.16), transparent 26%),
    var(--paper);
}

/* Minecraft hearts (images/heart*.svg, drawn for this site) in the empty space beside the
   heading, in the colours of the rainbow, like everyone who is welcome here: red, orange and
   yellow in the left margin, green, blue and violet to the right of the text. Sizes are
   multiples of the 9 px drawing so the pixels stay crisp. */
.team-section::before,
.team-section::after {
  content: "";
  position: absolute;
  display: none;
  background-repeat: no-repeat;
  pointer-events: none;
}

.team-section::before {
  background-image: url("/images/heart.svg"), url("/images/heart-orange.svg"), url("/images/heart-yellow.svg");
}

.team-section::after {
  background-image: url("/images/heart-green.svg"), url("/images/heart-blue.svg"), url("/images/heart-violet.svg");
}

@media (min-width: 961px) {
  .team-section::after {
    display: block;
    top: calc(clamp(90px, 11vw, 150px) + 30px);
    right: calc(max(24px, (100% - var(--max-width)) / 2) + 40px);
    width: 230px;
    height: 220px;
    background-size: 72px, 45px, 27px;
    background-position: 128px 18px, 34px 96px, 168px 156px;
  }
}

@media (min-width: 1400px) {
  .team-section::before {
    display: block;
    top: calc(clamp(90px, 11vw, 150px) + 60px);
    left: calc((100% - var(--max-width)) / 2 - 116px);
    width: 96px;
    height: 170px;
    background-size: 45px, 27px, 18px;
    background-position: 40px 0, 6px 70px, 56px 128px;
  }
}

.philosophy-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
}

.philosophy-card {
  grid-column: span 2;
  padding: 28px;
  background: #ece8dc;
  border-radius: 18px;
}

.philosophy-card span {
  color: #8a652b;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
}

.philosophy-card h3 {
  margin: 16px 0 8px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
}

.philosophy-card p {
  margin: 0;
  color: #536158;
  font-size: 0.95rem;
}

/* Two principles side by side (everyone is welcome, how we build), three below. */
.philosophy-card:nth-child(-n + 2) {
  grid-column: span 3;
}

.philosophy-card:nth-child(-n + 2) h3 {
  font-size: 1.7rem;
}

.philosophy-card:nth-child(-n + 2) p {
  max-width: 62ch;
  font-size: 1.02rem;
}

.team-heading {
  margin: 96px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.1;
  text-align: center;
}

.team-diagram {
  display: flex;
  flex-direction: column;
  /* 28px, plus the 18px the middle name rises (ARCH in images/team/pack_team.py) */
  margin: 46px 0 0;
}

.team-labels {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: start;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* The names stand on a gentle arch: each label rises by its --lift from the generated block. */
.team-label {
  position: relative;
  padding: 0 11px 16px;
  text-align: center;
  translate: 0 calc(-1 * var(--lift, 0px));
}

.team-label strong {
  display: block;
  margin-top: 2px;
  font-size: 1.1rem;
  font-weight: 800;
}

.team-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-top: 6px;
}

.team-tags span {
  padding: 3px 9px;
  color: var(--ink);
  background: var(--gold-light);
  border-radius: 100px;
  box-shadow: 0 1px 2px rgba(16, 24, 19, 0.18), 0 3px 8px rgba(16, 24, 19, 0.08);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Dev and Content build things for the server: sage instead of gold. */
.team-tags .team-tag-create {
  background: var(--sage-light);
}

.team-role {
  display: block;
  margin-top: 8px;
  color: #536158;
  font-size: 0.82rem;
  line-height: 1.45;
}

.team-stage {
  position: relative;
}

.team-stage img {
  width: 100%;
  height: auto;
  border-radius: 18px;
}

/* Leader lines like in a textbook: from under each label diagonally to a corner 32px into the
   picture, then straight down to the head (DoktorSnap sits right under his label, so his line runs
   straight and turns highest, at 4px). A .team-pin box spans the diagonal, drawn corner to corner:
   dark on the paper, light with a shadow from the picture's top edge 12px down. Its .team-drop is
   the vertical, ending in a dot. The labels sit in five equal columns, centred at 10/30/50/70/90%;
   a line starts higher by its label's --lift, so it still begins right under the raised name. */
.team-pin,
.team-drop {
  position: absolute;
}

.team-pin {
  top: calc(-12px - var(--lift, 0px));
}

.team-pin::before,
.team-pin::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(var(--to), transparent calc(50% - 1.25px), var(--line) calc(50% - 0.5px),
    var(--line) calc(50% + 0.5px), transparent calc(50% + 1.25px));
}

.team-pin::before {
  --line: rgba(16, 24, 19, 0.6);
  clip-path: inset(0 0 calc(100% - 12px - var(--lift, 0px)) 0);
}

.team-pin::after {
  --line: var(--paper);
  clip-path: inset(calc(12px + var(--lift, 0px)) 0 0 0);
}

.team-pin::after,
.team-drop {
  filter: drop-shadow(0 0 1.5px rgba(0, 0, 0, 0.85));
}

.team-drop {
  border-left: 1.5px solid var(--paper);
}

.team-drop::after {
  content: "";
  position: absolute;
  bottom: -5.5px;
  left: -6.25px;
  width: 11px;
  height: 11px;
  background: var(--ink);
  border: 2px solid var(--paper);
  border-radius: 50%;
}

/* Team picture leader lines, written by images/team/pack_team.py from the render: do not edit by hand. */
.team-pin-glubschi { --lift: 0px; --to: to top right; left: 10%; width: 16.69%; height: 44px; }
.team-drop-glubschi { left: 26.69%; top: 32px; height: calc(47.62% - 32px); }
.team-label:nth-child(2) { --lift: 13.5px; }
.team-pin-sidix { --lift: 13.5px; --to: to top right; left: 30%; width: 8.32%; height: 57.5px; }
.team-drop-sidix { left: 38.32%; top: 32px; height: calc(47.6% - 32px); }
.team-label:nth-child(3) { --lift: 18px; }
.team-pin-doktorsnap { --lift: 18px; left: 50.05%; width: 1.5px; height: 34px; }
.team-pin-doktorsnap::before,
.team-pin-doktorsnap::after { background: none; border-left: 1.5px solid var(--line); }
.team-drop-doktorsnap { left: 50.05%; top: 4px; height: calc(27.12% - 4px); }
.team-label:nth-child(4) { --lift: 13.5px; }
.team-pin-gerryxn { --lift: 13.5px; --to: to bottom right; left: 62.33%; width: 7.67%; height: 57.5px; }
.team-drop-gerryxn { left: 62.33%; top: 32px; height: calc(47.83% - 32px); }
.team-pin-t0biiiii { --lift: 0px; --to: to bottom right; left: 72.79%; width: 17.21%; height: 44px; }
.team-drop-t0biiiii { left: 72.79%; top: 32px; height: calc(47.64% - 32px); }
/* End of the team picture leader lines. */

@media (max-width: 960px) {
  .team-diagram {
    margin-top: 28px;
  }

  .team-labels {
    order: 2;
    grid-template-columns: repeat(2, 1fr);
    align-items: stretch;
    gap: 14px;
    margin-top: 18px;
  }

  .team-label {
    padding: 18px;
    text-align: left;
    background: #ece8dc;
    border-radius: 14px;
    translate: none;
  }

  .team-pin,
  .team-drop {
    display: none;
  }

  .team-tags {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .team-labels {
    grid-template-columns: 1fr;
  }

  .philosophy-grid {
    display: flex;
    flex-direction: column;
  }
}

/* City renders behind the homepage hero, one every 20 s (assets/site.js). */
.hero-cities {
  background: #0d1711;
}

.hero-cities::before {
  background:
    linear-gradient(180deg, rgba(8, 15, 10, 0.6) 0%, transparent 20%),
    linear-gradient(90deg, rgba(8, 15, 10, 0.92) 0%, rgba(8, 15, 10, 0.62) 42%, rgba(8, 15, 10, 0.12) 78%),
    linear-gradient(0deg, rgba(10, 18, 12, 0.7) 0%, transparent 38%);
}

.hero-slides {
  position: absolute;
  z-index: -3;
  inset: 0;
}

.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  container-type: size;
  transition: opacity 1200ms ease, visibility 1200ms;
}

.hero-slide.is-active {
  opacity: 1;
  visibility: visible;
}

/* The city's name on the picture, like on an old map: in spaced italics along the coast, curving
   with it, a link to the city on the live map. The stage covers the figure exactly as the
   cover-fitted 4:3 render does, so the SVG's 1000 x 750 units are the render at every size (10
   units per % across, 7.5 down). Each screen shows a different part of the render, so each city
   has three curves: beside the text on wide screens, below it on tablets, in the picture band
   between headline and copy on phones; only the one for the screen is shown. */
.map-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: max(100cqw, 133.333cqh);
  aspect-ratio: 4 / 3;
  overflow: visible;
  translate: -50% -50%;
  filter: drop-shadow(0 0 5px rgba(8, 15, 30, 0.7));
  pointer-events: none;
}

.map-label {
  pointer-events: auto;
}

/* The curve itself is invisible; its wide stroke makes the whole name easy to click. */
.map-label path {
  fill: none;
  stroke: transparent;
  stroke-width: 34;
}

.map-label text {
  fill: #f4e7c3;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 21px;
  font-style: italic;
  letter-spacing: 0.18em;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(8, 15, 30, 0.55);
  stroke-width: 3px;
  stroke-linejoin: round;
}

.hero-slide[data-city="Withmuria"] .map-label text {
  letter-spacing: 0.36em;
}

.map-label:hover text {
  fill: #fff;
}

.map-label:focus-visible text {
  fill: var(--gold-light);
}

.map-label.at-tablet,
.map-label.at-phone {
  display: none;
}

@media (max-width: 960px) {
  .map-label.at-wide {
    display: none;
  }

  .map-label.at-tablet {
    display: inline;
  }

  .map-label text {
    font-size: 18px;
  }
}

@media (max-width: 760px) {
  .map-label.at-tablet {
    display: none;
  }

  .map-label.at-phone {
    display: inline;
  }

  .map-label text {
    font-size: 24px;
  }
}

/* Clicks reach the names through the veils and the empty parts of the hero text. */
.hero::before,
.hero::after {
  pointer-events: none;
}

.hero-cities .hero-content {
  pointer-events: none;
}

.hero-cities .hero-content :is(a, button) {
  pointer-events: auto;
}

/* The picture around each render only chooses the file; the image fills the slide itself. */
.hero-slide picture {
  display: contents;
}

.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The slideshow's dots and pause, stacked at the right edge of the picture. */
.slider-controls {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 8px 4px;
  background: rgba(16, 24, 19, 0.45);
  border: 1px solid var(--white-line);
  border-radius: 100px;
  translate: 0 -50%;
  backdrop-filter: blur(6px);
}

.slider-controls[hidden] {
  display: none;
}

.slider-dots {
  display: flex;
  flex-direction: column;
}

.slider-dot {
  width: 24px;
  height: 24px;
  padding: 0;
  background: none;
  border: 0;
  cursor: pointer;
}

.slider-dot::before {
  content: "";
  display: block;
  width: 8px;
  height: 8px;
  margin: auto;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  transition: background-color 180ms ease, transform 180ms ease;
}

.slider-dot:hover::before {
  background: #fff;
}

.slider-dot[aria-current="true"]::before {
  background: var(--gold-light);
  transform: scale(1.35);
}

.slider-pause {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--white-line);
  border-radius: 50%;
  cursor: pointer;
}

.slider-pause .icon-play,
.slider-pause[aria-pressed="true"] .icon-pause {
  display: none;
}

.slider-pause[aria-pressed="true"] .icon-play {
  display: block;
}

.slider-pause[aria-pressed="true"] {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

/* On wide screens the city sits right of the headline: the renders start a quarter of the way
   in and fade in from the left, the text moves a little further left. The fade leans 10 degrees,
   so the picture reaches further left at the bottom than at the top. It stays transparent for
   the first sin(10deg) x hero height (the hero is at least 760px and 100svh tall), so the
   renders' left edge never shows at the bottom. */
@media (min-width: 961px) {
  .hero-slides {
    left: 26%;
    -webkit-mask-image: linear-gradient(100deg, transparent max(132px, 17.4svh), #000 calc(max(132px, 17.4svh) + 30%));
    mask-image: linear-gradient(100deg, transparent max(132px, 17.4svh), #000 calc(max(132px, 17.4svh) + 30%));
  }

  .hero-cities .hero-content {
    margin-left: max(40px, min(6vw, calc((100% - var(--max-width)) / 2 - 12vw)));
  }
}

/* From here the text stays beside the city, so the city itself only gets a light veil. */
@media (min-width: 1200px) {
  .hero-cities::before {
    background:
      linear-gradient(180deg, rgba(8, 15, 10, 0.5) 0%, transparent 14%),
      linear-gradient(100deg, rgba(8, 15, 10, 0.92) 0%, rgba(8, 15, 10, 0.6) 34%, transparent 60%),
      linear-gradient(0deg, rgba(10, 18, 12, 0.6) 0%, transparent 24%);
  }
}

/* On phones and tablets the text spans the whole picture, so an even veil instead of a dark band on the left. */
@media (max-width: 960px) {
  .hero::before,
  .hero-cities::before {
    background:
      linear-gradient(0deg, rgba(10, 18, 12, 0.6) 0%, transparent 35%),
      rgba(8, 15, 10, 0.58);
  }
}

.section {
  padding: clamp(90px, 11vw, 150px) max(24px, calc((100% - var(--max-width)) / 2));
}

.section-heading {
  max-width: 760px;
}

.section h2,
.legal-heading h1 {
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 5.1rem);
  text-wrap: balance;
}

.section-heading > p:last-child,
.roadmap-intro > p {
  max-width: 680px;
  margin: 26px 0 0;
  color: #536158;
  font-size: 1.08rem;
}

.roadmap-section {
  position: relative;
  color: #fff;
  background: var(--forest);
  overflow: hidden;
}

.roadmap-section::before {
  content: "";
  position: absolute;
  top: -240px;
  right: -170px;
  width: 620px;
  height: 620px;
  border: 1px solid rgba(221, 177, 92, 0.19);
  border-radius: 50%;
  box-shadow: 0 0 0 80px rgba(221, 177, 92, 0.025), 0 0 0 160px rgba(221, 177, 92, 0.018);
  pointer-events: none;
}

.roadmap-intro {
  position: relative;
  display: grid;
  grid-template-columns: 1fr minmax(300px, 0.75fr);
  align-items: end;
  gap: 70px;
}

.roadmap-intro h2 {
  color: #fff;
}

.roadmap-intro > p {
  color: rgba(255, 255, 255, 0.6);
}

.roadmap-list {
  position: relative;
  margin: 76px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--white-line);
}

.roadmap-item {
  position: relative;
  display: grid;
  grid-template-columns: 100px 170px 1fr;
  gap: 30px;
  padding: 42px 18px;
  border-bottom: 1px solid var(--white-line);
  transition: background-color 180ms ease;
}

.roadmap-item:hover {
  background: rgba(255, 255, 255, 0.035);
}

.roadmap-index {
  color: var(--gold-light);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.15rem;
}

.roadmap-status {
  width: fit-content;
  height: fit-content;
  padding: 7px 11px;
  color: rgba(255, 255, 255, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-active {
  color: #142219;
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.status-next {
  color: #dff5d4;
  border-color: rgba(156, 187, 145, 0.8);
}

.status-later {
  border-style: dashed;
}

.roadmap-copy {
  display: grid;
  grid-template-columns: minmax(230px, 0.8fr) 1.2fr;
  grid-template-rows: auto 1fr;
  column-gap: 44px;
}

.roadmap-copy h3 {
  grid-column: 1;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
}

.roadmap-copy > p {
  grid-column: 1;
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.58);
}

.roadmap-copy ul {
  grid-column: 2;
  grid-row: 1 / span 2;
  margin: 0;
  padding: 0;
  list-style: none;
}

.roadmap-copy li {
  position: relative;
  padding: 9px 0 9px 24px;
  color: rgba(255, 255, 255, 0.76);
}

.roadmap-copy li::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  width: 8px;
  height: 8px;
  background: var(--gold);
  border-radius: 50%;
}

.community-section {
  background: var(--cream);
}

/* Beside the guide teaser on wide screens: Nekyiaa plans a war on the left while DoktorSnap
   draws his bow on him from the right, and the glowing arrow flies past the eyebrow (renders
   from images/figures/). Both stand on the panel's bottom line, 40px clear of it; their height
   follows the free margin, so they only appear where that leaves them a useful size. */
.guide-teaser {
  position: relative;
}

.guide-figure,
.guide-arrow {
  display: none;
}

/* The guide's five chapters in three rows: 01 and 02 side by side, 03 across, 04 and 05 side by
   side, so the list ends about where the text beside it does. Phones stack them. */
.contact-actions.guide-chapter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 28px;
  align-content: center;
}

.guide-chapter-grid .contact-link:nth-child(3) {
  grid-column: 1 / -1;
}

@media (max-width: 520px) {
  .guide-chapter-grid .contact-link {
    grid-column: 1 / -1;
  }
}

@media (min-width: 1600px) {
  .guide-teaser {
    /* The margin beside the panel is 50vw - var(--max-width) / 2: 40px stay free towards the panel and
       24px towards the window edge; 0.83 is the width-to-height ratio of the wider figure. */
    --figure-height: min(380px, calc((50vw - var(--max-width) / 2 - 64px) / 0.83));
  }

  .guide-figure {
    display: block;
    position: absolute;
    z-index: 1;
    bottom: calc(clamp(90px, 11vw, 150px) - var(--figure-height) * 0.08);
    width: auto;
    height: var(--figure-height);
    pointer-events: none;
  }

  .guide-figure-left {
    right: calc(50% + var(--max-width) / 2 + 40px);
  }

  .guide-figure-right {
    left: calc(50% + var(--max-width) / 2 + 40px);
  }

  /* Not the eyebrow's gold rule, which every span directly inside it becomes. */
  .eyebrow > .guide-arrow {
    position: relative;
    display: inline-block;
    width: auto;
    height: auto;
    margin-left: 48px;
    background: none;
  }

  /* The arrow and its trail glow warm gold, like an enchanted shot. */
  .guide-arrow {
    filter: drop-shadow(0 0 3px rgba(255, 214, 120, 0.95)) drop-shadow(0 0 10px rgba(241, 180, 70, 0.7));
  }

  .guide-arrow img {
    width: 104px;
    height: auto;
  }

  /* The trail: the arc it flew along, starting at the fletching (images/arrow-trail.svg, whose
     start point sits 30px above its bottom edge), behind the arrow. */
  .guide-arrow::after {
    content: "";
    position: absolute;
    z-index: -1;
    top: 24%;
    left: 95%;
    width: 150px;
    height: 35px;
    margin-top: -30px;
    background: url("/images/arrow-trail.svg") 0 0 / 100% 100% no-repeat;
  }
}

.community-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(50px, 8vw, 110px);
  padding: clamp(40px, 7vw, 82px);
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.035), transparent 50%),
    var(--ink);
  border-radius: calc(var(--radius) + 8px);
  box-shadow: var(--shadow);
}

.community-panel h2 {
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 4.7rem);
}

.community-panel > div:first-child > p:last-child {
  max-width: 610px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.65);
}

.contact-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid var(--white-line);
}

.contact-link {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 26px 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--white-line);
  transition: padding-left 180ms ease, color 180ms ease;
}

.contact-link:hover {
  padding-left: 12px;
  color: var(--gold-light);
}

.contact-link span {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-link strong {
  overflow-wrap: anywhere;
  font-size: 1.1rem;
}

/* Posts to /kontakt, where Terranova mails the management (see README.md). */
.contact-form {
  display: grid;
  gap: 10px;
  padding-top: 26px;
}

.contact-form legend,
.contact-form > label {
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-form > label {
  margin-top: 10px;
}

.contact-form input[type="email"],
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  color: #fff;
  font: inherit;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--white-line);
  border-radius: 8px;
  color-scheme: dark;
}

.contact-form textarea {
  min-height: 130px;
  resize: vertical;
}

/* The topics are radio buttons drawn as pills, readable everywhere unlike a dropdown's list. */
.contact-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.contact-topics legend {
  margin-bottom: 12px;
  padding: 0;
}

.contact-topics label {
  position: relative;
}

.contact-topics input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
}

.contact-topics span {
  display: block;
  padding: 9px 16px;
  color: rgba(255, 255, 255, 0.84);
  border: 1px solid var(--white-line);
  border-radius: 100px;
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 750;
  transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}

.contact-topics label:hover span {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.contact-topics input:checked + span {
  color: var(--ink);
  background: var(--gold-light);
  border-color: var(--gold-light);
}

.contact-topics input:focus-visible + span {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.contact-form .button {
  justify-self: start;
  margin-top: 10px;
}

.contact-form p {
  margin: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 0.85rem;
}

.contact-form .contact-status,
.contact-form .contact-result {
  color: var(--gold-light);
  font-size: 0.95rem;
}

.contact-status:empty,
.contact-result {
  display: none;
}

/* Without the script the server sends the visitor back to one of these. */
.contact-result:target {
  display: block;
}

.contact-trap {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  min-height: 230px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  padding: 60px max(24px, calc((100% - var(--max-width)) / 2));
  color: #fff;
  background: #0b110d;
}

.brand-footer {
  width: fit-content;
}

.brand-footer img {
  width: 48px;
  height: 48px;
}

/* Unlike the header, the footer may wrap its tagline on narrow phones. */
.brand-footer small {
  white-space: normal;
}

.site-footer p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.78rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 26px;
}

.site-footer nav a {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.75rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-footer nav a:hover {
  color: var(--gold-light);
}

/* Short pages (a short release on the patch notes) still end with the footer at the bottom of the
   window: the main part takes the room that is left. */
.legal-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  background: var(--cream);
}

.legal-page > main {
  flex: 1 0 auto;
}

.legal-main {
  width: min(calc(100% - 48px), var(--max-width));
  margin: 0 auto;
  padding: 180px 0 130px;
}

.legal-heading {
  max-width: 760px;
  margin-bottom: 68px;
}

.legal-heading > p:last-child {
  margin: 22px 0 0;
  color: #5d695f;
  font-size: 1.08rem;
}

.legal-layout {
  display: grid;
  grid-template-columns: 290px 1fr;
  align-items: start;
  gap: 70px;
}

.legal-contact {
  position: sticky;
  top: 110px;
  padding: 32px;
  background: var(--forest);
  border-radius: var(--radius);
  color: #fff;
  box-shadow: var(--shadow);
}

.legal-contact img {
  margin-bottom: 20px;
}

.legal-contact h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.75rem;
}

.legal-contact p {
  margin: 4px 0 24px;
  color: rgba(255, 255, 255, 0.56);
}

.legal-contact a {
  color: var(--gold-light);
  overflow-wrap: anywhere;
}

.legal-content {
  min-width: 0;
  padding: 14px 0;
}

.legal-content section {
  padding: 0 0 38px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}

.legal-content section:last-child {
  margin-bottom: 0;
}

.legal-content h2 {
  margin: 0 0 13px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
  line-height: 1.2;
}

.legal-content p,
.legal-content address {
  margin: 0;
  color: #4f5b53;
  font-style: normal;
}

.legal-content p + p {
  margin-top: 12px;
}

.legal-content a {
  color: #6e531e;
  font-weight: 750;
}

/* Patch notes: the latest version under the title; on the left, in the legal pages' dark card,
   every version and the way to GitHub; on the right the chosen version, each of its "##" a
   section with its heading in a column of its own. */
.patch-heading {
  margin-bottom: 52px;
}

.patch-heading > p.patch-latest {
  margin: 14px 0 0;
  color: #8a652b;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}

.patch-heading > p.patch-lang {
  margin: 14px 0 0;
  color: #5d695f;
  font-size: 0.95rem;
}

.patch-versions h2 {
  margin-bottom: 16px;
  font-size: 1.3rem;
}

.patch-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 26px;
}

.legal-contact .patch-list a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
  border-radius: 12px;
  transition: background-color 160ms ease, color 160ms ease;
}

.patch-list strong {
  color: #fff;
  font-weight: 800;
}

.patch-list span {
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}

.legal-contact .patch-list a:hover {
  background: rgba(255, 255, 255, 0.07);
}

.legal-contact .patch-list a[aria-current] {
  color: var(--gold-light);
  background: rgba(241, 213, 141, 0.13);
  box-shadow: inset 3px 0 0 var(--gold);
}

.patch-list a[aria-current] strong {
  color: var(--gold-light);
}

.legal-contact .patch-github {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #fff;
  text-decoration: none;
  border: 1px solid var(--white-line);
  border-radius: 14px;
  transition: border-color 160ms ease, color 160ms ease;
}

.legal-contact .patch-github:hover {
  color: var(--gold-light);
  border-color: var(--gold-light);
}

.patch-github svg {
  flex: none;
}

.patch-github strong,
.patch-github small {
  display: block;
}

.patch-github strong {
  font-weight: 800;
}

.patch-github small {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.patch-note {
  min-width: 0;
}

.patch-fallback {
  max-width: 62ch;
  margin: 0;
  color: #4f5b53;
  font-size: 1.05rem;
}

.patch-fallback a,
.patch-note-source a,
.patch-section-body a,
.patch-intro a {
  color: #6e531e;
  font-weight: 750;
  text-underline-offset: 4px;
}

.patch-note-meta {
  margin: 0;
  color: #8a652b;
  font-size: 0.86rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.patch-note-head h2 {
  margin: 10px 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3.4vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.patch-intro {
  max-width: 62ch;
  margin-top: 16px;
  color: #3d4a41;
  font-size: 1.1rem;
}

.patch-intro p {
  margin: 0 0 12px;
}

.patch-section {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 36px;
  padding: 30px 0;
  border-top: 1px solid var(--line);
}

.patch-intro + .patch-section,
.patch-note-head + .patch-section {
  margin-top: 34px;
}

.patch-section h3 {
  position: sticky;
  top: 110px;
  align-self: start;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 500;
  line-height: 1.2;
}

.patch-section-body {
  max-width: 72ch;
  color: #3d4a41;
  overflow-wrap: anywhere;
}

.patch-section-body > :first-child {
  margin-top: 0;
}

.patch-section-body p {
  margin: 0 0 12px;
}

.patch-section-body ul,
.patch-section-body ol {
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.patch-section-body li {
  position: relative;
  margin: 8px 0;
  padding-left: 24px;
}

/* Each point a small gold diamond, like a waypoint on the map. */
.patch-section-body li::before {
  position: absolute;
  top: 0.62em;
  left: 5px;
  width: 7px;
  height: 7px;
  content: "";
  background: var(--gold);
  transform: rotate(45deg);
}

.patch-section-body li li::before {
  background: none;
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.patch-section-body h4 {
  margin: 20px 0 6px;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 800;
}

.patch-section-body strong,
.patch-intro strong {
  color: var(--ink);
  font-weight: 750;
}

.patch-note code {
  padding: 1px 6px;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.88em;
  background: rgba(16, 24, 19, 0.07);
  border-radius: 5px;
}

.patch-note pre {
  overflow-x: auto;
  padding: 16px 18px;
  color: #fff;
  background: var(--forest);
  border-radius: 12px;
}

.patch-note pre code {
  padding: 0;
  background: none;
}

.patch-note blockquote {
  margin: 0 0 16px;
  padding-left: 16px;
  color: #536158;
  border-left: 3px solid var(--gold);
}

.patch-note hr {
  margin: 20px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.patch-note table {
  display: block;
  overflow-x: auto;
  margin: 0 0 16px;
  border-collapse: collapse;
}

.patch-note th,
.patch-note td {
  padding: 8px 12px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.patch-note-source {
  margin: 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 650ms ease, transform 650ms ease;
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Below 1100px the row cannot hold the logo, the repository and the full menu: the menu
   folds behind a button, Discord and the language switch stay, the patch notes move
   into the menu. */
@media (max-width: 1099px) {
  .nav-toggle {
    display: block;
    order: 2;
  }

  .repo {
    display: none;
  }

  .main-nav .nav-patchnotes {
    display: block;
  }

  .social-links {
    order: 1;
    margin-left: auto;
  }

  .lang-switch {
    order: 3;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 1px);
    right: 12px;
    left: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 12px;
    background: rgba(16, 24, 19, 0.98);
    border: 1px solid var(--white-line);
    border-radius: 18px;
    box-shadow: var(--shadow);
  }

  .main-nav.is-open {
    display: flex;
  }

  .main-nav a {
    padding: 14px 12px;
  }

  .main-nav a::after {
    display: none;
  }

  /* In the folded menu the sections always show, indented under Startseite. */
  .nav-group {
    display: flex;
    flex-direction: column;
    padding-right: 0;
  }

  .nav-group::after,
  .nav-sub::before {
    display: none;
  }

  .nav-sub {
    position: static;
    min-width: 0;
    padding: 0 0 0 18px;
    background: none;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    translate: none;
  }

  .main-nav .nav-sub a {
    padding: 11px 12px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.76rem;
  }
}

@media (max-width: 960px) {
  .roadmap-intro,
  .community-panel {
    grid-template-columns: 1fr;
  }

  .roadmap-intro {
    gap: 20px;
  }

  .roadmap-item {
    grid-template-columns: 70px 150px 1fr;
    gap: 18px;
  }

  .roadmap-copy {
    grid-template-columns: 1fr;
  }

  .roadmap-copy ul {
    grid-column: 1;
    grid-row: auto;
    margin-top: 18px;
  }

  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-contact {
    position: static;
  }

  .patch-list {
    flex-direction: row;
    overflow-x: auto;
  }

  .legal-contact .patch-list a {
    flex: none;
  }
}

@media (max-width: 760px) {
  .site-header {
    padding: 10px 16px;
    background: rgba(16, 24, 19, 0.94);
  }

  .nav-shell {
    gap: 12px;
  }

  .lang-switch a {
    min-width: 36px;
    padding-inline: 8px;
  }

  .discord-link {
    --drop: 60px;
    --reach: 24px;
  }

  .hero {
    min-height: 760px;
    height: auto;
    padding: 150px 0 64px;
    background-position: 60% center;
  }

  .hero-content {
    margin: 0 auto;
  }

  /* Smaller on phones, so the city behind it shows. */
  .hero h1 {
    font-size: clamp(2.4rem, 10.5vw, 3.6rem);
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .section {
    padding-inline: 20px;
  }

  .roadmap-item {
    grid-template-columns: 54px 1fr;
    padding: 34px 4px;
  }

  .roadmap-status {
    grid-column: 2;
    grid-row: 1;
  }

  .roadmap-copy {
    grid-column: 2;
  }

  .community-panel {
    padding: 34px 24px;
    border-radius: 22px;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-main {
    width: min(calc(100% - 40px), var(--max-width));
    padding-top: 145px;
  }

  .patch-section {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .patch-section h3 {
    position: static;
  }
}

/* Phones: like the dark side on wide screens, the headline sits on a plain dark area at
   the top; the city fades in below it, unveiled, and the copy sits on a darker band. */
@media (max-width: 760px) {
  .hero-cities {
    padding-top: 112px;
  }

  .slider-controls {
    top: 47%;
    right: 10px;
  }

  .hero-cities .hero-slides {
    top: 20%;
    bottom: 26%;
    -webkit-mask-image: linear-gradient(180deg, transparent 18%, #000 40%, #000 72%, transparent);
    mask-image: linear-gradient(180deg, transparent 18%, #000 40%, #000 72%, transparent);
  }

  .hero-cities::before {
    background: linear-gradient(
      180deg,
      transparent 50%,
      rgba(8, 15, 10, 0.6) 60%,
      rgba(8, 15, 10, 0.88) 78%
    );
  }

  .hero-cities .hero-copy {
    margin-top: 30svh;
  }

  .hero-cities h1,
  .hero-cities .hero-copy {
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.6);
  }
}

/* Beside the repository the header row is full: on large screens it may grow a little wider
   than the content column. */
@media (min-width: 1100px) {
  .site-header .nav-shell {
    width: min(100%, 1320px);
  }
}

/* Small laptops: with the repository and Discord the full menu only fits a little tighter. */
@media (min-width: 1100px) and (max-width: 1299px) {
  .nav-shell {
    gap: 16px;
  }

  .main-nav {
    gap: 18px;
  }

  .main-nav a {
    font-size: 0.76rem;
    letter-spacing: 0.08em;
  }
}

/* Logo, name, Discord, menu button and language switch need about 430px in a row:
   narrower phones get a compact header whose language switch only offers the other
   language, the smallest ones the logo alone (it carries the name). */
@media (max-width: 460px) {
  .nav-shell {
    gap: 8px;
  }

  .site-header .brand {
    gap: 8px;
  }

  .social-link {
    width: 32px;
    height: 32px;
  }

  .lang-switch a[aria-current="page"] {
    display: none;
  }

  .site-header .brand img {
    width: 44px;
    height: 44px;
  }

  .site-header .brand strong {
    font-size: 1rem;
    letter-spacing: 0.02em;
  }

  .nav-toggle {
    width: 42px;
    height: 42px;
    padding: 10px;
  }

  .lang-switch a {
    min-width: 32px;
    padding-inline: 6px;
  }
}

@media (max-width: 349px) {
  .site-header .brand span {
    display: none;
  }
}

/* Maya, the vote bee: a rendered Minecraft bee carrying Terranova's coin in blue, buzzing in a
   looping animation (a still for visitors who ask for less motion, by <picture>), her name on a
   tag above her as in the game, and the vote link beside her. */
.vote-bee {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
  color: #fff;
  text-decoration: none;
}

.vote-bee-picture {
  position: relative;
  display: grid;
  justify-items: center;
  padding-top: 26px;
}

.vote-bee-picture img {
  width: 76px;
  height: auto;
}

.vote-bee-name {
  position: absolute;
  top: 0;
  padding: 2px 8px;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.4;
  white-space: nowrap;
  background: rgba(0, 0, 0, 0.45);
  border-radius: 3px;
}

.vote-bee-text {
  display: grid;
  gap: 2px;
}

.vote-bee-text strong {
  font-size: 1.05rem;
  text-decoration: underline;
  text-decoration-color: rgba(241, 213, 141, 0.6);
  text-underline-offset: 5px;
}

.vote-bee-text small {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.8rem;
}

.vote-bee:hover strong,
.vote-bee:focus-visible strong {
  color: var(--gold-light);
}


@media (prefers-reduced-motion: reduce) {
  .discord-link {
    animation: none !important;
  }

  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media print {
  .site-header,
  .site-footer,
  .legal-contact {
    display: none;
  }

  .legal-main {
    width: 100%;
    padding: 0;
  }

  .legal-layout {
    display: block;
  }
}

/* Wide screens: the page keeps its size and the content area grows into the empty margins, so
   cards, grids and pictures use the room instead of floating in the middle. Text keeps its own
   reading width. */
@media (min-width: 1800px) {
  :root {
    --max-width: 1400px;
  }
}

@media (min-width: 2200px) {
  :root {
    --max-width: 1600px;
  }
}

@media (min-width: 2800px) {
  :root {
    --max-width: 1840px;
  }
}
