/* Kyshara — shared site chrome (nav, footer, legal pages, The Kyshara Realm).
   Brand tokens synced to lander.html/readings.php's "Keisera temple" palette (2026-07-13
   redesign) — same variable names as before, updated values, so every usage site below
   picks up the new palette automatically without a full rewrite. lander.html itself keeps
   its own inline copy of these same values (it must stay a standalone file, see index.php). */

:root {
  --gold: #c9a24b;
  --champagne: #e9d29a;
  --onyx: #05060b;
  --graphite: #0a0c15;
  --pearl: #cfc9bd;
  --dim: #8b8578;
  --gold-grad: linear-gradient(135deg, #e9d29a 0%, #c9a24b 45%, #9c7c39 100%);
}

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

body {
  background: var(--onyx);
  color: var(--pearl);
  font-family: 'Jost', system-ui, sans-serif;
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  color: var(--champagne);
  line-height: 1.2;
}

h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 0.6em; }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 1.6em; margin-bottom: 0.5em; }
h3 { font-size: 1.15rem; margin-bottom: 0.3em; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--champagne); text-decoration: underline; }

.skip-link {
  position: absolute; left: -999px; top: 0;
  background: var(--gold); color: var(--onyx); padding: 10px 16px; z-index: 1000;
}
.skip-link:focus { left: 10px; top: 10px; }

/* ── header / nav ─────────────────────────────────────────────────────── */
header {
  border-bottom: 1px solid rgba(201,162,75,.2);
  background: var(--onyx);
}
.header-container {
  max-width: 1100px; margin: 0 auto; padding: 18px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  flex-wrap: wrap;
}
.logo a {
  font-family: 'Cinzel', serif; font-weight: 600;
  font-size: 1.1rem; letter-spacing: .3em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  text-decoration: none;
}
nav[role="navigation"] ul {
  list-style: none; display: flex; gap: 22px; flex-wrap: wrap;
}
nav[role="navigation"] a {
  font-family: 'Jost', sans-serif; color: var(--dim); font-size: .8rem;
  letter-spacing: .14em; text-transform: uppercase;
}
nav[role="navigation"] a:hover { color: var(--gold); text-decoration: none; }
.hamburger { display: none; background: none; border: 0; cursor: pointer; }
.hamburger-icon, .hamburger-icon::before, .hamburger-icon::after {
  display: block; width: 22px; height: 2px; background: var(--pearl); position: relative;
}
@media (max-width: 720px) {
  nav[role="navigation"] ul { display: none; }
  .hamburger { display: block; }
}

main { min-height: 60vh; }

/* ── generic content container (legal pages, about, contact) ────────────── */
.container {
  max-width: 760px; margin: 0 auto; padding: 48px 24px 80px;
}
.container .lead {
  font-size: 1.1rem; color: var(--champagne); margin-bottom: 1.4em;
}
.section { margin-bottom: 1.6em; }
.section p, .section li { color: rgba(207,201,189,.85); margin-bottom: .6em; }
.section ul, .section ol { padding-left: 1.4em; margin-bottom: .8em; }

/* ── footer ───────────────────────────────────────────────────────────── */
footer {
  border-top: 1px solid rgba(201,162,75,.2);
  background: var(--graphite);
  margin-top: 40px;
}
.footer-container { max-width: 1100px; margin: 0 auto; padding: 40px 24px 28px; }
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 28px; margin-bottom: 28px;
}
.footer-column h3 { color: var(--gold); font-size: .95rem; margin-bottom: .7em; }
.footer-column ul { list-style: none; }
.footer-column li { margin-bottom: .45em; }
.footer-column a { color: rgba(207,201,189,.75); font-size: .9rem; }
.footer-column a:hover { color: var(--gold); }
.footer-bottom {
  border-top: 1px solid rgba(201,162,75,.12); padding-top: 18px;
  font-size: .8rem; color: rgba(207,201,189,.5);
}
.footer-bottom p { margin-bottom: .3em; }
.footer-link-accent { color: var(--gold); text-decoration: underline; }

/* ── cookie consent banner (mirrors the mechanism already used on the homepage) ── */
.cc-banner {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99999;
  background: var(--onyx); color: var(--pearl); padding: 14px 20px;
  font: 14px/1.5 -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--gold);
}
.cc-banner-text { max-width: 640px; }
.cc-banner-actions { display: flex; gap: 8px; flex-shrink: 0; }
.cc-banner-actions button {
  padding: 8px 16px; border-radius: 6px; cursor: pointer; font-size: 13px;
}
#cc-reject { background: transparent; color: var(--pearl); border: 1px solid #666; }
#cc-accept { background: var(--gold); color: var(--onyx); border: 0; font-weight: 600; }

/* ── The Kyshara Realm ────────────────────────────────────────────────── */
.realm-container { max-width: 920px; }
.realm-eyebrow {
  display: block; font-size: .72rem; letter-spacing: .3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .5em;
}
.realm-featured {
  border: 1px solid rgba(201,162,75,.3); border-radius: 10px;
  margin: 24px 0 32px; background: rgba(201,162,75,.04);
  overflow: hidden; display: flex; flex-wrap: wrap;
}
.realm-featured-image {
  width: 100%; max-width: 340px; height: auto; display: block; object-fit: cover;
}
.realm-featured-text { padding: 24px; flex: 1; min-width: 240px; }
.realm-featured h2 { margin-top: 0; }
.realm-meta { color: rgba(207,201,189,.5); font-size: .85rem; }
.realm-hero-image {
  width: 100%; height: auto; border-radius: 10px; margin: 1em 0 1.4em;
  border: 1px solid rgba(201,162,75,.18);
}
.realm-card-image-link { display: block; margin: -20px -20px 16px; }
.realm-card-image {
  width: 100%; height: auto; display: block;
  border-radius: 10px 10px 0 0;
}

.realm-search {
  display: flex; gap: 10px; margin: 24px 0 18px; flex-wrap: wrap;
}
.realm-search input[type="search"] {
  flex: 1; min-width: 200px; padding: 10px 14px; border-radius: 8px;
  border: 1px solid rgba(201,162,75,.3); background: var(--graphite); color: var(--pearl);
}
.realm-search button {
  padding: 10px 18px; border-radius: 8px; border: 0; background: var(--gold);
  color: var(--onyx); font-weight: 600; cursor: pointer;
}
.realm-clear { align-self: center; font-size: .85rem; }

.realm-toolbar {
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px; margin-bottom: 20px;
  font-size: .85rem; color: rgba(207,201,189,.6);
}
.realm-perpage { display: flex; gap: 6px; }
.realm-perpage a {
  padding: 4px 10px; border-radius: 6px; border: 1px solid rgba(201,162,75,.25);
  color: rgba(207,201,189,.7); font-size: .82rem;
}
.realm-perpage a.active { background: var(--gold); color: var(--onyx); border-color: var(--gold); }

.realm-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.realm-card {
  border: 1px solid rgba(201,162,75,.18); border-radius: 10px; padding: 20px;
  background: rgba(255,255,255,.02);
}
.realm-card h3 { margin-top: 0; font-size: 1.1rem; }
.realm-card p { color: rgba(207,201,189,.75); font-size: .92rem; }
.realm-empty { color: rgba(207,201,189,.5); padding: 30px 0; }

.realm-pagination {
  display: flex; justify-content: center; align-items: center; gap: 24px;
  margin-top: 32px; font-size: .9rem;
}
.realm-pagination-disabled { color: rgba(207,201,189,.25); }

.realm-tags { margin: .8em 0 1.2em; }
.realm-tag {
  display: inline-block; font-size: .75rem; padding: 3px 10px; margin: 0 6px 6px 0;
  border-radius: 999px; border: 1px solid rgba(201,162,75,.3); color: var(--gold);
  text-decoration: none; transition: background .25s, border-color .25s;
}
a.realm-tag:hover {
  background: rgba(201,162,75,.12); border-color: rgba(201,162,75,.6); color: var(--champagne);
  text-decoration: none;
}
.realm-body { margin-top: 1.4em; }
.realm-body p { margin-bottom: 1em; color: rgba(207,201,189,.85); }
.realm-body h2 { margin-top: 1.4em; }
.realm-body blockquote {
  border-left: 3px solid var(--gold); padding: .6em 1.2em; margin: 1.4em 0;
  font-style: italic; color: var(--champagne); background: rgba(201,162,75,.04);
}
.realm-breadcrumb { font-size: .82rem; color: rgba(207,201,189,.5); margin-bottom: 1.2em; }
.realm-back { margin-top: 2.4em; }

/* ── Launch announcement banner ──────────────────────────────────────── */
#ky-launch-banner {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; text-align: center;
  background: var(--gold-grad); color: var(--onyx);
  font-family: 'Cinzel', serif; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase;
}
#ky-launch-banner a { color: var(--onyx); text-decoration: underline; font-weight: 600; }
@media (max-width: 640px) {
  #ky-launch-banner { flex-wrap: wrap; font-size: 10.5px; padding: 8px 12px; line-height: 1.5; }
  #ky-launch-banner a { display: block; width: 100%; }
}
