@font-face {
  font-family: "Newsreader";
  src: url("/fonts/newsreader-latin-opsz-normal.woff2") format("woff2");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Archivo";
  src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Palette follows the KKAi Solutions brand: deep teal-navy, slate blue-greens, warm gold. */
:root {
  --paper: #eef3f2;
  --panel: #ffffff;
  --inset: #e2ecec;
  --ink: #0e2431;
  --ink-2: #33505d;
  --ink-3: #557280;
  --rule: #c9d9de;
  --rule-strong: #0e2431;
  --gold: #f2c879;
  --gold-hover: #f7d899;
  --gold-text: #8a5d0c;
  --pip-done: #1b3f4f;
  --pip-now: #e0a93a;
  --pip-off: #d6e2e5;
  --ok: #17735a;
  --warn: #8a5d0c;
  --risk: #b13a2e;
  --focus: #2b7fc4;
  --button: #0e2431;
  --button-ink: #ffffff;

  --band: #0e2431;
  --band-ink: #e9f2f2;
  --band-ink-2: #b7ccd3;
  --band-ink-3: #89a5b0;
  --band-rule: #1b3f4f;

  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;

  --gutter: 24px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #08131b;
    --panel: #0e2431;
    --inset: #132c38;
    --ink: #e9f2f2;
    --ink-2: #b7ccd3;
    --ink-3: #89a5b0;
    --rule: #1b3f4f;
    --rule-strong: #5d7b87;
    --gold-text: #f2c879;
    --pip-done: #b7ccd3;
    --pip-now: #f2c879;
    --pip-off: #24495a;
    --ok: #5fd3b0;
    --warn: #f2c879;
    --risk: #ff8f80;
    --focus: #3a9fe0;
    --button: #f2c879;
    --button-ink: #0e2431;
    --band: #0b1c26;
    --band-rule: #1b3f4f;
  }
}
:root[data-theme="dark"] {
  --paper: #08131b;
  --panel: #0e2431;
  --inset: #132c38;
  --ink: #e9f2f2;
  --ink-2: #b7ccd3;
  --ink-3: #89a5b0;
  --rule: #1b3f4f;
  --rule-strong: #5d7b87;
  --gold-text: #f2c879;
  --pip-done: #b7ccd3;
  --pip-now: #f2c879;
  --pip-off: #24495a;
  --ok: #5fd3b0;
  --warn: #f2c879;
  --risk: #ff8f80;
  --focus: #3a9fe0;
  --button: #f2c879;
  --button-ink: #0e2431;
  --band: #0b1c26;
  --band-rule: #1b3f4f;
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
a:hover { color: var(--gold-text); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

h1, h2, h3, p { margin: 0; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.vh {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  background: var(--gold);
  color: #0e2431;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 8px; }

/* Small uppercase labels */
.eyebrow,
.badge,
.tag,
.log-label,
thead th {
  font-family: var(--sans);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Navy band: header + hero */

.band {
  background: var(--band);
  color: var(--band-ink);
  padding-bottom: 168px;
}
.band a:hover { color: var(--gold); }
.band :focus-visible { outline-color: var(--gold); }

.site-header .header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 68px;
  border-bottom: 1px solid var(--band-rule);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.005em;
}
.band .wordmark:hover { color: var(--band-ink); }
.mark {
  width: 22px;
  height: 22px;
  fill: currentColor;
}
.mark .mark-current { fill: var(--gold); }

.header-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 500;
}
.header-nav a { text-decoration: none; }
.header-nav a:hover { text-decoration: underline; }
.badge {
  font-size: 11px;
  color: var(--gold);
  border: 1px solid rgba(242, 200, 121, 0.45);
  padding: 4px 9px;
  border-radius: 999px;
}

.hero {
  padding-top: clamp(56px, 9vw, 112px);
}
.eyebrow {
  font-size: 12px;
  color: var(--band-ink-3);
  margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(44px, 7.4vw, 92px);
  line-height: 1;
  letter-spacing: -0.02em;
  max-width: 13ch;
  text-wrap: balance;
}
.lede {
  margin-top: 28px;
  max-width: 56ch;
  font-size: clamp(18px, 1.6vw, 20px);
  line-height: 1.55;
  color: var(--band-ink-2);
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
}
.aside {
  font-size: 15px;
  color: var(--band-ink-3);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 4px;
  background: var(--button);
  color: var(--button-ink);
  font: 600 16px/1 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.button:hover {
  background: var(--gold);
  color: #0e2431;
}
.button-gold {
  background: var(--gold);
  color: #0e2431;
}
.button-gold:hover {
  background: var(--gold-hover);
  color: #0e2431;
}
.button[disabled] {
  opacity: 0.6;
  cursor: progress;
}

/* Ledger illustration, lifted over the band */

.ledger-wrap {
  margin-top: -120px;
  position: relative;
}
.ledger {
  margin: 0;
  background: var(--panel);
  border: 1px solid var(--rule);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(8, 19, 27, 0.08), 0 18px 40px -18px rgba(8, 19, 27, 0.35);
}
.ledger-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
}
.ledger-client {
  font-weight: 650;
  color: var(--ink);
}
.ledger-sep {
  color: var(--ink-3);
  margin: 0 6px;
}
.tag {
  flex: none;
  font-size: 10.5px;
  color: var(--ink-3);
  background: var(--inset);
  padding: 4px 8px;
  border-radius: 999px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
thead th {
  text-align: left;
  font-size: 11px;
  color: var(--ink-3);
  padding: 13px 20px 11px;
  border-bottom: 1px solid var(--rule);
  white-space: nowrap;
}
.th-note {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 4px;
}
tbody th,
tbody td {
  text-align: left;
  vertical-align: middle;
  padding: 16px 20px;
  border-bottom: 1px solid var(--rule);
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody th { font-weight: 600; }
tbody td { color: var(--ink-2); }
.num {
  font-weight: 600;
  color: var(--ink);
  margin-left: 6px;
  white-space: nowrap;
}

.phase {
  display: inline-flex;
  gap: 3px;
  vertical-align: middle;
  margin-right: 10px;
}
.phase i {
  display: block;
  width: 14px;
  height: 8px;
  border-radius: 2px;
  background: var(--pip-off);
}
.phase[data-step="2"] i:nth-child(-n+1),
.phase[data-step="3"] i:nth-child(-n+2),
.phase[data-step="4"] i:nth-child(-n+3),
.phase[data-step="5"] i:nth-child(-n+4) { background: var(--pip-done); }
.phase[data-step="2"] i:nth-child(2),
.phase[data-step="3"] i:nth-child(3),
.phase[data-step="4"] i:nth-child(4),
.phase[data-step="5"] i:nth-child(5) { background: var(--pip-now); }
.phase-name { white-space: nowrap; color: var(--ink); font-weight: 500; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
.status::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.status.ok { color: var(--ok); }
.status.warn { color: var(--warn); }
.status.risk { color: var(--risk); }

.ledger-log {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 13px 20px;
  background: var(--inset);
  border-top: 1px solid var(--rule);
  font-size: 14px;
  color: var(--ink-2);
}
.log-label {
  font-size: 10.5px;
  color: var(--ink-3);
}
.log-date {
  font-weight: 600;
  color: var(--ink);
}

/* What goes in it */

.holds {
  padding-top: clamp(72px, 10vw, 128px);
}
.section-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.015em;
}
.holds-list {
  list-style: none;
  margin: 36px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0 32px;
}
.holds-list li {
  border-top: 2px solid var(--rule-strong);
  padding-top: 18px;
}
.n {
  display: block;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 1;
  color: var(--gold-text);
  margin-bottom: 20px;
  font-variant-numeric: lining-nums;
}
.holds-list h3 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.005em;
  margin-bottom: 8px;
}
.holds-list p {
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

/* Access + form */

.signup {
  padding-top: clamp(72px, 10vw, 128px);
  padding-bottom: clamp(72px, 10vw, 120px);
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: start;
  scroll-margin-top: 24px;
}
.access p {
  margin-top: 18px;
  max-width: 44ch;
  color: var(--ink-2);
}
.access .muted {
  color: var(--ink-3);
  font-size: 15px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--rule);
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  padding: clamp(22px, 3vw, 36px);
  box-shadow: 0 1px 2px rgba(8, 19, 27, 0.06);
}
.panel-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-size: 28px;
  font-weight: 450;
  letter-spacing: -0.01em;
}
.panel-intro {
  margin-top: 6px;
  color: var(--ink-2);
  font-size: 15px;
}

form { margin-top: 24px; }
.field { margin-bottom: 18px; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 16px;
}
label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}
.optional {
  font-weight: 400;
  color: var(--ink-3);
  margin-left: 4px;
}
input,
textarea {
  display: block;
  width: 100%;
  font: 400 16px/1.4 var(--sans);
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 4px;
  padding: 11px 12px;
  transition: border-color 120ms ease;
}
textarea {
  resize: vertical;
  min-height: 92px;
}
input:hover,
textarea:hover { border-color: var(--ink-3); }
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 0;
  border-color: transparent;
}
[aria-invalid="true"] { border-color: var(--risk); }
.field-error {
  margin-top: 6px;
  font-size: 14px;
  color: var(--risk);
}

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

.turnstile:not(:empty) { margin: 4px 0 18px; }
.form-note {
  font-size: 14px;
  color: var(--ink-2);
  margin-bottom: 14px;
}

.form-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 6px;
}
.fine {
  font-size: 13px;
  color: var(--ink-3);
}
.form-status {
  margin-top: 14px;
  font-size: 15px;
  color: var(--risk);
}
.form-status.pending { color: var(--ink-2); }
.form-status:empty { display: none; }

.confirm {
  margin-top: 24px;
  border-top: 1px solid var(--rule);
  padding-top: 20px;
  color: var(--ink-2);
}
.confirm:focus { outline: none; }
.confirm-title {
  font-family: var(--serif);
  font-size: 30px;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: 6px;
}

/* Footer */

.site-footer {
  background: var(--band);
  color: var(--band-ink-3);
  font-size: 14px;
}
.site-footer a:hover { color: var(--gold); }
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  padding-top: 26px;
  padding-bottom: 32px;
}

/* Simple pages: privacy, thanks, 404 */

.band.band-slim { padding-bottom: 0; }
.plain-main {
  padding-top: clamp(48px, 8vw, 96px);
  padding-bottom: clamp(64px, 10vw, 120px);
  max-width: calc(720px + var(--gutter) * 2);
}
.plain-main .eyebrow { color: var(--ink-3); }
.plain-title {
  font-family: var(--serif);
  font-optical-sizing: auto;
  font-weight: 400;
  font-size: clamp(36px, 5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.018em;
  margin-bottom: 24px;
}
.plain-main h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 36px 0 8px;
}
.plain-main p,
.plain-main li {
  color: var(--ink-2);
}
.plain-main p + p { margin-top: 14px; }
.plain-main ul { padding-left: 20px; margin: 8px 0 0; }
.plain-main li + li { margin-top: 6px; }
.plain-main .updated {
  font-size: 13px;
  color: var(--ink-3);
  margin-bottom: 8px;
}

/* Responsive */

@media (max-width: 960px) {
  .holds-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
  }
  .signup {
    grid-template-columns: minmax(0, 1fr);
    gap: 36px;
  }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  body { font-size: 16px; }

  .header-nav .badge { display: none; }
  .band { padding-bottom: 112px; }
  .ledger-wrap { margin-top: -72px; }

  .ledger-bar { padding: 11px 14px; flex-wrap: wrap; }

  /* Rows become stacked records on small screens. */
  thead { display: none; }
  table, tbody, tr, th, td { display: block; }
  tbody tr {
    padding: 14px;
    border-bottom: 1px solid var(--rule);
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
  }
  tbody tr:last-child { border-bottom: 0; }
  tbody th,
  tbody td {
    padding: 0;
    border: 0;
  }
  tbody th { grid-column: 1; font-size: 16px; }
  tbody td[data-label="Status"] { grid-column: 2; grid-row: 1; text-align: right; }
  tbody td[data-label="Owner"],
  tbody td[data-label="Phase"],
  tbody td[data-label="Measure"] { grid-column: 1 / -1; font-size: 14px; }
  tbody td[data-label="Owner"] { margin-top: -6px; color: var(--ink-3); }
  .num { margin-left: 4px; }

  .ledger-log { padding: 12px 14px; }

  .holds-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .n { margin-bottom: 12px; }

  .field-row { grid-template-columns: minmax(0, 1fr); }
}
