/* ═══════════════════════════════════════════════════════════
   rineh.art — shared site styles
   ═══════════════════════════════════════════════════════════ */

/* ── Design tokens ───────────────────────────────────────── */
:root {
  --bg:  #0e0b08;
  --sf:  #16110a;
  --sf2: #1c1710;
  --brd: #3a2810;
  --txt: #ede0bc;
  --dim: #8a7a50;
  --gld: #c89030;
  --ghi: #e8b050;
  --rhi: #b84040;
  --grn: #4a8050;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 20% 10%, rgba(90,50,12,.30) 0%, transparent 48%),
    radial-gradient(ellipse at 80% 92%, rgba(55,28,8,.34) 0%, transparent 48%),
    radial-gradient(ellipse at 50% 50%, rgba(30,14,4,.18) 0%, transparent 70%);
  color: var(--txt);
  font-family: 'IM Fell English', Georgia, serif;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page {
  width: 100%;
  padding: 56px 24px 80px;
  background: #2a2016;
  border-left:  1px solid var(--brd);
  border-right: 1px solid var(--brd);
  box-shadow: 0 0 80px rgba(0,0,0,.55);
  min-height: 100vh;
}

@media (max-width: 480px) {
  .page {
    padding: 40px 16px 60px;
    border-left:  none;
    border-right: none;
  }
}

/* ── Back link ───────────────────────────────────────────── */
.back-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--dim);
  margin-bottom: 44px;
  transition: color .2s;
}
.back-link:hover { color: var(--ghi); }
.back-link::before { content: '←'; font-family: serif; font-size: 13px; letter-spacing: 0; }

/* ── Chapter icon ────────────────────────────────────────── */
.ch-icon {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}
.ch-icon svg { filter: drop-shadow(0 3px 14px rgba(200,144,48,.40)); }

/* ── Decorative rule ─────────────────────────────────────── */
.ch-rule {
  display: flex;
  align-items: center;
  margin-bottom: 14px;
}
.ch-rule-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--gld) 28%, var(--gld) 72%, transparent);
}
.ch-rule-gem {
  width: 7px; height: 7px;
  background: var(--gld);
  transform: rotate(45deg);
  margin: 0 11px;
  flex-shrink: 0;
}

/* ── Chapter heading ─────────────────────────────────────── */
.ch-num {
  text-align: center;
  font-family: 'Cinzel', serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .46em;
  color: var(--dim);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ch-title {
  text-align: center;
  font-family: 'Cinzel Decorative', serif;
  font-size: clamp(20px, 5vw, 32px);
  font-weight: 700;
  color: var(--ghi);
  letter-spacing: .05em;
  line-height: 1.25;
  margin-bottom: 12px;
  text-shadow: 0 0 55px rgba(232,176,80,.22);
}

/* ── Intro paragraph ─────────────────────────────────────── */
.intro {
  font-size: 14px;
  line-height: 1.9;
  color: var(--dim);
  text-align: center;
  font-style: italic;
  margin: 24px 0 48px;
}

/* ── Section divider ─────────────────────────────────────── */
.s-div {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 22px;
}
.s-div-line { flex: 1; height: 1px; }
.s-div-line:first-child { background: linear-gradient(to right, transparent, var(--brd)); }
.s-div-line:last-child  { background: linear-gradient(to left,  transparent, var(--brd)); }
.s-div-lbl {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .42em;
  color: var(--dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.s-div-count {
  font-family: 'Cinzel', serif;
  font-size: 9px;
  color: var(--gld);
  opacity: .8;
}

/* ── Footer ──────────────────────────────────────────────── */
.footer {
  border-top: 1px solid var(--brd);
  padding-top: 22px;
  text-align: center;
  font-size: 11px;
  color: var(--dim);
  font-style: italic;
}
.footer a { color: var(--gld); text-decoration: none; }
.footer a:hover { color: var(--ghi); }
