/* ---------------------------------------------------------------
   robert.mx
   Schriften: Bricolage Grotesque, IBM Plex Mono (beide OFL)
   Dateien liegen in ../fonts/ und werden dort per fetch-fonts.sh geholt.
   --------------------------------------------------------------- */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("../fonts/BricolageGrotesque-Variable.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/IBMPlexMono-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* --- Tokens --- */

:root {
  --papier:  #EAEAE5;
  --tinte:   #17171A;
  --leise:   #6B6B66;
  --linie:   #C9C9C2;
  --rosa:    #E2456F;

  --display: "Bricolage Grotesque", "Helvetica Neue", Arial, sans-serif;
  --mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --rand:    clamp(1.25rem, 5vw, 4.5rem);
}

[data-theme="dark"] {
  --papier: #131316;
  --tinte:  #EDEDE7;
  --leise:  #8A8A84;
  --linie:  #2E2E33;
  --rosa:   #FF6E90;
}

/* --- Grundgerüst --- */

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  padding: var(--rand);
  display: flex;
  flex-direction: column;
  gap: clamp(2.5rem, 8vh, 6rem);
  background: var(--papier);
  color: var(--tinte);
  font-family: var(--display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  transition: background-color .25s ease, color .25s ease;
}

a { color: inherit; }

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

/* --- Kopfzeile --- */

.kopf {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-family: var(--mono);
  font-size: .78rem;
  letter-spacing: .06em;
  color: var(--leise);
}

.schalter {
  font: inherit;
  color: var(--leise);
  background: none;
  border: 0;
  padding: .25rem 0;
  cursor: pointer;
  letter-spacing: .06em;
}

.schalter:hover { color: var(--rosa); }

/* --- Mitte --- */

.mitte {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: clamp(1.5rem, 4vh, 2.75rem);
}

.name {
  margin: 0;
  /* Startwert. Die exakte Größe rechnet app.js aus der Spaltenbreite. */
  font-size: clamp(2.5rem, 15vw, 12rem);
  font-weight: 800;
  font-stretch: 95%;
  line-height: .84;
  letter-spacing: -.045em;
  white-space: nowrap;
}

.punkt { color: var(--rosa); }

.text {
  margin: 0 auto 0;
  max-width: 50ch;
  font-size: clamp(1.05rem, 1.6vw, 1.4rem);
  line-height: 1.45;
  text-wrap: pretty;
}

/* --- Links --- */

.wege {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem 2rem;
  margin: 0 auto 0;
  font-family: var(--mono);
  font-size: .92rem;
}

.wege a {
  text-decoration: none;
  padding-bottom: .3rem;
  border-bottom: 1.5px solid var(--linie);
  transition: border-color .18s ease, color .18s ease;
}

.wege a:hover {
  color: var(--rosa);
  border-bottom-color: var(--rosa);
}

/* --- Fuß --- */

.fuss {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--linie);
  font-family: var(--mono);
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--leise);
}

.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--rosa); }

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