:root {
  --paper: #e7ece1;
  --ink: #1f3326;
  --muted: #4c6b52;
  --trail: #b9c2b2;
  --shell: #a8652e;
  --rule: #c9d2c0;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #142019;
    --ink: #e3eadc;
    --muted: #9db8a2;
    --trail: #3c5243;
    --shell: #d08a4f;
    --rule: #2a3b30;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 "Atkinson Hyperlegible", system-ui, sans-serif;
}
.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

a { color: inherit; text-decoration-color: var(--shell); text-decoration-thickness: 2px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 3px; }
a:focus-visible { outline: 3px solid var(--shell); outline-offset: 3px; border-radius: 2px; }

/* Hero: the shell is the one bold thing on the page. */
.hero { padding: 4.5rem 0 3rem; position: relative; }
.hero--small { padding-top: 6rem; }
.shell { display: block; width: min(11rem, 40vw); height: auto; margin: 0 0 1.25rem -0.25rem; }
.trail {
  fill: none;
  stroke: var(--shell);
  stroke-width: 7;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: crawl 3.2s cubic-bezier(.45, 0, .2, 1) both;
}
@keyframes crawl { from { stroke-dashoffset: 1; } }
@media (prefers-reduced-motion: reduce) { .trail { animation: none; } }

.wordmark {
  font: 400 clamp(3rem, 11vw, 5.5rem)/0.95 "Young Serif", Georgia, serif;
  letter-spacing: -0.02em;
  margin: 0;
  position: relative;
}
.lede { font-size: 1.1875rem; max-width: 32em; margin: 1.25rem 0 0; color: var(--muted); }

/* Projects: a plain list, separated by a trail-coloured line. */
.projects { list-style: none; margin: 0; padding: 0; border-top: 2px dotted var(--trail); }
.project { padding: 1.75rem 0; border-bottom: 2px dotted var(--trail); }
.project-name { font: 400 1.875rem/1.15 "Young Serif", Georgia, serif; margin: 0; }
.project-name a { text-decoration-thickness: 2px; }
.project-summary { margin: 0.5rem 0 0; max-width: 36em; }
.project-meta { margin: 0.75rem 0 0; font-size: 0.9375rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; align-items: center; }
.status { font-weight: 700; }
.status::before { content: ""; display: inline-block; width: 0.55em; height: 0.55em; border-radius: 50%; margin-right: 0.4em; vertical-align: 0.08em; background: currentColor; }
.status--live { color: var(--muted); }
.status--in-progress { color: var(--shell); }
.status--paused { color: var(--trail); }

.foot { padding: 3rem 0 4rem; color: var(--muted); font-size: 0.9375rem; }
.foot p { margin: 0; }

@media (max-width: 30rem) {
  .hero { padding-top: 3rem; }
  .project-name { font-size: 1.5rem; }
}
