:root {
  --bg: #f5f0e6;
  --paper: #ffffff;
  --ink: #1a1814;
  --muted: #6b6358;
  --rule: #d9cfbf;
  --accent: #1a4f7a;
  --font: 'Urbanist', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1a1814;
    --paper: #221f1a;
    --ink: #e8dfd0;
    --muted: #8a8174;
    --rule: #3a342c;
    --accent: #6ea8d8;
  }
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}

/* ── Hero / Name ── */
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 85vh;
  text-align: center;
  overflow: hidden;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('https://images.unsplash.com/photo-1493976040374-85c8e12f0c0e?w=1600&q=80') center / cover no-repeat;
  filter: blur(3px) brightness(0.85);
  transform: scale(1.05);
  z-index: 0;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(245, 240, 230, 0.55);
  z-index: 1;
}
@media (prefers-color-scheme: dark) {
  .hero::after {
    background: rgba(26, 24, 20, 0.6);
  }
}
.hero > * {
  position: relative;
  z-index: 2;
}
.name {
  font-family: var(--font);
  font-weight: 700;
  font-size: clamp(2.8rem, 10vw, 5.5rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.25em;
  text-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.tagline {
  font-family: var(--font);
  font-weight: 300;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
  text-shadow: 0 1px 8px rgba(0,0,0,0.1);
}

/* ── Content wrapper ── */
.content {
  max-width: 70ch;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

/* ── Sections ── */
main { padding-bottom: 2rem; }
section { margin-bottom: 4rem; }

h2 {
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.6rem;
  letter-spacing: -0.01em;
  margin-top: 0;
  margin-bottom: 0.75em;
  padding-bottom: 0.3em;
  border-bottom: 1px solid var(--rule);
}
h2 + p {
  font-weight: 350;
  font-size: 1.05rem;
}
.muted { color: var(--muted); }
a {
  color: var(--accent);
  text-underline-offset: 0.15em;
  font-weight: 500;
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.skip-link {
  position: absolute; top: -40px; left: 0;
  background: var(--accent); color: #fff;
  padding: 0.5rem 1rem; z-index: 100; text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 0; }

/* ── Fade-in scroll animation ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── Footer ── */
footer {
  max-width: 70ch;
  margin: 0 auto;
  padding: 1rem 1.5rem 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  font-weight: 350;
}
footer .attribution {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 0.25rem;
}
footer .attribution a {
  font-weight: 400;
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
