:root {
  --ink: #181411;
  --ink-soft: #3f3933;
  --ink-mute: #786e61;
  --paper: #f7f0e5;
  --paper-2: #efe3d0;
  --line: #d7c5a8;
  --rose: #a74658;
  --rose-soft: #d9a7ae;
  --moss: #5e744f;
  --river: #253b48;
  --gold: #a27a3f;
  --serif: "Noto Serif KR", "Cormorant Garamond", Georgia, serif;
  --sans: Inter, Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.7;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.site-shell {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(247, 240, 229, 0.72), rgba(247, 240, 229, 0.96)),
    url("/zh-bg-river.jpg") center top / cover fixed;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px clamp(22px, 5vw, 64px);
  background: rgba(247, 240, 229, 0.86);
  border-bottom: 1px solid rgba(215, 197, 168, 0.7);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.brand-mark {
  font-family: var(--serif);
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.04em;
}
.brand-name {
  font-family: "Cormorant Garamond", var(--serif);
  font-size: clamp(18px, 2.4vw, 28px);
  font-style: italic;
  color: var(--river);
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
}
.nav a { border-bottom: 1px solid transparent; }
.nav a:hover { border-color: var(--gold); }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(34px, 6vw, 90px);
  align-items: center;
  min-height: calc(100vh - 82px);
  padding: clamp(72px, 10vw, 132px) clamp(22px, 6vw, 84px) clamp(56px, 8vw, 96px);
}

.eyebrow {
  display: block;
  margin-bottom: 18px;
  font-size: 11px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--gold);
}

.hero h1,
.section-title,
.post-title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1.18;
}
.hero h1 {
  font-size: clamp(48px, 7.4vw, 108px);
}
.hero h1 em {
  color: var(--rose);
  font-style: italic;
  font-family: "Cormorant Garamond", var(--serif);
}
.hero-copy {
  max-width: 680px;
  margin: 26px 0 0;
  font-size: clamp(17px, 1.5vw, 21px);
  color: var(--ink-soft);
  font-weight: 300;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 36px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  background: var(--ink);
  color: var(--paper);
  font-family: var(--serif);
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, background 0.2s ease;
}
.button:hover { transform: translateY(-2px); background: var(--river); }
.button.secondary {
  background: rgba(247, 240, 229, 0.52);
  color: var(--ink);
  border-color: var(--line);
}

.feature-panel {
  position: relative;
  padding: clamp(24px, 4vw, 40px);
  background: rgba(24, 20, 17, 0.88);
  color: var(--paper);
  border: 1px solid rgba(247, 240, 229, 0.18);
  overflow: hidden;
}
.feature-panel::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(247, 240, 229, 0.12);
  pointer-events: none;
}
.feature-panel img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  opacity: 0.82;
  margin-bottom: 28px;
}
.panel-kicker {
  font-size: 11px;
  letter-spacing: 0.28em;
  color: var(--rose-soft);
  text-transform: uppercase;
}
.panel-title {
  margin: 10px 0 12px;
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 400;
  line-height: 1.18;
}
.panel-copy {
  margin: 0;
  color: rgba(247, 240, 229, 0.74);
  font-size: 15px;
}

.section {
  padding: clamp(64px, 10vw, 120px) clamp(22px, 6vw, 84px);
}
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}
.section-title {
  font-size: clamp(34px, 5vw, 64px);
}
.section-lead {
  max-width: 560px;
  color: var(--ink-mute);
  margin: 0;
}

.post-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.85fr 0.85fr;
  gap: 18px;
}
.post-card {
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 28px;
  background: rgba(247, 240, 229, 0.82);
  border: 1px solid var(--line);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}
.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(24, 20, 17, 0.12);
}
.post-card.featured {
  background:
    linear-gradient(180deg, rgba(37, 59, 72, 0.9), rgba(24, 20, 17, 0.92)),
    url("/zh-bg-mandala.jpg") right center / cover;
  color: var(--paper);
  grid-row: span 2;
}
.post-meta {
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  text-transform: uppercase;
}
.post-card.featured .post-meta { color: var(--rose-soft); }
.post-card h3 {
  margin: 18px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  line-height: 1.25;
  font-size: clamp(25px, 3.2vw, 44px);
}
.post-card:not(.featured) h3 { font-size: 26px; }
.post-card p {
  margin: 0;
  color: var(--ink-mute);
}
.post-card.featured p { color: rgba(247, 240, 229, 0.74); }
.read-more {
  margin-top: 28px;
  font-family: var(--serif);
  color: var(--rose);
}
.post-card.featured .read-more { color: var(--rose-soft); }

.category-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.category-card {
  padding: 24px;
  min-height: 180px;
  border: 1px solid var(--line);
  background: rgba(247, 240, 229, 0.76);
}
.category-han {
  font-family: var(--serif);
  font-size: 42px;
  color: var(--rose);
  line-height: 1;
}
.category-card h3 {
  margin: 18px 0 8px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
}
.category-card p {
  margin: 0;
  color: var(--ink-mute);
  font-size: 14px;
}

.post-layout {
  max-width: 1040px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 112px) clamp(22px, 6vw, 64px);
}
.post-header {
  padding: clamp(42px, 7vw, 80px);
  background:
    linear-gradient(180deg, rgba(24, 20, 17, 0.82), rgba(37, 59, 72, 0.82)),
    url("/zh-bg-mandala.jpg") center / cover;
  color: var(--paper);
  border: 1px solid rgba(247, 240, 229, 0.16);
}
.post-title { font-size: clamp(40px, 7vw, 88px); }
.post-subtitle {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(247, 240, 229, 0.76);
  font-size: 18px;
}
.article {
  background: rgba(247, 240, 229, 0.88);
  border: 1px solid var(--line);
  border-top: 0;
  padding: clamp(30px, 6vw, 64px);
}
.article h2 {
  margin: 44px 0 14px;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.5vw, 42px);
}
.article p { color: var(--ink-soft); }
.quote-box {
  margin: 28px 0;
  padding: 26px;
  border-left: 4px solid var(--rose);
  background: var(--paper-2);
}
.quote-box p {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
}
.quote-box small { color: var(--ink-mute); }

.footer {
  padding: 44px clamp(22px, 6vw, 84px);
  background: var(--ink);
  color: rgba(247, 240, 229, 0.64);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  font-size: 13px;
}
.footer strong {
  color: var(--paper);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
}

@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
  .section-lead { margin-top: 14px; }
}

@media (max-width: 640px) {
  .topbar { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; justify-content: space-between; gap: 10px; }
  .hero h1 { font-size: 44px; }
  .category-grid { grid-template-columns: 1fr; }
  .feature-panel img { aspect-ratio: 1; }
}
