:root {
  --bg-primary: #fcf9f4;
  --bg-surface: #ffffff;
  --bg-secondary: #f3ece1;
  --text-main: #231b15;
  --text-muted: #6e5e54;
  --accent: #c46830;
  --accent-hover: #a34e1a;
  --border-light: #e8ded2;
  --font-serif: "Playfair Display", "Noto Serif SC", Georgia, serif;
  --font-sans: "Inter", "Noto Sans SC", -apple-system, sans-serif;
  --max-w: 1200px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }

.wrap { max-width: var(--max-w); margin: 0 auto; padding: 0 24px; }

/* Header / Nav */
.site-header {
  border-bottom: 1px solid var(--border-light);
  background: var(--bg-surface);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand-logo {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 8px;
}
.brand-logo span { color: var(--accent); font-style: italic; }
.nav-links { display: flex; gap: 24px; font-size: 14px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.nav-links a { color: var(--text-muted); padding: 6px 0; border-bottom: 2px solid transparent; }
.nav-links a.active, .nav-links a:hover { color: var(--accent); border-color: var(--accent); }

/* Hero Magazine Banner */
.mag-hero {
  padding: 60px 0 40px;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-primary) 100%);
  border-bottom: 1px solid var(--border-light);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 40px;
  align-items: center;
}
.hero-tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.hero-title {
  font-family: var(--font-serif);
  font-size: 42px;
  line-height: 1.2;
  font-weight: 900;
  margin-bottom: 18px;
  letter-spacing: -1px;
}
.hero-desc {
  font-size: 17px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.hero-cover {
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(43, 29, 22, 0.08);
  height: 380px;
}
.hero-cover img { width: 100%; height: 100%; object-fit: cover; }

/* Grid Sections */
.section-block { padding: 50px 0; }
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 30px;
  border-bottom: 2px solid var(--text-main);
  padding-bottom: 12px;
}
.section-title {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 800;
}
.section-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 32px;
}
.card {
  background: var(--bg-surface);
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(35, 27, 21, 0.07);
}
.card-thumb { height: 200px; overflow: hidden; background: #eee; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.card-category { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; margin-bottom: 8px; }
.card-title { font-family: var(--font-serif); font-size: 20px; font-weight: 700; line-height: 1.35; margin-bottom: 10px; }
.card-excerpt { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; flex: 1; }
.card-meta { font-size: 12px; color: #8c7e75; display: flex; justify-content: space-between; border-top: 1px solid var(--border-light); padding-top: 12px; }

/* Article Detail */
.article-header { padding: 60px 0 30px; text-align: center; max-width: 800px; margin: 0 auto; }
.article-category { font-size: 13px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: 1px; margin-bottom: 12px; }
.article-title { font-family: var(--font-serif); font-size: 44px; line-height: 1.2; font-weight: 900; margin-bottom: 20px; }
.article-meta { font-size: 14px; color: var(--text-muted); margin-bottom: 30px; }
.article-hero-img { max-width: 900px; margin: 0 auto 40px; border-radius: 8px; overflow: hidden; box-shadow: 0 10px 30px rgba(0,0,0,0.06); }
.article-content { max-width: 760px; margin: 0 auto; font-size: 18px; line-height: 1.8; color: #2c241e; }
.article-content h2 { font-family: var(--font-serif); font-size: 28px; margin: 40px 0 16px; border-bottom: 1px solid var(--border-light); padding-bottom: 8px; }
.article-content h3 { font-family: var(--font-serif); font-size: 22px; margin: 28px 0 12px; }
.article-content p { margin-bottom: 24px; }
.article-content ul, .article-content ol { margin-bottom: 24px; padding-left: 28px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 16px 24px;
  background: var(--bg-secondary);
  font-style: italic;
  font-family: var(--font-serif);
  margin: 30px 0;
  border-radius: 0 6px 6px 0;
}

/* Footer */
.site-footer {
  background: #18120e;
  color: #c9b9ad;
  padding: 60px 0 30px;
  margin-top: 80px;
  font-size: 14px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand { font-family: var(--font-serif); font-size: 24px; font-weight: 800; color: #fff; margin-bottom: 12px; }
.footer-bottom { padding-top: 24px; text-align: center; font-size: 12px; color: #7a6e65; }

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-title { font-size: 30px; }
  .article-title { font-size: 30px; }
  .footer-inner { grid-template-columns: 1fr; }
}
