/* bentiko · coming soon
   ---------------------------------------------------------------------------
   Axis     The hairline down the left is the page's spine. The mark's accent
            b-stem sits flush on it, so the logo becomes the one coloured
            moment on the axis — and nothing else on the page needs colour.
   Palette  Cool paper / blue-black. Azure #1B5FD9 is brand only: it appears in
            the mark and in focus rings, nowhere else.
   Type     System UI stack. No webfonts, no external requests.
   --------------------------------------------------------------------------- */

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

:root {
  color-scheme: dark light;

  --bg:     #070b12;
  --ink:    #e6e9ee;
  --muted:  #8b95a3;
  --rule:   #39465a;
  --accent: #1b5fd9;

  --pad:  clamp(1.75rem, 5vw, 4.5rem);
  --mark: min(38rem, 100%);
  --ease: cubic-bezier(.16, 1, .3, 1);
  --spine-gap: 1.5rem;
  --fade: transparent, var(--rule) 8%, var(--rule) 92%, transparent;

  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg:    #edeff2;
    --ink:   #10151c;
    --muted: #5d6773;
    --rule:  #c9cfd8;
  }
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* language visibility — the active language is set on <html lang> by lang.js */

[data-lang] { display: none; }

html[lang="de"] [data-lang="de"],
html[lang="en"] [data-lang="en"] { display: revert; }

/* shell & spine */

.shell {
  display: grid;
  min-height: 100vh;
  min-height: 100dvh;
  padding: var(--pad);
}

.page {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: clamp(2rem, 6vw, 4rem);
  width: 100%;
  max-width: 78rem;
  margin-inline: auto;
}

.page--solo { grid-template-rows: 1fr auto; }   /* home page has no header bar */

.page::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: calc(var(--spine-gap) * -1);
  width: 1px;
  background: linear-gradient(to bottom, var(--fade));
  transform-origin: top;
  animation: draw .9s var(--ease) both;
}

/* bars */

.bar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1.5rem;
}

.bar--top  { animation: rise .8s var(--ease) .50s both; }
.bar--foot { animation: rise .8s var(--ease) .60s both; }
.bar p     { margin: 0; }

.meta,
.doc dt {
  font-size: .75rem;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}

.brandline {
  text-transform: none;
  letter-spacing: .04em;
}

.legal {
  display: flex;
  gap: 1.5rem;
}

/* stage */

.stage {
  display: grid;
  align-content: center;
}

.stage--doc { align-content: start; }

.mark { margin: 0; }

.mark img,
.crumb img {
  display: block;
  height: auto;
  aspect-ratio: 214 / 50.5;
}

.mark img {
  width: var(--mark);
  animation: rise .8s var(--ease) .18s both;
}

.crumb img { width: 7.5rem; }

.claim {
  margin: clamp(1.75rem, 4vw, 3rem) 0 0;
  max-width: 34ch;
  font-size: clamp(1.22rem, 1.06rem + .8vw, 1.725rem);
  line-height: 1.45;
  letter-spacing: -.011em;
  text-wrap: balance;
  animation: rise .8s var(--ease) .34s both;
}

/* links & focus */

.link {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-decoration-color: var(--rule);
  text-underline-offset: .25em;
}

.link:hover { text-decoration-color: currentColor; }

:where(a, button):focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Impressum */

.doc__title {
  margin: 0;
  font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -.02em;
}

.doc__note { margin: .75rem 0 0; }

.doc {
  margin: clamp(2rem, 5vw, 3rem) 0 0;
  max-width: 46rem;
}

.doc dt {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  background: linear-gradient(to right, var(--fade)) top / 100% 1px no-repeat;
}

.doc dt:first-of-type { margin-top: 0; }

.doc dd { margin: .5rem 0 0; }

/* motion */

@keyframes draw { from { transform: scaleY(0); } }

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    transition-duration: .001ms !important;
  }
}
