:root {
  --bg: #ffffff;
  --text: #15181b;
  --muted: #5f676e;
  --line: #e9ecee;
  --link: #0b6b45;
  --link-soft: #e7f2ec;
  --avatar-bg: #f1f3f4;
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #111315;
  --text: #eef0f1;
  --muted: #959da4;
  --line: #262a2e;
  --link: #5fd3a0;
  --link-soft: #15291f;
  --avatar-bg: #1d2125;
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1.125rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
figure,
blockquote {
  margin: 0;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}

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

strong {
  font-weight: 600;
}

/* One narrow column, like a well-set page of text. */
.page {
  max-width: 42rem;
  margin-inline: auto;
  padding: 1.5rem 1.25rem 4rem;
}

/* Header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: clamp(3rem, 9vw, 5rem);
}
.top-links {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}
.top-links a {
  color: var(--muted);
  text-decoration: none;
}
.top-links a:hover {
  color: var(--text);
}
.theme-toggle {
  display: inline-grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-right: -0.5rem;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.theme-toggle:hover {
  color: var(--text);
}
.theme-toggle svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.theme-toggle .sun,
:root[data-theme="dark"] .theme-toggle .moon {
  display: none;
}
:root[data-theme="dark"] .theme-toggle .sun {
  display: block;
}

section + section {
  margin-top: clamp(3.5rem, 8vw, 5rem);
}

h2 {
  margin-bottom: 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.muted {
  color: var(--muted);
}

/* Intro */
.avatar {
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  overflow: hidden;
  background: var(--avatar-bg);
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 18%;
  transform: scale(1.5);
  transform-origin: 50% 20%;
}
h1 {
  margin-top: 1.5rem;
  font-size: clamp(1.9rem, 5vw, 2.4rem);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.025em;
}
.role {
  margin-top: 0.35rem;
  font-size: 1.15rem;
  color: var(--muted);
}
.intro p + p {
  margin-top: 1rem;
}
.status {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1rem;
  padding: 0.3rem 0.8rem 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--link-soft);
  color: var(--link);
  font-size: 0.9rem;
  font-weight: 500;
}
.status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 color-mix(in srgb, currentColor 45%, transparent);
  }
  70%,
  100% {
    box-shadow: 0 0 0 7px transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .status::before {
    animation: none;
  }
}
.intro .lede {
  margin-top: 1.75rem;
  font-size: clamp(1.3rem, 3.4vw, 1.5rem);
  line-height: 1.35;
  font-weight: 600;
  letter-spacing: -0.015em;
}
.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.5rem;
  margin-top: 1.5rem;
  padding: 0;
  list-style: none;
}
.links a {
  font-weight: 500;
}

/* Lists */
.plain {
  display: grid;
  gap: 0.6rem;
  padding-left: 1.2rem;
}
.plain li::marker {
  color: var(--muted);
}

.ai {
  margin-top: 1rem;
}
code {
  font-size: 0.9em;
  padding: 0.1em 0.35em;
  border-radius: 4px;
  background: var(--avatar-bg);
}

/* Work */
.project + .project {
  margin-top: 3rem;
}
.project img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  object-position: left top;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.project h3 {
  margin-top: 1.1rem;
  font-size: 1.125rem;
  font-weight: 600;
}
.project h3 .muted {
  font-weight: 400;
}
.project p {
  margin-top: 0.4rem;
}
.also {
  margin-top: 3rem;
}

/* Experience */
.jobs {
  padding: 0;
  list-style: none;
}
.job {
  padding-block: 1.1rem;
  border-top: 1px solid var(--line);
}
.job:last-child {
  border-bottom: 1px solid var(--line);
}
.job-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0 1rem;
}
.job h3 {
  font-size: 1.05rem;
  font-weight: 600;
}
.job h3 .muted {
  font-weight: 400;
}
.job time,
.job-dates {
  font-size: 0.975rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.job p {
  margin-top: 0.25rem;
}

/* Quotes */
.quote + .quote {
  margin-top: 2rem;
}
.quote blockquote {
  padding-left: 1.1rem;
  border-left: 2px solid var(--line);
}
.quote figcaption {
  margin-top: 0.5rem;
  padding-left: 1.1rem;
  font-size: 1rem;
  color: var(--muted);
}

footer {
  margin-top: clamp(4rem, 9vw, 6rem);
  font-size: 0.95rem;
  color: var(--muted);
}
