:root {
  --bg: #f5efe6;
  --surface: rgba(255, 250, 244, 0.84);
  --surface-strong: #fffaf2;
  --line: rgba(91, 66, 46, 0.12);
  --text: #2b2118;
  --muted: #6a5747;
  --accent: #b4512d;
  --accent-deep: #7f2f17;
  --gold: #d8b36b;
  --shadow: 0 18px 60px rgba(69, 44, 23, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Aptos", "Trebuchet MS", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(216, 179, 107, 0.28), transparent 28%),
    radial-gradient(circle at right 10%, rgba(180, 81, 45, 0.18), transparent 24%),
    linear-gradient(180deg, #f8f2ea 0%, #f3ece2 50%, #efe7db 100%);
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

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

.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 24px 28px;
}

.hero__backdrop {
  position: absolute;
  inset: 18px 24px auto;
  height: 250px;
  border-radius: 32px;
  background:
    linear-gradient(135deg, rgba(74, 35, 18, 0.9), rgba(127, 47, 23, 0.82)),
    linear-gradient(45deg, rgba(216, 179, 107, 0.16), transparent 70%);
  box-shadow: 0 18px 44px rgba(69, 44, 23, 0.12);
}

.hero__backdrop::before,
.hero__backdrop::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  opacity: 0.45;
}

.hero__backdrop::before {
  top: -30px;
  right: 10%;
  width: 160px;
  height: 160px;
  background: rgba(216, 179, 107, 0.16);
}

.hero__backdrop::after {
  bottom: -46px;
  left: 10%;
  width: 180px;
  height: 180px;
  background: rgba(255, 255, 255, 0.06);
}

.hero__content {
  position: relative;
  max-width: 760px;
  margin: 0 auto;
  padding: 26px 12px 18px;
  color: #fff7ee;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  font-size: 0.78rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(240, 216, 163, 0.9);
}

.hero h1,
.article-detail h2,
.featured h2,
.section-heading h2,
.empty-state h2 {
  margin: 0;
  font-family: "Georgia", "Palatino Linotype", serif;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.9rem);
  line-height: 0.98;
  text-shadow: 0 6px 18px rgba(27, 10, 4, 0.16);
}

.hero__lede {
  max-width: 600px;
  margin: 14px 0 0;
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255, 247, 238, 0.9);
}

.article-card__meta span,
.featured__meta span,
.article-detail__meta span,
.article-detail__meta a {
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 247, 238, 0.12);
  color: inherit;
  font-size: 0.9rem;
}

.layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 48px;
}

.card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--surface);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.sidebar {
  position: sticky;
  top: 24px;
  align-self: start;
  padding: 24px;
}

.sidebar section + section {
  margin-top: 28px;
}

.sidebar__label {
  display: block;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

#search-input {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(91, 66, 46, 0.18);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
}

#search-input:focus {
  outline: 2px solid rgba(180, 81, 45, 0.22);
  border-color: var(--accent);
}

.chip-list,
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip-list--compact {
  max-height: 180px;
  overflow: auto;
  padding-right: 4px;
}

.chip,
.tag,
.button,
.back-link {
  border-radius: 999px;
}

.chip {
  padding: 10px 14px;
  border: 1px solid rgba(91, 66, 46, 0.14);
  background: rgba(255, 255, 255, 0.7);
  color: var(--text);
  cursor: pointer;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.chip--small {
  padding: 8px 12px;
  font-size: 0.88rem;
}

.chip:hover,
.button:hover,
.article-card__link:hover,
.back-link:hover {
  transform: translateY(-1px);
}

.chip--active,
.button {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  color: #fff6ef;
  border-color: transparent;
}

.button {
  cursor: pointer;
}

.button--ghost {
  background: rgba(255, 255, 255, 0.72);
  color: var(--accent-deep);
  border: 1px solid rgba(91, 66, 46, 0.14);
}

.sidebar__actions {
  display: flex;
}

.sidebar__note p {
  margin: 0;
  line-height: 1.7;
  color: var(--muted);
}

.content {
  min-width: 0;
}

.featured {
  display: grid;
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
  overflow: hidden;
}

.featured__media {
  min-height: 100%;
  background: linear-gradient(180deg, rgba(180, 81, 45, 0.12), rgba(216, 179, 107, 0.06));
}

.featured__media img,
.article-card__media img,
.article-detail__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured__body,
.article-detail,
.article-card__body {
  padding: 28px;
}

.featured__body p,
.article-card__body p,
.article-detail__excerpt,
.prose {
  line-height: 1.8;
}

.featured__meta,
.article-detail__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 18px 0 22px;
}

.button,
.article-card__link,
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  text-decoration: none;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin: 28px 0 18px;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.filter-token {
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(91, 66, 46, 0.12);
  color: var(--text);
}

.filter-token--muted {
  color: var(--muted);
}

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

.article-card {
  overflow: hidden;
}

.article-card__media {
  display: block;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(216, 179, 107, 0.22), rgba(180, 81, 45, 0.14));
}

.article-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.article-card h3 {
  margin: 14px 0 12px;
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: 1.55rem;
  line-height: 1.2;
}

.article-card__link,
.back-link {
  padding-left: 0;
  color: var(--accent-deep);
  font-weight: 700;
}

.image-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  min-height: 220px;
  padding: 24px;
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: 2rem;
  text-align: center;
  color: rgba(43, 33, 24, 0.72);
}

.image-placeholder--hero {
  min-height: 100%;
}

.article-detail {
  padding: 32px;
}

.article-detail__head {
  max-width: 820px;
}

.article-detail__excerpt {
  font-size: 1.1rem;
  color: var(--muted);
}

.article-detail__image {
  margin: 18px 0 24px;
  max-height: 520px;
  border-radius: 22px;
}

.prose {
  color: var(--text);
}

.prose p,
.prose li,
.prose blockquote,
.prose h2,
.prose h3,
.prose figure {
  margin-top: 0;
  margin-bottom: 1rem;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  font-family: "Georgia", "Palatino Linotype", serif;
}

.prose a {
  color: var(--accent-deep);
}

.prose img {
  border-radius: 18px;
}

.tag {
  padding: 9px 12px;
  background: rgba(216, 179, 107, 0.16);
  color: var(--accent-deep);
}

.empty-state {
  padding: 42px 28px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.pagination__button {
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(91, 66, 46, 0.16);
  background: rgba(255, 255, 255, 0.76);
  color: var(--text);
  cursor: pointer;
}

.pagination__button--active {
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  border-color: transparent;
  color: #fff6ef;
}

.pagination__button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.tag-button {
  border: 0;
  cursor: pointer;
  font: inherit;
}

.share-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  margin-top: 28px;
  padding: 24px;
  background: linear-gradient(135deg, rgba(216, 179, 107, 0.12), rgba(255, 255, 255, 0.72));
}

.share-card h3 {
  margin: 0 0 10px;
  font-family: "Georgia", "Palatino Linotype", serif;
  font-size: 1.45rem;
}

.share-card p {
  margin: 0;
}

.share-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-end;
}

.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .featured,
  .article-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .hero {
    padding: 24px 16px 24px;
  }

  .hero__backdrop {
    inset: 12px 16px auto;
    height: 240px;
  }

  .hero__content,
  .sidebar,
  .featured__body,
  .article-card__body,
  .article-detail {
    padding: 22px;
  }

  .layout {
    padding: 0 16px 28px;
  }

  .section-heading {
    align-items: start;
    flex-direction: column;
  }

  .share-card {
    grid-template-columns: 1fr;
  }

  .share-card__actions {
    justify-content: flex-start;
  }
}