@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,600;8..60,700&display=swap");

:root {
  --bg: #f5f0e8;
  --panel: rgba(255, 252, 248, 0.86);
  --panel-strong: #fffdfa;
  --ink: #181613;
  --muted: #5d574d;
  --line: rgba(24, 22, 19, 0.12);
  --accent: #8c2f24;
  --accent-soft: rgba(140, 47, 36, 0.1);
  --shadow: 0 18px 40px rgba(67, 46, 26, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(140, 47, 36, 0.08), transparent 30%),
    radial-gradient(circle at top right, rgba(87, 101, 64, 0.08), transparent 24%),
    var(--bg);
  font-family: "Manrope", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.page-shell {
  width: min(1180px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 28px 0 56px;
}

.hero,
.article-header,
.story-card,
.sidebar-card {
  border: 1px solid var(--line);
  background: var(--panel);
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow);
}

.hero {
  padding: 28px;
  border-radius: 28px;
}

.hero__eyebrow,
.article-header__topic {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.7fr);
  gap: 28px;
  align-items: end;
  margin-top: 18px;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: "Source Serif 4", serif;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1,
.article-header h1 {
  font-size: clamp(2.5rem, 4vw, 4.4rem);
  line-height: 0.96;
  max-width: 10ch;
}

.hero__lead,
.article-header__lead {
  margin: 18px 0 0;
  max-width: 58ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.65;
}

.hero__meta {
  display: grid;
  gap: 14px;
}

.meta-card {
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--panel-strong);
  border: 1px solid var(--line);
}

.meta-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-card strong {
  font-size: 1.2rem;
}

.topics {
  margin-top: 26px;
  display: grid;
  gap: 20px;
}

.topic-section {
  padding: 22px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.42);
  border: 1px solid rgba(24, 22, 19, 0.08);
}

.topic-section__header {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 18px;
  margin-bottom: 18px;
  align-items: start;
}

.topic-section__header h2 {
  font-size: clamp(1.8rem, 2vw, 2.6rem);
}

.topic-section__header p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.story-card {
  padding: 20px;
  border-radius: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.story-card:hover {
  transform: translateY(-3px);
  border-color: rgba(140, 47, 36, 0.28);
}

.story-card__meta,
.article-header__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: var(--muted);
  font-size: 0.9rem;
}

.story-card h3 {
  margin-top: 16px;
  font-size: 1.62rem;
  line-height: 1.06;
}

.story-card p {
  margin: 16px 0 0;
  color: var(--muted);
  line-height: 1.68;
  min-height: 7.4em;
}

.story-card__footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.92rem;
}

.story-card__footer a,
.back-link,
.source-list a {
  color: var(--accent);
  font-weight: 700;
}

.page-shell--article {
  width: min(1080px, calc(100vw - 40px));
}

.article-header {
  padding: 26px;
  border-radius: 28px;
}

.back-link {
  display: inline-block;
  margin-bottom: 18px;
}

.article-header__meta {
  margin-top: 18px;
}

.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 22px;
}

.share-button {
  appearance: none;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf6;
  padding: 14px 20px;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.share-row__hint {
  color: var(--muted);
  font-size: 0.92rem;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 20px;
  margin-top: 20px;
}

.article-body {
  padding: 8px 2px 0;
}

.article-body p {
  margin: 0 0 18px;
  font-size: 1.08rem;
  line-height: 1.82;
}

.article-sidebar {
  display: grid;
  gap: 14px;
  align-self: start;
  position: sticky;
  top: 16px;
}

.sidebar-card {
  padding: 18px;
  border-radius: 22px;
}

.sidebar-card h2 {
  margin-bottom: 12px;
  font-size: 1.18rem;
}

.sidebar-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.source-list {
  margin: 0;
  padding-left: 18px;
}

.source-list li + li {
  margin-top: 10px;
}

@media (max-width: 920px) {
  .hero__grid,
  .topic-section__header,
  .article-layout {
    grid-template-columns: 1fr;
  }

  .cards-grid {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }
}

@media (max-width: 640px) {
  .page-shell,
  .page-shell--article {
    width: min(100vw - 24px, 100%);
  }

  .hero,
  .article-header,
  .topic-section,
  .story-card {
    border-radius: 22px;
    padding: 18px;
  }

  .hero h1,
  .article-header h1 {
    max-width: none;
  }

  .story-card p {
    min-height: 0;
  }

  .story-card__footer {
    align-items: flex-start;
    flex-direction: column;
  }
}
