/* Zeit Health — coming soon. No external requests: fonts are self-hosted, no scripts, no cookies. */

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("/fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --bg: #fbfbfc;
  --surface: #ffffff;
  --ink: #14171c;
  --ink-2: #565b63;
  --ink-3: #6b7079;
  --line: rgba(17, 20, 24, 0.09);
  --line-2: rgba(17, 20, 24, 0.18);
  --state: #0e9fb3; /* cyan is reserved for state (here: "coming soon") */
  --state-glow: rgba(14, 159, 179, 0.35);
  --cta-bg: #14171c;
  --cta-ink: #fbfbfc;
  --cta-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.45);
  --warm: rgba(255, 182, 140, 0.16);
  --cool: rgba(157, 180, 212, 0.2);
  --serif: "Instrument Serif", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e1013;
    --surface: #16191e;
    --ink: #e9eaee;
    --ink-2: #a8adb5;
    --ink-3: #848a93;
    --line: rgba(255, 255, 255, 0.1);
    --line-2: rgba(255, 255, 255, 0.2);
    --state: #5fd4e4;
    --state-glow: rgba(95, 212, 228, 0.35);
    --cta-bg: #e9eaee;
    --cta-ink: #0e1013;
    --cta-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.9);
    --warm: rgba(255, 182, 140, 0.07);
    --cool: rgba(95, 140, 212, 0.09);
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background:
    radial-gradient(64rem 36rem at 50% -12%, var(--warm), transparent 65%),
    radial-gradient(56rem 30rem at 50% 112%, var(--cool), transparent 65%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--state);
  outline-offset: 3px;
  border-radius: 4px;
}

.nowrap {
  white-space: nowrap;
}

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

.hero {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(72px, 14vh, 160px) 20px clamp(64px, 11vh, 128px);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 32px;
  padding: 7px 15px 7px 13px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 55%, transparent);
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--state);
  animation: pulse 2.4s ease-out infinite;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 var(--state-glow);
  }
  70%,
  100% {
    box-shadow: 0 0 0 9px transparent;
  }
}

.wordmark {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(52px, 21vw, 168px);
  line-height: 0.92;
  letter-spacing: -0.025em;
}

.wordmark em {
  font-style: italic;
}

.lede {
  margin: 28px auto 0;
  max-width: 40ch;
  color: var(--ink-2);
  text-wrap: balance;
  font-size: clamp(17px, 2.1vw, 20px);
  line-height: 1.5;
}

.cta {
  margin-top: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px 14px 24px;
  border-radius: 999px;
  background: var(--cta-bg);
  color: var(--cta-ink);
  box-shadow: var(--cta-shadow);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cta svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

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

.cta:hover svg {
  transform: translateX(2px);
}

.cta:focus-visible {
  border-radius: 999px;
}

/* entrance: calm, once */
.rise {
  animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.rise-2 {
  animation-delay: 0.08s;
}

.rise-3 {
  animation-delay: 0.16s;
}

.rise-4 {
  animation-delay: 0.24s;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rise,
  .dot {
    animation: none;
  }
  .cta,
  .cta svg {
    transition: none;
  }
}

/* ---------- Legal footer (Impressum) ---------- */

.legal {
  border-top: 1px solid var(--line);
  padding: 28px 20px 36px;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.65;
}

.legal-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 24px 40px;
  align-items: start;
}

.legal p {
  margin: 0;
}

.legal h2 {
  margin: 0 0 6px;
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.legal a {
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-2);
  text-underline-offset: 3px;
}

.legal a:hover {
  color: var(--ink);
  text-decoration-color: currentColor;
}

.brandline {
  color: var(--ink-2);
}

.imprint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 12px 32px;
  justify-content: start;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

@media (min-width: 1101px) {
  .imprint-grid p {
    white-space: nowrap;
  }
}

@media (max-width: 1100px) {
  .legal-inner {
    grid-template-columns: minmax(0, 1fr) auto;
  }
  .imprint {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .legal-inner {
    grid-template-columns: minmax(0, 1fr);
  }
  .imprint {
    grid-row: auto;
  }
  .imprint-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 10px;
  }
  .legal-nav {
    align-items: flex-start;
    text-align: left;
  }
}

/* ---------- Text pages (Datenschutz, 404) ---------- */

.page {
  flex: 1;
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  padding: 40px 20px 72px;
}

.back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-2);
  font-size: 14px;
  text-decoration: none;
}

.back:hover {
  color: var(--ink);
}

.back .mark {
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1;
  color: var(--ink);
}

.page h1 {
  margin: 48px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(40px, 7vw, 60px);
  line-height: 1;
  letter-spacing: -0.02em;
}

.page .meta {
  margin: 0 0 36px;
  color: var(--ink-3);
  font-size: 14px;
}

.page h2 {
  margin: 36px 0 8px;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
}

.page p,
.page li {
  color: var(--ink-2);
  font-size: 16px;
}

.page p {
  margin: 0 0 12px;
}

.page ul {
  margin: 0 0 12px;
  padding-left: 20px;
}

.page a {
  color: var(--ink);
  text-underline-offset: 3px;
}

.summary {
  margin: 0 0 8px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.summary p {
  margin: 0;
}

.summary strong {
  color: var(--ink);
  font-weight: 600;
}
