/* sanctipedia.com */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --bg:     #0f1623;
  --fg:     #f0ead8;
  --gold:   #b89a4e;
  --pale:   #c8bfa8;
  --dim:    rgba(240,234,216,0.45);
  --rule:   rgba(184,154,78,0.3);
}
[data-theme="light"] {
  --bg:     #f0ead8;
  --fg:     #0f1623;
  --gold:   #8a7020;
  --pale:   #4a4030;
  --dim:    rgba(15,22,35,0.45);
  --rule:   rgba(138,112,32,0.25);
}

html { font-size: 16px; }
body {
  background-color: var(--bg);
  background-image: url('parchment-speckle-dark.jpg');
  background-repeat: repeat; background-size: 512px 512px;
  color: var(--fg); font-family: 'EB Garamond', Georgia, serif;
  min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
}
[data-theme="light"] body { background-image: url('parchment-speckle-light.jpg'); }

/* HEADER */
header { padding: 2rem 2.5rem; border-bottom: 1px solid var(--rule); display: flex; justify-content: space-between; align-items: center; }
.header-inner { display: flex; align-items: center; gap: 1.2rem; }
.wordmark { font-family: 'Playfair Display', serif; font-size: 1rem; font-weight: 500; letter-spacing: 0.08em; color: var(--gold); }
.header-rule { flex: 0 0 1px; width: 1px; height: 1rem; background: var(--rule); }
.sub-mark { font-family: 'EB Garamond', serif; font-size: 0.8rem; font-style: italic; color: var(--dim); letter-spacing: 0.04em; }
.toggle-btn {
  background: none; border: 1px solid var(--rule); color: var(--gold);
  font-family: 'EB Garamond', serif; font-size: 0.6rem; letter-spacing: 0.14em;
  text-transform: uppercase; padding: 0.3rem 0.7rem; cursor: pointer; opacity: 0.55;
}
.toggle-btn:hover { opacity: 1; border-color: var(--gold); }

/* HERO */
.hero { padding: 6rem 2.5rem 4rem; border-bottom: 1px solid var(--rule); }
.hero-inner { max-width: 700px; }
.entry-label { font-family: 'Inconsolata', monospace; font-size: 0.7rem; font-weight: 300; letter-spacing: 0.2em; text-transform: uppercase; color: var(--gold); opacity: 0.75; margin-bottom: 1.4rem; }
h1 { font-family: 'EB Garamond', serif; font-weight: 400; font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: 1.15; color: var(--fg); margin-bottom: 2rem; }
h1 em { font-style: italic; color: var(--pale); }
.hero-def { font-size: 1.1rem; line-height: 1.9; color: var(--dim); font-weight: 400; max-width: 580px; }
.term { font-style: italic; color: var(--gold); opacity: 0.8; }
.ornament { text-align: right; font-size: 0.7rem; color: var(--gold); opacity: 0.3; letter-spacing: 0.6em; margin-top: 2rem; }

/* BODY COPY */
.body-copy { padding: 5rem 2.5rem 6rem; flex: 1; }
.content-col { max-width: 620px; }
.drop-cap { font-size: 2.3rem; line-height: 1.75; color: var(--fg); opacity: 0.82; margin-bottom: 1.8rem; }
.body-copy p { font-size: 2.1rem; line-height: 1.9; color: var(--fg); opacity: 0.6; margin-bottom: 1.6rem; font-weight: 400; }
.body-copy p em { font-style: italic; opacity: 1; color: var(--fg); }
blockquote {
  margin: 3rem 0; padding: 1.4rem 1.8rem;
  border: 1px solid var(--rule); border-left: 3px solid var(--gold);
  font-size: 1.15rem; line-height: 1.8; font-style: italic;
  color: var(--fg); opacity: 0.75; background: rgba(184,154,78,0.03);
}
.divider { display: flex; align-items: center; gap: 1rem; margin: 3rem 0 2.5rem; }
.rule-line { flex: 1; height: 1px; max-width: 3rem; background: var(--rule); }
.diamond { font-size: 0.5rem; color: var(--gold); opacity: 0.5; }
.status-note { font-family: 'Inconsolata', monospace; font-size: 0.65rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--fg); opacity: 0.18; margin-bottom: 0 !important; }

/* FOOTER */
footer { padding: 1.8rem 2.5rem; border-top: 1px solid var(--rule); }
.copy { font-size: 0.68rem; letter-spacing: 0.08em; opacity: 0.2; color: var(--fg); font-family: 'Inconsolata', monospace; }

/* ANIMATION */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.content-col { animation: fadeUp 0.85s 0.12s ease both; }
