@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Source Sans 3";
  src: url("../fonts/source-sans-3-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-500.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("../fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/ibm-plex-mono-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f5f7f8;
  --paper: #ffffff;
  --ink: #17212b;
  --soft: #3c4a57;
  --muted: #667584;
  --line: #e1e7ec;
  --teal: #0d6b62;
  --teal-deep: #0a534c;
  --focus: #0d6b62;
  --max: 1080px;
  --serif: "Space Grotesk", "Segoe UI", sans-serif;
  --sans: "Source Sans 3", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-deep); }
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  background: var(--ink);
  color: white;
  padding: 8px 14px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.wrap { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  margin-right: auto;
}
.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}
.brand-mark span:nth-child(1) { grid-row: 1 / 3; background: var(--teal); border-radius: 3px; }
.brand-mark span:nth-child(2) { background: var(--ink); border-radius: 3px; }
.brand-mark span:nth-child(3) { background: #b7d5d1; border-radius: 3px; }
.brand-name { font-family: var(--serif); font-weight: 600; letter-spacing: -0.03em; font-size: 1.05rem; line-height: 1.05; }
.brand-tag { display: block; font-weight: 400; font-family: var(--sans); color: var(--muted); font-size: 0.75rem; letter-spacing: 0; margin-top: 2px; }

.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
  font: 600 0.95rem var(--sans);
}
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a {
  color: var(--soft);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 8px 10px;
  border-radius: 8px;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { background: #e7f3f1; color: var(--ink); }

.hero { padding: 28px 0 8px; }
.hero-panel {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  gap: 44px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 40px 40px 36px;
  box-shadow: 0 18px 40px rgba(23, 33, 43, 0.06);
}
.kicker {
  margin: 0 0 12px;
  color: var(--teal);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}
h1, h2, h3, h4 { font-family: var(--serif); line-height: 1.12; letter-spacing: -0.035em; color: var(--ink); }
h1 { font-size: clamp(2.15rem, 3.6vw, 3.15rem); margin: 0 0 16px; }
.hero h1 { font-size: clamp(2.5rem, 4vw, 3.45rem); line-height: 1.04; max-width: 12em; }
h2 { font-size: 1.7rem; margin: 0 0 16px; }
h3 { font-size: 1.22rem; margin: 1.5rem 0 0.4rem; }
h4 { font-size: 1.05rem; margin: 1.15rem 0 0.3rem; }
.lede { font-size: 1.2rem; line-height: 1.6; color: var(--soft); margin: 0 0 12px; max-width: 38em; }
.hero-note { margin: 0; color: var(--muted); max-width: 40em; }
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}
.actions .btn:first-child { flex: 1 1 100%; }
.btn { white-space: nowrap; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  letter-spacing: -0.01em;
  border: 1px solid transparent;
  text-align: center;
}
.btn-primary {
  background: linear-gradient(180deg, #149489 0%, #0d6b62 100%);
  color: white;
  box-shadow: 0 8px 18px rgba(13, 107, 98, 0.22);
}
.btn-primary:hover { background: var(--teal-deep); color: white; }
.btn-ghost { background: #f7fbfa; color: var(--ink); border-color: #d5e3e0; }
.btn-ghost:hover { background: #e7f3f1; border-color: #9dccc6; color: var(--teal-deep); }
.hero-card { margin: 0; }
.hero-card img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: white;
}
.hero-card figcaption { margin: 12px 4px 0; color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

.section { padding: 36px 0 4px; }
.cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.tile {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 168px;
  padding: 18px 18px 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  color: var(--ink);
}
.tile:hover { border-color: #b7d5d1; }
.eyebrow { color: var(--teal); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }
.tile strong { font-family: var(--serif); font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }
.tile span:last-child { color: var(--soft); }

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  align-items: start;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 24px;
}
.steps-mini { margin: 12px 0; padding: 0; list-style: none; counter-reset: step; }
.steps-mini li {
  counter-increment: step;
  position: relative;
  padding: 10px 0 10px 40px;
  border-top: 1px solid var(--line);
}
.steps-mini li:last-child { border-bottom: 1px solid var(--line); }
.steps-mini li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #e7f3f1;
  color: var(--teal-deep);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.85rem;
}

.page { width: min(740px, calc(100% - 48px)); padding: 28px 0 48px; }
.crumbs { font-size: 0.92rem; color: var(--muted); margin: 0 0 14px; }
.crumbs a { color: var(--soft); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }
.byline { color: var(--muted); margin: 0 0 20px; }

.toc {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px 8px;
  margin: 0 0 24px;
}
.toc p { margin: 0 0 6px; font-weight: 700; }
.toc ol { margin: 0; padding-left: 1.15rem; columns: 2; column-gap: 28px; }
.toc li { break-inside: avoid; margin: 4px 0; }
.toc a { text-decoration: none; }

.figure { margin: 20px 0 24px; }
.figure img {
  display: block;
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: white;
}
.figure figcaption { color: var(--muted); font-size: 0.95rem; margin-top: 8px; }

.note {
  border-radius: 12px;
  padding: 14px 16px;
  margin: 16px 0;
  border: 1px solid var(--line);
  background: var(--paper);
}
.note p { margin: 0.35rem 0; }
.note-warn { background: #fff6e8; border-color: #f0ddb8; }
.note-stop { background: #fdecee; border-color: #f0c9cb; }
.note-ok { background: #e7f3f1; border-color: #c5e4df; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); }
table { width: 100%; border-collapse: collapse; margin: 0; font-size: 1rem; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th { background: #f3f6f8; color: var(--ink); font-weight: 700; }
tr:last-child td { border-bottom: 0; }

code, .path {
  font-family: var(--mono);
  font-size: 0.9em;
  background: #eef3f2;
  padding: 0.08em 0.35em;
  border-radius: 4px;
}
ol.steps { padding-left: 1.2rem; }
ol.steps li { margin: 0.5rem 0; }

.related {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.related ul { margin: 0; padding-left: 1.1rem; }
.sources { color: var(--soft); }

.faq { background: var(--paper); border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px; }
.faq details { border-bottom: 1px solid var(--line); padding: 12px 0; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; font-weight: 700; }

form { display: grid; gap: 14px; margin-top: 8px; }
label { font-weight: 700; display: grid; gap: 6px; }
input, textarea {
  font: 1rem var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #c9d3da;
  border-radius: 10px;
  padding: 12px;
  width: 100%;
}
textarea { min-height: 160px; resize: vertical; }
button[type="submit"] {
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #149489 0%, #0d6b62 100%);
  color: white;
  font: 700 1rem var(--sans);
  letter-spacing: -0.01em;
  padding: 0 22px;
  justify-self: start;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(13, 107, 98, 0.22);
}
button[type="submit"]:hover { background: var(--teal-deep); }
button[type="submit"]:disabled { opacity: 0.65; cursor: wait; }
.form-status { min-height: 1.4em; font-weight: 700; }
.form-status.ok { color: var(--teal); }
.form-status.err { color: #9f1239; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.site-footer {
  margin-top: 48px;
  background: var(--paper);
  border-top: 1px solid var(--line);
  padding: 32px 0 20px;
}
.site-footer a { color: var(--soft); text-decoration: none; }
.site-footer a:hover { color: var(--teal); }
.footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.site-footer h2 { font-size: 0.95rem; margin: 0 0 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin: 7px 0; }
.fine {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding-top: 14px;
  color: var(--muted);
  font-size: 0.92rem;
}
.site-id {
  margin: 0 0 6px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.03em;
}
.address { font-style: normal; }

.catalog { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.catalog section {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px 18px 16px;
}
.catalog h2 { font-size: 1.2rem; margin: 12px 0 8px; }
.missing { padding: 48px 0 64px; }

@media (max-width: 900px) {
  .hero-panel, .split, .cards, .footer-grid, .catalog { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-toggle { display: inline-flex; align-items: center; }
  .header-row { flex-wrap: wrap; }
  .site-nav {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    padding-bottom: 10px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 4px; }
  .hero-panel { grid-template-columns: 1fr; padding: 24px 20px; border-radius: 18px; }
  .split, .cards, .footer-grid, .catalog { grid-template-columns: 1fr; }
  .btn { white-space: normal; }
  .toc ol { columns: 1; }
  .split { padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}
