/* ============================================================
   NIEK MÜLLER — shared brand layer
   Built to the 2025 Style Guide (Puca Production):
   · Beige + Schwarz = Basis,  Okker + Grün = Akzente
   · Titel: display face, VERSALIEN  ·  Public Sans für alles andere
   · Profesionell und dennoch einladend.
   ============================================================ */

/* ---- Display face: closest free analogue to "South Pacific" ---- */
@font-face {
  font-family: "Niek Display";
  src: url("./fonts/PoiretOne-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ---- Public Sans (variable, 100–900) for sub/body ---- */
@font-face {
  font-family: "Public Sans";
  src: url("./fonts/PublicSans-VF.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* style-guide palette */
  --beige: #f8e0bc;
  --black: #11100e;     /* "Kaligrafietinte" — a hair warmer than pure #000 for screen */
  --ink: #000000;
  --ochre: #8e3c27;
  --green: #727f68;
  --white: #ffffff;

  /* derived, kept inside the family */
  --beige-deep: #ecceA0;
  --beige-soft: #fbecd4;
  --ochre-deep: #6f2c1c;
  --green-deep: #586251;
  --frost: #d7ddd6;     /* cool tint for the "Schnee & Eis" accent, derived from green */
  --line: color-mix(in srgb, var(--black) 16%, transparent);
  --line-soft: color-mix(in srgb, var(--black) 9%, transparent);

  --display: "Niek Display", "Times New Roman", serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --pad: clamp(20px, 5vw, 88px);
  --r: 2px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --ease-soft: cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--beige);
  color: var(--black);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.55;
  font-synthesis: none;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--ochre); color: var(--beige); }

img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
figure { margin: 0; }

/* ---------- Typography ---------- */
.display,
h1, h2, h3 {
  font-family: var(--display);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .01em;
  line-height: .92;
  margin: 0;
}

h1 { font-size: clamp(52px, 11vw, 168px); }
h2 { font-size: clamp(38px, 6.5vw, 104px); }
h3 { font-size: clamp(24px, 3vw, 40px); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 600;
  font-size: clamp(11px, 1.1vw, 13px);
  letter-spacing: .26em;
  text-transform: uppercase;
  margin: 0 0 18px;
  color: var(--ochre);
}

.subtitle {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: .01em;
}

.lead {
  font-weight: 300;
  font-size: clamp(17px, 1.7vw, 22px);
  line-height: 1.55;
  max-width: 56ch;
}

p { margin: 0 0 1em; }

/* ---------- Wordmark / logo lockup ---------- */
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  line-height: 1;
}
.wordmark .mark {
  width: 32px; height: 32px;
  object-fit: contain;
  border-radius: var(--r);
  flex: none;
}
.wordmark .lockup { display: grid; gap: 1px; }
.wordmark .name {
  font-family: var(--sans);
  font-weight: 800;
  font-size: 16px;
  letter-spacing: -.01em;
  text-transform: lowercase;
}
.wordmark .role {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 10px;
  letter-spacing: .22em;
  text-transform: uppercase;
  opacity: .6;
}

/* ---------- Site chrome ---------- */
.topbar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px var(--pad);
  /* Solid (NOT backdrop-filter): a blurred bar over a live WebGL canvas
     recomposites every frame and causes full-page flicker. */
  background: var(--beige);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .nav { display: flex; gap: clamp(14px, 2vw, 30px); align-items: center; }
.topbar .nav a {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .04em;
  white-space: nowrap;
  opacity: .72;
  transition: opacity .2s var(--ease-soft), color .2s;
}
.topbar .nav a:hover { opacity: 1; color: var(--ochre); }
.topbar .nav a.back { opacity: .9; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: .02em;
  border: 1px solid var(--black);
  border-radius: 999px;
  background: transparent;
  color: var(--black);
  transition: background .22s var(--ease-soft), color .22s, transform .22s var(--ease), border-color .22s;
}
.btn:hover { transform: translateY(-2px); }
.btn--solid { background: var(--black); color: var(--beige); border-color: var(--black); }
.btn--solid:hover { background: var(--ochre); border-color: var(--ochre); }
.btn--ghost:hover { background: var(--black); color: var(--beige); }
.btn .dot {
  width: 7px; height: 7px; border-radius: 999px;
  background: currentColor;
  animation: pulse 2.4s var(--ease-soft) infinite;
}
@keyframes pulse { 0%,100% { opacity:.4; transform: scale(.8); } 50% { opacity:1; transform: scale(1.15); } }

/* ---------- footer ---------- */
.foot {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  justify-content: space-between;
  padding: 28px var(--pad);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .02em;
  opacity: .62;
  border-top: 1px solid var(--line-soft);
}

/* ---------- accessibility helpers ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: fixed; top: 10px; left: 10px; z-index: 99;
  transform: translateY(-160%);
  background: var(--black); color: var(--beige);
  padding: 10px 14px; border-radius: var(--r);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible { outline: 2px solid var(--ochre); outline-offset: 3px; }

/* ---------- reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * , *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
}
