:root {
  color-scheme: light dark;
  --bg: #f3efe6;
  --ink: #1a1814;
  --muted: #5e584e;
  --line: #ddd4c4;
  --accent: #0f5c3e;
  --focus: #0f5c3e;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
  --sans: "Segoe UI", system-ui, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #141311;
    --ink: #f3efe6;
    --muted: #c4bdb0;
    --line: #2e2a24;
    --accent: #9ddec0;
    --focus: #9ddec0;
  }
}

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

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.55;
}

body,
.site-header,
main,
.site-footer {
  width: min(40rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  padding-top: 1.75rem;
}

.wordmark {
  color: var(--ink);
  font-size: 0.875rem;
  font-weight: 650;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

main {
  padding-top: 3.25rem;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  font-weight: 560;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

h1 {
  margin: 0;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
}

h2 {
  margin: 2.75rem 0 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 0.75rem;
  font-weight: 650;
  letter-spacing: 0.08em;
  line-height: 1.2;
  text-transform: uppercase;
}

h3 {
  margin: 0;
  font-size: 1.45rem;
}

.intro {
  max-width: 34rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.125rem;
}

.projects {
  margin: 0.85rem 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.projects article {
  padding: 1.25rem 0 1.35rem;
  border-bottom: 1px solid var(--line);
}

.status {
  margin: 0.45rem 0 0;
  color: var(--accent);
  font-size: 0.8125rem;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.projects p:not(.status) {
  margin: 0.45rem 0 0;
  color: var(--muted);
}

.text-link {
  color: var(--accent);
  font-weight: 650;
  text-underline-offset: 0.18em;
}

.site-footer {
  padding: 2.5rem 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.site-footer p {
  margin: 0;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

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

@media (max-width: 24rem) {
  body,
  .site-header,
  main,
  .site-footer {
    width: min(40rem, calc(100% - 1.5rem));
  }

  main {
    padding-top: 2.25rem;
  }
}
