/* MyEditor 4.0: the update page and the funding proposal to the
   EINUNDZWANZIG Verein.

   MyEditor's own look: the warm dark stage of myeditor.rinbal.de, its
   orange, its small monospace labels and pill chips, and the six colored
   lines and orange cursor of the app icon. From the film: gold staff
   lines and a serif voice for the story. Dark like both the MyEditor site
   and the Verein's portal. */

@font-face {
  font-family: "Inter";
  src: url("../fonts/Inter-opsz-wght.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Garamond";
  src: url("../fonts/CormorantGaramond-Italic-wght.woff2") format("woff2");
  font-weight: 300 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("../fonts/JetBrainsMono-wght.woff2") format("woff2");
  font-weight: 100 800;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121110;
  --bg-deep: #0b0a09;
  --surface: #1a1916;
  --surface-2: #22211d;
  --line: rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.17);
  --text: #f2efe6;
  --text-soft: #b8b5ab;
  --text-faint: #8a877e;
  --orange: #f58b18;
  --orange-bright: #ff9d2e;
  --orange-ink: #241200;
  --gold: #c9a96e;
  --gold-line: rgba(201, 169, 110, 0.32);
  --paper: #fbfaf7;
  --paper-ink: #1d1e1b;
  --paper-soft: #5c5d56;
  /* The six lines of the app icon, and its cursor. */
  --line-1: #e53935;
  --line-2: #fb8c00;
  --line-3: #43a047;
  --line-4: #1e88e5;
  --line-5: #8e24aa;
  --line-6: #d4d4d4;
  --caret: #f9a825;
  --display: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --doc: Charter, "Bitstream Charter", "Iowan Old Style", "Sitka Text", Cambria, Georgia, serif;
  --wide: 76rem;
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 14px;
  --shadow-window: 0 50px 120px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07);
}

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

html {
  background: var(--bg-deep);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 5.5rem;
}

body {
  position: relative;
  margin: 0;
  overflow-x: clip;
  background:
    radial-gradient(60rem 40rem at 85% -5%, rgba(245, 139, 24, 0.16), transparent 70%),
    radial-gradient(50rem 34rem at -10% 30%, rgba(201, 169, 110, 0.08), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: var(--display);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Film grain over everything, as on myeditor.rinbal.de and in the film. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 50;
  background: url("../img/grain.png") 0 0 / 256px 256px;
  opacity: 0.045;
  mix-blend-mode: overlay;
  pointer-events: none;
}

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

figure {
  margin: 0;
}

a {
  color: inherit;
  text-decoration-color: var(--gold-line);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover {
  text-decoration-color: currentColor;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--orange) 80%, transparent);
  outline-offset: 3px;
  border-radius: 8px;
}

.skip-link {
  position: absolute;
  left: 1rem;
  top: 0.75rem;
  z-index: 60;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-200%);
}

.skip-link:focus {
  transform: none;
}

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

/* Size classes: compact (phones) below 40rem, regular from 40rem
   (tablets), wide from 64rem (tablets in landscape and desktops). The side
   margins grow with them and never reach into a safe area. */
.wrap {
  max-width: var(--wide);
  margin: 0 auto;
  padding-left: max(1rem, env(safe-area-inset-left));
  padding-right: max(1rem, env(safe-area-inset-right));
}

@media (min-width: 40rem) {
  .wrap {
    padding-left: max(1.5rem, env(safe-area-inset-left));
    padding-right: max(1.5rem, env(safe-area-inset-right));
  }
}

@media (min-width: 64rem) {
  .wrap {
    padding-left: max(2rem, env(safe-area-inset-left));
    padding-right: max(2rem, env(safe-area-inset-right));
  }
}

/* Type ---------------------------------------------------------------- */

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  margin: 0 0 1.4rem;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kicker::before {
  content: "";
  width: 1.6rem;
  height: 2px;
  border-radius: 2px;
  background: var(--orange);
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.7rem, 5.6vw, 5.2rem);
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: -0.048em;
}

h2 {
  font-size: clamp(2.2rem, 5vw, 4.1rem);
  font-weight: 760;
  line-height: 1;
  letter-spacing: -0.04em;
}

h1 .muted,
h2 .muted {
  color: var(--text-faint);
}

.serif {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.lead {
  max-width: 36rem;
  margin: 1.6rem 0 0;
  color: var(--text-soft);
  font-size: clamp(1.1rem, 1.7vw, 1.25rem);
  line-height: 1.6;
  text-wrap: pretty;
}

.section-lead {
  max-width: 40rem;
  margin: 1.4rem 0 0;
  color: var(--text-soft);
  font-size: 1.125rem;
  text-wrap: pretty;
}

/* The icon's lines: six colored bars and the orange cursor. */
.lines {
  display: grid;
  gap: 0.42rem;
  width: 7.5rem;
}

.lines span {
  display: block;
  height: 0.42rem;
  border-radius: 1rem;
  transform-origin: left center;
}

.lines span:nth-child(1) { width: 62%; background: var(--line-1); }
.lines span:nth-child(2) { width: 84%; background: var(--line-2); }
.lines span:nth-child(3) { width: 50%; background: var(--line-3); }
.lines span:nth-child(4) { width: 72%; background: var(--line-4); }
.lines span:nth-child(5) { width: 44%; background: var(--line-5); }
.lines span:nth-child(6) {
  position: relative;
  width: 66%;
  background: var(--line-6);
}

.lines span:nth-child(6)::after {
  content: "";
  position: absolute;
  left: calc(100% + 0.5rem);
  top: -0.32rem;
  width: 0.2rem;
  height: 1.06rem;
  border-radius: 1rem;
  background: var(--caret);
  animation: blink 1.1s steps(1) infinite;
}

@keyframes blink {
  50% { opacity: 0; }
}

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

.lines.writes span {
  animation: write 700ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

.lines.writes span:nth-child(2) { animation-delay: 110ms; }
.lines.writes span:nth-child(3) { animation-delay: 220ms; }
.lines.writes span:nth-child(4) { animation-delay: 330ms; }
.lines.writes span:nth-child(5) { animation-delay: 440ms; }
.lines.writes span:nth-child(6) { animation-delay: 550ms; }

/* Chips and buttons ------------------------------------------------------ */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.chip {
  padding: 0.38rem 0.8rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.chip strong {
  color: var(--orange-bright);
  font-weight: 600;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2.2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.6rem;
  padding: 0.55rem 1.3rem 0.55rem 0.6rem;
  border-radius: var(--radius-md);
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn small {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 500;
  opacity: 0.78;
}

.btn .badge {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 700;
}

.btn.primary {
  background: var(--orange);
  color: var(--orange-ink);
  box-shadow: 0 16px 40px rgba(245, 139, 24, 0.3);
}

.btn.primary:hover {
  background: var(--orange-bright);
}

.btn.primary .badge {
  background: rgba(36, 18, 0, 0.14);
}

.btn.ghost {
  padding: 0.55rem 1.3rem;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.025);
  color: var(--text);
}

.btn.ghost .arrow {
  transition: transform 160ms ease;
}

.btn.ghost:hover .arrow {
  transform: translateX(3px);
}

/* Header ------------------------------------------------------------------ */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(1.3) blur(20px);
  -webkit-backdrop-filter: saturate(1.3) blur(20px);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 3.5rem;
}

@media (min-width: 64rem) {
  .site-header .wrap {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    height: 4.25rem;
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  font-size: 1.05rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  text-decoration: none;
  white-space: nowrap;
}

.brand img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.brand .version {
  padding: 0.1rem 0.45rem;
  border: 1px solid color-mix(in srgb, var(--orange) 55%, transparent);
  border-radius: 6px;
  color: var(--orange-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
}

@media (max-width: 22.5rem) {
  .brand .version {
    display: none;
  }
}

/* The section pills in the header, on wide screens. */
.site-nav {
  display: none;
}

@media (min-width: 64rem) {
  .site-nav {
    display: flex;
    gap: 0.2rem;
    padding: 0.25rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.03);
  }
}

.site-nav a {
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease;
}

.site-nav a:hover {
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

.header-end {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  justify-self: end;
}

.lang {
  display: inline-grid;
  place-items: center;
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: 0 0.6rem;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 0.8rem;
  font-weight: 600;
  text-decoration: none;
}

.lang:hover {
  background: rgba(255, 255, 255, 0.07);
}

.github {
  display: none;
}

@media (min-width: 64rem) {
  .github {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 2.75rem;
    padding: 0 0.4rem;
    color: var(--text-soft);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
  }

  .github svg {
    width: 20px;
    height: 20px;
  }
}

/* The one action that matters, always in reach, as in Apple's local
   navigation bars. */
.cta {
  display: inline-flex;
  align-items: center;
  min-height: 2.25rem;
  padding: 0 1rem;
  border-radius: 999px;
  background: var(--orange);
  color: var(--orange-ink);
  font-size: 0.875rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.cta:hover {
  background: var(--orange-bright);
}

/* The sections on phones and tablets: a row of pills to swipe through,
   under the header. Every pill is a full 44 point target. */
.local-nav {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding: 0.75rem max(1rem, env(safe-area-inset-left)) 0.75rem;
  border-bottom: 1px solid var(--line);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
}

.local-nav::-webkit-scrollbar {
  display: none;
}

.local-nav a {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 2.75rem;
  padding: 0 1.05rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  scroll-snap-align: start;
}

@media (min-width: 40rem) {
  .local-nav {
    justify-content: center;
  }
}

@media (min-width: 64rem) {
  .local-nav {
    display: none;
  }
}

/* Windows: the app's own frame ---------------------------------------------- */

.window {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #ececec;
  box-shadow: var(--shadow-window);
}

.window .titlebar {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  background: linear-gradient(#ececec, #e2e2e2);
  color: #4c4c4c;
  font-size: 0.8rem;
  font-weight: 600;
}

.window .titlebar i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ff5f57;
  box-shadow: inset 0 0 0 0.5px rgba(0, 0, 0, 0.15);
}

.window .titlebar i:nth-child(2) { background: #febc2e; }
.window .titlebar i:nth-child(3) { background: #28c840; }

.window .titlebar b {
  flex: 1;
  margin-right: 52px;
  font-weight: 600;
  text-align: center;
}

.window img {
  width: 100%;
  height: auto;
}

/* Hero ----------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: clip;
  padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(4rem, 9vw, 7rem);
}

.hero-head h1 {
  font-size: clamp(2.7rem, 7.4vw, 6.6rem);
}

.hero-head h1 .muted {
  display: block;
}

.hero-body {
  display: grid;
  gap: 3.5rem;
  margin-top: 2.6rem;
}

@media (min-width: 64rem) {
  .hero-body {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    align-items: start;
  }

  .hero .stage {
    width: 128%;
    margin-top: -1.5rem;
  }
}

.hero .lines {
  margin-bottom: 2rem;
}

.hero .lead {
  margin-top: 0;
}

/* Gold staff lines under the hero, as in the film's opening. */
.hero::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2.4rem;
  height: calc(4 * 1.1rem + 1px);
  background: repeating-linear-gradient(to bottom, var(--gold-line) 0 1px, transparent 1px 1.1rem);
  mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 20%, #000 80%, transparent);
  pointer-events: none;
}

.stage {
  position: relative;
  perspective: 2400px;
}

.stage .window {
  transform: rotateY(-11deg) rotateX(4deg) rotateZ(0.5deg);
  transform-origin: 40% 50%;
}

.stage::after {
  content: "";
  position: absolute;
  inset: 12% -6% -10% 6%;
  z-index: -1;
  border-radius: 40px;
  background: radial-gradient(closest-side, rgba(245, 139, 24, 0.28), transparent);
  filter: blur(30px);
}

.stage figcaption {
  position: absolute;
  right: 4%;
  bottom: -2.4rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 63.99rem) {
  .stage .window {
    transform: none;
  }
}

/* Sections --------------------------------------------------------------------- */

main > section {
  position: relative;
  padding: clamp(4.5rem, 10vw, 8rem) 0;
}

.rule-top {
  border-top: 1px solid var(--line);
}

/* The film ----------------------------------------------------------------------- */

.film-head {
  display: grid;
  gap: 1.4rem 3rem;
  align-items: end;
  margin-bottom: 2.6rem;
}

.film-head h2 .serif {
  display: inline;
  font-size: 1.12em;
  line-height: 1.02;
}

.film-head p {
  margin: 0;
  color: var(--text-soft);
  text-wrap: pretty;
}

.player {
  position: relative;
  margin: 0;
  border-radius: var(--radius-xl);
  box-shadow: 0 50px 140px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 120px rgba(245, 139, 24, 0.1);
}

.player video {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  background: #0d0c0a;
}

.film-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 1.4rem;
  color: var(--text-faint);
  font-size: 0.875rem;
}

.film-meta .downloads {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  font-family: var(--mono);
  font-size: 0.78rem;
}

.film-meta .downloads a {
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  text-decoration: none;
}

.film-meta p {
  max-width: 40rem;
  margin: 0;
}

.score {
  margin-top: 1.4rem;
  color: var(--text-soft);
  font-size: 0.9375rem;
}

.score summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 650;
}

.score ol {
  margin: 0.9rem 0 0;
  padding-left: 1.3rem;
}

.score li {
  margin-bottom: 0.35rem;
}

/* New in 4.0: a bento of real captures ----------------------------------------------- */

.bento {
  display: grid;
  gap: 1rem;
  margin: 3rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 40rem) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
  }

  .bento .tile:nth-child(1) { grid-column: span 2; }
}

/* Desktop: two equal columns. Every capture is 4:3, so every tile shows its
   picture at the same size. */
@media (min-width: 64rem) {
  .bento {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 3.6rem;
  }

  .bento .tile:nth-child(n) { grid-column: auto; }
}

.tile {
  --tone: var(--line-1);
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(28rem 16rem at 0% 0%, color-mix(in srgb, var(--tone) 13%, transparent), transparent 70%),
    var(--surface);
}

.tile:nth-child(2) { --tone: var(--line-2); }
.tile:nth-child(3) { --tone: var(--line-3); }
.tile:nth-child(4) { --tone: var(--line-4); }
.tile:nth-child(5) { --tone: var(--line-5); }
.tile:nth-child(6) { --tone: var(--caret); }

.tile .text {
  padding: 1.6rem 1.6rem 1.2rem;
}

.tile .label {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.9rem;
  color: var(--text-faint);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tile .label::before {
  content: "";
  width: 1.8rem;
  height: 0.36rem;
  border-radius: 1rem;
  background: var(--tone);
}

.tile h3 {
  margin: 0 0 0.45rem;
  font-size: 1.45rem;
  font-weight: 720;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.tile p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.97rem;
  line-height: 1.55;
  text-wrap: pretty;
}

/* The capture sits in the tile's corner and runs off its edges. */
.tile .shot {
  position: relative;
  margin: 0.6rem 0 0 1.6rem;
}

.tile .shot img {
  width: 100%;
  height: auto;
  border-radius: 12px 0 0 0;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

/* Desktop: the capture is shown whole, inset in the tile with room around it. */
@media (min-width: 64rem) {
  .tile .text {
    padding: 2.2rem 2.4rem 1.6rem;
  }

  .tile h3 {
    font-size: 1.6rem;
  }

  .tile p {
    font-size: 1rem;
    max-width: 34rem;
  }

  .tile .shot {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    flex: 1;
    margin: auto 2.4rem 2.4rem;
  }

  .tile .shot img {
    border-radius: 12px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.1);
  }
}

.tile.systems {
  justify-content: space-between;
}

.tile.systems .big {
  padding: 0 1.6rem 1.8rem;
  font-size: clamp(1.9rem, 3.4vw, 2.6rem);
  font-weight: 760;
  letter-spacing: -0.035em;
  line-height: 1.08;
}

.tile.systems .big span {
  color: var(--text-faint);
}

.tile.systems .lines {
  margin: 0 1.6rem 1.6rem;
}

@media (min-width: 64rem) {
  .tile.systems .big {
    padding: 0 2.4rem 2rem;
  }

  .tile.systems .lines {
    margin: 0 2.4rem 2.4rem;
  }
}

/* For the Verein ----------------------------------------------------------------------- */

.verein {
  overflow: hidden;
  background:
    radial-gradient(50rem 30rem at 50% 0%, rgba(245, 139, 24, 0.14), transparent 70%),
    linear-gradient(var(--bg-deep), var(--bg));
}

.verein .numeral {
  position: absolute;
  right: -2rem;
  top: 1rem;
  color: rgba(245, 139, 24, 0.06);
  font-family: var(--mono);
  font-size: clamp(14rem, 34vw, 30rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.08em;
  pointer-events: none;
  user-select: none;
}

.path {
  display: grid;
  gap: 1rem;
  margin: 3.4rem 0 0;
  padding: 0;
  list-style: none;
}

.path {
  gap: 2rem;
}

@media (min-width: 40rem) {
  .path {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
}

@media (min-width: 64rem) {
  .path {
    grid-template-columns: 1fr 1.25fr 1fr 0.8fr;
    gap: 2.4rem;
  }
}

.station {
  position: relative;
  padding: 1.5rem 1.4rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.station.hub {
  border-color: color-mix(in srgb, var(--orange) 45%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--orange) 20%, transparent), 0 30px 80px rgba(245, 139, 24, 0.1);
}

.station .label {
  margin: 0 0 0.7rem;
  color: var(--orange-bright);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.station h3 {
  margin: 0 0 0.5rem;
  font-size: 1.3rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.station p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.95rem;
}

.station ul {
  display: grid;
  gap: 0.45rem;
  margin: 0.9rem 0 0;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.8rem;
}

.station li {
  padding: 0.45rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
}

.station .icon {
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 11px;
}

/* The arrows between the stations: down on phones, across on wide screens. */
@media (max-width: 39.99rem) {
  .station + .station::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -2rem;
    width: 2px;
    height: 2rem;
    background: linear-gradient(to bottom, transparent, var(--orange));
  }

  .station + .station::after {
    content: "";
    position: absolute;
    left: calc(50% - 4px);
    top: -0.55rem;
    border: 5px solid transparent;
    border-top: 7px solid var(--orange);
  }
}

@media (min-width: 64rem) {
  .station + .station::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 50%;
    width: 2.4rem;
    height: 2px;
    background: linear-gradient(to right, transparent, var(--orange));
  }

  .station + .station::after {
    content: "";
    position: absolute;
    left: -0.55rem;
    top: calc(50% - 4px);
    border: 5px solid transparent;
    border-left: 7px solid var(--orange);
  }
}

.gains {
  display: grid;
  gap: 1rem;
  margin: 1.4rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 52rem) {
  .gains {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gains li {
  padding: 1.4rem;
  border-top: 2px solid color-mix(in srgb, var(--orange) 70%, transparent);
  background: linear-gradient(rgba(245, 139, 24, 0.06), transparent 60%);
  border-radius: 0 0 var(--radius-md) var(--radius-md);
}

.gains strong {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 1.08rem;
}

.gains span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

/* The proposal, as a MyEditor document --------------------------------------------------- */

.proposal .window {
  max-width: 58rem;
  margin: 3rem auto 0;
  background: var(--paper);
  box-shadow: 0 60px 160px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.tabs {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 38px;
  padding: 0 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #e9e9e9;
}

.tabs span {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  height: 32px;
  padding: 0 1rem;
  border-radius: 8px 8px 0 0;
  color: #5b5b5b;
  font-size: 0.82rem;
}

.tabs span[aria-current] {
  background: var(--paper);
  color: #222;
  font-weight: 600;
}

.doc {
  padding: clamp(1.4rem, 5vw, 4rem) clamp(1.2rem, 6vw, 5rem) clamp(2rem, 6vw, 5rem);
  color: var(--paper-ink);
  font-family: var(--doc);
  font-size: 1.12rem;
  line-height: 1.7;
}

.doc .cover {
  overflow: hidden;
  margin: 0 0 2rem;
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  background: #0d0c0a;
}

.doc .cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.doc h2 {
  color: var(--paper-ink);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.02;
}

.doc .summary {
  margin: 1rem 0 0;
  color: var(--paper-soft);
  font-size: 1.2rem;
  font-style: italic;
}

.doc .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1.2rem 0 0;
  padding: 0 0 1.8rem;
  border-bottom: 1px solid rgba(29, 30, 27, 0.12);
  list-style: none;
  font-family: var(--display);
  font-size: 0.85rem;
}

.doc .tags li {
  padding: 0.2rem 0.65rem;
  border-radius: 999px;
  background: #ece8df;
  color: #4b4c45;
}

.doc .byline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  margin: 1rem 0 0;
  color: var(--paper-soft);
  font-family: var(--display);
  font-size: 0.85rem;
}

.doc .byline b {
  color: var(--paper-ink);
}

.doc h3 {
  margin: 2.8rem 0 0.8rem;
  color: var(--paper-ink);
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 720;
  letter-spacing: -0.02em;
}

.doc p {
  margin: 0 0 1.05rem;
}

.doc .pull {
  margin: 1.6rem 0;
  padding: 0.3rem 0 0.3rem 1.3rem;
  border-left: 3px solid var(--orange);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-style: italic;
  line-height: 1.3;
}

.doc ul {
  margin: 0 0 1.05rem;
  padding-left: 1.3rem;
}

.flow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.4rem;
  margin: 1.4rem 0 1.6rem;
  padding: 0;
  list-style: none;
  font-family: var(--display);
}

.flow li {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  font-weight: 650;
}

.flow li span {
  padding: 0.38rem 0.85rem;
  border: 1px solid rgba(29, 30, 27, 0.16);
  border-radius: 999px;
  background: #fff;
}

.flow li + li::before {
  content: "→";
  color: var(--orange);
  font-weight: 500;
}

/* The five areas: movements of a piece, in the icon's colors. */
.movements {
  display: grid;
  gap: 0.9rem;
  margin: 1.8rem 0 0;
  padding: 0;
  list-style: none;
}

.movements > li {
  --tone: var(--line-1);
  position: relative;
  padding: 1.4rem 1.4rem 1.2rem 1.4rem;
  border: 1px solid rgba(29, 30, 27, 0.1);
  border-radius: 16px;
  background: #fff;
}

.movements > li:nth-child(2) { --tone: var(--line-2); }
.movements > li:nth-child(3) { --tone: var(--line-3); }
.movements > li:nth-child(4) { --tone: var(--line-4); }
.movements > li:nth-child(5) { --tone: var(--line-5); }
.movements > li.coda { --tone: var(--caret); background: #fffaf0; }

.movements .no {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 0 0 0.5rem;
  color: #6b6c64;
  font-family: var(--mono);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.movements .no::before {
  content: "";
  width: 2.2rem;
  height: 0.4rem;
  border-radius: 1rem;
  background: var(--tone);
}

.movements h4 {
  margin: 0 0 0.5rem;
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 720;
  letter-spacing: -0.015em;
}

.movements p:last-child,
.movements ul:last-child {
  margin-bottom: 0;
}

.status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.4rem 0 1rem;
  padding: 0;
  list-style: none;
  font-family: var(--display);
}

.status li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: #e8f5e9;
  color: #1b5e20;
  font-size: 0.88rem;
  font-weight: 650;
}

.status li::before {
  content: "✓";
}

.doc .chain li span {
  background: #fff;
}

/* Vote ---------------------------------------------------------------------------------------- */

.vote {
  padding: clamp(4rem, 9vw, 7rem) 0;
}

.vote .panel {
  position: relative;
  display: grid;
  gap: 2rem;
  overflow: hidden;
  padding: clamp(2rem, 5vw, 4rem);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(40rem 22rem at 100% 0%, rgba(255, 255, 255, 0.22), transparent 60%),
    linear-gradient(135deg, #f58b18, #fb8c00 55%, #e57a00);
  color: var(--orange-ink);
}

@media (min-width: 60rem) {
  .vote .panel {
    grid-template-columns: 1.3fr 1fr;
    align-items: center;
  }
}

.vote .kicker {
  color: rgba(36, 18, 0, 0.75);
}

.vote .kicker::before {
  background: var(--orange-ink);
}

.vote h2 {
  color: var(--orange-ink);
}

.vote p {
  max-width: 34rem;
  margin: 1.2rem 0 0;
  color: rgba(36, 18, 0, 0.82);
  font-size: 1.08rem;
}

.vote .sum {
  font-family: var(--mono);
  font-size: clamp(2.6rem, 6vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.vote .sum small {
  font-size: 0.4em;
  letter-spacing: 0;
}

.vote .facts {
  display: grid;
  gap: 0.5rem;
  margin: 1rem 0 1.6rem;
  padding: 0;
  list-style: none;
  font-family: var(--mono);
  font-size: 0.82rem;
}

.vote .facts li {
  padding: 0.55rem 0.8rem;
  border-radius: 10px;
  background: rgba(36, 18, 0, 0.08);
}

.btn.dark {
  background: var(--orange-ink);
  color: #fff3e2;
  box-shadow: 0 16px 40px rgba(36, 18, 0, 0.3);
}

.btn.dark .badge {
  background: rgba(255, 255, 255, 0.12);
  color: var(--orange-bright);
}

.btn.dark:hover {
  background: #3a1d00;
}

/* Footer ---------------------------------------------------------------------------------------- */

.site-footer {
  padding: 3rem 0 max(3.5rem, calc(env(safe-area-inset-bottom) + 2rem));
  border-top: 1px solid var(--line);
  color: var(--text-faint);
  font-size: 0.875rem;
}

.site-footer .wrap {
  display: grid;
  gap: 2rem;
}

@media (min-width: 40rem) {
  .site-footer .wrap {
    grid-template-columns: 1.2fr 1fr 1fr;
  }
}

.site-footer .brand {
  margin-bottom: 0.8rem;
  color: var(--text);
}

.site-footer h2 {
  margin: 0 0 0.7rem;
  color: var(--text-soft);
  font-family: var(--mono);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.site-footer ul {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-footer p {
  margin: 0 0 0.5rem;
}

.site-footer a {
  text-decoration: none;
}

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

@media (prefers-reduced-motion: reduce) {
  .lines.writes span,
  .lines span:nth-child(6)::after {
    animation: none;
  }

  .btn,
  .btn.ghost .arrow,
  .site-nav a {
    transition: none;
  }
}

/* Lead sentences under the section headings: on wide screens they use the full
   width, so a short one stays on one line and a long one breaks in two even
   lines. Phones and tablets keep the narrow measure. */
@media (min-width: 64rem) {
  .section-lead {
    max-width: none;
    text-wrap: balance;
  }
}

@media (min-width: 80rem) {
  .section-lead {
    font-size: 1.0625rem;
  }
}
