:root {
  color-scheme: light dark;
  --background: #f8f7f4;
  --text: #252622;
  --accent: #466259;
  --marker: #96988e;
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1d1b;
    --text: #eeece5;
    --accent: #adc5b7;
    --marker: #81867c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 38rem;
  margin-inline: auto;
  padding: clamp(4rem, 13vh, 9rem) 1.5rem 4rem;
}

h1 {
  margin: 0 0 2.25rem;
  font-family: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, serif;
  font-size: clamp(2.5rem, 8vw, 3.5rem);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 1.15;
}

p { margin: 0 0 1.5rem; }
ul { margin: 0; padding-left: 1rem; }
li { padding-left: 0.35rem; }
li + li { margin-top: 1.1rem; }
li::marker { color: var(--marker); font-size: 0.65em; }

a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover { text-decoration-thickness: 2px; }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
footer { margin-top: 2.75rem; font-size: 0.9375rem; }

.projects { margin-top: 3rem; }
.projects h2 { margin: 0 0 1rem; font-size: 0.8125rem; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--marker); }
.projects ul { list-style: none; padding: 0; font-size: 0.9375rem; }
.projects li { padding: 0; }
.projects li + li { margin-top: 0.4rem; }

footer { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
footer .gh { display: inline-flex; color: var(--marker); transition: color .2s; }
footer .gh:hover { color: var(--accent); }
