:root {
  --paper: #dfe4e2;
  --panel: #f4f7f5;
  --ink: #131a18;
  --muted: #5e6a66;
  --rule: #c2cbc7;
  --accent: #17564e;

  --measure: 34rem;
  --step: clamp(1.75rem, 1.2rem + 2.2vw, 3rem);
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Karla", ui-sans-serif, system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---------- masthead ---------- */

.masthead {
  padding: 2.25rem 0 0;
}

.mark {
  display: inline-block;
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 40, "WONK" 1, "opsz" 18;
  font-weight: 600;
  font-size: 1.0625rem;
  letter-spacing: 0.01em;
  color: var(--ink);
  text-decoration: none;
}

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

/* ---------- hero ---------- */

.hero {
  padding: 4.5rem 0 3.5rem;
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 60, "WONK" 1, "opsz" 144;
  font-weight: 600;
  font-size: clamp(2.75rem, 1.4rem + 6vw, 5.25rem);
  line-height: 0.98;
  letter-spacing: -0.025em;
  margin: 0;
  max-width: 11ch;
  text-wrap: balance;
}

.hero p {
  margin: 1.75rem 0 0;
  max-width: var(--measure);
  font-size: 1.1875rem;
  color: var(--muted);
}

/* ---------- generic sections ---------- */

.section {
  padding: 3.25rem 0;
  border-bottom: 1px solid var(--rule);
}

.section:last-of-type {
  border-bottom: 0;
}

.section h2 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 36;
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 0 0 1.25rem;
}

.section p {
  max-width: var(--measure);
  margin: 0 0 1rem;
}

.section p:last-child {
  margin-bottom: 0;
}

/* ---------- work list ---------- */

.work {
  list-style: none;
  margin: 0;
  padding: 0;
}

.work li {
  padding: 1.125rem 0;
  border-top: 1px solid var(--rule);
}

.work li:first-child {
  border-top: 0;
  padding-top: 0;
}

.work h3 {
  margin: 0 0 0.25rem;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.work h3 a {
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.work h3 a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.work p {
  margin: 0;
  color: var(--muted);
  max-width: var(--measure);
}

/* ---------- the record plate (signature element) ---------- */

.plate {
  background: var(--panel);
  border: 1px solid var(--rule);
  padding: 0.25rem 1.5rem;
  margin: 0;
}

.plate div {
  display: grid;
  grid-template-columns: 9.5rem 1fr;
  gap: 0.25rem 1.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}

.plate div:first-child {
  border-top: 0;
}

.plate dt {
  color: var(--muted);
  font-size: 0.9375rem;
}

.plate dd {
  margin: 0;
  font-weight: 500;
}

.plate a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 86, 78, 0.35);
}

.plate a:hover {
  border-bottom-color: var(--accent);
}

/* ---------- prose pages ---------- */

.prose h1 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 55, "WONK" 1, "opsz" 72;
  font-weight: 600;
  font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.prose .updated {
  color: var(--muted);
  margin: 0 0 2.5rem;
}

.prose h2 {
  font-family: "Fraunces", Georgia, serif;
  font-variation-settings: "SOFT" 50, "WONK" 1, "opsz" 30;
  font-weight: 600;
  font-size: 1.3125rem;
  margin: 2.5rem 0 0.75rem;
}

.prose p,
.prose li {
  max-width: var(--measure);
}

.prose li {
  margin-bottom: 0.5rem;
}

.prose a {
  color: var(--accent);
}

/* ---------- footer ---------- */

.foot {
  border-top: 1px solid var(--rule);
  margin-top: 3rem;
  padding: 1.75rem 0 3rem;
  color: var(--muted);
  font-size: 0.9375rem;
}

.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
}

.foot nav {
  display: flex;
  gap: 1.25rem;
}

.foot a {
  color: var(--muted);
  text-decoration: none;
  border-bottom: 1px solid var(--rule);
}

.foot a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ---------- a11y ---------- */

a:focus-visible,
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 1px;
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

@media (max-width: 34rem) {
  .plate {
    padding: 0.25rem 1.125rem;
  }
  .plate div {
    grid-template-columns: 1fr;
    gap: 0.125rem;
  }
}

/* ---------- inline links in body copy ---------- */

.lnk {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(23, 86, 78, 0.35);
}

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