/* Ruta Courier — the depot's own look.
   The mission panel and the tools box are the library's; this file only hands
   them five colours through --baton-*. Everything else here is the site. */

html { scrollbar-gutter: stable; }

/* ------------------------------------------------------------------ light */

:root {
  color-scheme: light;

  --paper: #ffffff;
  --card: #ffffff;
  --surface: #f3f3f1;
  --ink: #0d0e10;
  --ink-soft: #43464b;
  --muted: #71757b;
  --line: #d6d7d4;
  --line-soft: #e8e8e5;

  --signal: #d8480a;        /* the one colour that means something */
  --signal-hover: #b73a06;
  --signal-on: #ffffff;
  --signal-wash: #fdeee5;

  --ok: #17663a;
  --bad: #9e2318;
  --rule: var(--ink);

  --display: "Archivo", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --radius: 4px;

  /* the five the panel documents, plus the surface colours so the card sits
     on the same flat white and black as the rest of the depot */
  --baton-accent: var(--signal);
  --baton-ink: var(--ink);
  --baton-paper: var(--paper);
  --baton-line: var(--line);
  --baton-muted: var(--muted);
  --baton-card: var(--card);
  --baton-on-accent: var(--signal-on);
  --baton-ok: var(--ok);
  --baton-warn: var(--signal);
  --baton-bad: var(--bad);
  --baton-radius: var(--radius);
}

/* ------------------------------------------------------------------- dark */

:root[data-theme="dark"] {
  color-scheme: dark;

  --paper: #0b0c0d;
  --card: #131416;
  --surface: #191b1d;
  --ink: #f3f3f1;
  --ink-soft: #b8bbc0;
  --muted: #84888e;
  --line: #282a2d;
  --line-soft: #1f2123;

  --signal: #ff7a33;
  --signal-hover: #ff9257;
  --signal-on: #17110c;
  --signal-wash: #2a1a0e;

  --ok: #4fbe80;
  --bad: #e8776c;
  --rule: #55595e;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;

    --paper: #0b0c0d;
    --card: #131416;
    --surface: #191b1d;
    --ink: #f3f3f1;
    --ink-soft: #b8bbc0;
    --muted: #84888e;
    --line: #282a2d;
    --line-soft: #1f2123;

    --signal: #ff7a33;
    --signal-hover: #ff9257;
    --signal-on: #17110c;
    --signal-wash: #2a1a0e;

    --ok: #4fbe80;
    --bad: #e8776c;
    --rule: #55595e;
  }
}

/* ------------------------------------------------------------------- base */

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 920px; margin: 0 auto; padding: 30px 20px 80px; }

a { color: var(--signal); }
code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.88em; }

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

/* --------------------------------------------------------------- masthead */

.masthead { border-bottom: 2px solid var(--rule); padding-bottom: 22px; margin-bottom: 34px; }

.masthead__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(34px, 7.6vw, 54px);
  line-height: 1;
  letter-spacing: -0.035em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
}
.wordmark__mark { width: 0.42em; height: 0.42em; background: var(--signal); display: inline-block; }

.masthead__tools { display: flex; align-items: center; gap: 10px; }

.host {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 4px 10px;
  background: var(--card);
  white-space: nowrap;
}

.theme {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 5px 13px;
  cursor: pointer;
}
.theme:hover { border-color: var(--signal); color: var(--signal); }

.lede { font-size: 18px; line-height: 1.5; color: var(--ink-soft); max-width: 62ch; margin: 20px 0 0; }

.figures { display: flex; flex-wrap: wrap; gap: 10px 32px; margin: 20px 0 0; }
.figures div { margin: 0; }
.figures dt { font-size: 13px; color: var(--muted); }
.figures dd {
  margin: 1px 0 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

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

.stack { margin: 0 0 38px; }

.head {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  overflow-x: auto;
}
.panel__intro { margin: 0 0 14px; color: var(--ink-soft); max-width: 62ch; }
.fineprint { margin: 14px 0 0; font-size: 14px; color: var(--muted); max-width: 66ch; }

/* ------------------------------------------------------------ agent note */

.agent-note {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 17px 19px;
}
.agent-note h3 { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0 0 6px; letter-spacing: -0.01em; }
.agent-note p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

.prompts { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.prompts li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 11px 13px;
  font-size: 15px;
}

/* ---------------------------------------------------------------- tables */

table.grid { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 460px; }
table.grid th,
table.grid td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.grid thead th { font-size: 13px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line); }
table.grid tbody tr:last-child td { border-bottom: 0; }
table.grid td.num,
table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
table.grid .name { font-weight: 700; font-family: var(--display); letter-spacing: -0.01em; }
table.grid .covers { color: var(--ink-soft); }
table.grid .price { font-variant-numeric: tabular-nums; }
table.grid .price--express { color: var(--signal); }
table.grid .tid { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; white-space: nowrap; }
table.grid .tid + .covers { font-size: 14px; margin-top: 2px; }

.status { display: inline-block; font-size: 13px; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); white-space: nowrap; }
.status--out { border-color: var(--signal); color: var(--signal); background: var(--signal-wash); }
.status--delivered { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); }

/* ------------------------------------------------------- pickup windows */

.windows { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.window { border: 1px solid var(--line); border-radius: var(--radius); padding: 13px 14px; background: var(--card); }
.window__label { font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.window__slots { font-size: 13px; color: var(--muted); margin-top: 3px; }
.window--open { border-left: 3px solid var(--signal); }
.window--full { background: var(--surface); color: var(--muted); }
.window--full .window__label { color: var(--muted); }
.window--closed { border-style: dashed; color: var(--muted); }

/* ----------------------------------------------------------------- terms */

.terms { list-style: none; margin: 0; padding: 0; color: var(--ink-soft); }
.terms li { padding: 6px 0 6px 20px; position: relative; }
.terms li::before { content: ""; position: absolute; left: 0; top: 13px; width: 10px; height: 2px; background: var(--signal); }

.aside { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line-soft); }
.aside h3 { font-family: var(--display); font-weight: 700; font-size: 16px; margin: 0 0 6px; letter-spacing: -0.01em; }
.aside p { margin: 0; color: var(--ink-soft); max-width: 62ch; }

/* ---------------------------------------------------------------- banner */

.banner {
  border: 1px solid var(--line);
  border-left: 3px solid var(--signal);
  background: var(--card);
  border-radius: var(--radius);
  padding: 15px 17px;
  margin-bottom: 28px;
  font-size: 15px;
  color: var(--ink-soft);
}
.banner b { display: block; margin-bottom: 3px; color: var(--ink); }

/* ------------------------------------------------------------------ foot */

.foot { border-top: 1px solid var(--line); padding-top: 18px; font-size: 14px; color: var(--muted); }
.foot p { margin: 0; max-width: 62ch; }

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

@media (max-width: 620px) {
  .windows { grid-template-columns: 1fr; }
  /* The zone descriptions are the first thing to go on a phone: the zone name,
     the cut-off and the two prices are what a rate card is for. */
  .covers-col { display: none; }
  table.grid { min-width: 0; }
  table.grid th, table.grid td { padding: 9px 5px; }
  table.grid .tid { font-size: 12px; }
  .status { font-size: 12px; padding: 2px 7px; white-space: normal; }
}

@media (max-width: 560px) {
  .wrap { padding: 22px 15px 60px; }
  .lede { font-size: 16.5px; }
  .masthead__row { align-items: flex-start; }
  .panel { padding: 15px; }
  .figures { gap: 10px 22px; }
}
