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

/* The same ground and ink as kaeso.app and arvedui.com. */
:root {
  --bg: #ffffff;
  --fg: #0a0a0a;
  --muted: #5c5c5c;
  --line: rgb(10 10 10 / 0.22);
  --rule: rgb(10 10 10 / 0.08);
  --gutter: clamp(1.25rem, 5vw, 2.5rem);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #fafafa;
    --muted: #a3a3a3;
    --line: rgb(250 250 250 / 0.26);
    --rule: rgb(250 250 250 / 0.1);
  }
}

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

html {
  font-size: clamp(17px, 0.8rem + 0.4vw, 20px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 var(--gutter);
  background: var(--bg);
  color: var(--fg);
  font-family: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
  font-feature-settings: "ss03", "cv11";
  line-height: 1.4;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--fg); color: var(--bg); }

main {
  flex: 1;
  width: 100%;
  max-width: 32rem;
  margin-inline: auto;
  padding-top: clamp(4.5rem, 16vh, 9rem);
  padding-bottom: 3rem;
}

p {
  margin: 0 0 1.05em;
  text-wrap: pretty;
}

em {
  font-style: normal;
  font-weight: 580;
}

a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  text-decoration-color: var(--line);
  transition: text-decoration-color 160ms ease-out, color 160ms ease-out, opacity 160ms ease-out;
}

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

a:focus-visible {
  outline: 1.5px solid currentColor;
  outline-offset: 3px;
  border-radius: 2px;
}

.next { margin-top: 1.7em; }
.next a { text-decoration: none; }
.next a .arrow { display: inline-block; transition: transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1); }
.next a:hover .arrow { transform: translateX(3px); }

/* Footer: the faded mark, centred. */
footer {
  display: flex;
  justify-content: center;
  padding: 2rem 0 calc(2.25rem + env(safe-area-inset-bottom));
}

body { position: relative; }

.mark {
  display: inline-flex;
  color: var(--fg);
  opacity: 0.16;
  transition: opacity 400ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mark svg { width: 2rem; height: auto; fill: currentColor; }
.mark:hover { opacity: 0.32; transform: translateY(-2px); }
.mark:focus-visible { opacity: 0.5; }

/* The legal links: tiny, in the bottom-right corner, out of the way but always there. */
.legal {
  position: absolute;
  right: var(--gutter);
  bottom: calc(1.1rem + env(safe-area-inset-bottom));
  display: flex;
  gap: 0.9em;
  font-size: 11px;
  letter-spacing: 0.01em;
}

.legal a { color: var(--muted); text-decoration: none; opacity: 0.75; }
.legal a:hover { color: var(--fg); opacity: 1; }

/* Impressum and Datenschutz: the same column, set smaller. */
.doc { font-size: 0.82rem; line-height: 1.55; letter-spacing: -0.006em; }

.doc .back {
  display: inline-block;
  margin-bottom: 2.5rem;
  color: var(--muted);
  text-decoration: none;
}

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

.doc h1 {
  margin: 0 0 0.4rem;
  font-size: 1.65rem;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.doc .lede { margin-bottom: 2.25rem; color: var(--muted); }

.doc h2 {
  margin: 2.25rem 0 0.6rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: -0.006em;
}

.doc ul { margin: 0 0 1.05em; padding-left: 1.1em; }
.doc li { margin-bottom: 0.3em; }
.doc li::marker { color: var(--muted); }

.doc address {
  margin: 0 0 1.05em;
  font-style: normal;
  white-space: pre-line;
}

.doc .stand { margin-top: 2.5rem; color: var(--muted); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

#provider { min-height: 7.75em; }

@media (max-width: 640px) {
  footer { padding-bottom: calc(3.4rem + env(safe-area-inset-bottom)); }
  .legal { left: 0; right: 0; justify-content: center; }
}
