@font-face {
  font-family: 'Bricolage Grotesque';
  font-weight: 600 800;
  font-display: swap;
  src: url('/assets/bricolage-grotesque-latin.woff2') format('woff2');
}
@font-face {
  font-family: Inter;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/inter-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 400;
  font-display: swap;
  src: url('/assets/ibm-plex-mono-400-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 500;
  font-display: swap;
  src: url('/assets/ibm-plex-mono-500-latin.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-weight: 600;
  font-display: swap;
  src: url('/assets/ibm-plex-mono-600-latin.woff2') format('woff2');
}

:root {
  --cream: #f6f0e6;
  --teal: #123f3d;
  --dark: #0d302f;
  --ink: #171d20;
  --pink: #f4adc7;
  --rule: #d3cdc1;
  --muted: #4b605d;
  --desk-muted: #b7cdc6;
  --desk-rule: #52736c;
  --display: 'Bricolage Grotesque', 'Arial Narrow', Arial, sans-serif;
  --body: Inter, Arial, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, monospace;
  color: var(--teal);
  background: var(--cream);
  font: 16px/1.55 var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
:focus-visible { outline: 3px solid #ae476f; outline-offset: 4px; }
.dispatch :focus-visible { outline-color: var(--pink); }
.shell { width: min(100% - 100px, 1250px); margin-inline: auto; }

.skip { position: fixed; z-index: 2; top: 8px; left: 8px; clip-path: inset(50%); padding: 8px 14px; background: var(--cream); color: var(--teal); }
.skip:focus { clip-path: none; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: var(--display); line-height: 1; letter-spacing: -.055em; }

.masthead { background: var(--cream); }
.masthead-inner { min-height: 83px; display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.72rem/1 var(--display); letter-spacing: -.065em; white-space: nowrap; }
.brand-dot { color: var(--pink); }
nav { display: flex; align-items: center; gap: clamp(15px, 3.4vw, 43px); font-size: .88rem; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover, .text-button:hover { text-decoration: underline; text-underline-offset: 4px; }
.masthead [aria-current="page"] { text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 2px; }
.nav-desk { display: inline-flex; gap: 9px; align-items: center; border: 1px solid currentColor; color: inherit; padding: 9px 13px; background: transparent; white-space: nowrap; }

.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 22px; padding: 10px 18px; text-decoration: none; font-size: .88rem; font-weight: 700; border: 1px solid transparent; border-radius: 2px; }
.pink-button:hover { background: #fff8f3; }

.dispatch { background: var(--teal); color: var(--cream); min-height: 100vh; }
.dispatch .masthead { background: var(--dark); border-bottom: 1px solid #486a62; }
.dispatch .brand-dot { color: var(--pink); }
.desk-main { padding-block: 62px 78px; }
.desk-heading { margin-bottom: 32px; }
.desk-heading h1 { font-size: clamp(3.4rem, 7vw, 6.2rem); font-weight: 800; }
.desk-heading p { margin-top: 13px; color: var(--desk-muted); }
.desk-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 24px; }
.panel { border: 1px solid var(--desk-rule); padding: clamp(20px, 3vw, 34px); background: var(--dark); border-radius: 2px; min-width: 0; }
.panel h2 { font: 600 1.65rem/1.15 var(--mono); letter-spacing: -.045em; }
.lock-panel { max-width: 520px; }
.gate-flight { margin-top: 16px; color: var(--pink); font: 600 .86rem/1.45 var(--mono); }
.secondary, .empty { color: var(--desk-muted); font-size: .92rem; }
.secondary { margin-top: 11px; }
.notice { border: 1px solid var(--pink); padding: 15px; }
form { margin-top: 22px; }
label { display: block; font-weight: 600; font-size: .84rem; min-width: 0; }
label span { color: var(--desk-muted); font-weight: 400; }
input, select, textarea { display: block; width: 100%; padding: 9px 11px; margin-top: 6px; color: var(--cream); color-scheme: dark; background: var(--teal); border: 1px solid var(--desk-rule); border-radius: 2px; min-height: 45px; }
textarea { resize: vertical; }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.field-grid .full { grid-column: 1/-1; }
.field-grid input[readonly] { color: var(--desk-muted); background: transparent; font-family: var(--mono); }
.form-actions { display: flex; align-items: center; gap: 16px; margin-top: 20px; }
.pink-button { color: var(--ink); background: var(--pink); }
.lock-panel label + label, .lock-panel button { margin-top: 15px; }
.status:not(:empty) { margin-top: 12px; color: var(--pink); font-size: .84rem; }
.log-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 18px; border-bottom: 1px solid var(--desk-rule); }
.text-button { color: var(--pink); padding: 3px 0; font-size: .82rem; font-weight: 600; border: 0; background: transparent; }
.empty { padding-top: 21px; }
.record { padding-block: 16px; display: grid; gap: 5px; border-bottom: 1px solid var(--desk-rule); font-size: .84rem; overflow-wrap: anywhere; }
.record:last-child { border-bottom: 0; padding-bottom: 0; }
.record-top, .record-actions { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.record-top { justify-content: space-between; font-family: var(--mono); }
.record-meta, .record-top time { color: var(--desk-muted); }
.record-notes { white-space: pre-wrap; }
.record-actions { margin-top: 2px; }
dialog { width: min(420px, calc(100% - 32px)); padding: 24px; border: 1px solid var(--desk-rule); background: var(--dark); color: var(--cream); }
dialog::backdrop { background: #091b1bc9; }
dialog p { margin-top: 11px; }
dialog .form-actions { justify-content: flex-end; }

@media (max-width: 980px) {
  .shell { width: calc(100% - 64px); }
}
@media (max-width: 680px) {
  .shell { width: calc(100% - 32px); }
  .masthead-inner { min-height: 65px; gap: 8px; }
  .brand { font-size: 1.26rem; gap: 6px; }
  .brand img { width: 31px; height: 31px; }
  nav { gap: 11px; font-size: .75rem; }
  .nav-desk { padding: 6px 7px; gap: 3px; }
  .desk-main { padding-block: 38px 48px; }
  .desk-grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 360px) {
  .field-grid { grid-template-columns: 1fr; }
  .brand { font-size: 1.12rem; }
}
