/* ============================================================
   busch.ai — personal landing page
   Plain CSS, no build step. Palette & spacing live in :root.
   Minimalist monochrome theme.
   ============================================================ */

:root {
  /* Monochrome palette — light mode */
  --bg:        #ffffff;
  --surface:   #f5f5f4;
  --text:      #111111;
  --text-soft: #444444;
  --muted:     #767676;
  --accent:    #111111;   /* buttons/links = ink, not a brand color */
  --accent-ink:#ffffff;
  --border:    #e5e5e3;

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 82rem;
  --radius: 14px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #0d0d0d;
    --surface:   #1a1a1a;
    --text:      #f4f4f2;
    --text-soft: #c9c9c6;
    --muted:     #8f8f8c;
    --accent:    #f4f4f2;
    --accent-ink:#0d0d0d;
    --border:    #2a2a2a;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  font-size: 18px;               /* base scale — everything below uses rem */
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;         /* no sideways scroll */
  overflow-wrap: break-word;  /* long words wrap instead of overflowing */
}

img { display: block; max-width: 100%; height: auto; }

/* ---------- Hero layout ----------
   Mobile: photo on top, text scrolls below (normal document flow).
   Desktop (>=52rem): photo is fixed to the left half of the viewport,
   the text column occupies the right half and scrolls with the page. */
.hero {
  min-height: 100svh;
}

.hero__inner {
  display: flex;
  flex-direction: column;
}

/* ---------- Photo ---------- */
.hero__photo {
  margin: 0;
  width: 100%;
}

.hero__photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.14);
}

/* ---------- Intro ---------- */
.hero__intro {
  width: 100%;
  padding: clamp(1.5rem, 5vw, 3rem);
}

/* ---------- Split screen on wider viewports ---------- */
@media (min-width: 52rem) {
  .hero__photo {
    position: fixed;
    top: 0;
    left: 0;
    width: 38vw;
    height: 100vh;
  }

  .hero__photo img {
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    border-radius: 0;
    box-shadow: none;
  }

  /* Text column takes the right half and flows in the normal
     document, so the page scrollbar scrolls it past the fixed photo. */
  .hero__intro {
    margin-left: 38vw;
    width: 62vw;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(3rem, 6vw, 6rem);
    text-align: left;
  }
}

.hero__eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero__name {
  margin: 0 0 1.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 1.0;
  letter-spacing: -0.02em;
}

.hero__bio {
  color: var(--text-soft);
  font-size: 1.0625rem;
  max-width: 44rem;
}

.hero__bio p { margin: 0 0 1rem; }

/* ---------- Actions (button, then icons on their own row) ---------- */
.hero__actions {
  margin-top: 2.25rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.8rem 1.5rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.btn:hover { transform: translateY(-2px); opacity: 0.9; }
.btn:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

.btn__icon { width: 1.15rem; height: 1.15rem; }

/* ---------- Link row ---------- */
.links {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: var(--muted);
  transition: color 0.15s ease, background 0.15s ease;
}

.links a:hover { color: var(--text); background: var(--surface); }
.links a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.links svg { width: 1.45rem; height: 1.45rem; }

/* Nudge the icon row to sit flush-left of the button on desktop */
@media (min-width: 52rem) {
  .links { margin-left: -0.6rem; }
}
