/* ZASOG — site styles
   Palette
     --paper   #F2F4F1  cool grey-green page
     --panel   #E6EBE7  status board / form surfaces
     --ink     #17262B  deep slate, text + primary actions
     --muted   #56676C  secondary text
     --rule    #C5CFCC  hairlines
     --up      #1D7A46  status: operational / open
     --pending #B07A05  status: in progress
*/

@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  --paper: #F2F4F1;
  --panel: #E6EBE7;
  --ink: #17262B;
  --muted: #56676C;
  --rule: #C5CFCC;
  --up: #1D7A46;
  --pending: #B07A05;
  --error: #A3311F;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --measure: 40rem;
  --wide: 68rem;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-kerning: normal;
}

a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }

:focus-visible { outline: 3px solid var(--up); outline-offset: 3px; border-radius: 2px; }

.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: var(--paper); padding: 0.5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; top: 1rem; }

/* ---------- frame ---------- */

.wrap { max-width: var(--wide); margin: 0 auto; padding: 0 1.5rem; }

.site-header { border-bottom: 1px solid var(--rule); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.75rem 2rem; padding-top: 1.25rem; padding-bottom: 1.25rem; }

.wordmark { font-weight: 700; font-size: 1.375rem; letter-spacing: 0.04em; text-decoration: none; }
.wordmark span { font-weight: 400; letter-spacing: 0; color: var(--muted); font-size: 1rem; margin-left: 0.6rem; }

.site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 1.5rem; }
.site-nav a { text-decoration: none; font-size: 1rem; color: var(--muted); padding: 0.25rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { color: var(--ink); }
.site-nav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--ink); }

main { padding-bottom: 5rem; }

.site-footer { border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.9375rem; }
.site-footer .wrap { padding-top: 2rem; padding-bottom: 3rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer a { color: var(--muted); }
.site-footer p { margin: 0; }

/* ---------- type ---------- */

h1, h2, h3 { line-height: 1.15; margin: 0; font-weight: 700; }
h1 { font-size: clamp(2.375rem, 5.5vw, 3.75rem); letter-spacing: -0.02em; max-width: 18ch; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; margin-bottom: 1rem; }
h3 { font-size: 1.25rem; margin-bottom: 0.4rem; }

p { margin: 0 0 1rem; }
.lede { font-size: 1.3125rem; line-height: 1.5; color: var(--ink); max-width: 36rem; }
.muted { color: var(--muted); }

.prose { max-width: var(--measure); }
.prose h2 { margin-top: 3rem; }
.prose ul, .prose ol { padding-left: 1.25rem; margin: 0 0 1rem; }
.prose li { margin-bottom: 0.4rem; }

/* ---------- hero ---------- */

.hero { padding: 4.5rem 0 3.5rem; display: grid; gap: 3rem; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: end; }
.hero h1 { margin-bottom: 1.5rem; }
.hero .lede { margin-bottom: 0; }

.page-head { padding: 4rem 0 2rem; max-width: var(--measure); }
.page-head h1 { font-size: clamp(2.125rem, 4.5vw, 3rem); margin-bottom: 1.25rem; }

/* ---------- status board (the one loud element) ---------- */

.status {
  background: var(--ink);
  color: #E9EEEB;
  border-radius: 6px;
  padding: 1.25rem 1.5rem 1.5rem;
  font-family: var(--mono);
  font-size: 0.9375rem;
  line-height: 1.5;
}
.status-head { display: flex; justify-content: space-between; gap: 1rem; color: #9FB0AD; padding-bottom: 0.9rem; margin-bottom: 0.4rem; border-bottom: 1px solid #2F4247; }
.status-head strong { color: #E9EEEB; font-weight: 500; }
.status ul { list-style: none; margin: 0; padding: 0; }
.status li { display: grid; grid-template-columns: 1fr auto; gap: 1rem; padding: 0.65rem 0; border-bottom: 1px dashed #2F4247; }
.status li:last-child { border-bottom: 0; padding-bottom: 0; }
.state { display: inline-flex; align-items: center; gap: 0.5rem; white-space: nowrap; }
.state::before { content: ""; width: 0.6rem; height: 0.6rem; border-radius: 50%; background: currentColor; }
.state.up { color: #4CC685; }
.state.pending { color: #E9B23F; }
.state.queued { color: #8A9C99; }
.state.up::before { box-shadow: 0 0 0 0 rgba(76, 198, 133, 0.6); animation: pulse 2.4s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(76, 198, 133, 0.55); } 70% { box-shadow: 0 0 0 0.55rem rgba(76, 198, 133, 0); } 100% { box-shadow: 0 0 0 0 rgba(76, 198, 133, 0); } }
.status a { color: #E9EEEB; }

@media (prefers-reduced-motion: reduce) { .state.up::before { animation: none; } }

/* ---------- sections ---------- */

.section { padding: 3.5rem 0 0; }
.section-grid { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 1rem 3rem; border-top: 1px solid var(--rule); padding-top: 2rem; }
.section-grid > h2 { font-size: 1.25rem; margin: 0.2rem 0 0; }
.section-grid > div { max-width: var(--measure); }

.audience { columns: 2; column-gap: 2.5rem; padding-left: 1.1rem; margin: 0; }
.audience li { margin-bottom: 0.4rem; break-inside: avoid; }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li { padding: 0.9rem 0; border-bottom: 1px solid var(--rule); }
.plain-list li:first-child { padding-top: 0; }
.plain-list li:last-child { border-bottom: 0; }
.plain-list h3 { font-size: 1.125rem; margin-bottom: 0.2rem; }
.plain-list p { margin: 0; color: var(--muted); }

.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 0 0 1.25rem 2.75rem; }
.steps li::before { content: counter(step); position: absolute; left: 0; top: 0.05rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font-size: 0.9375rem; font-weight: 500; }
.steps li.current::before { background: var(--ink); color: var(--paper); }
.steps h3 { font-size: 1.125rem; margin-bottom: 0.15rem; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- buttons ---------- */

.button {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  font: 500 1.0625rem/1 var(--sans);
  padding: 0.95rem 1.4rem;
  border: 0;
  border-radius: 4px;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: #0E1A1E; }
.cta-row { margin-top: 1.75rem; display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; }

/* ---------- roles table ---------- */

.roles { width: 100%; border-collapse: collapse; margin: 0.5rem 0 1rem; font-size: 1.0625rem; }
.roles th, .roles td { text-align: left; padding: 0.8rem 1rem 0.8rem 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.roles thead th { font-weight: 500; color: var(--muted); font-size: 0.9375rem; border-bottom-color: var(--ink); }
.roles tbody th { font-weight: 700; white-space: nowrap; }

/* ---------- form ---------- */

.form-panel { background: var(--panel); border-radius: 6px; padding: 2rem; max-width: 46rem; margin-top: 1rem; }
.field { margin-bottom: 1.4rem; }
.field label, .field legend { display: block; font-weight: 500; margin-bottom: 0.35rem; font-size: 1.0625rem; }
.field .hint { display: block; color: var(--muted); font-size: 0.9375rem; margin: -0.2rem 0 0.5rem; }
.optional { color: var(--muted); font-weight: 400; }

input[type="text"], input[type="email"], input[type="tel"], input[type="url"], select, textarea {
  width: 100%;
  font: inherit;
  font-size: 1.0625rem;
  color: var(--ink);
  background: #FBFCFB;
  border: 1.5px solid #9DAAA7;
  border-radius: 4px;
  padding: 0.65rem 0.8rem;
}
textarea { min-height: 9rem; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); outline: 3px solid rgba(29, 122, 70, 0.35); outline-offset: 0; }

.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1.25rem; }

fieldset { border: 0; padding: 0; margin: 0 0 1.4rem; min-width: 0; }

.role-options { display: grid; gap: 0.5rem; }
.role-option { position: relative; }
.role-option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.role-option label {
  display: grid; grid-template-columns: 1.25rem 1fr; gap: 0.15rem 0.85rem;
  background: #FBFCFB; border: 1.5px solid #B4C0BD; border-radius: 4px;
  padding: 0.8rem 1rem; cursor: pointer; margin: 0; font-weight: 400;
}
.role-option label::before { content: ""; grid-row: span 2; width: 1.1rem; height: 1.1rem; margin-top: 0.25rem; border: 1.5px solid var(--ink); border-radius: 50%; background: #FBFCFB; }
.role-option strong { font-weight: 700; }
.role-option span { color: var(--muted); font-size: 0.9688rem; }
.role-option input:checked + label { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.role-option input:checked + label::before { background: var(--ink); box-shadow: inset 0 0 0 3px #FBFCFB; }
.role-option input:focus-visible + label { outline: 3px solid var(--up); outline-offset: 2px; }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.75rem; align-items: start; font-size: 1rem; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: 0.25rem; accent-color: var(--ink); }

.hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }

.notice { border-left: 4px solid var(--up); background: var(--panel); padding: 1.25rem 1.5rem; border-radius: 0 6px 6px 0; max-width: var(--measure); }
.notice.error { border-left-color: var(--error); }
.notice ul { margin: 0.5rem 0 0; padding-left: 1.1rem; }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 3rem; gap: 2.25rem; }
  .section-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 1.15rem; }
  .audience { columns: 1; }
  .two-col { grid-template-columns: 1fr; }
  .form-panel { padding: 1.25rem; margin-left: -0.25rem; margin-right: -0.25rem; }
  .roles thead { display: none; }
  .roles tr { display: block; padding: 0.75rem 0; border-bottom: 1px solid var(--rule); }
  .roles th, .roles td { display: block; border: 0; padding: 0; }
  .roles td { color: var(--muted); }
  .status { font-size: 0.875rem; padding: 1rem 1.1rem 1.2rem; }
  .wordmark span { display: block; margin: 0.1rem 0 0; font-size: 0.875rem; }
  .status li { grid-template-columns: 1fr; gap: 0.2rem; }
}

.form-panel legend { font-weight: 500; font-size: 1.0625rem; padding: 0; margin-bottom: 0.6rem; }
.check label { font-weight: 400; margin: 0; font-size: 1rem; }
