
:root {
  --paper: #f4efe6;
  --ink: #1b1410;
  --muted: #6d5e54;
  --rule: #e2d8cb;
  --accent: #9e2a3a;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --sans: "Avenir Next", "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--paper); color: var(--ink); }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.5;
}
body:has(.feed-wrap) {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body:has(.feed-wrap) .mast { flex: none; width: min(980px, calc(100% - 1.25rem)); }
body:has(.feed-wrap) .colophon { display: none; }
a { color: inherit; }
img { max-width: 100%; height: auto; display: block; }
.mast, .colophon, .wrap { width: min(1080px, calc(100% - 2.5rem)); margin: 0 auto; }
.mast {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 1.4rem 0 1rem;
  border-bottom: 1px solid var(--ink);
}
.mark {
  font-family: var(--serif);
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.mark-line { margin: 0; color: var(--muted); font-size: 0.85rem; }
.wrap { padding: 2.2rem 0 4rem; }
.kicker {
  margin: 0 0 0.6rem;
  color: var(--accent);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.2rem, 5vw, 4.2rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  margin: 0 0 0.8rem;
}
h1 a { text-decoration: none; }
.dek { font-size: 1.2rem; max-width: 38rem; margin: 0 0 0.8rem; }
.when, .back { color: var(--muted); font-size: 0.92rem; }
body:has(.feed-wrap) .feed-wrap {
  flex: 1;
  min-height: 0;
  width: min(980px, calc(100% - 1.25rem));
  padding: 0.7rem 0 0;
  display: flex;
  flex-direction: column;
}
.finder { display: flex; gap: 1.4rem; align-items: end; margin: 0; flex: none; }
.finder label { display: flex; flex-direction: column; gap: 0.35rem; flex: 1; color: var(--muted); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; }
.finder label:last-child { flex: 0 0 14rem; }
.finder input, .finder select { font: 1rem var(--sans); letter-spacing: 0; text-transform: none; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; padding: 0.45rem 0; width: 100%; }
.feed-status {
  color: var(--muted);
  flex: none;
  margin: 0.45rem 0 0.55rem;
  min-height: 1rem;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}
.stage { position: relative; flex: 1; min-height: 0; }
.feed {
  height: 100%;
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.feed::-webkit-scrollbar { width: 0; height: 0; display: none; }
.rail {
  position: absolute;
  right: 0.75rem;
  top: 1rem;
  bottom: 1rem;
  width: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
  pointer-events: none;
  z-index: 2;
}
#rail {
  display: block;
  width: 100%;
  height: 0;
  border-radius: 2px;
  background: #fff;
  transition: height 0.35s ease;
}
.card {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}
.card a { display: block; height: 100%; position: relative; text-decoration: none; color: #f7f1e8; }
.card a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 46%;
  background: linear-gradient(transparent, rgba(18, 10, 8, 0.78));
}
.card img { width: 100%; height: 100%; object-fit: cover; }
.card h1, .card h2, .card .when {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  z-index: 1;
  margin: 0;
  color: #f7f1e8;
}
.card h1, .card h2 {
  bottom: 2.2rem;
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
}
.card .when { bottom: 0.85rem; color: #f7f1e8; }
#feed-more { flex: 0 0 0; height: 0; overflow: hidden; }
.article { max-width: 44rem; }
.hero { width: 100%; margin: 1.2rem 0 1.6rem; aspect-ratio: 16 / 10; object-fit: cover; }
.prose { font-size: 1.12rem; line-height: 1.7; }
.prose h2 { font-family: var(--serif); font-weight: 500; font-size: 1.7rem; margin: 2rem 0 0.6rem; }
.prose p { margin: 0 0 1rem; }
.prose a { color: var(--accent); }
.tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 2rem; }
.tags a {
  text-decoration: none;
  border: 1px solid var(--rule);
  padding: 0.25rem 0.6rem;
  font-size: 0.85rem;
}
.tag-list { list-style: none; padding: 0; }
.tag-list li { padding: 0.8rem 0; border-bottom: 1px solid var(--rule); }
.tag-list time { color: var(--muted); margin-left: 0.6rem; }
.more { margin: 1.6rem 0 0; }
.more a { color: var(--accent); }
.colophon { border-top: 1px solid var(--ink); padding: 1rem 0 2rem; color: var(--muted); }
.empty h1 { max-width: 10ch; }
@media (max-width: 800px) {
  .mast { flex-direction: column; align-items: flex-start; }
  .finder { flex-direction: column; align-items: stretch; }
  .finder label:last-child { flex-basis: auto; }
}
