/* Values from the theme's assets/tokens.css: the palette and the
   4-based spacing scale. Type is the system stack: this is an internal
   tool, and the brand faces are not worth the download here. */
:root {
  --ink: #241e1c;
  --cream: #fff7e9;
  --yellow: #fdc300;
  --ink-muted: #5c514d;
  --rule: #d9cdb8;
  --white: #fff;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-9: 3rem;

  --font-body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.25rem;
  --text-xl: clamp(2rem, 6vw, 3rem);

  --measure: 50rem;
  --radius: 0.375rem;
  --focus: 0.1875rem solid var(--ink);

  color-scheme: light;
}

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

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font: var(--text-base) / 1.5 var(--font-body);
}

.page {
  max-width: var(--measure);
  margin: 0 auto;
  padding: var(--space-9) var(--space-4);
}

.eyebrow {
  margin: 0 0 var(--space-1);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 var(--space-3);
  font-size: var(--text-xl);
  line-height: 1.05;
  font-weight: 800;
  text-wrap: balance;
}

h2 {
  margin: var(--space-9) 0 var(--space-3);
  font-size: var(--text-lg);
  text-wrap: balance;
}

.lede {
  margin: 0;
  max-width: 38rem;
  color: var(--ink-muted);
  text-wrap: pretty;
}

.gate { margin-top: var(--space-7); }
.gate label { display: block; margin-bottom: var(--space-2); font-weight: 700; }
.gate-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

input {
  flex: 1 1 14rem;
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

button {
  min-height: 2.75rem;
  padding: var(--space-2) var(--space-6);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--cream);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button.secondary { background: transparent; color: var(--ink); }
button:disabled { opacity: 0.6; cursor: progress; }

:is(input, button):focus-visible {
  outline: var(--focus);
  outline-offset: 2px;
}

.status { min-height: 1.5em; margin: var(--space-3) 0 0; }

.latest {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius);
  background: var(--yellow);
}

.latest p { margin: 0; }
.latest .day { font-size: var(--text-lg); font-weight: 800; }

.table-wrap { overflow-x: auto; }

table { width: 100%; border-collapse: collapse; }

th, td {
  padding: var(--space-3) var(--space-2);
  border-bottom: 1px solid var(--rule);
  text-align: left;
  vertical-align: middle;
}

th { font-size: var(--text-sm); color: var(--ink-muted); }
td:last-child { text-align: right; }
.window { display: block; font-size: var(--text-sm); color: var(--ink-muted); }

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