/* Lutz Pankow – Landing Page (Demo)
   Eine Schrift (Fraunces), Normandie-Palette, der Name ist der Horizont. */

@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Fraunces";
  font-style: italic;
  font-weight: 300 700;
  font-display: swap;
  src: url("/assets/fonts/fraunces-italic.woff2") format("woff2");
}

:root {
  --chalk: #f6f7f4;
  --chalk-deep: #e4e8e3;
  --sea: #123b47;
  --sea-mid: #3e6f7e;
  --sky: #d9e4e8;
  --glass: #bfd7d6;
  --cidre: #b8892b;

  --bg: var(--chalk);
  --ink: var(--sea);
  --ink-soft: #3a5560;
  --name-on-sea: var(--chalk);
  --name-on-chalk: var(--sea);
  --horizon: 60%;

  --font: "Fraunces", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 6vw, 6rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1f27;
    --ink: #e8ece7;
    --ink-soft: #a9bcc0;
    --sky: #0c1f27;
    --sea-mid: #16404d;
    --glass: #2e5563;
    --chalk-deep: #143039;
    --name-on-sea: #e8ece7;
    --name-on-chalk: #e8ece7;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 40, "WONK" 0;
  font-size: clamp(1.0625rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

:focus-visible {
  outline: 3px solid var(--cidre);
  outline-offset: 4px;
}

/* ---------- Hero: der Name als Horizont ---------- */

.hero {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
}

.sea {
  position: absolute;
  inset: 0 0 auto 0;
  height: var(--horizon);
  background: linear-gradient(to bottom, var(--sky) 0%, var(--glass) 55%, var(--sea-mid) 100%);
  z-index: 0;
}

.waves {
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  width: 200%;
  height: clamp(40px, 9vh, 110px);
  display: block;
}

.wave { fill: var(--sea-mid); opacity: .55; }
.wave-2 { opacity: .35; animation-duration: 38s; }
.wave-3 { fill: var(--sea); opacity: .55; animation-duration: 26s; }

.wave {
  animation: drift 32s linear infinite;
  transform-origin: 0 0;
}

@keyframes drift {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.name {
  position: absolute;
  z-index: 1;
  left: var(--gutter);
  top: var(--horizon);
  margin: 0;
  transform: translateY(-50%);
  display: grid;
  line-height: .86;
  font-size: clamp(4.25rem, 22vw, 16rem);
  font-weight: 320;
  letter-spacing: -0.035em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
  animation: rise 1.6s cubic-bezier(.2,.7,.2,1) both;
}

.name-first { color: var(--name-on-sea); }
.name-last  { color: var(--name-on-chalk); }

@keyframes rise {
  from { transform: translateY(-38%); opacity: 0; }
  to   { transform: translateY(-50%); opacity: 1; }
}

.where {
  position: absolute;
  z-index: 1;
  right: var(--gutter);
  bottom: clamp(1.5rem, 5vh, 3.5rem);
  margin: 0;
  display: flex;
  align-items: center;
  gap: .9rem;
  font-style: italic;
  font-size: 1.05em;
  color: var(--ink-soft);
}

.tide {
  display: inline-block;
  width: clamp(2.5rem, 8vw, 6rem);
  height: 2px;
  background: var(--cidre);
}

/* ---------- Inhalt ---------- */

main, .ende {
  padding-inline: var(--gutter);
}

.intro {
  max-width: var(--measure);
  padding-block: clamp(4rem, 12vh, 9rem) clamp(3rem, 8vh, 6rem);
}

.intro p {
  margin: 0;
  font-size: clamp(1.35rem, 1.1rem + 1.1vw, 2.1rem);
  line-height: 1.35;
  font-weight: 340;
  letter-spacing: -0.005em;
}

.moments {
  padding-block: 0 clamp(4rem, 12vh, 9rem);
}

.moments h2 {
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
  font-weight: 500;
  font-style: italic;
  color: var(--ink-soft);
}

.moments ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2.5rem var(--gutter);
}

@media (min-width: 46em) {
  .moments ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .name { font-size: clamp(4.25rem, 16.5vw, 16rem); }
}

.moments li {
  border-top: 1px solid var(--glass);
  padding-top: 1.25rem;
  max-width: 34ch;
}

.moments h3 {
  margin: 0;
  font-size: clamp(2rem, 1.5rem + 2vw, 3.2rem);
  font-weight: 350;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variation-settings: "SOFT" 100, "WONK" 1;
}

.moments .when {
  margin: .5rem 0 1rem;
  font-style: italic;
  color: var(--ink-soft);
}

.moments p { margin: 0; }

/* ---------- Ende ---------- */

.ende {
  background: var(--chalk-deep);
  padding-block: clamp(3rem, 10vh, 6rem);
}

.ende p {
  max-width: var(--measure);
  margin: 0 0 1rem;
}

.mail {
  display: inline-block;
  font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.6rem);
  font-weight: 350;
  line-height: 1.1;
  text-decoration: none;
  border-bottom: 2px solid var(--cidre);
  padding-bottom: .1em;
  transition: border-color .2s ease, color .2s ease;
}

.mail:hover { border-color: currentColor; }

.klein {
  margin-top: 2.5rem;
  font-size: .9rem;
  color: var(--ink-soft);
}

/* ---------- Ruhe für alle, die es wollen ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .wave, .name { animation: none; }
  .mail { transition: none; }
}
