:root {
  --paper: #f6f1e7;
  --ink: #1b1a17;
  --muted: #6b655a;
  --rule: #d8cfbd;
  --card: #fffdf8;
  --red: #c8102e;
  --red-ink: #fff;
  --real: #1d5fa8;
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #15140f;
    --ink: #eee8da;
    --muted: #a39b8b;
    --rule: #39352c;
    --card: #1e1c16;
    --red: #e23a4f;
    --real: #5b9ae0;
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 16px/1.55 Inter, system-ui, sans-serif;
}
a { color: inherit; }

.satire-strip {
  background: var(--red);
  color: var(--red-ink);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .14em;
  text-align: center;
  padding: 8px 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.masthead {
  text-align: center;
  padding: 40px 16px 28px;
  border-bottom: 4px double var(--ink);
  max-width: 1100px;
  margin: 0 auto;
}
.masthead h1 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 900;
  font-size: clamp(38px, 7vw, 76px);
  line-height: 1;
  margin: 8px 0 12px;
}
.dateline, .tagline { color: var(--muted); margin: 0; }
.dateline { font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.tagline { font-style: italic; }

.disclaimer {
  max-width: 900px;
  margin: 32px auto;
  padding: 24px;
  border: 3px solid var(--red);
  background: var(--card);
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.disclaimer h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  margin: 0 0 8px;
  color: var(--red);
}
.disclaimer p { margin: 0 0 10px; }
.stamp {
  flex: none;
  border: 4px solid var(--red);
  color: var(--red);
  font-weight: 800;
  font-size: 22px;
  line-height: 1.05;
  text-align: center;
  padding: 12px 14px;
  transform: rotate(-8deg);
  border-radius: 6px;
  margin-top: 6px;
}

main { max-width: 1100px; margin: 0 auto; padding: 0 16px 48px; }
.feed-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 8px;
}
.feed-head h2 { font-family: "Playfair Display", Georgia, serif; font-size: 28px; margin: 0; }
.updated { color: var(--muted); font-size: 13px; margin: 0; }

.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0 24px; }
.filters button {
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  background: var(--card);
  color: var(--ink);
  cursor: pointer;
}
.filters button[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.filters button:disabled { opacity: .4; cursor: default; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.story {
  position: relative;
  background: var(--card);
  border: 1px solid var(--rule);
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.story .thumb {
  position: relative;
  display: block;
  margin: -18px -18px 4px;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--rule);
}
.story .thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.9);
  transition: transform .3s ease;
}
.story:hover .thumb img { transform: scale(1.03); }
.stamp-sm {
  position: absolute;
  top: 12px;
  right: 10px;
  border: 3px solid var(--red);
  color: var(--red);
  background: rgba(255, 255, 255, .88);
  font-weight: 800;
  font-size: 13px;
  letter-spacing: .08em;
  padding: 2px 8px;
  border-radius: 4px;
  transform: rotate(6deg);
}
/* the stamp already says it when there's an image */
.story .thumb + .label { display: none; }
.story.real { border: 2px solid var(--real); }
.story.real .label { background: var(--real); }
.story.real .stamp-sm { border-color: var(--real); color: var(--real); }
.story .real-note { color: var(--ink); font-size: 13px; border-left: 3px solid var(--real); padding-left: 8px; }
.story .label {
  align-self: flex-start;
  background: var(--red);
  color: var(--red-ink);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  padding: 2px 8px;
}
.story h3 { font-family: "Playfair Display", Georgia, serif; font-size: 20px; line-height: 1.25; margin: 0; }
.story h3 a { text-decoration: none; }
.story h3 a:hover { text-decoration: underline; }
.story p { margin: 0; color: var(--muted); font-size: 14px; }
.story .meta { margin-top: auto; font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }
.story .meta strong { color: var(--ink); }
.empty { color: var(--muted); }
.grid .day {
  grid-column: 1 / -1;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 22px;
  margin: 12px 0 -4px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--ink);
}
.grid .day:first-child { margin-top: 0; }

footer {
  border-top: 4px double var(--ink);
  text-align: center;
  padding: 24px 16px 40px;
  font-size: 13px;
  color: var(--muted);
}
footer p { margin: 4px 0; }

@media (max-width: 600px) {
  .disclaimer { flex-direction: column; margin: 24px 16px; padding: 18px; }
  .stamp { font-size: 18px; }
  .grid { grid-template-columns: 1fr; }
}
