:root {
  --bg: #fafaf8;
  --fg: #1a1a1a;
  --muted: #5a5a5a;
  --rule: #e5e3dd;
  --link: #1a1a1a;
  --link-hover: #6b4eff;
  --max: 38rem;
  --space: clamp(1rem, 2vw, 1.5rem);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111111;
    --fg: #f2f2f2;
    --muted: #a3a3a3;
    --rule: #2a2a2a;
    --link: #f2f2f2;
    --link-hover: #b6a4ff;
  }
}

* { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  font-weight: 400;
}

.page {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(2rem, 6vw, 4rem) clamp(1.25rem, 4vw, 2rem) 4rem;
}

.bio {
  text-align: left;
}

.headshot {
  width: clamp(7rem, 22vw, 9rem);
  height: auto;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  display: block;
  margin: 0 0 1.5rem;
  object-fit: cover;
}

h1 {
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0;
  margin: 0 0 1rem;
  line-height: 1.5;
}

h1 strong { font-weight: 600; }

h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.75rem;
}

p {
  margin: 0 0 1rem;
}

.lede {
  margin-bottom: 0.75rem;
}

.focus {
  margin: 0 0 1.5rem;
  padding-left: 1.25rem;
}

.focus li {
  margin-bottom: 0.4rem;
}

.aside {
  color: var(--muted);
  margin: 0;
}

.links {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.links li {
  margin: 0.25rem 0;
}

.links a {
  font-size: 1.05rem;
}

a {
  color: var(--link);
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  transition: color 120ms ease, border-color 120ms ease;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

a:focus-visible {
  outline: 2px solid var(--link-hover);
  outline-offset: 3px;
  border-radius: 2px;
}

.contact {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.contact a {
  font-size: 1.05rem;
}

@media (min-width: 640px) {
  body { font-size: 18px; }
}

/* Subpages (contact flow) */
.subpage-header {
  margin-bottom: 2.5rem;
}

.subpage-header a {
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: none;
}

.subpage-header a:hover,
.subpage-header a:focus-visible {
  color: var(--link-hover);
}

.subpage-header a::before {
  content: "\2190";
  margin-right: 0.5rem;
}

.subpage h2 {
  font-size: clamp(1.35rem, 3.2vw, 1.6rem);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -0.005em;
  color: var(--fg);
  margin: 0 0 1.5rem;
  line-height: 1.3;
}

.subpage p {
  margin: 0 0 1.1rem;
}

.subpage .signoff {
  margin-top: 2rem;
  color: var(--muted);
}

.choices {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.choices a {
  display: block;
  padding: 1.1rem 1.25rem;
  border: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  border-radius: 8px;
  font-weight: 500;
  transition: border-color 120ms ease, color 120ms ease, transform 120ms ease;
}

.choices a:hover,
.choices a:focus-visible {
  border-color: var(--link-hover);
  color: var(--link-hover);
}
