:root {
  --ink:#232319;
  --muted:#6c6a5d;
  --yellow:#ffd84c;
  --cream:#fffaf0;
  --line:#eae5d7;
  --white:#fff;
  --radius:22px
}

* {
  box-sizing:border-box
}

html {
  scroll-behavior:smooth
}

body {
  margin:0;
  background:var(--cream);
  color:var(--ink);
  font:16px/1.75 system-ui,-apple-system,"Microsoft YaHei",sans-serif
}

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

a:hover {
  color:#9d6800
}

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

.wrap {
  max-width:1180px;
  margin:auto;
  padding:0 24px
}

.top {
  background:#24241d;
  color:#fff;
  font-size:12px;
  padding:7px 0
}

.top .wrap {
  display:flex;
  justify-content:space-between
}

.header {
  background:#fff;
  border-bottom:1px solid var(--line)
}

.header .wrap {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:25px;
  min-height:82px
}

.brand {
  display:flex;
  align-items:center;
  gap:12px;
  font-size:24px;
  font-weight:900;
  letter-spacing:-1px
}

.brand-icon {
  background:var(--yellow);
  width:44px;
  height:44px;
  border-radius:15px;
  display:grid;
  place-items:center;
  font-size:26px
}

.nav {
  display:flex;
  flex-wrap:wrap;
  gap:25px;
  font-weight:650;
  font-size:14px
}

.hero {
  padding:64px 0 54px;
  background:radial-gradient(circle at 75% 20%,#ffe7a5,transparent 38%),linear-gradient(120deg,#fff6d7,#fffaf0)
}

.hero-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:48px;
  align-items:center
}

.eyebrow {
  font-size:12px;
  font-weight:800;
  letter-spacing:3px;
  color:#936d00
}

.hero h1 {
  font-size:clamp(35px,4.3vw,62px);
  line-height:1.19;
  letter-spacing:-2px;
  margin:18px 0
}

.hero p {
  color:#5f5c50;
  font-size:16px
}

.btn {
  display:inline-block;
  background:#24241d;
  color:white;
  border-radius:99px;
  padding:11px 24px;
  font-weight:700;
  margin-top:16px
}

.hero-art {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  transform:rotate(2deg)
}

.hero-art img {
  width:100%;
  height:235px;
  object-fit:cover;
  border:7px solid white;
  border-radius:24px;
  box-shadow:0 12px 35px #6b54272b
}

.hero-art img:nth-child(2) {
  margin-top:35px
}

.section {
  padding:58px 0
}

.section-head {
  display:flex;
  justify-content:space-between;
  align-items:end;
  gap:16px;
  margin-bottom:24px
}

.section-head h2 {
  font-size:30px;
  line-height:1.25;
  margin:0
}

.section-head p {
  color:var(--muted);
  margin:8px 0 0
}

.pill {
  display:inline-block;
  border:1px solid #ddd5bd;
  border-radius:99px;
  padding:6px 15px;
  font-size:13px
}

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

.card {
  background:white;
  border:1px solid var(--line);
  border-radius:var(--radius);
  overflow:hidden;
  transition:transform .2s,box-shadow .2s
}

.card:hover {
  transform:translateY(-3px);
  box-shadow:0 12px 35px #40351c15
}

.card img {
  width:100%;
  height:230px;
  object-fit:cover
}

.card-body {
  padding:20px
}

.tag {
  color:#986a00;
  font-size:12px;
  font-weight:800
}

.card h3 {
  font-size:19px;
  line-height:1.45;
  margin:8px 0
}

.card p {
  font-size:14px;
  color:var(--muted);
  margin:0
}

.categories {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:12px
}

.category {
  background:white;
  border:1px solid var(--line);
  padding:24px 12px;
  border-radius:18px;
  text-align:center;
  font-weight:750
}

.category span {
  display:block;
  font-size:28px;
  margin-bottom:8px
}

.feature {
  background:#25251f;
  color:#fff;
  border-radius:30px;
  padding:40px;
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:30px;
  align-items:center
}

.feature p {
  color:#d2d0c4
}

.feature img {
  width:100%;
  height:310px;
  object-fit:cover;
  border-radius:20px
}

.breadcrumbs {
  font-size:13px;
  color:var(--muted);
  padding:28px 0
}

.article-layout {
  display:grid;
  grid-template-columns:minmax(0,1fr) 290px;
  gap:36px;
  padding-bottom:70px
}

.paper {
  background:white;
  border:1px solid var(--line);
  border-radius:24px;
  padding:36px
}

.paper h1 {
  font-size:36px;
  line-height:1.3;
  margin:12px 0
}

.paper h2 {
  font-size:24px;
  margin-top:32px
}

.paper p {
  color:#4f4d44
}

.cover {
  width:100%;
  height:420px;
  object-fit:cover;
  border-radius:18px;
  margin:25px 0
}

.sidebar {
  background:#fff;
  border:1px solid var(--line);
  border-radius:24px;
  padding:22px;
  height:max-content
}

.sidebar a {
  display:block;
  padding:10px 0;
  border-bottom:1px solid var(--line);
  font-size:14px
}

.footer {
  background:#25251f;
  color:#e7e3d6;
  padding:45px 0 25px
}

.footer-grid {
  display:flex;
  justify-content:space-between;
  gap:35px
}

.footer a {
  margin-right:15px
}

.footer p,.copyright {
  font-size:13px;
  color:#bcb8a9
}

.copyright {
  border-top:1px solid #44443a;
  margin-top:30px;
  padding-top:18px
}

.empty-note {
  color:var(--muted)
}

@media(max-width:800px) {
  .header .wrap,.footer-grid {
    align-items:flex-start;
    flex-direction:column;
    padding-top:15px;
    padding-bottom:15px
  }

  .nav {
    gap:13px
  }

  .hero-grid,.feature,.article-layout {
    grid-template-columns:1fr
  }

  .hero {
    padding:38px 0
  }

  .hero-art img {
    height:180px
  }

  .cards {
    grid-template-columns:repeat(2,1fr)
  }

  .categories {
    grid-template-columns:repeat(3,1fr)
  }

  .paper {
    padding:22px
  }

  .paper h1 {
    font-size:28px
  }

  .cover {
    height:300px
  }

}

@media(max-width:500px) {
  .wrap {
    padding:0 16px
  }

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

  .categories {
    grid-template-columns:repeat(2,1fr)
  }

  .section {
    padding:38px 0
  }

  .hero-art img {
    height:155px
  }

  .card img {
    height:240px
  }

  .feature {
    padding:22px
  }

  .section-head h2 {
    font-size:25px
  }

}

/* Homepage sections and shared interaction states */
.topics-section { background: #fff3d0; }
.feature-eyebrow { color: #ffda55; }
.btn-yellow { background: #ffda55; color: #222; }
a:focus-visible { outline: 3px solid #ad7600; outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .card { transition: none; }
}
