:root {
  --text: #1c1917;
  --muted: #78716c;
  --surface: #fff;
  --border: #e7e5e4;
  --accent: #b45309;
  --accent-soft: #fef3c7;
  --shadow: 0 1px 2px rgb(28 25 23 / 6%), 0 8px 24px rgb(28 25 23 / 6%);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background:
    linear-gradient(180deg, #fafaf9 0%, #f5f5f4 100%);
}

.page {
  max-width: 32rem;
  margin: 0 auto;
  padding: 3.5rem 1.25rem 4rem;
}

.page-wide {
  max-width: 44rem;
  margin: 0 auto;
  padding: 3rem 1.25rem 4rem;
}

.intro,
section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}

section + section,
.intro + section {
  margin-top: 1rem;
}

h1 {
  margin: 0 0 0.35rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.875rem;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

h2 {
  margin: 2rem 0 0.75rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
}

h3 {
  margin: 1.25rem 0 0.25rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 1rem;
  font-weight: 600;
}

.role {
  margin: 0 0 1rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  color: var(--accent);
  font-weight: 500;
}

.bio {
  margin: 0;
}

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

.meta {
  margin: 0 0 1.5rem;
  font-size: 0.95rem;
}

.section-label {
  margin: 0 0 0.85rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.65rem;
}

.links a {
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.88rem;
  text-decoration: none;
  background: #fafaf9;
}

.links a:hover,
.links a:focus-visible {
  border-color: var(--accent);
  background: var(--accent-soft);
}

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

.project-list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--border);
}

.project-list li:first-child {
  padding-top: 0;
  border-top: 0;
}

.project-list .project-title {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem 0.75rem;
}

.project-list a,
.project-list .name {
  font-family: system-ui, -apple-system, sans-serif;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}

.project-list a:hover,
.project-list a:focus-visible {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.project-list .repo {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--muted);
}

.project-list .repo:hover,
.project-list .repo:focus-visible {
  color: var(--accent);
}

.project-list .desc {
  margin: 0.2rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.doc-job {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.doc-job:last-of-type {
  border-bottom: 0;
  padding-bottom: 0;
}

.doc-job p {
  margin: 0.35rem 0 0;
}

.doc-job ul {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.doc-job li {
  margin-bottom: 0.35rem;
}

.back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 0.9rem;
  text-decoration: none;
  color: var(--muted);
}

.back:hover,
.back:focus-visible {
  color: var(--accent);
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.page-wide > h1,
.page-wide > .meta,
.page-wide > .role {
  padding-left: 0.15rem;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #fafaf9;
    --muted: #a8a29e;
    --surface: #1c1917;
    --border: #292524;
    --accent: #fbbf24;
    --accent-soft: #422006;
    --shadow: 0 1px 2px rgb(0 0 0 / 20%), 0 8px 24px rgb(0 0 0 / 25%);
  }

  body {
    background: linear-gradient(180deg, #0c0a09 0%, #1c1917 100%);
  }

  .links a {
    background: #292524;
  }

  .links a:hover,
  .links a:focus-visible {
    background: var(--accent-soft);
  }
}

@media print {
  body {
    background: #fff;
    color: #000;
  }

  .intro,
  section {
    box-shadow: none;
    border-color: #ccc;
  }

  .back {
    display: none;
  }
}
