:root {
  --ink: #1c1914;
  --ink-soft: #4a453c;
  --muted: #6e675c;
  --paper: #f3efe6;
  --paper-deep: #e6dfd0;
  --accent: #2f5d4a;
  --accent-hover: #234836;
  --rule: rgba(28, 25, 20, 0.12);
  --max: 40rem;
  --font-display: "Fraunces", "Iowan Old Style", "Palatino Linotype", Palatino, serif;
  --font-body: "Source Sans 3", "Source Sans Pro", "Segoe UI", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  background-color: var(--paper);
  background-image:
    radial-gradient(ellipse 120% 80% at 10% -10%, rgba(47, 93, 74, 0.08), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 0%, rgba(140, 110, 70, 0.1), transparent 50%),
    linear-gradient(180deg, #f7f3ea 0%, var(--paper) 28%, var(--paper-deep) 100%);
  background-attachment: fixed;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.45'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: min(100% - 2rem, calc(var(--max) + 2rem));
  margin: 0 auto;
  padding: 3.5rem 0 4rem;
}

.hero {
  margin-bottom: 2.75rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid var(--rule);
}

.brand {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 6vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
}

.hero h1 {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3.5vw, 1.65rem);
  font-weight: 500;
  color: var(--ink-soft);
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 36rem;
  color: var(--ink-soft);
  font-size: 1.125rem;
}

.meta {
  margin: 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

.toc {
  margin: 0 0 2.5rem;
  padding: 0;
}

.toc ol {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.toc li {
  margin: 0.35rem 0;
}

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

.toc a:hover,
.toc a:focus-visible {
  color: var(--accent-hover);
}

main section {
  margin-bottom: 2.25rem;
}

main h2 {
  margin: 0 0 0.75rem;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--ink);
}

main p,
main ul {
  margin: 0 0 0.85rem;
  color: var(--ink-soft);
}

main ul {
  padding-left: 1.2rem;
}

main li {
  margin: 0.4rem 0;
}

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

main a:hover,
main a:focus-visible {
  color: var(--accent-hover);
}

main strong {
  color: var(--ink);
  font-weight: 600;
}

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

footer p {
  margin: 0 0 0.75rem;
  max-width: 36rem;
}

.footer-brand {
  margin-top: 1.25rem;
  font-family: var(--font-display);
  font-size: 1.125rem;
  color: var(--ink-soft);
}

@media (min-width: 640px) {
  .page {
    padding-top: 4.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
