:root {
  --paper: #f3efe6;
  --ink: #161412;
  --muted: #5e5953;
  --rule: #cfc8bb;
  --link: #161412;
  --accent: #8f3d2c;
  --measure: 40rem;
  --wide: 64rem;
  --serif: "Source Serif 4", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #161412;
    --ink: #f3efe6;
    --muted: #a39d94;
    --rule: #3d3832;
    --link: #f3efe6;
    --accent: #d4a07a;
    color-scheme: dark;
  }
}

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

html {
  font-size: 18px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--sans);
  font-weight: 400;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--link);
  text-underline-offset: 0.18em;
}

a:hover {
  text-decoration-thickness: 2px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}

.skip:focus {
  left: 1rem;
  top: 1rem;
  background: var(--paper);
  padding: 0.4rem 0.6rem;
  z-index: 10;
}

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

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 1.5rem 0 1.2rem;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: inherit;
}

.brand img {
  width: 2.5rem;
  height: 2.5rem;
  object-fit: contain;
  mix-blend-mode: multiply;
}

@media (prefers-color-scheme: dark) {
  .brand img {
    filter: invert(1);
    mix-blend-mode: screen;
  }
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav a {
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
  color: var(--muted);
  padding-bottom: 0.12rem;
  border-bottom: 1px solid transparent;
}

nav a:hover {
  color: var(--ink);
}

nav a[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}

main {
  flex: 1;
  padding: 2.75rem 0 4rem;
}

.hero,
.page {
  max-width: var(--measure);
}

.kicker {
  margin: 0 0 0.65rem;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero h1,
.page-header h1 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.1rem);
  line-height: 1.15;
  margin: 0 0 1.4rem;
  letter-spacing: -0.02em;
}

.quote {
  margin: 0 0 2rem;
  padding: 0.15rem 0 0.15rem 1.25rem;
  border-left: 3px solid var(--accent);
}

.quote p {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.4;
  margin: 0 0 0.7rem;
}

.quote footer {
  font-family: var(--sans);
  font-size: 0.88rem;
  font-style: normal;
  color: var(--muted);
}

.intro {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink);
  margin: 0 0 2rem;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 0;
}

.action {
  display: inline-block;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.5rem 0.95rem;
  border: 1px solid var(--ink);
}

.action:hover {
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
}

.page-header {
  margin-bottom: 1.9rem;
}

.page-header h1::before {
  content: "";
  display: block;
  width: 2.4rem;
  height: 2px;
  background: var(--accent);
  margin-bottom: 1.05rem;
}

.lede {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-family: var(--serif);
  font-size: 1.14rem;
  font-style: italic;
  line-height: 1.45;
}

.prose > *:first-child {
  margin-top: 0;
}

.prose h2 {
  font-family: var(--serif);
  font-size: 1.32rem;
  font-weight: 600;
  margin: 2.5rem 0 0.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}

.prose p,
.prose li {
  margin: 0 0 1rem;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose strong {
  font-weight: 600;
}

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

.doc-list li {
  padding: 0.9rem 0;
  border-top: 1px solid var(--rule);
}

.doc-list li:last-child {
  border-bottom: 1px solid var(--rule);
}

.doc-list time {
  display: block;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.15rem 0 0.35rem;
}

.doc-list p {
  margin: 0;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 1.35rem 0 1.8rem;
  border-top: 1px solid var(--rule);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: var(--accent);
}

@media (max-width: 640px) {
  html {
    font-size: 17px;
  }

  .site-header,
  .site-footer,
  main {
    width: min(var(--wide), calc(100% - 1.6rem));
  }

  .hero h1,
  .page-header h1 {
    font-size: 2rem;
  }

  .quote p {
    font-size: 1.12rem;
  }
}
