/* Layout: a black one-pager read by scrolling. Screen 1: name, one typewriter line.
   Screen 2: the Buddha in the hops, edge to edge. Screen 3: Saraha above the contact. Then the legal links.
   Single dark look on purpose (all-black was asked for). */
@font-face { font-family: "Liberation Mono"; src: url("fonts/liberation-mono-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Liberation Mono"; src: url("fonts/liberation-mono-Bold.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Alegreya Sans"; src: url("fonts/alegreya-sans-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --bg: #000000;
  --fg: #ffffff;
  --muted: #9a9a9a;
  --line: #262626;
  --link: #ffffff;
  --eye-1: #d8b45a; --eye-2: #3aa597; --eye-3: #2a5c94; --eye-4: #071420;
  --font-mono: "Liberation Mono", "Cousine", "Courier New", monospace;
  --font-text: "Alegreya Sans", "Gill Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--fg); font-family: var(--font-mono); font-size: 1rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-underline-offset: 0.25em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; border-radius: 2px; }

.wrap {
  max-width: 64rem; margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

/* Screen 1: black, centred */
.opener {
  position: relative; min-height: 100vh; min-height: 100svh;
  display: grid; place-items: center; text-align: center;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 4rem;
}
.opener-inner { display: grid; justify-items: center; gap: 1.1rem; }
.opener { --soon: clamp(1.6rem, 3.6vw, 2.4rem); } /* name stays at 0.53 of the headline at every width */
.name { margin: 0; font-size: calc(var(--soon) * 0.53); letter-spacing: 0.04em; color: var(--fg); }
.soon {
  margin: 1.2rem 0 0; font-weight: 400; text-transform: uppercase;
  font-size: var(--soon); letter-spacing: 0.55em; line-height: 1.9;
  padding-left: 0.55em; /* balances the trailing letter-spacing so the line sits centred */
  text-wrap: balance;
}
.down { position: absolute; left: 50%; bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); width: 1rem; margin-left: -0.5rem; color: var(--muted); }

/* Screen 2: the photo fills the page */
.cover { position: relative; height: 100vh; height: 100svh; min-height: 30rem; overflow: hidden; }
/* soft fade into the page colour above and below; on wide screens the photo gets more height so less of it is cropped */
@media (min-aspect-ratio: 1/1) { .cover { height: 125vh; height: 125svh; } }
.cover { -webkit-mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.11) 5.5%, rgba(0,0,0,.33) 11%, rgba(0,0,0,.63) 16.5%, #000 22%, #000 78%, rgba(0,0,0,.63) 83.5%, rgba(0,0,0,.33) 89%, rgba(0,0,0,.11) 94.5%, transparent 100%); mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,.11) 5.5%, rgba(0,0,0,.33) 11%, rgba(0,0,0,.63) 16.5%, #000 22%, #000 78%, rgba(0,0,0,.63) 83.5%, rgba(0,0,0,.33) 89%, rgba(0,0,0,.11) 94.5%, transparent 100%); }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }

/* Screen 3: Saraha above the contact, centred; tall enough that the photo is gone at the very bottom */
.kontakt { min-height: 100vh; min-height: 100svh; display: grid; align-items: center; }
.kontakt-inner {
  max-width: 40rem; margin-inline: auto; text-align: center;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: clamp(4rem, 10vw, 7rem);
  display: grid; gap: 2.25rem; justify-items: center;
}
.saraha { margin: 0; }
.saraha img { width: clamp(11rem, 26vw, 15rem); }
/* the arrow sticks out to the right; shift the image so the figure itself sits on the centre line */
.saraha img { transform: translateX(8.7%); }
/* decoy text that breaks the address for harvesters; never shown */
.x { display: none; }
.adresse { min-width: 0; display: grid; gap: 0.6rem; }
.adresse h2 { margin: 0; font-weight: 400; font-size: 0.85rem; letter-spacing: 0.45em; padding-left: 0.45em; text-transform: uppercase; color: var(--muted); }
.adresse p { margin: 0; }
.mail { font-size: 1.15rem; overflow-wrap: anywhere; user-select: all; }
.adresse address { font-style: normal; color: var(--muted); font-size: 0.9rem; }

/* Footer */
.foot { border-top: 1px solid var(--line); }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: center; padding-block: 1.25rem 1.75rem; font-size: 0.8rem; color: var(--muted); }
.foot nav { display: flex; gap: 1.5rem; }
.foot a { color: var(--muted); }

/* Legal pages */
.masthead { padding-block: 1.5rem 0; }
.brand { display: flex; align-items: center; gap: 0.75rem; color: var(--fg); text-decoration: none; }
.brand svg { width: 1.8rem; height: auto; flex: none; }
.brand span { font-size: 0.85rem; letter-spacing: 0.04em; }
.legal { max-width: 42rem; padding-block: 3rem 4rem; font-family: var(--font-text); font-size: 1.1rem; }
.legal h1 { font-family: var(--font-mono); font-weight: 400; font-size: 1.2rem; letter-spacing: 0.45em; text-transform: uppercase; margin: 0 0 2rem; }
.legal h2 { font-family: var(--font-mono); font-weight: 700; font-size: 0.95rem; margin: 2rem 0 0.4rem; }
.legal p { margin: 0 0 0.9rem; }
.back { display: inline-block; margin-top: 1rem; font-family: var(--font-mono); font-size: 0.9rem; }

@media (prefers-reduced-motion: no-preference) {
  .down { animation: nudge 2.4s ease-in-out infinite; }
  @keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }
}
