:root {
  --bg: #f6efe4;
  --bg-deep: #e8d3b3;
  --card: #fffaf2;
  --card-strong: #fff5e8;
  --text: #2f1f14;
  --muted: #6c5545;
  --line: #dbc1a1;
  --accent: #a95021;
  --accent-2: #2f6b4b;
  --accent-3: #d99a4e;
  --shadow: 0 18px 45px rgba(62, 36, 19, 0.16);
  --radius-xl: 24px;
  --radius-md: 16px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  color: var(--text);
  background: linear-gradient(180deg, var(--bg) 0%, #f3e5d0 100%);
  min-height: 100vh;
  overflow-x: hidden;
}

.ambient-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.shape {
  position: absolute;
  border-radius: 999px;
  filter: blur(4px);
  opacity: 0.55;
}

.shape-one {
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(217, 154, 78, 0.45), rgba(217, 154, 78, 0));
  top: -90px;
  left: -70px;
}

.shape-two {
  width: 430px;
  height: 430px;
  background: radial-gradient(circle, rgba(47, 107, 75, 0.24), rgba(47, 107, 75, 0));
  top: 22%;
  right: -110px;
}

.shape-three {
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(169, 80, 33, 0.23), rgba(169, 80, 33, 0));
  bottom: -130px;
  left: 22%;
}

.hero,
main,
.site-footer {
  width: min(1120px, calc(100% - 2.2rem));
  margin-inline: auto;
}

.hero {
  padding: 1.5rem 0 2.2rem;
}

.top-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.brand-link {
  text-decoration: none;
  color: inherit;
}

.bean-dot {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(140deg, #724122, #d3854a);
  box-shadow: 0 0 0 6px rgba(211, 133, 74, 0.17);
}

.nav-pill {
  text-decoration: none;
  color: #fff6eb;
  font-weight: 600;
  font-size: 0.9rem;
  background: linear-gradient(135deg, #88411d, #b45e29);
  padding: 0.62rem 1rem;
  border-radius: 999px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 8px 20px rgba(121, 65, 26, 0.26);
}

.nav-pill:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(121, 65, 26, 0.3);
}

.hero-content {
  margin-top: 2.2rem;
  background: linear-gradient(145deg, #fff8ee 0%, #f9e9d2 52%, #efddc2 100%);
  border: 1px solid #dec4a5;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(1.4rem, 2.2vw, 2.4rem);
  position: relative;
  overflow: hidden;
}

.hero-content::after {
  content: "";
  position: absolute;
  inset: auto -70px -90px auto;
  width: 250px;
  height: 250px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 107, 75, 0.22), rgba(47, 107, 75, 0));
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-weight: 700;
  font-size: 0.74rem;
  color: var(--accent-2);
  margin: 0;
}

.hero h1,
h2,
.modal-title {
  font-family: "Fraunces", Georgia, serif;
  letter-spacing: 0.01em;
}

.hero h1 {
  margin: 0.65rem 0 0.65rem;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  line-height: 1.13;
  max-width: 16ch;
}

.hero p {
  margin: 0;
  color: var(--muted);
  max-width: 62ch;
  line-height: 1.6;
}

.hero-stats {
  margin-top: 1.35rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.hero-stats article {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(153, 102, 56, 0.21);
  border-radius: 12px;
  padding: 0.7rem 0.8rem;
}

.hero-stats h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: #7e3d1c;
}

.hero-stats p {
  margin-top: 0.14rem;
  font-size: 0.82rem;
  color: #795945;
}

main {
  padding-bottom: 2rem;
}

.featured,
.articles {
  margin-top: 1.4rem;
}

.ad-showcase {
  margin-top: 1.4rem;
}

.sim-ad-banner {
  background: linear-gradient(138deg, #edf8f1 0%, #dbefe3 100%);
  border: 1px solid #b9d8c4;
  border-radius: var(--radius-md);
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 25px rgba(35, 75, 50, 0.12);
}

.sim-ad-banner h3 {
  margin: 0.28rem 0 0.3rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  color: #184931;
}

.sim-ad-banner p {
  margin: 0;
  color: #2d5e44;
  line-height: 1.55;
}

.ad-label {
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  font-size: 0.7rem;
  color: #28563f;
  background: rgba(22, 89, 56, 0.12);
  border: 1px solid rgba(22, 89, 56, 0.2);
  border-radius: 999px;
  padding: 0.23rem 0.58rem;
}

.sim-ad-cta {
  display: inline-flex;
  margin-top: 0.72rem;
  text-decoration: none;
  font-weight: 700;
  color: #f0ffef;
  background: #1f6847;
  border-radius: 10px;
  padding: 0.55rem 0.85rem;
}

.section-title-wrap h2 {
  margin: 0.28rem 0 0;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
}

#featured-post {
  margin-top: 1rem;
}

.featured-card {
  border-radius: var(--radius-xl);
  padding: clamp(1rem, 2vw, 1.4rem);
  background: linear-gradient(138deg, #2f1f14, #64381e 48%, #8c4f27 100%);
  color: #ffefdc;
  border: 1px solid rgba(255, 227, 193, 0.18);
  box-shadow: 0 16px 38px rgba(63, 35, 17, 0.34);
}

.post-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
}

.featured-card .post-tag {
  background: rgba(255, 255, 255, 0.15);
  color: #ffe5c3;
}

.featured-card h3 {
  margin: 0.62rem 0 0.35rem;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.3rem, 2.2vw, 2rem);
}

.featured-card p {
  margin: 0.55rem 0;
  line-height: 1.58;
  color: #f4debf;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  margin-top: 0.7rem;
  color: #f2d8b7;
  font-size: 0.88rem;
}

.metric-line {
  margin-top: 0.95rem;
  padding: 0.62rem 0.8rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.91rem;
}

.metric-line strong {
  color: #ffe4c2;
}

.open-post-btn {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  align-self: flex-start;
  margin-top: 1rem;
  border: 0;
  background: #fff3e3;
  color: #6e381c;
  font-weight: 700;
  padding: 0.62rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.open-post-btn:hover {
  transform: translateY(-1px);
  background: #ffe8cf;
}

.filters {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.filter-btn {
  border: 1px solid #d4b189;
  background: #fdf5e8;
  color: #5f4433;
  padding: 0.44rem 0.78rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.filter-btn.active,
.filter-btn:hover {
  background: #854220;
  color: #fff1dd;
  border-color: #854220;
}

.post-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.95rem;
}

.post-card {
  background: linear-gradient(180deg, var(--card) 0%, var(--card-strong) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 0.95rem 0.95rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  min-height: 250px;
  box-shadow: 0 10px 28px rgba(73, 45, 22, 0.09);
  opacity: 0;
  transform: translateY(16px);
  animation: card-enter 0.55s ease forwards;
  animation-delay: var(--delay, 0ms);
  transition: transform 0.24s ease, box-shadow 0.24s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(73, 45, 22, 0.16);
}

.post-card .post-tag {
  background: #f3dfc3;
  color: #72482f;
}

.post-card h3 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.22rem;
  line-height: 1.28;
}

.post-card p {
  margin: 0;
  color: #735746;
  line-height: 1.53;
  font-size: 0.94rem;
}

.post-card .meta-row {
  color: #7f624f;
  font-size: 0.79rem;
  margin-top: 0.2rem;
}

.post-card .metric-line {
  margin-top: auto;
  background: #f6e6d0;
  color: #5e422f;
}

.ad-card {
  background: linear-gradient(150deg, #edf8f1 0%, #e4f4e9 100%);
  border-color: #bad8c5;
}

.ad-card h3 {
  color: #184931;
}

.ad-card p {
  color: #2f6549;
}

.ad-card .meta-row {
  color: #2c6247;
}

.ad-cta {
  background: #1f6847;
  color: #f0ffef;
}

.ad-cta:hover {
  background: #15543a;
}

.site-footer {
  padding: 1.6rem 0 2.2rem;
  color: #6d513f;
  font-size: 0.88rem;
  text-align: center;
}

.article-hero {
  padding-bottom: 1rem;
}

.article-page-main {
  padding-bottom: 0.7rem;
}

.article-page-card {
  background: linear-gradient(180deg, #fff8ee 0%, #fff3e3 100%);
  border: 1px solid #dec2a2;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.back-link {
  display: inline-flex;
  text-decoration: none;
  font-weight: 700;
  color: #6e381c;
  margin-bottom: 0.8rem;
}

.article-nav {
  margin-top: 1.3rem;
  padding-top: 1rem;
  border-top: 1px solid #e0c3a1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
}

.article-nav-link {
  text-decoration: none;
  color: #6f3d20;
  background: #f9e8d2;
  border: 1px solid #dfbe98;
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
}

.article-nav-link:last-child {
  text-align: right;
}

.article-empty {
  min-height: 320px;
  display: grid;
  align-content: center;
}

.article-ad {
  margin-top: 1rem;
  background: linear-gradient(145deg, #ecf7f0 0%, #dff1e6 100%);
  border: 1px solid #bad8c5;
  border-radius: 12px;
  padding: 0.85rem;
}

.article-ad h4 {
  margin: 0.45rem 0 0.35rem;
  color: #1a4f35;
  font-size: 1rem;
}

.article-ad p {
  margin: 0;
  color: #2e6045;
  line-height: 1.58;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 20;
}

.modal.open {
  display: block;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(35, 18, 9, 0.62);
  backdrop-filter: blur(2px);
}

.modal-panel {
  position: relative;
  width: min(860px, calc(100% - 1.4rem));
  max-height: calc(100vh - 1.4rem);
  overflow-y: auto;
  margin: 0.7rem auto;
  background: #fff8ef;
  border: 1px solid #dec3a2;
  border-radius: 18px;
  padding: 1rem 1rem 1.4rem;
  box-shadow: 0 24px 58px rgba(37, 19, 9, 0.34);
}

.modal-close {
  position: sticky;
  top: 0;
  margin-left: auto;
  display: grid;
  place-items: center;
  border: 0;
  background: #f0d8b8;
  color: #5d3218;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  font-size: 1.5rem;
  cursor: pointer;
}

.modal-title {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  margin: 0.4rem 0;
}

.modal-summary {
  color: #715847;
  line-height: 1.65;
  margin-top: 0.7rem;
}

.modal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.9rem;
  font-size: 0.86rem;
  color: #664c39;
  margin-top: 0.6rem;
}

.modal-block {
  margin-top: 0.95rem;
  background: #fff1df;
  border: 1px solid #e2c29c;
  border-radius: 12px;
  padding: 0.75rem;
}

.modal-block h4 {
  margin: 0 0 0.45rem;
  font-size: 0.96rem;
  color: #5f381d;
}

.modal-section {
  margin-top: 1rem;
}

.modal-section h4 {
  margin: 0 0 0.4rem;
  font-size: 1.02rem;
  color: #5d3418;
}

.modal-section p {
  margin: 0;
  line-height: 1.66;
  color: #4f392b;
}

.data-list,
.source-list {
  margin: 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.44rem;
}

.source-list a {
  color: #6d3c1d;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes card-enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 990px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .hero,
  main,
  .site-footer {
    width: min(1120px, calc(100% - 1.1rem));
  }

  .hero-stats {
    grid-template-columns: 1fr;
  }

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

  .top-nav {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .article-nav-link:last-child {
    text-align: left;
  }
}
