@font-face {
  font-family: Geist;
  src: url("fonts/Geist.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
:root {
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: Geist, "Helvetica Neue", Helvetica, Arial, sans-serif;
  color-scheme: light;
  --background: #faf9f6;
  --text: #30302e;
  --strong: #20201e;
  --muted: #706f69;
  --border: #e2e0d9;
  --accent: #9a542e;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --background: #191a18;
  --text: #cecec7;
  --strong: #efeee7;
  --muted: #a09f96;
  --border: #353630;
  --accent: #dcac85;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --background: #191a18;
    --text: #cecec7;
    --strong: #efeee7;
    --muted: #a09f96;
    --border: #353630;
    --accent: #dcac85;
  }
}
* { box-sizing: border-box; }
html { scroll-padding-top: 2rem; scroll-behavior: smooth; }
body { margin: 0; background: var(--background); color: var(--text); font: 1rem/1.75 var(--font); -webkit-font-smoothing: antialiased; transition: background-color 220ms ease, color 220ms ease; }
.page { width: min(100% - 3rem, 44rem); margin: 0 auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 4px; }
a:hover { color: var(--accent); }
a:focus-visible, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
header { display: flex; align-items: center; justify-content: space-between; padding: 1.75rem 0; }
.accent { color: var(--accent); }
nav { display: flex; align-items: center; gap: 1.5rem; font: .875rem/1.5 var(--font); }
nav a { text-decoration: none; color: var(--muted); }
button { width: 44px; height: 44px; display: grid; place-items: center; padding: 10px; background: transparent; color: var(--text); border: 0; border-radius: 0; cursor: pointer; margin-left: -10px; transition: transform 160ms var(--ease-out); }
button[hidden] { display: none; }
button:active { transform: scale(.9); }
svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
button svg { grid-area: 1 / 1; transition: transform 250ms var(--ease-out), opacity 180ms ease; }
.sun { opacity: 0; transform: rotate(-60deg) scale(.65); color: #e8af36; }
[data-theme="dark"] .moon { opacity: 0; transform: rotate(60deg) scale(.65); }
[data-theme="dark"] .sun { opacity: 1; transform: rotate(0) scale(1); }
section { scroll-margin-top: 2rem; margin-bottom: 4rem; }
.intro { padding-top: 3.5rem; }
.date { font-family: var(--font); color: var(--muted); }
h1, h2, h3 { color: var(--strong); }
h1 { font: 560 clamp(2rem, 5vw, 2.65rem)/1.2 var(--font); letter-spacing: -.055em; margin: 0 0 1.75rem; }
p { margin: 0 0 1rem; }
.intro p { max-width: 42rem; font-size: 1.0625rem; }
.social-links { display: flex; flex-wrap: wrap; gap: .75rem; list-style: none; margin: 1.75rem 0 0 -10px; padding: 0; font-size: .875rem; }
.social-links a { display: grid; place-items: center; width: 44px; height: 44px; text-decoration: none; transition: color 180ms ease, transform 160ms var(--ease-out); }
.social-links a:active { transform: scale(.94); }
a span[aria-hidden] { font-size: .85em; color: var(--muted); }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); margin-bottom: 1.75rem; }
h2 { font-size: 1.125rem; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.projects, .experience { list-style: none; padding: 0; margin: 0; }
.projects li { margin-bottom: 2rem; }
h3 { font-size: 1rem; line-height: 1.6; font-weight: 600; margin: 0 0 .375rem; }
.projects h3 { font-family: var(--font); font-weight: 550; letter-spacing: -.035em; }
.projects h3 a { text-decoration: none; }
.projects p { margin-bottom: .375rem; }
.more-link { display: block; width: fit-content; margin-left: auto; font-size: .875rem; }
.company { margin-bottom: 1.5rem; }
.company a { text-decoration: none; }
.experience { padding-left: .35rem; }
.experience > li { position: relative; padding: 0 0 1.75rem 1.75rem; }
.experience > li:not(:last-child)::before { content: ""; position: absolute; left: 0; top: .8rem; bottom: -.8rem; width: 1px; background: var(--border); }
.experience > li::after { content: ""; position: absolute; left: -.2rem; top: .6rem; width: .45rem; height: .45rem; border-radius: 50%; background: var(--muted); }
.experience > li:last-child { padding-bottom: 0; }
.experience h4 { margin: 0 0 .25rem; color: var(--strong); font-size: 1rem; font-weight: 550; line-height: 1.6; }
.contributions { margin: .875rem 0 0; padding-left: 1.1rem; font-size: .9375rem; line-height: 1.7; list-style: disc; }
.contributions li { padding-left: .15rem; margin-bottom: .5rem; }
.contributions li:last-child { margin-bottom: 0; }
.contributions li::marker { color: var(--muted); }
.experience .date, .location { font-size: .875rem; color: var(--muted); margin: 0; }
.muted { color: var(--muted); font-weight: 400; }
footer { border-top: 1px solid var(--border); padding: 1.5rem 0 2rem; color: var(--muted); font-size: .8125rem; }
.skip-link { position: absolute; top: -5rem; left: 1rem; padding: .5rem 1rem; background: var(--background); z-index: 1; }
.skip-link:focus { top: 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 520px) {
  header { padding: 1.5rem 0; }
  nav { gap: 1rem; font-size: .8125rem; }
  .intro { padding-top: 2rem; }
  h1 { letter-spacing: -.055em; }
  section { margin-bottom: 3rem; }
}

/* Native scrolling stays interruptible and preserves anchor URLs. */
a { transition: color 180ms ease; }
nav a { position: relative; padding: .5rem 0; }
nav a::after {
  content: "";
  position: absolute;
  inset: auto 0 .25rem;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 200ms var(--ease-out);
}
a span[aria-hidden] { display: inline-block; transition: transform 200ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  nav a:hover::after { transform: scaleX(1); }
  a:hover span[aria-hidden] { transform: translate(2px, -2px); }
  button:hover { transform: rotate(-8deg); }
  .social-links a:hover { transform: translateY(-2px); }
}
@media (prefers-reduced-motion: no-preference) {
  header { animation: arrive 500ms var(--ease-out) both; }
  .intro > * { animation: arrive 650ms var(--ease-out) both; }
  .intro > :nth-child(2) { animation-delay: 50ms; }
  .intro > :nth-child(3) { animation-delay: 100ms; }
  .intro > :nth-child(4) { animation-delay: 150ms; }
}
@keyframes arrive {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  button, button svg, .social-links a, a span[aria-hidden], nav a::after { transition: none; }
  button:active, button:hover, .social-links a:hover, .social-links a:active, a:hover span[aria-hidden] { transform: none; }
}
