/* OUAMBO: one line runs down the page and bends around four red dots.
   Behind it, six ASCII mouths say the name. */

:root {
  --paper: #f2efe6;
  --ink: #14181a;
  --red: #c62828;
  --line: #6b918e;        /* line and mouths */

  --sans: "Host Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;

  --gutter: clamp(28px, 6vw, 80px);
  --gap: clamp(9px, 1.1vw, 14px);   /* distance between a dot and the line */
}

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

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

body {
  margin: 0;
  font: 400 clamp(1rem, .94rem + .3vw, 1.2rem)/1.45 var(--sans);
  -webkit-font-smoothing: antialiased;
}

h1, h2, p, ol { margin: 0; padding: 0; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 4px; }

.page { position: relative; }
.wrap { width: min(1120px, 100%); margin-inline: auto; padding-inline: var(--gutter); }

/* Drawn by the scripts */
.bg-mouths { position: fixed; inset: 0; z-index: -1; pointer-events: none; }
.line { position: absolute; inset: 0 auto auto 0; pointer-events: none; overflow: visible; }
.line path { fill: none; stroke: var(--line); stroke-width: 2.5; }
.line circle { fill: var(--ink); }

/* ── Top ── */

.nav { position: relative; z-index: 1; display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.nav__logo { margin-right: auto; font-weight: 700; letter-spacing: -.01em; text-decoration: none; }
.nav__link, .hush { font-size: 1rem; text-underline-offset: .25em; }
.hush { order: 1; padding: 0; border: 0; background: none; color: inherit; font-family: inherit;
  line-height: inherit; text-decoration: underline; cursor: pointer; }
.nav__link, .hush { padding-block: .6rem; }
.nav__link:hover, .hush:hover, .mail:hover { color: var(--red); }

.hero { display: flex; flex-direction: column; min-height: calc(100svh - 72px); }
.hero__mouths { flex: 1; min-height: 170px; margin-block: 1rem; }
.hero__text { position: relative; padding: 0 0 clamp(2.5rem, 8vh, 6rem) clamp(1.25rem, 3vw, 2.5rem); }

h1 { font-size: clamp(2.5rem, 7.4vw, 6rem); font-weight: 600; line-height: .98; letter-spacing: -.045em; }
.hero__text p { margin-top: 1.25rem; max-width: 32ch; }

/* ── Dots ── */

.steps { position: relative; list-style: none; }

.step {
  --d: 200px;
  display: flex;
  align-items: center;
  gap: clamp(1.75rem, 7vw, 6rem);
  min-height: calc(var(--d) + 2 * var(--gap));
  padding-block: 1.25rem;
}
/* Dots take the full height of their row, so cancel the row padding */
.dot { flex: none; width: var(--d); height: var(--d); margin-block: calc(var(--gap) - 1.25rem); border-radius: 50%; background: var(--red); }
.step:nth-child(even) { flex-direction: row-reverse; }

.step:nth-child(1) { --d: clamp(112px, 21vw, 230px); }
.step:nth-child(2) { --d: clamp(140px, 29vw, 320px); }
.step:nth-child(3) { --d: clamp(96px, 16vw, 170px); }
.step:nth-child(4) { --d: clamp(124px, 24vw, 270px); }
.step--you { --d: clamp(158px, 33vw, 370px); }
.step:nth-child(3) .dot { margin-left: 5%; }
.step:nth-child(4) .dot { margin-right: 8%; }
.step--you .dot { margin-left: 3%; }

.step__text { min-width: 0; max-width: 21rem; }
h2 { margin-bottom: .35rem; font-size: clamp(1.25rem, 2.2vw, 1.75rem); font-weight: 700; line-height: 1.1; letter-spacing: -.025em; }

.dot--cta {
  display: grid;
  place-items: center;
  padding: 1em;
  color: var(--paper);
  font-size: clamp(1.25rem, 3.4vw, 2.4rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -.03em;
  text-align: center;
  text-decoration: none;
  transition: background-color .25s;
}
.dot--cta:hover { background: var(--ink); }
.mail { display: inline-block; padding-block: .6rem; text-underline-offset: .25em; }

/* Small pill that jumps to the contact dot */
.button {
  display: inline-block;
  margin-top: 1rem;
  padding: .6em 1.3em;
  border: 2px solid var(--red);
  border-radius: 999px;
  color: var(--red);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  transition: background-color .2s, color .2s;
}
.button:hover { background: var(--red); color: var(--paper); }

/* ── Contact page ── */

.nav__link[aria-current="page"] { color: var(--red); }

.hero--short { min-height: 0; }
.hero--short .hero__mouths { flex: none; height: clamp(170px, 34vh, 320px); }
.dot--mail { font-size: clamp(1rem, 2.1vw, 1.6rem); }

.mail--big { font-size: clamp(1.25rem, 2.6vw, 1.9rem); font-weight: 600; letter-spacing: -.02em; overflow-wrap: anywhere; }

/* Everything sits to the right of the line, like the headline */
.contact { padding-block: clamp(2.5rem, 7vh, 4.5rem) 0; }
.form { display: grid; gap: 1.5rem; max-width: 34rem; padding-left: clamp(1.25rem, 3vw, 2.5rem); }
.form h2 { margin: 0; }
.topics { display: flex; flex-wrap: wrap; gap: .6rem; margin: 0; padding: 0; border: 0; }
.topics legend { width: 100%; margin-bottom: .6rem; padding: 0; }
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic span { display: inline-block; padding: .45em 1em; border: 2px solid var(--ink); border-radius: 999px;
  font-size: .95rem; cursor: pointer; transition: background-color .2s, border-color .2s, color .2s; }
.topic span:hover { border-color: var(--red); color: var(--red); }
.topic input:checked + span { border-color: var(--red); background: var(--red); color: var(--paper); }
.topic input:focus-visible + span { outline: 3px solid var(--ink); outline-offset: 3px; }

.field { display: grid; gap: .4rem; }
.field input, .field textarea { width: 100%; padding: .7rem .9rem; border: 2px solid var(--ink); border-radius: 0;
  background: transparent; color: var(--ink); font: inherit; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--red); outline: none; }
.form__send { justify-self: start; margin-top: 0; border-color: var(--red); background: var(--red); color: var(--paper);
  font: inherit; font-weight: 600; cursor: pointer; }
.form__send:hover { border-color: var(--ink); background: var(--ink); }
.form__note { font-size: .9rem; opacity: .75; }
.form__send:disabled { opacity: .6; cursor: wait; }
.form__status:empty { display: none; }
.form__status { font-weight: 600; }
.form__status[data-kind="error"] { color: var(--red); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
/* Button text and note for "send directly" or "open mail app" (contact.js picks) */
.form [data-when="fallback"], .form.is-fallback [data-when="ready"] { display: none; }
.form.is-fallback [data-when="fallback"] { display: revert; }

.footer { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; padding-block: clamp(5rem, 14vh, 9rem) 1.75rem; font-size: .9rem; }
.footer span { margin-right: auto; }
.footer a { text-underline-offset: .25em; }
.footer a:hover, .footer a[aria-current="page"] { color: var(--red); }

/* ── Impressum and Datenschutz ── */

.legal { display: grid; gap: 2.25rem; padding-block: clamp(2.5rem, 8vh, 5rem) 0; }
.legal > * { max-width: 40rem; }
.legal h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.legal section { display: grid; gap: .75rem; }
.legal h2 { margin: 0; }
.legal a { text-underline-offset: .2em; }
.legal a:hover { color: var(--red); }
.legal__lead { font-size: 1.1em; }
.legal__more { font-size: .9rem; opacity: .75; }
/* Still to fill in */
.todo { padding: 0 .2em; background: #ffe58a; color: var(--ink); }

@media (max-width: 600px) {
  .step { gap: 1.5rem; }
  .step:nth-child(4) .dot { margin-right: 0; }
  .step--you .dot { margin-left: 0; }
  .footer span { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot--cta, .button, .topic span { transition: none; }
}
