:root {
  --bg: #f4f1ec;
  --surface: #ebe7df;
  --ink: #1a1a1a;
  --muted: #5d5a55;
  --rule: #aaa49a;
  --accent: #255ad8;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141414;
    --surface: #20201e;
    --ink: #eaeaea;
    --muted: #b8b3aa;
    --rule: #595752;
    --accent: #9ab7ff;
  }
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  max-width: 1120px;
  margin: 0 auto;
  padding: 2rem 1.5rem 4rem;
  color: var(--ink);
  font-family: ui-serif, Georgia, "Times New Roman", serif;
  font-size: 1.125rem;
  line-height: 1.6;
}
::selection { background: var(--ink); color: var(--bg); }
a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  text-decoration-color: var(--rule);
}
a:hover { text-decoration-color: var(--ink); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.site-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-bottom: 1.2rem;
  border-bottom: 1px solid var(--rule);
}
.wordmark { font-weight: 600; text-decoration: none; }
.site-header nav { font-size: 1rem; }
.intro, .about { max-width: 750px; padding: clamp(4rem, 12vw, 9rem) 0; }
.eyebrow {
  margin: 0 0 .7rem;
  color: var(--muted);
  font-family: ui-sans-serif, system-ui, sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.1; letter-spacing: -.015em; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: 1.7rem; }
.intro > p:last-child, .about > p { margin: 1.7rem 0 0; }
.projects { padding: 0 0 6rem; }
.section-heading { margin-bottom: 2rem; }
.project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.project-card { overflow: hidden; border: 1px solid var(--rule); background: var(--surface); }
.project-image { display: block; aspect-ratio: 7 / 4; overflow: hidden; background: var(--ink); }
.project-image img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 180ms ease; }
.project-image:hover img { transform: scale(1.02); }
.project-copy { padding: 1.5rem; }
.project-copy p { margin: 1rem 0 1.25rem; color: var(--muted); }
.project-link { color: var(--accent); font-family: ui-sans-serif, system-ui, sans-serif; font-size: .95rem; font-weight: 700; }
.about { padding-bottom: 6rem; }
.about > p:last-child { margin-top: 2rem; }
footer { max-width: 750px; padding-top: 1.5rem; border-top: 1px solid var(--rule); color: var(--muted); font-size: 1rem; }
footer p { margin: 0; }

@media (max-width: 680px) {
  body { padding: 1.25rem 1rem 3rem; }
  .project-grid { grid-template-columns: 1fr; }
  .intro, .about { padding: 4.5rem 0; }
  .projects { padding-bottom: 4.5rem; }
}
