/* Standing pages — 404, Impressum, Datenschutz.
   They borrow the tokens, reset and header from story.css and theme.css, and add only
   the prose column those files have no reason to describe. No scroll story, no GSAP. */

.page {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page .nav {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
}

.page-content {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 9vh, 96px) 24px clamp(64px, 10vh, 112px);
}

.page-content h1 {
  font-family: Gabarito, sans-serif;
  font-weight: 800;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  text-wrap: balance;
}
.page-content h2 {
  font-family: Gabarito, sans-serif;
  font-weight: 700;
  font-size: clamp(19px, 2.4vw, 23px);
  line-height: 1.25;
  margin: 44px 0 12px;
  color: var(--mint);
}
.page-content h1 + h2 {
  margin-top: 36px;
}
.page-content p,
.page-content li {
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
  text-wrap: pretty;
}
.page-content p {
  margin: 0 0 14px;
}
.page-content .lede {
  font-size: clamp(17px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--text);
  margin-bottom: 8px;
}
.page-content ul {
  margin: 0 0 14px;
  padding-left: 22px;
}
.page-content li {
  margin-bottom: 6px;
}
.page-content li::marker {
  color: var(--mint);
}
.page-content strong {
  color: var(--text);
  font-weight: 600;
}
.page-content code {
  font-family: "IBM Plex Mono", monospace;
  font-size: .9em;
  padding: 2px 5px;
  border-radius: 4px;
  background: color-mix(in srgb, var(--mint) 12%, transparent);
  color: var(--text);
}
.page-content a {
  color: var(--mint);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}
.page-content a:hover,
.page-content a:focus-visible {
  color: var(--text);
}
.page-content hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 48px 0;
}

/* 404 only: two languages side by side, neither subordinate to the other. The English
   heading is an h2 for document structure, but it is not a smaller idea. */
/* The two columns want more measure than a prose page, and the 404 has no prose. */
.page-content:has(.bilingual) {
  max-width: 980px;
}
.bilingual {
  display: grid;
  gap: clamp(40px, 6vw, 64px);
  align-items: stretch;
}
@media (min-width: 860px) {
  .bilingual {
    grid-template-columns: 1fr 1fr;
  }
}
/* Equal-height columns so both calls to action sit on one line. */
.bilingual section {
  display: flex;
  flex-direction: column;
}
.bilingual .actions {
  margin-top: auto;
  padding-top: 26px;
}
.bilingual h1,
.bilingual h2 {
  font-family: Gabarito, sans-serif;
  font-weight: 800;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--text);
  margin: 0 0 14px;
}
.bilingual .lede {
  font-size: 16px;
}

/* 404 only: the eyebrow, and the one call to action back to the story. */
.page-content .eyebrow {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  letter-spacing: .22em;
  color: var(--mint);
  margin-bottom: 10px;
}
.page-content .primary {
  display: inline-block;
  padding: 12px 22px;
  border-radius: 8px;
  background: var(--mint);
  color: #04221f;
  font-weight: 600;
  text-decoration: none;
  transition: transform .2s, filter .2s;
}
.page-content .primary:hover,
.page-content .primary:focus-visible {
  color: #04221f;
  filter: brightness(1.08);
  transform: translateY(-1px);
}
[data-theme="light"] .page-content .primary {
  color: #f2f7f4;
}

.page-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
  padding: 28px 24px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
}
.page-footer p {
  margin: 0;
  flex: 1;
  min-width: 200px;
}
.page-footer .legal-links {
  display: flex;
  gap: 18px;
}
.page-footer a:hover,
.page-footer a:focus-visible {
  color: var(--mint);
}

@media (max-width: 700px) {
  .page-content {
    padding-inline: 20px;
  }
  .page-footer {
    gap: 12px 20px;
    padding: 24px 20px;
  }
  .page-footer p {
    flex-basis: 100%;
  }
}
