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

:root {
  --forest: #2f4a3d;
  --forest-dark: #1e332a;
  --gold: #b08d57;
  --gold-light: #d9c39a;
  --cream: #faf6ee;
  --paper: #fffdf8;
  --ink: #2b2823;
  --ink-soft: #6b665c;
  --line: #e6ddc9;
  --shadow: 0 12px 32px rgba(43, 40, 35, 0.10);
  --radius: 18px;
}

* {
  box-sizing: border-box;
}

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

body {
  background: var(--cream);
  color: var(--ink);
  font-family: 'Noto Sans KR', -apple-system, 'Malgun Gothic', sans-serif;
  min-height: 100vh;
}

.layout {
  display: flex;
  min-height: 100vh;
}

/* ---------- Sidebar ---------- */
.sidebar {
  flex: 0 0 260px;
  background: linear-gradient(180deg, var(--forest) 0%, var(--forest-dark) 100%);
  color: #f3efe4;
  padding: 44px 30px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.brand .cross {
  font-size: 26px;
  color: var(--gold-light);
  line-height: 1;
}

.brand .title {
  font-family: 'Noto Serif KR', serif;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand .subtitle {
  font-size: 12.5px;
  color: #cfc9b6;
  letter-spacing: 0.04em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #e9e4d6;
  text-decoration: none;
  font-size: 15px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.nav a .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold-light);
  opacity: 0.6;
  flex: 0 0 auto;
}

.nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  transform: translateX(2px);
}

.nav a.active {
  background: rgba(217, 195, 154, 0.16);
  border-color: rgba(217, 195, 154, 0.35);
  color: #fff;
  font-weight: 500;
}

.nav a.active .dot {
  opacity: 1;
}

.sidebar-footer {
  margin-top: auto;
  font-size: 12px;
  color: #a7a08c;
  line-height: 1.6;
}

/* ---------- Main content ---------- */
.main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 40px;
}

.home-content {
  max-width: 720px;
  width: 100%;
  text-align: center;
}

.prayer-image {
  width: 100%;
  max-width: 520px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 6px solid var(--paper);
}

.home-verse {
  margin-top: 34px;
  font-family: 'Noto Serif KR', serif;
  font-size: 22px;
  line-height: 1.75;
  color: var(--forest-dark);
}

.home-verse strong {
  color: var(--gold);
}

.home-sub {
  margin-top: 16px;
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.8;
}

/* ---------- Sub pages ---------- */
.detail-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 64px 72px;
  max-width: 560px;
  width: 100%;
  text-align: center;
}

.detail-label {
  font-size: 13.5px;
  letter-spacing: 0.14em;
  color: var(--gold);
  text-transform: uppercase;
  font-weight: 700;
}

.detail-value {
  margin-top: 18px;
  font-family: 'Noto Serif KR', serif;
  font-size: 40px;
  font-weight: 700;
  color: var(--forest-dark);
}

.detail-divider {
  width: 46px;
  height: 3px;
  background: var(--gold-light);
  border-radius: 2px;
  margin: 26px auto;
}

.detail-desc {
  font-size: 14.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}

.back-link {
  display: inline-block;
  margin-top: 34px;
  font-size: 13.5px;
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid var(--gold-light);
  padding-bottom: 2px;
}

.back-link:hover {
  color: var(--gold);
}

@media (max-width: 780px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    flex: none;
    flex-direction: row;
    align-items: center;
    padding: 20px 18px;
    gap: 18px;
    overflow-x: auto;
  }
  .brand { display: none; }
  .nav { flex-direction: row; }
  .sidebar-footer { display: none; }
  .main { padding: 36px 18px; }
  .detail-card { padding: 44px 28px; }
  .detail-value { font-size: 30px; }
}
