:root {
  --bg: #f4f0e6;
  --navy: #142033;
  --ink: #1a1f24;
  --parked: #8b3a2a;
  --live: #2c4a3e;
  --quiet: #3d4a5c;
  --rule: #cfc6b4;
  --live-wash: #e4ebe6;
  --quiet-wash: #e6e8ec;
  --parked-wash: #f3e6e2;
  --max: 40rem;
  --pad: 1.25rem;
}

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

html {
  font-size: 16px;
  color-scheme: light;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, Georgia, serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
}

header {
  background: var(--navy);
  color: var(--bg);
  padding: 1.5rem var(--pad) 1.75rem;
}

header h1 {
  font-family: Georgia, "Source Serif 4", "Times New Roman", serif;
  font-size: 1.7rem;
  font-weight: 400;
  line-height: 1.2;
  margin: 0;
  letter-spacing: -0.015em;
}

.lede {
  margin: 0.4rem 0 0;
  font-size: 1rem;
  line-height: 1.4;
  opacity: 0.92;
}

.date {
  margin: 0.9rem 0 0;
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
}

.gh {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
}

.gh a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

main {
  padding: 1.75rem var(--pad) 0.5rem;
}

section {
  max-width: var(--max);
  margin: 0 auto 2.15rem;
}

h2 {
  font-family: Georgia, "Source Serif 4", "Times New Roman", serif;
  font-size: 1.12rem;
  font-weight: 600;
  line-height: 1.3;
  margin: 0 0 0.7rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--rule);
}

#trueNorth {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.55;
}

.desks {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.desks th {
  text-align: left;
  font-weight: 600;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.35rem 0.65rem 0.45rem 0;
  color: var(--quiet);
  border-bottom: 1px solid var(--rule);
}

.desks td {
  padding: 0.65rem 0.65rem 0.65rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--rule);
}

.desks a {
  color: var(--navy);
  text-underline-offset: 0.15em;
}

.dash {
  color: var(--quiet);
}

.status {
  display: inline-block;
  font-family: system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1.2;
  padding: 0.18rem 0.45rem;
  border: 1px solid currentColor;
}

.status-live {
  color: var(--live);
  background: var(--live-wash);
}

.status-quiet {
  color: var(--quiet);
  background: var(--quiet-wash);
}

.status-parked {
  color: var(--parked);
  background: var(--parked-wash);
}

section ul {
  margin: 0;
  padding: 0 0 0 1.15rem;
}

section li {
  margin: 0.45rem 0;
}

#parked-note {
  margin: 0 0 0.75rem;
}

.parked-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--quiet);
}

.parked-list li {
  margin: 0.2rem 0;
  font-family: ui-monospace, "Cascadia Code", "SF Mono", Menlo, monospace;
  font-size: 0.88rem;
}

.parked-steward {
  margin: 0.95rem 0 0;
  color: var(--parked);
  font-size: 0.95rem;
}

.edit-mode {
  max-width: var(--max);
  margin: 0 auto 2rem;
  font-size: 0.9rem;
  color: var(--quiet);
}

.edit-mode summary {
  cursor: pointer;
  color: var(--quiet);
}

.edit-mode summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
}

.edit-mode p {
  margin: 0.6rem 0 0.4rem;
}

.edit-mode pre {
  margin: 0.4rem 0 0;
  background: #efe9d8;
  color: var(--ink);
  padding: 0.75rem;
  overflow-x: auto;
  font-size: 0.78rem;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}

footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--pad) 2.5rem;
  color: var(--quiet);
  font-size: 0.9rem;
}

footer p {
  margin: 0.3rem 0;
}

.load-error {
  color: var(--parked);
}

@media (max-width: 699px) {
  .desks thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .desks,
  .desks tbody,
  .desks tr,
  .desks td {
    display: block;
    width: 100%;
  }

  .desks tr {
    padding: 0.95rem 0 1.05rem;
    border-bottom: 1px solid var(--rule);
    margin: 0;
  }

  .desks tr:first-child {
    padding-top: 0.15rem;
  }

  .desks td {
    display: grid;
    grid-template-columns: 7.25rem minmax(0, 1fr);
    gap: 0.3rem 0.75rem;
    border: 0;
    padding: 0.18rem 0;
  }

  .desks td::before {
    content: attr(data-label);
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--quiet);
    padding-top: 0.12rem;
  }
}

@media (min-width: 700px) {
  .desks th:nth-child(1),
  .desks td:nth-child(1) {
    width: 18%;
  }

  .desks th:nth-child(2),
  .desks td:nth-child(2) {
    width: 16%;
  }

  .desks th:nth-child(3),
  .desks td:nth-child(3) {
    width: 12%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
