:root {
  --paper: #f3ead8;
  --ink: #1c1408;
  --muted: #5c5346;
  --rule: #1c1408;
  --price: #9c1c12;
  --band: #1c1408;
  --band-ink: #f3ead8;
  --row: rgba(28, 20, 8, 0.04);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: #2a241c;
  color: var(--ink);
  font-family: "Iowan Old Style", Palatino, "Palatino Linotype", "Times New Roman", serif;
  line-height: 1.45;
}

.sheet {
  max-width: 960px;
  margin: 16px auto;
  padding: 16px 28px 28px;
  background: var(--paper);
  min-height: calc(100vh - 32px);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

.masthead {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  border-bottom: 2px solid var(--rule);
  padding: 0 0 8px;
  margin-bottom: 10px;
}

.masthead h1 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

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

.dateline {
  margin: 0 0 0 auto;
  font-family: ui-monospace, "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--price);
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  margin: 0 0 10px;
}

.filters input,
.filters select {
  font-family: ui-monospace, "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  background: #f7f1e4;
  color: var(--ink);
  border: 1px solid var(--rule);
  padding: 6px 8px;
}

.filters input[type="search"] {
  flex: 1 1 160px;
  min-width: 140px;
}

.plan-count {
  margin: 0;
  margin-left: auto;
  font-family: ui-monospace, "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.8rem;
  color: var(--muted);
}

.source-note {
  margin: 0 0 8px;
  font-family: ui-monospace, "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.78rem;
  color: var(--price);
}

.source-note[hidden] {
  display: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.offer-link {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.offer-link:hover {
  color: var(--price);
}

.listings {
  min-height: 280px;
  border: 1px solid var(--rule);
  background: #f7f1e4;
}

.offerings {
  width: 100%;
  border-collapse: collapse;
  font-family: ui-monospace, "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92rem;
}

.offerings th,
.offerings td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid rgba(28, 20, 8, 0.18);
  vertical-align: top;
}

.offerings thead th {
  background: var(--band);
  color: var(--band-ink);
  font-weight: 600;
  letter-spacing: 0.04em;
  font-size: 0.75rem;
  text-transform: uppercase;
}

.offerings tbody tr:nth-child(even) {
  background: var(--row);
}

.offerings tbody tr:last-child td {
  border-bottom: 0;
}

.provider {
  font-weight: 700;
}

.price {
  color: var(--price);
  font-weight: 700;
  white-space: nowrap;
}

.empty,
.file-help {
  margin: 0;
  padding: 32px 20px;
  min-height: 200px;
}

.file-help {
  color: var(--price);
}

.colophon {
  margin-top: 28px;
  padding-top: 12px;
  border-top: 1px solid rgba(28, 20, 8, 0.25);
  color: var(--muted);
  font-size: 0.9rem;
}

.colophon p {
  margin: 0 0 8px;
}

.colophon p:last-child {
  margin-bottom: 0;
}

code {
  font-family: ui-monospace, "IBM Plex Mono", "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.85em;
}

@media (max-width: 680px) {
  .sheet {
    margin: 0;
    padding: 12px 12px 20px;
    min-height: 100vh;
  }

  .dateline {
    margin-left: 0;
    flex-basis: 100%;
  }

  .offerings th:nth-child(2),
  .offerings td.name {
    display: none;
  }

  .offerings th,
  .offerings td {
    padding: 10px 8px;
    font-size: 0.82rem;
  }
}
