/* First Radius: brand tokens and shared styles */
:root {
  --green: #1E4D3A;
  --green-dark: #12301F;
  --green-tint: #DCEBDF;
  --cream: #F3EEDF;
  --paper: #FFFDF7;
  --board: #EFE8D6;
  --grid: #E6DEC9;
  --rule: #D9D0BA;
  --ink: #1A1F1C;
  --ink-2: #3D4641;
  --muted: #55605A;
  --steel: #8F9692;
  --amber: #E8A317;
  --amber-shadow: #C4860A;
  --amber-deep: #8A5A00;
  --amber-tint: #F8E7BF;
  --red: #B3261E;
  --red-tint: #F4D6D2;
  --head: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Atkinson Hyperlegible', system-ui, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.45;
}
a { color: var(--green); }
a:hover { color: var(--green-dark); }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* Header */
.site-header { background: var(--green); color: var(--cream); }
.site-header__inner {
  padding: 10px 20px; display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--cream); text-decoration: none; }
.brand:hover { color: var(--cream); }
.brand__name { font-family: var(--head); font-weight: 700; font-size: 26px; letter-spacing: 1.5px; line-height: 1; }

.mono-label { font-family: var(--mono); font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); }

/* Buttons */
.btn {
  min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--steel);
  background: var(--paper); font-weight: 700; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
}
.btn:hover { border-color: var(--ink); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn--ghost { background: transparent; color: var(--cream); border-color: rgba(243, 238, 223, 0.55); }
.btn--ghost:hover { border-color: var(--cream); }
.btn--light { background: var(--cream); color: var(--green); border-color: var(--cream); }
.btn--primary {
  background: var(--amber); color: var(--ink); border: 0; border-radius: 8px;
  box-shadow: inset 0 -3px 0 var(--amber-shadow); min-height: 52px;
}
.btn--danger { color: var(--red); }

/* Panels drawn like sheets */
.sheet { background: var(--paper); border: 1.5px solid var(--ink); border-radius: 4px; }
.sheet__head {
  padding: 12px 14px; border-bottom: 1.5px solid var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
}
.sheet__title { margin: 0; font-family: var(--head); font-weight: 700; font-size: 24px; line-height: 1; }
.sheet__body { padding: 12px 14px; }

/* Status chips */
.chip {
  margin: 0; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px; border-radius: 999px; font-weight: 700; font-size: 15px;
}
.chip::before { content: ''; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.chip--ok { background: var(--green-tint); color: var(--green-dark); }
.chip--ok::before { background: #2F7A4F; }
.chip--warn { background: var(--amber-tint); color: #5E3E00; }
.chip--warn::before { background: var(--amber); }
.chip--bad { background: var(--red-tint); color: #6E1712; }
.chip--bad::before { background: var(--red); }
.chip--info { background: #E8E3D3; color: var(--ink-2); }
.chip--info::before { background: var(--steel); }
