:root {
  --bg: var(--bg-color);
  --paper: #fffcf8;
  --ink: #1c1b19;
  --muted: #6f6a62;
  --line: #e6e1d6;
  --accent: var(--primary-color);
  --accent-deep: color-mix(in srgb, var(--primary-color) 78%, #000);
  --shadow: 0 10px 28px rgba(60, 42, 24, 0.06);
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --sans: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --max: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg-color);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell { min-height: 100vh; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(247, 246, 242, 0.94);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.bar {
  max-width: var(--max);
  margin: 0 auto;
  height: 58px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  padding: 0 10px;
}
.logo {
  justify-self: center;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--serif);
  font-size: 24px;
  letter-spacing: 0.01em;
  color: var(--primary-color);
  line-height: 1;
}
.logo img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.home-h1 {
  margin: 4px 2px 14px;
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.2;
  color: var(--ink);
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--ink);
  border-radius: 999px;
}
.icon-btn svg { width: 22px; height: 22px; }
.tabs {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 36px;
  padding: 2px 28px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tabs a {
  position: relative;
  flex: 0 0 auto;
  font-size: 15px;
  letter-spacing: 0.03em;
  color: var(--muted);
  padding: 10px 4px 12px;
}
.tabs a.is-active {
  color: var(--primary-color);
  font-weight: 650;
}
.tabs a.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 99px;
  background: var(--primary-color);
}

.m-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 14px 8px;
}

.hero {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  min-height: 260px;
  background: #2b241e;
  margin-bottom: 18px;
}
.hero input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.slides { display: grid; width: 100%; }
.slide {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  min-width: 0;
  min-height: 260px;
  display: block;
  opacity: 0;
  visibility: hidden;
}
.slide img,
.card img,
.compact img,
.topic img,
.thumb img,
.cover img,
.inline-photos img,
.list-item img {
  width: 350px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 350 / 260;
  object-fit: cover;
}
.slide-copy {
  position: absolute;
  inset: auto 0 36px;
  padding: 48px 22px 8px;
  background: linear-gradient(transparent, rgba(20, 14, 10, 0.72));
  color: #fff;
  text-align: center;
}
.slide-copy small {
  display: block;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 11px;
  opacity: 0.85;
  margin-bottom: 6px;
}
.slide-copy strong {
  display: block;
  font-family: var(--serif);
  font-weight: 600;
  font-size: 28px;
  line-height: 1.2;
}
#h1:checked ~ .slides .slide:nth-child(1),
#h2:checked ~ .slides .slide:nth-child(2),
#h3:checked ~ .slides .slide:nth-child(3) {
  opacity: 1;
  visibility: visible;
}
.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 12px;
  display: flex;
  justify-content: center;
  gap: 6px;
}
.dots label {
  width: 7px;
  height: 7px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  font-size: 0;
  color: transparent;
  overflow: hidden;
}
#h1:checked ~ .dots label[for="h1"],
#h2:checked ~ .dots label[for="h2"],
#h3:checked ~ .dots label[for="h3"] {
  width: 18px;
  background: #fff;
}

.card-grid,
.compact-grid,
.topic-grid,
.thumb-row {
  display: grid;
  gap: 22px 20px;
}
.card-grid { margin-bottom: 28px; }
.compact-grid { margin-bottom: 26px; }
.topic-grid { margin-bottom: 8px; gap: 20px 16px; }
.week { margin: 6px 0 28px; }
.week .topic-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px 14px;
  width: 100%;
}
.week .topic {
  min-width: 0;
  max-width: 100%;
}
.hero, .slide { min-height: 260px; }
.week .topic strong { font-size: 16px; min-height: 0; -webkit-line-clamp: 3; }
.thumb-row { margin: 18px 0 8px; }

.card, .compact, .topic, .thumb {
  background: transparent;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
  display: flex;
  flex-direction: column;
}
.card img, .compact img, .topic img, .thumb img {
  background: #ece7df;
  border-radius: 10px;
}
.card strong, .compact strong, .topic strong, .thumb strong {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.35;
  font-weight: 650;
  padding: 10px 2px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.compact strong, .thumb strong { padding-bottom: 12px; }
.card-cat {
  margin: 10px 2px 0;
  color: var(--primary-color);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.card p {
  margin: 6px 0 0;
  padding: 0 2px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.9em;
}
.topic strong { font-size: 15px; min-height: 2.7em; }
.thumb strong { font-family: var(--sans); }
.topic .meta { padding: 8px 0 0; font-size: 12px; }
.topic .who i { width: 22px; height: 22px; font-size: 11px; }
.meta {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}
.who { display: flex; align-items: center; gap: 8px; min-width: 0; }
.who i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3e2d4;
  color: var(--accent-deep);
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  flex: 0 0 auto;
}
.who em {
  font-style: normal;
  min-width: 0;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.meta { min-width: 0; }
.likes { display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto; }
.likes svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; stroke-linejoin: round; }

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 2px 12px;
}
.section-head h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 650;
  color: var(--primary-color);
}
.section-head a { color: var(--muted); font-size: 14px; }

.site-footer {
  max-width: var(--max);
  margin: 10px auto 0;
  padding: 22px 16px 32px;
  border-top: 1px solid var(--line);
}
.about { margin: 0 0 16px; color: var(--muted); font-size: 14px; }
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.foot-links { display: flex; gap: 16px; font-size: 14px; }
.cta {
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
}
.fine { margin: 16px 0 0; color: #9a948a; font-size: 12px; }

.page-title { padding: 8px 2px 16px; }
.kicker {
  margin: 0 0 6px;
  color: var(--accent);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 12px;
}
.page-title h1, .article-title {
  font-family: var(--serif);
  font-weight: 650;
  line-height: 1.2;
  margin: 0 0 8px;
}
.page-title h1 { font-size: 34px; }
.page-title p { margin: 0; color: var(--muted); }
.article-title { font-size: 32px; }
.article-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 14px;
}
.article-meta i {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f3e2d4;
  color: var(--accent-deep);
  display: inline-grid;
  place-items: center;
  font-style: normal;
  font-weight: 700;
  font-size: 12px;
}
.article-meta svg { width: 15px; height: 15px; fill: none; stroke: var(--muted); stroke-width: 1.6; vertical-align: -2px; }
.cover { margin: 0 0 16px; border-radius: 14px; overflow: hidden; }
.cover img { border-radius: 14px; }
.lede { font-size: 18px; color: #3d3934; margin: 0 0 16px; }
.article-body p, .prose p { margin: 0 0 14px; }
.article-body h2, .prose h2 {
  font-family: var(--serif);
  font-size: 24px;
  margin: 22px 0 10px;
}
.article-body ul, .prose ul { margin: 0 0 14px; padding-left: 1.2em; }
.article-body li, .prose li { margin: 6px 0; }
.inline-photos {
  display: grid;
  gap: 10px;
  margin: 8px 0 16px;
}
.inline-photos img { border-radius: 12px; }
.source-line { color: var(--muted); font-size: 14px; }
.source-line a { color: var(--accent-deep); text-decoration: underline; }
.crumbs { font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.crumbs a { color: var(--accent-deep); }
.related { margin-top: 28px; }

.search-form {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.search-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 12px;
}
.search-field svg { width: 18px; height: 18px; color: var(--muted); flex: 0 0 auto; }
.search-field input {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 12px 0;
  outline: none;
}
.search-form button {
  border: 0;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 0 16px;
  cursor: pointer;
}
.search-hint { color: var(--muted); font-size: 14px; }
.search-hint a { color: var(--accent-deep); margin-right: 8px; text-decoration: underline; }
.search-count { font-size: 13px; color: var(--muted); }
.list-feed { display: grid; gap: 10px; }
.list-item {
  display: grid;
  grid-template-columns: 1fr minmax(0, 350px);
  gap: 12px;
  background: var(--paper);
  border-radius: 12px;
  padding: 10px;
  box-shadow: var(--shadow);
}
.list-item img { border-radius: 8px; }
.tag {
  display: inline-block;
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.list-text strong {
  display: block;
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.3;
  margin: 2px 0;
}
.list-text em { color: var(--muted); font-style: normal; font-size: 12px; }

.menu-grid { display: grid; gap: 12px; }
.menu-card {
  background: var(--paper);
  border-radius: 14px;
  padding: 16px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 6px;
}
.menu-card strong { font-family: var(--serif); font-size: 22px; }
.menu-card span { color: var(--muted); }
.menu-card em { color: var(--accent); font-style: normal; font-size: 13px; }

@media (min-width: 720px) {
  .m-main { padding: 20px 20px 8px; }
  .slide img, .hero { min-height: 260px; }
  .slide-copy strong { font-size: 42px; }
  .card-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 22px; }
  .cat-feed .card-grid { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; gap: 22px; }
  .compact-grid { grid-template-columns: repeat(3, 1fr); }
  .topic-grid { grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
  .week .topic-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px 18px; }
  .thumb-row { grid-template-columns: repeat(4, 1fr); }
  .menu-grid { grid-template-columns: repeat(2, 1fr); }
  .inline-photos { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 719px) {
  .bar { height: 54px; padding: 0 6px; }
  .logo { font-size: 22px; }
  .logo img { width: 24px; height: 24px; }
  .home-h1 { font-size: 24px; margin-bottom: 12px; }
  .tabs {
    justify-content: space-between;
    gap: 0;
    padding: 2px 10px 0;
  }
  .tabs a {
    flex: 1;
    text-align: center;
    font-size: 15px;
    padding: 12px 8px 14px;
  }
  .m-main { padding: 10px 12px 6px; }
  .hero, .slide { border-radius: 12px; min-height: 260px; }
  .slide-copy { inset: auto 0 30px; padding: 40px 16px 6px; }
  .slide-copy strong { font-size: 24px; }
  .card-grid, .compact-grid, .cat-feed .card-grid { grid-template-columns: 1fr; gap: 18px; max-width: none; }
  .cat-feed { margin-bottom: 8px; }
  .topic-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px 12px; }
  .topic strong { font-size: 14px; }
  .thumb-row { grid-template-columns: 1fr 1fr; gap: 10px; }
  .section-head h2 { font-size: 20px; }
  .article-title { font-size: 28px; }
  .foot-row { flex-wrap: wrap; }
}
