:root {
  --bg: var(--bg-color);
  --paper: #ffffff;
  --ink: #2b2420;
  --muted: #8a7b72;
  --line: #f0e4d8;
  --accent: var(--primary-color);
  --accent-deep: #e8732a;
  --accent-soft: #ffe6d4;
  --tag-bg: #fff0e4;
  --tag-ink: #d56a28;
  --shadow: 0 8px 22px rgba(120, 70, 30, 0.08);
  --shadow-soft: 0 4px 14px rgba(120, 70, 30, 0.06);
  --sans: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  --display: "Gill Sans", "Trebuchet MS", "Segoe UI", sans-serif;
  --max: 720px;
  --radius: 16px;
  --radius-sm: 12px;
  --img-w: 360px;
  --img-h: 280px;
  --img-ratio: 360 / 280;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(120% 70% at 0% -10%, #ffe8d6 0%, transparent 50%),
    radial-gradient(90% 50% at 100% 0%, #fff3e8 0%, transparent 42%),
    var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }

.page-shell {
  min-height: 100vh;
  padding-bottom: 20px;
}

/* Header — centered brand like screenshot */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 247, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 228, 216, 0.9);
}
.bar {
  max-width: var(--max);
  margin: 0 auto;
  height: 56px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  padding: 0 14px;
}
.bar-spacer { width: 40px; height: 40px; }
.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--accent);
  line-height: 1;
}
.logo img {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}
.icon-btn {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: var(--accent);
  border-radius: 999px;
  justify-self: end;
}
.icon-btn:hover { background: var(--accent-soft); }
.icon-btn svg { width: 22px; height: 22px; }

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

/* Hero */
.hero-banner {
  display: block;
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.hero-banner img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--img-ratio);
  object-fit: cover;
}
.hero-banner .hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 16px 14px;
  background: linear-gradient(180deg, transparent 0%, rgba(20, 12, 8, 0.72) 100%);
  color: #fff;
}
.hero-banner .hero-kicker {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.9;
  margin-bottom: 4px;
}
.hero-banner h1 {
  margin: 0;
  display: block;
  font-size: 16px;
  line-height: 1.35;
  font-weight: 700;
}

/* Category pills */
.cat-pills {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 14px;
  margin: 0 0 4px;
  scrollbar-width: none;
}
.cat-pills::-webkit-scrollbar { display: none; }
.cat-pills a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}
.cat-pills a.is-active,
.cat-pills a:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Section heads */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 8px 0 12px;
}
.section-head h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 750;
  color: var(--accent);
  letter-spacing: -0.01em;
}
.section-head a {
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.section-head a:hover { color: var(--accent); }

/* Two-column story grid (mobile screenshot style) */
.story-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.story-card {
  display: flex;
  flex-direction: column;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(240, 228, 216, 0.8);
  min-width: 0;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.story-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}
.story-card img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--img-ratio);
  object-fit: cover;
  object-position: center;
  background: var(--accent-soft);
}
.story-grid-home .story-card strong {
  font-size: 14px;
}
.story-card .card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 10px 12px;
  flex: 1;
}
.story-card strong {
  font-size: 13px;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.pill-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--tag-bg);
  color: var(--tag-ink);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: auto;
  padding-top: 2px;
}
.author {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}
.author .avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #ffb07a);
  flex: 0 0 auto;
}
.author em {
  font-style: normal;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.read-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--accent);
  font-size: 10px;
  font-weight: 700;
  flex: 0 0 auto;
}
.read-chip svg { width: 12px; height: 12px; }

/* Hot topics horizontal */
.hot-rail {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 14px;
  margin-bottom: 10px;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.hot-rail::-webkit-scrollbar { display: none; }
.hot-card {
  flex: 0 0 118px;
  scroll-snap-align: start;
  border-radius: var(--radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow: var(--shadow-soft);
}
.hot-card img {
  width: 118px;
  height: auto;
  aspect-ratio: var(--img-ratio);
  object-fit: cover;
}
.hot-card span {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 22px 8px 8px;
  background: linear-gradient(180deg, transparent, rgba(20, 12, 8, 0.75));
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Spotlight / tip strip */
.spotlight {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 12px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
  margin: 8px 0 22px;
  box-shadow: var(--shadow-soft);
}
.spotlight img {
  width: 96px;
  height: auto;
  aspect-ratio: var(--img-ratio);
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.spotlight .kicker {
  margin: 0 0 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.spotlight strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
  margin-bottom: 4px;
}
.spotlight p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Soft banner strip */
.soft-banner {
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  margin: 4px 0 22px;
  background: linear-gradient(135deg, #ffd7b8 0%, #ffe9d6 55%, #fff4ea 100%);
  border: 1px solid #f5d2b4;
}
.soft-banner h2 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--accent-deep);
}
.soft-banner p {
  margin: 0 0 10px;
  font-size: 13px;
  color: #6e5648;
}
.soft-banner .banner-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.soft-banner a {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff;
  color: var(--accent-deep);
  font-size: 12px;
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

/* List cards for category/search/desktop denser views */
.news-list {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}
.news-card {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 12px;
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(240, 228, 216, 0.85);
  box-shadow: var(--shadow-soft);
  padding: 10px;
}
.news-card img {
  width: 112px;
  height: auto;
  aspect-ratio: var(--img-ratio);
  border-radius: var(--radius-sm);
  object-fit: cover;
}
.news-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.news-body strong {
  font-size: 14px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-body p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

/* Feature row — Editors’ picks */
.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 22px;
}
.feature {
  background: var(--paper);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid rgba(240, 228, 216, 0.85);
  box-shadow: var(--shadow-soft);
}
.feature img {
  width: 100%;
  height: auto;
  aspect-ratio: var(--img-ratio);
  object-fit: cover;
  object-position: center;
}
.feature strong {
  display: block;
  padding: 12px 12px 4px;
  font-size: 14px;
  line-height: 1.35;
}
.feature em {
  display: block;
  padding: 0 12px 14px;
  font-style: normal;
  font-size: 12px;
  color: var(--muted);
}

/* Chip row */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: var(--shadow-soft);
}
.chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Page titles */
.page-title {
  margin: 6px 0 16px;
}
.page-title .kicker {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.page-title h1 {
  margin: 0 0 6px;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.page-title p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Menu grid */
.menu-grid {
  display: grid;
  gap: 12px;
}
.menu-card {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--paper);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-soft);
}
.menu-card strong { font-size: 17px; color: var(--accent-deep); }
.menu-card span { font-size: 13px; color: var(--muted); }
.menu-card em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

/* Article */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.crumbs a:hover { color: var(--accent); }
.article-head h1 {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 14px;
}
.cover {
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 8px;
  box-shadow: var(--shadow);
}
.cover img {
  width: 100%;
  aspect-ratio: var(--img-ratio);
  object-fit: cover;
}
.credit {
  margin: 0 0 18px;
  font-size: 12px;
  color: var(--muted);
}
.prose p {
  margin: 0 0 14px;
  font-size: 16px;
  line-height: 1.7;
}
.prose h2 {
  margin: 22px 0 10px;
  font-size: 20px;
  color: var(--accent-deep);
}
.prose ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}
.prose li { margin-bottom: 6px; }

/* Search */
.search-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  margin-bottom: 12px;
}
.search-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
}
.search-field svg {
  width: 18px;
  height: 18px;
  color: var(--accent);
  flex: 0 0 auto;
}
.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  height: 44px;
}
.search-form button {
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.search-hint,
.search-count {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
}
.search-hint a {
  color: var(--accent-deep);
  font-weight: 600;
}

/* Footer */
.site-footer {
  max-width: var(--max);
  margin: 8px auto 0;
  padding: 8px 14px 18px;
  color: var(--muted);
  font-size: 12px;
}
.site-footer .about { margin: 0 0 10px; line-height: 1.5; }
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.foot-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.foot-links a { font-weight: 700; color: var(--ink); }
.foot-links a:hover { color: var(--accent); }
.site-footer .cta {
  display: inline-block;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
}
.site-footer .fine { margin: 0; }

/* Home intro (desktop richer) */
.home-intro {
  margin: 2px 0 12px;
}
.home-intro .home-kicker {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.home-intro .home-lead {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 0 0 18px;
}
.stat-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 10px;
  text-align: center;
  box-shadow: var(--shadow-soft);
}
.stat-card strong {
  display: block;
  font-size: 18px;
  color: var(--accent);
  margin-bottom: 2px;
}
.stat-card span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

@media (min-width: 720px) {
  :root { --max: 980px; }
  .m-main { padding: 18px 20px 36px; }
  .home-intro .home-kicker { font-size: 28px; }
  .hero-banner h1 { font-size: 22px; max-width: 70%; }
  .story-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
  }
  .story-card strong { font-size: 14px; }
  .feature-grid { grid-template-columns: repeat(3, 1fr); }
  .hot-card { flex-basis: 150px; }
  .hot-card img { width: 150px; }
  .news-card { grid-template-columns: 140px 1fr; }
  .news-card img { width: 140px; }
  .menu-grid { grid-template-columns: 1fr 1fr; }
  .article-head h1 { font-size: 34px; }
}

@media (min-width: 980px) {
  .story-grid.story-grid-home {
    grid-template-columns: repeat(4, 1fr);
  }
}
