:root {
  --bg: #f4efe6;
  --card: rgba(255, 255, 255, 0.98);
  --ink: #1b1916;
  --muted: #5c564f;
  --accent: #d14b27;
  --accent-dark: #7f2d1a;
  --line: rgba(26, 26, 26, 0.12);
  --shadow: 0 24px 60px rgba(95, 70, 56, 0.22);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Source Sans Pro", "PingFang SC", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at 20% 20%, #fdd9bf 0, transparent 45%),
    radial-gradient(circle at 80% 10%, #f7c7bb 0, transparent 40%),
    linear-gradient(140deg, #f7f2ed, #efe4d7);
}

body.no-scroll {
  overflow: hidden;
}

.bg-orb {
  position: fixed;
  border-radius: 50%;
  opacity: 0.18;
  z-index: 0;
}

.orb-one {
  width: 320px;
  height: 320px;
  background: #ffd0b3;
  top: -80px;
  right: -80px;
}

.orb-two {
  width: 260px;
  height: 260px;
  background: #f7b7a3;
  bottom: -120px;
  left: 10%;
}

.orb-three {
  width: 220px;
  height: 220px;
  background: #ffe7c6;
  top: 40%;
  left: -110px;
}

.site-header {
  position: relative;
  z-index: 1;
  padding: 48px 8vw 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.brand {
  display: flex;
  gap: 16px;
  align-items: center;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: var(--accent);
  color: white;
  font-weight: 700;
  font-size: 28px;
  box-shadow: var(--shadow);
  font-family: "Playfair Display", "Songti SC", serif;
}

.brand h1 {
  margin: 0;
  font-size: clamp(32px, 5vw, 48px);
  font-family: "Playfair Display", "Songti SC", serif;
}

.brand p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.nav-pill {
  border: 1px solid var(--line);
  background: var(--card);
  padding: 8px 16px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
}

.nav-pill.active {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.site-main {
  position: relative;
  z-index: 1;
  padding: 0 8vw 80px;
}

.hero-card {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
  background: var(--card);
  padding: 28px;
  border-radius: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--accent-dark);
}

.hero-card h2 {
  margin: 12px 0;
  font-size: 28px;
  font-family: "Playfair Display", "Songti SC", serif;
}

.hero-card p {
  color: var(--muted);
  line-height: 1.7;
}

.ghost-btn {
  border: 1px solid var(--accent);
  background: transparent;
  color: var(--accent);
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  margin-top: 12px;
}

.hero-meta {
  display: grid;
  gap: 12px;
  align-content: start;
}

.hero-meta strong {
  font-size: 28px;
}

.meta-label {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.content-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.post-card {
  padding: 22px;
  border-radius: 24px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(95, 70, 56, 0.3);
}

.post-card h3 {
  margin: 0 0 10px;
  font-size: 22px;
  font-family: "Playfair Display", "Songti SC", serif;
}

.post-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.post-meta {
  margin-top: 16px;
  font-size: 12px;
  color: var(--muted);
}

.detail-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 6vh 6vw;
  z-index: 10;
}

.detail-overlay.active {
  display: flex;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 16, 12, 0.55);
  backdrop-filter: blur(6px);
}

.detail-card {
  position: relative;
  z-index: 1;
  width: min(980px, 100%);
  max-height: 100%;
  background: #ffffff;
  border-radius: 28px;
  box-shadow: 0 40px 90px rgba(20, 16, 12, 0.3);
  border: 1px solid rgba(26, 26, 26, 0.18);
  padding: 32px;
  overflow: auto;
  animation: fadeIn 0.2s ease;
}

.detail-card h1,
.detail-card h2,
.detail-card h3 {
  margin-top: 24px;
  font-family: "Playfair Display", "Songti SC", serif;
}

.detail-card img {
  max-width: 100%;
  border-radius: 16px;
}

.close-btn {
  position: sticky;
  top: 0;
  float: right;
  border: 1px solid var(--line);
  background: var(--bg);
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.site-footer {
  padding: 30px 8vw 50px;
  color: var(--muted);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 720px) {
  .site-header,
  .site-main,
  .site-footer {
    padding-left: 6vw;
    padding-right: 6vw;
  }

  .detail-card {
    padding: 20px;
  }
}
