/* benjaminmeier.at · Design tokens & base styles
   Display: Space Grotesk · Body: Instrument Sans · Mono: JetBrains Mono
   (variable fonts, self-hosted) */

/* ---- Fonts ---- */
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/instrument-sans-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Instrument Sans';
  font-style: normal;
  font-weight: 400 700;
  font-stretch: 100%;
  font-display: swap;
  src: url("fonts/instrument-sans-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/jetbrains-mono-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin.woff2") format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/space-grotesk-latin-ext.woff2") format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---- Tokens ---- */
:root {
  --font-display: "Space Grotesk", "Instrument Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;

  --text-display-lg: 48px;
  --text-title: 22px;
  --text-lead: 19px;
  --text-body: 16px;
  --text-small: 14px;
  --text-micro: 12.5px;

  --green-300: #6EE7B7;
  --green-400: #34D399;
  --green-600: #059669;
  --green-700: #047857;

  --bg-page: #FFFFFF;
  --text-strong: #0A0A0A;
  --text-body-c: #3F3F46;
  --text-muted: #71717A;

  --accent: var(--green-600);
  --accent-hover: var(--green-700);

  --btn-primary-bg: #0A0A0A;
  --btn-primary-fg: #FFFFFF;
  --btn-primary-hover: #27272A;

  --border-subtle: #E4E4E7;
  --border-strong: #D4D4D8;
}

[data-theme="dark"] {
  --bg-page: #000000;
  --text-strong: #FAFAFA;
  --text-body-c: #A1A1AA;
  --text-muted: #71717A;

  --accent: var(--green-400);
  --accent-hover: var(--green-300);

  --btn-primary-bg: #FAFAFA;
  --btn-primary-fg: #0A0A0A;
  --btn-primary-hover: #FFFFFF;

  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.18);
}

/* ---- Base ---- */
* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  background: var(--bg-page);
  color: var(--text-strong);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.6;
  transition: background 220ms ease;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); text-decoration: underline; }

.logo {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  user-select: none;
  text-decoration: none;
}
.logo:hover { color: var(--text-strong); text-decoration: none; }
.logo .dot { color: var(--accent); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: var(--text-micro);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.theme-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-subtle);
  background: transparent;
  color: var(--text-body-c);
  cursor: pointer;
  transition: border-color 140ms ease, color 140ms ease;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--text-strong); }
.theme-toggle .icon-sun { display: none; }
.theme-toggle .icon-moon { display: block; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

/* ---- Hero (index) ---- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  overflow: hidden;
}

.hero canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.hero header {
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(16px, 3vw, 28px) clamp(20px, 4vw, 40px);
}

.hero main {
  position: relative;
  z-index: 5;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0 24px;
  gap: 28px;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 72px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-strong);
  min-height: 3.2em;
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: 16ch;
  text-wrap: balance;
}

.hero .caret {
  display: inline-block;
  width: 0.06em;
  height: 0.95em;
  margin-left: 0.08em;
  background: var(--accent);
  vertical-align: text-bottom;
  animation: bm-caret 1.1s step-end infinite;
  border-radius: 2px;
}
@keyframes bm-caret { 0%, 55% { opacity: 1; } 56%, 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) {
  .hero .caret { animation: none; }
}

.hero .lead {
  font-size: var(--text-lead);
  color: var(--text-body-c);
  max-width: 44ch;
}

.hero .actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 32px;
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: 500;
  text-decoration: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
}
.btn:hover { text-decoration: none; }
.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-fg);
}
.btn-primary:hover { background: var(--btn-primary-hover); color: var(--btn-primary-fg); }
.btn-secondary {
  background: transparent;
  color: var(--text-strong);
  border: 1px solid var(--border-strong);
}
.btn-secondary:hover { border-color: var(--text-muted); color: var(--text-strong); }

.hero footer {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 20px clamp(20px, 4vw, 40px);
  font-size: var(--text-small);
  flex-wrap: wrap;
  text-align: center;
  color: var(--text-muted);
}
.hero footer .sep { color: var(--border-strong); }
.hero footer a { color: var(--text-muted); }
.hero footer a:hover { color: var(--text-strong); text-decoration: none; }

/* ---- Impressum ---- */
.page {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
}
.page header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}
.page .back { font-size: var(--text-small); color: var(--text-muted); }
.page .back:hover { color: var(--text-strong); text-decoration: none; }

.page main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
}
.page .content { max-width: 560px; width: 100%; }
.page .eyebrow { margin-bottom: 16px; }
.page h1 {
  margin: 0 0 40px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-display-lg);
  line-height: 1.05;
  letter-spacing: -0.025em;
}
.page .sections { display: flex; flex-direction: column; gap: 32px; }
.page h2 {
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-title);
  letter-spacing: -0.01em;
}
.page p { color: var(--text-body-c); }

.page footer {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 40px;
  font-size: var(--text-small);
  color: var(--text-muted);
}
