
:root {
  --bg: #02030a;
  --panel: rgba(5, 9, 25, .84);
  --panel-strong: rgba(8, 13, 36, .94);
  --line: rgba(112, 191, 255, .32);
  --cyan: #68efff;
  --blue: #73a9ff;
  --pink: #ff5ccf;
  --gold: #ffd66e;
  --text: #e9f8ff;
  --muted: #b9d8e8;
  --shadow: 0 18px 55px rgba(0,0,0,.45);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image:
    radial-gradient(circle at 50% 0%, rgba(71, 85, 180, .18), transparent 38%),
    url('../img/stars.jpg');
  background-attachment: fixed;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  font-size: 18px;
}
body::before {
  content: "";
  position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: linear-gradient(180deg, rgba(0,0,0,.05), rgba(0,0,0,.42));
}
a { color: var(--cyan); text-decoration: none; text-underline-offset: 3px; }
a:hover { color: #fff; text-decoration: underline; }
img { max-width: 100%; height: auto; }
.responsive-image { display: block; }
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(2, 4, 15, .88);
  border-bottom: 1px solid rgba(111, 214, 255, .25);
  backdrop-filter: blur(16px);
  box-shadow: 0 8px 28px rgba(0,0,0,.35);
}
.header-inner {
  width: min(1200px, calc(100% - 32px)); margin: 0 auto;
  min-height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.brand { display:flex; align-items:center; gap:12px; color:#fff; text-decoration:none; flex-shrink:0; }
.brand:hover { text-decoration:none; }
.brand strong { display:block; font-size:1rem; letter-spacing:.18em; }
.brand small { display:block; color:#8fbfd1; font-size:.72rem; letter-spacing:.04em; }
.brand-mark {
  width:44px; height:44px; border-radius:50%; display:grid; place-items:center;
  font-weight:900; font-size:1.45rem; color:#fff;
  background: linear-gradient(145deg, #f34fd0, #49e9ff);
  box-shadow: 0 0 24px rgba(70,221,255,.4);
  border: 2px solid rgba(255,255,255,.8);
}
.site-nav { display:flex; flex-wrap:wrap; justify-content:flex-end; gap:6px; }
.site-nav a { padding:8px 11px; border-radius:999px; color:#ccefff; font-size:.88rem; transition:.2s ease; }
.site-nav a:hover { background:rgba(90,211,255,.12); text-decoration:none; color:#fff; }
.site-main { width:min(1080px, calc(100% - 28px)); margin:0 auto; padding:42px 0 70px; }
.centered { text-align:center; }
.hero { margin: 0 auto 30px; border-radius:24px; overflow:hidden; box-shadow:var(--shadow); border:1px solid rgba(130,220,255,.25); background:#000; }
.hero img { width:100%; max-height:430px; object-fit:cover; object-position:center; }
.reading-card, .intro-card, .legacy-table {
  width: min(920px, 100%); margin: 24px auto; padding: 28px clamp(20px, 4vw, 44px);
  background: var(--panel); border:1px solid var(--line); border-radius:20px;
  box-shadow:var(--shadow); backdrop-filter: blur(7px);
}
.reading-card { font-size:1rem; }
.legacy-row { display:block; }
.legacy-cell { display:block; }
.bookmark-grid { width:100%; display:grid; grid-template-columns:repeat(auto-fit,minmax(300px,1fr)); gap:16px; margin:24px auto; }
.bookmark-card { min-height:116px; padding:16px; display:flex; align-items:center; gap:18px; background:linear-gradient(145deg,rgba(11,20,52,.94),rgba(4,9,27,.9)); border:1px solid rgba(102,205,255,.28); border-radius:18px; box-shadow:0 12px 30px rgba(0,0,0,.28); transition:transform .2s, border-color .2s, box-shadow .2s; }
.bookmark-card:hover { transform:translateY(-3px); border-color:rgba(119,239,255,.62); box-shadow:0 16px 34px rgba(0,0,0,.38); }
.bookmark-icon { flex:0 0 62px; }
.bookmark-icon img { width:58px; height:58px; border-radius:14px; object-fit:cover; }
.bookmark-copy { flex:1; }
.bookmark-copy a { font-size:1.05rem; font-weight:700; }
.alien-grid { width:100%; margin:28px auto; }
.alien-grid-row { display:grid; grid-template-columns:repeat(3, 1fr); gap:18px; }
.alien-grid-row > .legacy-cell { padding:24px; background:var(--panel); border:1px solid var(--line); border-radius:18px; box-shadow:var(--shadow); }
h1,h2,h3,h4 { line-height:1.15; color:#fff; letter-spacing:.01em; }
h1 { font-size:clamp(2rem,5vw,3.5rem); }
h2 { font-size:clamp(1.55rem,3vw,2.3rem); }
h3 { font-size:1.2rem; }
p, li { max-width:80ch; }
.hero + .centered, .centered > h1, .centered > h2 { text-shadow:0 0 24px rgba(80,220,255,.22); }
.cosmic-rule { border:0; height:1px; width:90%; margin:28px auto; background:linear-gradient(90deg,transparent,rgba(100,221,255,.65),rgba(255,92,207,.65),transparent); }
.legacy-display { font-size:clamp(2rem,5vw,3.6rem); line-height:1.1; }
.legacy-title { font-size:clamp(1.65rem,4vw,2.6rem); line-height:1.15; }
.legacy-large { font-size:1.25rem; }
.legacy-body { font-size:1rem; }
.responsive-image[align="left"], .responsive-image[align="right"] { margin: 0 18px 14px 0; }
ul, ol { padding-left:1.4em; }
li { margin:.45em 0; }
address { color:var(--muted); }
.site-footer { border-top:1px solid rgba(100,207,255,.22); background:rgba(2,4,15,.82); }
.footer-inner { width:min(1080px,calc(100% - 28px)); margin:0 auto; padding:26px 0; display:flex; justify-content:space-between; gap:20px; color:#8fb7c8; font-size:.86rem; }
.footer-inner strong { color:#dff8ff; letter-spacing:.12em; }
.footer-links { display:flex; flex-wrap:wrap; gap:14px; align-items:center; }
.skip-link { position:fixed; left:12px; top:-80px; z-index:2000; padding:10px 14px; background:#fff; color:#000; border-radius:8px; }
.skip-link:focus { top:12px; }
/* Home page */
.page-index .site-main > .centered:first-of-type { display:block; }
.page-index .site-main > .centered:first-of-type > img[src*="hbhgtd"] { width:min(720px,100%); margin:18px auto; border-radius:18px; box-shadow:var(--shadow); }
.page-index .site-main > .centered:first-of-type { font-size:1.05rem; }
/* Long transcripts */
.page-transcript1 .reading-card, .page-transcript2 .reading-card { max-width:900px; }
.page-transcript1 .reading-card, .page-transcript2 .reading-card { font-family: Georgia, "Times New Roman", serif; font-size:1.08rem; line-height:1.8; }
/* Priestess archive is visually separated from the main Heaven's Gate pages. */
.page-priestesses { background-image: radial-gradient(circle at 50% 0%, rgba(135,55,130,.18), transparent 40%), url('../img/stars.jpg'); }
.page-priestesses .box { width:min(700px,100%); margin:20px auto; padding:20px; border:1px solid rgba(255,102,207,.4); border-radius:16px; background:rgba(35,8,38,.7); }
.page-priestesses .legacy-table { max-width:900px; }
@media (max-width: 820px) {
  .header-inner { align-items:flex-start; padding:12px 0; flex-direction:column; }
  .site-nav { justify-content:flex-start; }
  .site-nav a { padding:7px 9px; }
  .alien-grid-row { grid-template-columns:1fr; }
  .footer-inner { flex-direction:column; }
}
@media (max-width: 520px) {
  body { font-size:16px; }
  .site-main { padding-top:24px; }
  .bookmark-grid { grid-template-columns:1fr; }
  .bookmark-card { min-height:96px; }
  .brand strong { font-size:.92rem; }
}
