:root {
  --bg: #f5f4f0;
  --card: #fbfaf7;
  --ink: #17170f;
  --muted: #6b6a62;
  --line: #e2e0d8;
  --accent: #b7410e;
  --ring: rgba(23, 23, 15, 0.08);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121210;
    --card: #1a1a17;
    --ink: #ecebe5;
    --muted: #9c9b92;
    --line: #2b2b27;
    --accent: #f0813f;
    --ring: rgba(255, 255, 255, 0.08);
  }
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: color-mix(in srgb, var(--ink) 30%, transparent);
  text-underline-offset: 3px;
}

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

.page {
  max-width: 34rem;
  margin: 0 auto;
  padding: 4.5rem 1.25rem 3rem;
}

/* header */

.hero { text-align: center; }

.headshot {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 0 4px var(--card), 0 0 0 5px var(--line), 0 12px 30px -12px rgba(0, 0, 0, 0.35);
}

h1 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1.85rem;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.bio {
  margin: 0 auto;
  max-width: 30rem;
  color: var(--muted);
}

.socials {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1.4rem;
}

.socials a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  font-size: 0.9rem;
  text-decoration: none;
}

.socials a:hover { border-color: var(--accent); }

.socials svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* sections */

section, footer {
  margin-top: 3.25rem;
  padding-top: 2rem;
  border-top: 1px solid var(--line);
}

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

/* faq */

dl { margin: 0; }

dt { font-weight: 600; }

dd {
  margin: 0.2rem 0 1.1rem;
  color: var(--muted);
}

.button {
  display: block;
  margin-top: 1.6rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  text-align: center;
  font-weight: 600;
  text-decoration: none;
}

.button:hover { border-color: var(--accent); }

.button span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  font-weight: 400;
  color: var(--muted);
}

/* projects */

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

.projects li + li {
  margin-top: 1.25rem;
}

.projects li a,
.projects .name {
  font-weight: 600;
}

.projects p {
  margin: 0.15rem 0 0;
  color: var(--muted);
}

.tag {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.1rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  vertical-align: 2px;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

/* footer */

footer {
  font-size: 0.9rem;
  color: var(--muted);
}

footer p { margin: 0; }

@media (max-width: 480px) {
  body { font-size: 16px; }
  .page { padding-top: 3rem; }
  h1 { font-size: 1.6rem; }
}
