@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond.woff") format("woff");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "EB Garamond";
  src: url("/fonts/eb-garamond-italic.woff") format("woff");
  font-weight: 400 800;
  font-style: italic;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("/fonts/source-sans.woff") format("woff");
  font-weight: 200 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4efe6;
  --paper-2: #fffaf2;
  --ink: #1d1915;
  --ink-soft: #4a433b;
  --line: #d7cfc3;
  --copper: #9a4a2c;
  --copper-dark: #7a3821;
  --olive: #2f3b32;
  --ok: #2f3b32;
  --max: 68rem;
  --serif: "EB Garamond", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Source Sans 3", "Segoe UI", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; background: var(--paper); color: var(--ink); }
body {
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-weight: 430;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--copper-dark); text-underline-offset: 0.18em; }
a:hover { color: var(--copper); }
h1, h2, h3, h4 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.18;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
  color: var(--ink);
}
h1 { font-size: clamp(2.15rem, 5.2vw, 3.4rem); font-weight: 650; }
h2 { font-size: clamp(1.55rem, 3vw, 2.05rem); margin-top: 0.2em; }
h3 { font-size: 1.28rem; font-family: var(--serif); }
p { margin: 0 0 1em; }
.wrap { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.skip {
  position: absolute; left: -999px; top: 0;
}
.skip:focus { left: 1rem; top: 1rem; background: var(--paper-2); padding: 0.5rem 0.8rem; z-index: 20; }

/* Header */
.site-header {
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, white);
  position: sticky; top: 0; z-index: 10;
  backdrop-filter: blur(8px);
}
.site-header .bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 0.7rem 0;
}
.wordmark {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--ink);
  font-family: var(--serif); font-weight: 650; font-size: 1.28rem;
  letter-spacing: -0.015em; white-space: nowrap;
}
.wordmark img, .wordmark svg { width: 1.7rem; height: 1.7rem; }
.nav { display: flex; flex-wrap: wrap; gap: 0.15rem 1.1rem; align-items: center; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-size: 0.95rem; font-weight: 500;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); text-decoration: underline; }
.nav .cta, a.btn, .btn {
  display: inline-block;
  background: var(--copper); color: #fffaf2 !important;
  text-decoration: none; font-weight: 600;
  padding: 0.55rem 1rem; border-radius: 3px;
  border: 1px solid var(--copper-dark);
  font-family: var(--sans); font-size: 0.98rem;
}
.nav .cta { padding: 0.4rem 0.8rem; font-size: 0.92rem; }
a.btn:hover, .btn:hover, .nav .cta:hover { background: var(--copper-dark); }
.btn-ghost {
  background: transparent !important; color: var(--ink) !important;
  border: 1px solid var(--ink);
}

/* Hero */
.hero { padding: 3.2rem 0 2.6rem; }
.eyebrow {
  font-family: var(--sans); font-size: 0.82rem; font-weight: 650;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--copper);
  margin-bottom: 0.7rem;
}
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin: 1.4rem 0 0.6rem; }
.fine { font-size: 0.92rem; color: var(--ink-soft); }

/* Layout blocks */
section { padding: 2.2rem 0; }
.band { background: var(--olive); color: #f4efe6; }
.band h2, .band h3, .band p { color: #f4efe6; }
.band a { color: #f3d2c2; }
.band .fine { color: #d7cfc3; }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 720px) {
  .split-2 { grid-template-columns: 1fr 1fr; }
  .split-3 { grid-template-columns: 1fr 1fr 1fr; }
}
.card {
  background: var(--paper-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1.15rem 1.2rem 1rem;
}
.band .card { background: color-mix(in srgb, var(--olive) 80%, black); border-color: #4a5850; }
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 1rem; }
ol.steps li { counter-increment: step; padding-left: 3rem; position: relative; }
ol.steps li::before {
  content: counter(step);
  position: absolute; left: 0; top: 0;
  width: 2.1rem; height: 2.1rem; border-radius: 50%;
  border: 1px solid var(--copper); color: var(--copper);
  font-family: var(--serif); font-weight: 650; font-size: 1.1rem;
  display: grid; place-items: center;
}
.list-plain { margin: 0 0 1rem; padding-left: 1.15rem; }
.list-plain li { margin: 0.25rem 0; }
.callout {
  border-left: 3px solid var(--copper);
  padding: 0.2rem 0 0.2rem 1rem;
  margin: 1.2rem 0;
}
table { width: 100%; border-collapse: collapse; font-size: 0.98rem; }
th, td { text-align: left; padding: 0.55rem 0.7rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 650; }

details { border-top: 1px solid var(--line); padding: 0.7rem 0; }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 600; }
details p { margin: 0.5rem 0 0.2rem; color: var(--ink-soft); }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  color: var(--ink-soft);
  font-size: 0.95rem;
  margin-top: 2rem;
}
.site-footer .grid { display: grid; gap: 1.2rem; }
@media (min-width: 720px) { .site-footer .grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer a { color: var(--ink-soft); }
.site-footer h2 { font-size: 1.05rem; }
.legal { font-size: 0.85rem; margin-top: 1.4rem; color: #6a635a; }

/* Sticky email bar */
.mailbar {
  position: sticky; bottom: 0;
  background: var(--olive); color: #f4efe6;
  padding: 0.55rem 0;
  border-top: 1px solid #24302a;
  z-index: 9;
}
.mailbar .wrap { display: flex; justify-content: space-between; gap: 1rem; align-items: center; flex-wrap: wrap; }
.mailbar a { color: #f3d2c2; font-weight: 650; }
.crumbs { font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 1rem; }
.crumbs a { color: var(--ink-soft); }
.page-hero { padding: 2.2rem 0 0.4rem; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 1.6rem; }
@media (max-width: 700px) {
  .nav .hide-sm { display: none; }
  .hero { padding-top: 2rem; }
}
