@import url('https://fonts.googleapis.com/css2?family=Noto+Serif+KR:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500&display=swap');

:root {
  --bg: #f6f1e7;
  --bg-alt: #efe7d6;
  --ink: #2f2a24;
  --ink-soft: #6b6154;
  --accent: #8a1f2d;
  --accent-soft: #b9553f;
  --gold: #b08d47;
  --line: #ddd1b8;
  --card: #fffdf8;
  --shadow: 0 18px 40px rgba(60, 40, 20, 0.12);
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 10%, rgba(176, 141, 71, 0.10), transparent 45%),
    radial-gradient(circle at 90% 85%, rgba(138, 31, 45, 0.08), transparent 50%),
    var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.7;
}

.layout {
  max-width: 1080px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
  align-items: start;
}

/* ---------- Sidebar ---------- */
.sidebar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 32px;
}

.brand {
  display: block;
  text-decoration: none;
  color: var(--ink);
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.brand .cross {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--accent), var(--accent-soft));
  border-radius: 10px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.brand .title {
  display: block;
  font-family: "Noto Serif KR", serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.brand .subtitle {
  display: block;
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-top: 4px;
}

.nav-label {
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 12px 4px;
  text-transform: uppercase;
}

.nav {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.nav a .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--line);
  transition: background 0.15s ease;
}

.nav a:hover {
  background: var(--bg-alt);
  transform: translateX(2px);
}

.nav a.active {
  background: linear-gradient(135deg, var(--accent), var(--accent-soft));
  color: #fff;
  box-shadow: 0 8px 18px rgba(138, 31, 45, 0.28);
}

.nav a.active .dot {
  background: #fff;
}

.nav a:not(.active):hover .dot {
  background: var(--gold);
}

/* ---------- Main content ---------- */
.main {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 44px 48px;
  box-shadow: var(--shadow);
  min-height: 520px;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin-bottom: 12px;
}

h1 {
  font-family: "Noto Serif KR", serif;
  font-size: 30px;
  margin: 0 0 18px;
  color: var(--ink);
}

/* Home hero */
.hero-image {
  display: block;
  width: 100%;
  max-width: 480px;
  margin: 0 auto 32px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(60, 40, 20, 0.22);
  border: 6px solid var(--card);
  outline: 1px solid var(--line);
}

.hero-image img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.hero-text h1 {
  text-align: center;
}

.verse {
  font-family: "Noto Serif KR", serif;
  font-style: italic;
  font-size: 17px;
  color: var(--accent);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  margin: 24px 0;
}

.hero-text p {
  color: var(--ink-soft);
  font-size: 15.5px;
}

/* Detail page */
.detail-card {
  max-width: 520px;
  margin: 10px auto 0;
  text-align: center;
}

.detail-card .icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 18px;
  border-radius: 16px;
  background: linear-gradient(160deg, var(--accent), var(--accent-soft));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  box-shadow: 0 10px 22px rgba(138, 31, 45, 0.25);
}

.detail-card .label {
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 10px;
}

.detail-card .value {
  font-family: "Noto Serif KR", serif;
  font-size: 34px;
  font-weight: 700;
  color: var(--ink);
  padding: 28px 20px;
  background: var(--bg-alt);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 30px;
  color: var(--accent);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.back-link:hover {
  text-decoration: underline;
}

footer.site-footer {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 24px 40px;
  text-align: center;
  color: var(--ink-soft);
  font-size: 12.5px;
}

@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .main {
    padding: 32px 24px;
  }
}
