/* ── Reset ─────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* ── Tokens ────────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --text: #111111;
  --text-dim: #999999;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --space-sm: 0.75rem;
  --space-md: 1.5rem;
  --space-lg: 3rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --text: #eeeeee;
    --text-dim: #444444;
  }
}

/* ── Base ──────────────────────────────────────────── */
html,
body {
  height: 100%;
}

body {
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg) var(--space-md);
  animation: enter 500ms ease both;
}

/* ── Layout ────────────────────────────────────────── */
main {
  width: 100%;
  max-width: 400px;
}

/* ── Header ────────────────────────────────────────── */
h1 {
  font-family: ui-serif, Georgia, serif;
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--text);
}

/* ── Intro ─────────────────────────────────────────── */
.intro {
  margin-top: var(--space-sm);
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.8;
}

/* ── Nav ───────────────────────────────────────────── */
nav {
  margin-top: var(--space-md);
}

nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0;
}

nav li + li::before {
  content: "·";
  color: var(--text-dim);
  margin: 0 0.625rem;
}

nav a,
.nav-btn {
  display: inline;
  font: inherit;
  font-size: 0.9375rem;
  color: var(--text-dim);
  text-decoration: none;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: color 150ms ease;
}

nav a:hover,
.nav-btn:hover,
.nav-btn[aria-expanded="true"] {
  color: var(--text);
}

nav a:focus-visible,
.nav-btn:focus-visible {
  outline: 1px solid var(--text);
  outline-offset: 3px;
}

/* ── Panels ────────────────────────────────────────── */
.panel {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 350ms var(--ease),
    opacity 250ms var(--ease),
    margin-top 350ms var(--ease);
}

.panel.is-open {
  max-height: 600px;
  opacity: 1;
  margin-top: var(--space-md);
}

.panel-bio {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.panel-bio p {
  font-size: 0.9375rem;
  color: var(--text-dim);
  line-height: 1.8;
}

.panel-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.panel-list a {
  font-size: 0.9375rem;
  color: var(--text-dim);
  text-decoration: none;
  transition: color 150ms ease;
}

.panel-list a:hover {
  color: var(--text);
}

/* ── Animation ─────────────────────────────────────── */
@keyframes enter {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  body {
    animation: none;
  }

  nav a,
  .nav-btn,
  .panel {
    transition: none;
  }
}
