:root {
  --bg: #faf5f0;
  --text: #2c2416;
  --muted: #7a6858;
  --muted-light: #8a7a68;
  --green: #2d6b63;
  --terracotta: #c47a50;
  --blob-orange: #e0945c;
  --blob-gold: #c4a35a;
  --border-light: rgba(0, 0, 0, 0.05);
  --border-medium: rgba(0, 0, 0, 0.08);
  --content-width: 960px;
}

* {
  box-sizing: border-box;
  margin: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  font-family: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 85% 10%, rgba(224, 148, 92, 0.12), transparent 35%),
    radial-gradient(circle at 15% 90%, rgba(45, 107, 99, 0.08), transparent 30%),
    linear-gradient(175deg, #faf5f0 0%, #f3ede4 50%, #f7f1ea 100%);
}

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

/* ---- Layout ---- */

.page-shell {
  width: min(calc(100% - 32px), var(--content-width));
  margin: 0 auto;
  padding: 28px 0 60px;
}

/* ---- Hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 60px 48px 52px;
  min-height: 480px;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 16px 64px rgba(78, 57, 24, 0.10);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 85% 15%, rgba(224, 148, 92, 0.18), transparent 30%),
    radial-gradient(circle at 20% 85%, rgba(45, 107, 99, 0.1), transparent 28%);
  pointer-events: none;
}

/* Blobs */

.blob {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  will-change: transform;
}

.blob--orange {
  top: -80px;
  right: -60px;
  width: 260px;
  height: 260px;
  background: var(--blob-orange);
  opacity: 0.35;
  animation: float-a 10s ease-in-out infinite;
}

.blob--green {
  bottom: -50px;
  left: -60px;
  width: 200px;
  height: 200px;
  background: var(--green);
  opacity: 0.28;
  border-radius: 38% 62% 49% 51% / 59% 42% 58% 41%;
  animation: float-b 12s ease-in-out infinite;
}

.blob--gold {
  top: 52%;
  left: 55%;
  width: 100px;
  height: 100px;
  background: var(--blob-gold);
  opacity: 0.22;
  border-radius: 60% 40% 41% 59% / 47% 55% 44% 53%;
  animation: float-c 8s ease-in-out infinite;
}

@keyframes float-a {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33% { transform: translate(-12px, 8px) rotate(2deg); }
  66% { transform: translate(6px, -6px) rotate(-1deg); }
}

@keyframes float-b {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(10px, -10px) rotate(-3deg); }
}

@keyframes float-c {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-8px, 6px) scale(1.08); }
}

/* Hero content */

.hero-content {
  position: relative;
  z-index: 1;
}

.eyebrow {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.7rem;
  letter-spacing: 0.25em;
  color: var(--terracotta);
  margin-bottom: 24px;
}

.lyric {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 900;
  color: var(--text);
  line-height: 1.08;
  letter-spacing: -0.01em;
  animation: fadeUp 0.7s ease both;
}

.lyric + .lyric {
  padding-left: clamp(1.4em, 4vw, 2.2em);
  animation-delay: 0.15s;
}

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

.hero-divider {
  width: 50px;
  height: 2px;
  background: var(--terracotta);
  margin: 32px 0 36px;
  animation: fadeUp 0.7s 0.3s ease both;
}

/* ---- Buttons ---- */

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  animation: fadeUp 0.7s 0.45s ease both;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  border-radius: 4px 20px 4px 20px;
  border: 2px solid transparent;
  font-family: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, color 180ms ease, border-color 180ms ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn--exhibit {
  background: var(--green);
  color: var(--bg);
}

.btn--exhibit:hover {
  background: #1f524b;
}

.btn--reading {
  background: var(--terracotta);
  color: var(--bg);
  border-radius: 20px 4px 20px 4px;
}

.btn--reading:hover {
  background: #a8603e;
}

.btn--archive {
  background: transparent;
  color: var(--text);
  border-color: var(--green);
}

.btn--archive:hover {
  background: rgba(45, 107, 99, 0.06);
}

.hero-labels {
  display: flex;
  gap: 32px;
  margin-top: 10px;
  font-size: 0.55rem;
  letter-spacing: 0.06em;
  color: rgba(0, 0, 0, 0.15);
  animation: fadeUp 0.7s 0.6s ease both;
}

/* ---- Sections ---- */

.section {
  margin-top: 28px;
  padding: 36px 48px;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  background: var(--bg);
  box-shadow: 0 12px 48px rgba(78, 57, 24, 0.06);
}

.section-eyebrow {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 0.65rem;
  letter-spacing: 0.2em;
  margin-bottom: 10px;
}

.section-eyebrow--green {
  color: var(--green);
}

.section-eyebrow--dark {
  color: var(--text);
}

.section-body {
  font-size: 0.82rem;
  color: var(--muted-light);
  line-height: 1.9;
  max-width: 520px;
}

.section-body code {
  background: rgba(0, 0, 0, 0.03);
  padding: 2px 6px;
  border-radius: 3px;
  font-size: 0.85em;
}

/* ---- Cards ---- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 20px;
}

.card {
  padding: 22px;
  background: rgba(255, 255, 255, 0.5);
  border-radius: 12px;
  border: 1px solid var(--border-light);
}

.card h3 {
  font-family: "Noto Serif SC", "Songti SC", serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.card p {
  font-size: 0.75rem;
  color: var(--muted-light);
  line-height: 1.7;
}

/* ---- Footer ---- */

.footer {
  margin-top: 28px;
  padding: 24px 48px;
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  background: var(--bg);
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  justify-content: space-between;
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  color: rgba(0, 0, 0, 0.2);
  box-shadow: 0 12px 48px rgba(78, 57, 24, 0.05);
}

.footer a {
  text-decoration: none;
  transition: color 180ms ease;
}

.footer a:hover {
  color: var(--text);
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .page-shell {
    width: min(calc(100% - 20px), var(--content-width));
    padding: 16px 0 40px;
  }

  .hero {
    padding: 36px 24px;
    min-height: unset;
    border-radius: 14px;
  }

  .blob--orange {
    width: 160px;
    height: 160px;
    top: -40px;
    right: -40px;
  }

  .blob--green {
    width: 120px;
    height: 120px;
    bottom: -30px;
    left: -30px;
  }

  .blob--gold {
    width: 60px;
    height: 60px;
  }

  .lyric {
    font-size: clamp(2rem, 8vw, 3.5rem);
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    text-align: center;
  }

  .hero-labels {
    flex-direction: column;
    gap: 6px;
    margin-top: 14px;
  }

  .section {
    padding: 28px 24px;
    border-radius: 14px;
  }

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

  .footer {
    flex-direction: column;
    gap: 8px;
    padding: 20px 24px;
    border-radius: 14px;
  }
}
