@font-face {
  font-family: Inter;
  src: url("./assets/fonts/inter.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("./assets/fonts/instrument-serif.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Mono";
  src: url("./assets/fonts/ibm-plex-mono.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --background: #f7f6f2;
  --paper: #fff;
  --surface-alt: #efede6;
  --ink: #141413;
  --body: #4a4843;
  --muted: #6e6a63;
  --line: #dcd9d0;
  --green: #1b4332;
  --green-hover: #133124;
  --green-soft: #e9f0ec;
  --field-line: #c7c3b8;
  --risk-bg: #fdf2f2;
  --risk-ink: #991b1b;
  --risk-line: #f5c2c2;
  --sans: Inter, system-ui, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--background);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.65;
}

.site-page { display: flex; min-height: 100vh; flex-direction: column; }
.site-page > main { flex: 1; }
[hidden] { display: none !important; }
h1, h2, h3, p, dl, dd, figure { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 4.6vw, 3.75rem); line-height: 1.04; }
h2 { font-size: clamp(2rem, 3.4vw, 2.75rem); line-height: 1.08; }
a { color: var(--green); text-underline-offset: .2em; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 4px; }

.container {
  width: min(100%, 1140px);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 28px);
}

.workbench { max-width: 920px; }

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--background);
}

.header-inner, .brand, .site-nav, .footer-inner, .site-footer nav {
  display: flex;
  align-items: center;
}

.header-inner { min-height: 68px; justify-content: space-between; gap: 12px 20px; padding-block: 10px; flex-wrap: wrap; }

.brand { gap: 12px; color: var(--ink); text-decoration: none; }
.brand-name { font-size: .95rem; font-weight: 650; letter-spacing: -.01em; white-space: nowrap; }
.brand-company {
  padding-inline-start: 12px;
  border-inline-start: 1px solid var(--line);
  color: var(--muted);
  font: .72rem var(--mono);
}

.site-nav { gap: clamp(12px, 2.4vw, 26px); }
.section-link { text-decoration: none; color: var(--body); font-size: .9rem; font-weight: 500; }
.section-link:hover { color: var(--green); text-decoration: underline; }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 44px;
  padding: 10px 20px;
  border: 1px solid var(--green);
  border-radius: 4px;
  background: var(--green);
  color: #fff;
  font: 600 .9rem/1.4 var(--sans);
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.button:hover { background: var(--green-hover); border-color: var(--green-hover); }
.button.secondary { background: transparent; border-color: var(--ink); color: var(--ink); }
.button.secondary:hover { background: var(--ink); color: #fff; }
.button:disabled { opacity: .55; cursor: default; }

.site-footer { background: var(--ink); color: #d6d3cb; font-size: .9rem; }
.footer-inner { justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-block: 38px; }
.site-footer strong { color: #fff; }
.site-footer nav { flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: #a7f3d0; }
.site-footer :focus-visible { outline-color: #a7f3d0; }

summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}

summary::-webkit-details-marker { display: none; }
summary::after { content: "+" / ""; color: var(--muted); font: 1.15rem var(--mono); flex-shrink: 0; }
details[open] > summary::after { content: "−" / ""; }

input, select, button { font: inherit; }
.field-control {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  padding: 8px 11px;
  border: 1px solid var(--field-line);
  border-radius: 3px;
  background: var(--background);
  color: var(--ink);
  font-size: .93rem;
}
.field-control:focus { border-color: var(--green); background: var(--paper); }
.note { color: var(--muted); font-size: .875rem; }
.nav-button { min-height: 40px; padding: 8px 16px; font-size: .84rem; }

@media (max-width: 820px) {
  .site-nav .section-link { display: none; }
}

@media (max-width: 540px) {
  .header-inner { min-height: 61px; column-gap: 8px; }
  .brand-company { display: none; }
  .site-nav { gap: 8px; }
  .site-nav .nav-button { padding-inline: 10px; }
  .footer-inner { padding-block: 28px; }
}
