:root {
  --bg: #faf9f7;
  --ink: #1a1a1c;
  --muted: #6e6e73;
  --line: #e7e4de;
  --accent: #0d7a5f;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --serif: Georgia, "Times New Roman", Times, serif;
  --mono: ui-monospace, "SF Mono", "Menlo", "Consolas", monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

.mono {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

a {
  color: inherit;
  text-decoration: none;
}

::selection {
  background: var(--ink);
  color: var(--bg);
}

/* ---------- header ---------- */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem;
  border-bottom: 1px solid var(--line);
}

.logo {
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo span {
  color: var(--accent);
}

.site-header nav {
  display: flex;
  gap: 1.75rem;
}

.site-header nav a {
  font-size: 0.95rem;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-header nav a:hover {
  color: var(--ink);
}

/* ---------- layout ---------- */
main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- hero ---------- */
.hero {
  padding: 7rem 0 6rem;
}

.hero-meta {
  margin-bottom: 1.5rem;
}

h1 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 2.5rem;
}

.hero-links {
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.hero-links a {
  font-weight: 500;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 0.2rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.arrow {
  display: inline-block;
  transition: transform 0.2s ease;
}

.hero-links a:hover .arrow {
  transform: translateY(3px);
}

/* ---------- sections ---------- */
.section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 2rem;
  padding: 3.5rem 0;
  border-top: 1px solid var(--line);
}

.section-label {
  padding-top: 0.2rem;
}

.section-body {
  min-width: 0;
}

/* ---------- about ---------- */
.about-lead {
  font-family: var(--serif);
  font-size: 1.5rem;
  line-height: 1.4;
  margin-bottom: 2.5rem;
  max-width: 34rem;
}

.about-cols {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 3rem;
}

.about-cols p {
  color: var(--muted);
  max-width: 34rem;
}

.about-list {
  list-style: none;
}

.about-list li {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

/* ---------- work ---------- */
.work-list {
  display: flex;
  flex-direction: column;
}

.work-row {
  display: grid;
  grid-template-columns: 1.4fr 1fr 0.4fr;
  align-items: center;
  gap: 2rem;
  padding: 1.75rem 0.25rem;
  border-bottom: 1px solid var(--line);
  transition: padding-left 0.2s ease, background 0.2s ease;
}

.work-row:first-child {
  border-top: 1px solid var(--line);
}

.work-row:hover {
  padding-left: 0.75rem;
  background: rgba(13, 122, 95, 0.04);
}

.work-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.work-desc {
  color: var(--muted);
  font-size: 0.95rem;
}

.work-tags {
  justify-self: start;
}

.work-year {
  justify-self: end;
}

/* ---------- contact ---------- */
.contact-lead {
  color: var(--muted);
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.email {
  display: inline-block;
  font-family: var(--serif);
  font-size: clamp(1.6rem, 4.5vw, 2.5rem);
  border-bottom: 2px solid var(--ink);
  padding-bottom: 0.15rem;
  margin-bottom: 2.5rem;
  transition: color 0.2s ease, border-color 0.2s ease;
}

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

.social {
  list-style: none;
  display: flex;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.social a {
  color: var(--muted);
  transition: color 0.2s ease;
}

.social a:hover {
  color: var(--ink);
}

/* ---------- footer ---------- */
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1080px;
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- responsive ---------- */
@media (max-width: 720px) {
  .section {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }
  .about-cols {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .work-row {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
  .work-tags,
  .work-year {
    justify-self: start;
  }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
  html {
    scroll-behavior: auto;
  }
  [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
