:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --ink: #1a1a1a;
  --ink-soft: #4a4a4a;
  --muted: #7a7a78;
  --rule: #e8e6df;
  --accent: #b8431f;
  --accent-soft: #f3e6df;
  --max: 760px;
  --radius: 4px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #131311;
    --surface: #1a1a18;
    --ink: #f3f1ea;
    --ink-soft: #c9c6bd;
    --muted: #8d8a82;
    --rule: #2a2925;
    --accent: #e4734a;
    --accent-soft: #2a1d17;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a {
  color: var(--ink);
  text-decoration: underline;
  text-decoration-color: var(--rule);
  text-underline-offset: 3px;
  transition: text-decoration-color 0.15s ease, color 0.15s ease;
}

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

.skip {
  position: absolute;
  left: -9999px;
}
.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--ink);
  color: var(--bg);
  padding: 0.5rem 0.75rem;
  border-radius: var(--radius);
  text-decoration: none;
  z-index: 10;
}

/* Header / nav */
.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid var(--rule);
}

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.9rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-brand {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.nav-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.25rem;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.nav-list a {
  text-decoration: none;
  color: inherit;
}

@media (max-width: 540px) {
  .nav-list {
    display: none;
  }
}

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.section {
  padding: 4rem 0 1rem;
  border-top: 1px solid var(--rule);
}

.section:first-of-type {
  border-top: none;
}

h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.01em;
  color: var(--ink);
}

h2 {
  font-size: 1.05rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  margin: 0 0 1.75rem;
}

h3 {
  font-size: 1.2rem;
  margin: 0 0 0.25rem;
}

/* Hero */
.hero {
  padding: 6rem 0 4rem;
}

.eyebrow {
  font-size: 0.85rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.6rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1.25rem;
  font-weight: 500;
}

.accent {
  color: var(--accent);
  font-style: italic;
}

.lede {
  font-size: 1.18rem;
  line-height: 1.55;
  color: var(--ink-soft);
  max-width: 36em;
  margin: 0 0 2rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.btn {
  display: inline-block;
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--ink);
  transition: transform 0.1s ease, background 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--rule);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* Sections */
p {
  margin: 0 0 1rem;
  color: var(--ink-soft);
}

#about p {
  font-size: 1.05rem;
}

/* Roles */
.role {
  padding: 1.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.role:last-child {
  border-bottom: none;
}

.role-head {
  margin-bottom: 0.5rem;
}

.role-meta {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
  color: var(--muted);
}

.role-meta a {
  color: var(--ink-soft);
}

.dot {
  margin: 0 0.4rem;
  color: var(--rule);
}

.role p {
  font-size: 0.98rem;
  margin: 0;
}

/* Skills */
.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
}

@media (max-width: 600px) {
  .cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.cols h3 {
  font-family: "Inter", sans-serif;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 0.9rem;
}

.tags {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.tags li {
  font-size: 0.85rem;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--rule);
  border-radius: 999px;
  color: var(--ink-soft);
}

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

.plain li {
  padding: 0.45rem 0;
  border-bottom: 1px dashed var(--rule);
  font-size: 0.95rem;
  color: var(--ink-soft);
}

.plain li:last-child {
  border-bottom: none;
}

/* Contact */
.section-contact {
  padding-bottom: 4rem;
}

.links {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--rule);
  padding: 2rem 1.25rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  color: inherit;
}
