
:root {
  color-scheme: light;
  --ink: #161412;
  --muted: #70695f;
  --paper: #f7f2ea;
  --panel: #fffdf8;
  --line: #ded4c5;
  --accent: #2f6f5e;
  --tomato: #bf402f;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; text-decoration: none; }
.hero, .post-head {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  padding: 42px clamp(18px, 4vw, 56px) 24px;
  border-bottom: 1px solid var(--line);
}
.hero.compact { padding-bottom: 34px; }
.kicker, .date {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0;
}
h1 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(2.6rem, 7vw, 6.8rem);
  line-height: 0.9;
  letter-spacing: 0;
}
.post-head h1 { font-size: clamp(2rem, 5vw, 4.8rem); line-height: 1; }
.subhead {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}
.topnav, .pager, .year-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-content: flex-start;
}
.topnav { max-width: 420px; justify-content: flex-end; }
.topnav a, .pager a, .pager span, .year-list a, .back {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--ink);
  font-size: 0.92rem;
}
.pager {
  padding: 18px clamp(18px, 4vw, 56px);
  justify-content: center;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 12px;
  padding: 18px clamp(12px, 3vw, 36px) 44px;
}
.card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #e8dfd1;
}
.card video {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #111;
}
.card h2 {
  margin: 4px 12px 14px;
  min-height: 2.5em;
  font-size: 0.98rem;
  line-height: 1.25;
  letter-spacing: 0;
}
.card .date {
  display: block;
  margin: 12px 12px 0;
  color: var(--tomato);
}
.video-card h2 {
  min-height: 0;
}
.count {
  position: absolute;
  right: 10px;
  top: 10px;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(22, 20, 18, 0.82);
  color: white;
  font-size: 0.82rem;
}
.post-layout {
  width: min(1040px, calc(100% - 24px));
  margin: 28px auto 56px;
}
.photo-large {
  margin: 0 0 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.photo-large img {
  display: block;
  width: 100%;
  max-height: 86vh;
  object-fit: contain;
  background: #111;
}
.caption {
  max-width: 760px;
  margin: 24px auto 0;
  color: #2b2722;
  font-size: 1.05rem;
  line-height: 1.6;
}
.year-list {
  padding: 28px clamp(18px, 4vw, 56px);
}
@media (max-width: 720px) {
  .hero, .post-head { display: block; padding-top: 30px; }
  .topnav { justify-content: flex-start; margin-top: 22px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .card h2 { font-size: 0.86rem; }
}
