/* NEO-TETHYS — Startseite und Impressum.
 *
 * Ohne externe Schriften, ohne Tracker, ohne Fremdaufrufe: die ganze Seite existiert, damit ein
 * Domainaufruf NICHT 8,6 MB Spiel zieht. Sie darf also selbst nicht schwer sein.
 * Die Startseite kommt ohne eine Zeile JavaScript aus. Das Impressum hat genau eine: sie setzt
 * die base64-kodierte Kontaktadresse zusammen, damit sie nicht im Klartext im HTML steht.
 * Palette und Typografie kommen aus game/boot.css, damit der Sprung ins Spiel nicht wie ein
 * Sprung auf eine andere Website wirkt. Die Bibel erlaubt drei Farbfamilien pro Bild —
 * Tiefe, Cyan, Magenta — und daran haelt sich auch das hier.
 */

:root {
  --deep: #03080f;
  --deep-2: #06121e;
  --cy: #1fd6ff;
  --tl: #38f0d8;
  --mg: #ff2a6d;
  --am: #ffd166;
  --ink: #7f97ad;
  --ink-dim: #4d7a95;
  --paper: #cfe6f5;
  --mono: "SF Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--deep);
  color: var(--paper);
  font-family: var(--mono);
  font-size: 15px;
  line-height: 1.72;
  -webkit-font-smoothing: antialiased;
  /* Das gleiche Scanline-Raster wie der Ladebildschirm, nur schwaecher, damit Fliesstext
   * darauf lesbar bleibt. */
  background-image: repeating-linear-gradient(0deg,
    rgba(255, 255, 255, .016) 0 1px, transparent 1px 3px);
}

a { color: var(--cy); text-decoration: none; border-bottom: 1px solid rgba(31, 214, 255, .3); }
a:hover { color: #7fe8ff; border-bottom-color: rgba(31, 214, 255, .8); }

.wrap { width: min(1080px, 90vw); margin: 0 auto; }

/* ── Wortmarke ──────────────────────────────────────────────────────────────────────── */
.mark { letter-spacing: .30em; text-indent: .30em; font-weight: 600; line-height: 1; }
.mark .a { color: #eaf7ff; text-shadow: 0 0 26px rgba(31, 214, 255, .55); }
.mark .b { color: var(--cy); text-shadow: 0 0 34px rgba(31, 214, 255, .8); }
.mark .sep { color: var(--mg); margin: 0 .16em; text-shadow: 0 0 22px rgba(255, 42, 109, .9); }

/* ── Kopfbereich ────────────────────────────────────────────────────────────────────── */
/* Der Inhalt sitzt UNTEN, nicht mittig. Zentriert entstand bei niedrigen Fenstern eine grosse
 * tote Flaeche unter dem Knopf, weil der Block 760 px hoch ist und der Text darin schwebt.
 * Unten buendig zeigt stattdessen das Bild darueber — was der eigentliche Zweck des Bildes ist. */
.hero { position: relative; min-height: min(86vh, 720px); display: grid; align-items: end;
        overflow: hidden; border-bottom: 1px solid rgba(31, 214, 255, .14); }
.hero-img { position: absolute; inset: 0; background-size: cover; background-position: 50% 55%;
            filter: saturate(1.05); }
/* Der Verlauf ist kein Deko-Element: das Bild ist ein echter Screenshot mit Neonlicht bis in
 * die Ecken. Der SEITLICHE Verlauf ist der wichtigere von beiden — der Fliesstext steht links
 * und lag vorher auf der hellsten Stelle der Fahrbahn, wo er kaum zu lesen war. */
.hero-veil { position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 14, .93) 0%, rgba(2, 8, 14, .74) 34%, rgba(2, 8, 14, .12) 70%),
    linear-gradient(180deg, rgba(2, 8, 14, .55) 0%, rgba(2, 8, 14, .18) 34%, rgba(2, 8, 14, .88) 100%); }
.hero-inner { position: relative; z-index: 2; padding: 6rem 0 4rem; }

.hero .mark { font-size: clamp(30px, 6.4vw, 68px); }
.tagline { margin-top: 1.6rem; font-size: clamp(12px, 1.5vw, 15px); letter-spacing: .40em;
           color: var(--ink-dim); text-transform: uppercase; }
.lede { margin-top: 2.2rem; max-width: 46ch; color: #a9c6da; font-size: clamp(14px, 1.7vw, 17px); }

/* ── Knoepfe ────────────────────────────────────────────────────────────────────────── */
.actions { margin-top: 2.8rem; display: flex; flex-wrap: wrap; gap: 1rem 1.2rem; align-items: center; }
.btn { display: inline-block; padding: .95rem 2.3rem; border: 1px solid var(--cy);
       color: #eaf7ff; letter-spacing: .26em; font-size: 13px; text-transform: uppercase;
       background: linear-gradient(180deg, rgba(31, 214, 255, .16), rgba(31, 214, 255, .05));
       box-shadow: 0 0 26px rgba(31, 214, 255, .22), inset 0 0 22px rgba(31, 214, 255, .08);
       transition: box-shadow .2s ease, background .2s ease, transform .12s ease; }
.btn:hover { background: linear-gradient(180deg, rgba(31, 214, 255, .3), rgba(31, 214, 255, .1));
             box-shadow: 0 0 42px rgba(31, 214, 255, .42), inset 0 0 26px rgba(31, 214, 255, .14); }
.btn:active { transform: translateY(1px); }
.btn-note { color: #8fb2c8; font-size: 12px; letter-spacing: .10em;
             background: rgba(2, 8, 14, .72); padding: .35rem .8rem;
             border-left: 1px solid rgba(31, 214, 255, .28); }

/* ── Abschnitte ─────────────────────────────────────────────────────────────────────── */
section { padding: 5rem 0; border-bottom: 1px solid rgba(31, 214, 255, .09); }
h2 { font-size: 12px; letter-spacing: .42em; text-transform: uppercase; color: var(--tl);
     font-weight: 600; margin: 0 0 2.2rem; }
h2 .n { color: var(--mg); margin-right: 1.1em; }
p { margin: 0 0 1.1rem; color: #a9c6da; max-width: 68ch; }

.grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
/* Ein einzelnes Bild in einem auto-fit-Raster nimmt die ganze Spalte und wird dadurch
 * ueberlebensgross — gemessen 1003 px Abschnittshoehe fuer ein Bild und einen Absatz.
 * Ein Raster mit nur einem Kind bekommt deshalb eine Obergrenze. */
.grid:has(> .shot:only-child) { grid-template-columns: minmax(0, 620px); }
.shot { border: 1px solid rgba(31, 214, 255, .16); background: var(--deep-2); overflow: hidden; }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: .85rem 1.1rem; font-size: 11px; letter-spacing: .20em;
                   text-transform: uppercase; color: var(--ink-dim);
                   border-top: 1px solid rgba(31, 214, 255, .10); }
.shot figcaption b { color: var(--cy); font-weight: 600; }

.facts { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
         background: rgba(31, 214, 255, .12); border: 1px solid rgba(31, 214, 255, .12); }
.fact { background: var(--deep); padding: 1.6rem 1.4rem; }
.fact dt { font-size: 10px; letter-spacing: .30em; text-transform: uppercase; color: var(--ink-dim); }
.fact dd { margin: .6rem 0 0; font-size: 21px; color: var(--cy); }
.fact dd small { display: block; font-size: 11px; letter-spacing: .12em; color: var(--ink); margin-top: .3rem; }

.keys { display: grid; gap: .55rem 1.4rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        max-width: 760px; }
.keys div { display: flex; gap: .9rem; align-items: baseline; color: #a9c6da; font-size: 14px; }
kbd { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; padding: .28rem .6rem;
      border: 1px solid rgba(31, 214, 255, .28); color: var(--cy); background: rgba(31, 214, 255, .06);
      white-space: nowrap; }

/* ── Impressum ──────────────────────────────────────────────────────────────────────── */
.doc { padding: 4.5rem 0 5rem; }
.doc h1 { font-size: clamp(20px, 3vw, 28px); letter-spacing: .18em; text-transform: uppercase;
          color: #eaf7ff; margin: 0 0 3rem; font-weight: 600; }
.doc h2 { margin-top: 3rem; }
.doc address { font-style: normal; color: #a9c6da; }
.todo { color: var(--am); border-bottom: 1px dashed rgba(255, 209, 102, .5); }
.note { border-left: 2px solid var(--mg); padding: 1rem 0 1rem 1.3rem; color: var(--ink);
        font-size: 13px; background: rgba(255, 42, 109, .04); max-width: 68ch; }

/* ── Fuss ───────────────────────────────────────────────────────────────────────────── */
footer { padding: 3rem 0 4rem; color: var(--ink-dim); font-size: 12px; letter-spacing: .12em; }
footer .row { display: flex; flex-wrap: wrap; gap: 1rem 2rem; align-items: center;
              justify-content: space-between; }
footer nav { display: flex; gap: 1.6rem; }

/* Verweise auf die anderen eigenen Projekte. Keine neuen Bausteine: die Ueberschrift ist der
 * Abschnittstitel der Seite (nur kleiner, weil der Fuss kleiner setzt), das Raster ist dasselbe
 * auto-fit-Raster wie bei .keys, und die Trennlinie hat dieselbe Staerke wie die zwischen
 * zwei Abschnitten. Der Block steht ueber der Fusszeile und ist von ihr abgetrennt, damit er
 * nicht mit Impressum und Datenschutz in eine Reihe rutscht. */
footer .projects { padding-bottom: 2.4rem; margin-bottom: 2.2rem;
                   border-bottom: 1px solid rgba(31, 214, 255, .09); }
footer .projects h2 { font-size: 11px; letter-spacing: .38em; color: var(--tl);
                      margin: 0 0 1.5rem; }
/* 190 px ist die kleinste Spaltenbreite, bei der alle fuenf Eintraege bei 1080 px
 * Inhaltsbreite in EINE Reihe passen (5x190 + 4x27 = 1059). Breiter, und der fuenfte
 * Eintrag faellt allein in eine zweite Reihe. */
footer .projects ul { list-style: none; margin: 0; padding: 0; display: grid;
                      gap: 1.2rem 1.7rem;
                      grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
footer .projects li { line-height: 1.5; }
footer .projects a { font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
                     color: var(--cy); border-bottom: 1px solid rgba(31, 214, 255, .22); }
footer .projects a:hover { color: #7fe8ff; border-bottom-color: rgba(31, 214, 255, .8); }
footer .projects small { display: block; margin-top: .35rem; font-size: 11px;
                         letter-spacing: .08em; color: var(--ink-dim); }

@media (max-width: 640px) {
  body { font-size: 14px; }
  .hero-inner { padding: 5rem 0 3.5rem; }
  section { padding: 3.5rem 0; }
}

/* Wer Bewegung reduziert haben will, bekommt kein weiches Scrollen aufgezwungen. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}
