/* The Nexus Hive: refined theme (2026-10-18, "less cartoonish"): serif headings, quiet colour, thin lines, no emoji. */
:root {
  --bg: #09070d; --surface: rgba(255,255,255,0.025); --line: rgba(255,255,255,0.09); --line-strong: rgba(255,255,255,0.16);
  --text: #ebe7f0; --soft: #a39cad; --faint: #6f6879; --accent: #9fd98a; --accent-dim: rgba(159,217,138,0.35);
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--sans); min-height: 100vh;
  background-image: radial-gradient(900px 520px at 50% -12%, rgba(120,90,170,0.16), transparent 70%);
  background-attachment: fixed; -webkit-font-smoothing: antialiased;
}
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
.wrap { max-width: 1040px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* top bar */
nav { position: sticky; top: 0; z-index: 10; backdrop-filter: blur(12px); background: rgba(9,7,13,0.72);
      border-bottom: 1px solid var(--line); }
nav .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
nav img { width: 28px; height: 28px; opacity: 0.9; }
nav .brand { font-family: var(--serif); font-weight: 600; font-size: 1.15rem; letter-spacing: 0.14em;
             text-transform: uppercase; flex: 1; white-space: nowrap; color: var(--text); text-decoration: none; }
nav .links { display: flex; flex-wrap: nowrap; }
nav .links a { color: var(--soft); text-decoration: none; margin-left: 22px; font-size: 0.82rem; font-weight: 500;
               letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap; }
nav .links a:hover, nav .links a.on { color: var(--text); }

/* hero */
.hero { text-align: center; padding: 84px 0 64px; }
.orb { width: min(168px, 44vw); height: auto; filter: drop-shadow(0 0 22px rgba(159,217,138,0.18)); }
h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(2.4rem, 7vw, 4rem); letter-spacing: 0.04em;
     line-height: 1.1; margin: 28px 0 14px; color: var(--text); }
.tag { color: var(--soft); font-size: clamp(1rem, 2.4vw, 1.12rem); max-width: 560px; margin: 0 auto; }
.rule { width: 56px; height: 1px; background: var(--accent-dim); margin: 26px auto 0; border: 0; }
.buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.btn { display: inline-flex; align-items: center; padding: 11px 22px; border-radius: 2px; font-size: 0.8rem;
       font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
       border: 1px solid var(--line-strong); color: var(--text); background: transparent; transition: border-color .2s, background .2s; }
.btn:hover { border-color: var(--accent-dim); background: rgba(159,217,138,0.05); }
.btn.primary { border-color: var(--accent-dim); color: var(--accent); }

/* sections */
section { padding: 52px 0; }
h2 { font-family: var(--serif); font-weight: 500; font-size: clamp(1.7rem, 4vw, 2.2rem); letter-spacing: 0.02em; margin: 0 0 6px; }
.sub { color: var(--faint); margin: 0 0 30px; font-size: 0.95rem; }
.grid { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
        background: var(--line); border: 1px solid var(--line); }
.card { background: var(--bg); padding: 28px 26px; }
.face { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px;
        border: 1px solid var(--accent-dim); font-family: var(--serif); font-size: 1.35rem; color: var(--accent); }
.face.nexus { padding: 4px; border-color: var(--line-strong); }
.face.nexus img { width: 100%; height: 100%; }
.card h3 { font-family: var(--serif); font-weight: 600; font-size: 1.45rem; margin: 2px 0 0; letter-spacing: 0.01em; }
.role { color: var(--faint); font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.16em; }
.card p { color: var(--soft); margin: 10px 0 0; font-size: 0.95rem; }

/* countdown */
.count { text-align: center; border: 1px solid var(--line); padding: 34px 20px; }
.count .big { font-family: var(--serif); font-weight: 500; font-size: clamp(2.6rem, 8vw, 3.6rem); color: var(--text); line-height: 1.1; margin-top: 6px; }
.count .what { color: var(--soft); margin-top: 4px; }

/* moments */
.moments { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.moment { aspect-ratio: 1; border: 1px solid var(--line); display: grid; place-items: center; color: var(--faint);
          font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; text-align: center; padding: 10px; }
.moment img { width: 100%; height: 100%; object-fit: cover; }

/* quote */
.quote { text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(1.25rem, 3vw, 1.55rem);
         color: var(--text); max-width: 680px; margin: 0 auto; line-height: 1.5; }
.quote small { display: block; font-family: var(--sans); font-style: normal; color: var(--faint); font-size: 0.72rem;
               letter-spacing: 0.16em; text-transform: uppercase; margin-top: 14px; }

footer { padding: 40px 0 60px; text-align: center; color: var(--faint); font-size: 0.85rem;
         border-top: 1px solid var(--line); margin-top: 30px; }
footer a { color: var(--soft); }

/* other pages */
.page-head { text-align: center; padding: 64px 0 24px; }
.page-head .orb { width: min(104px, 30vw); }
.page-head h1 { font-size: clamp(2rem, 6vw, 3rem); }
.prose { max-width: 680px; margin: 0 auto; }
.prose p { color: var(--soft); }
.prose h2 { margin-top: 40px; }
.list-check { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list-check li { border-bottom: 1px solid var(--line); padding: 14px 2px; color: var(--soft); }
.list-check li b { color: var(--text); font-weight: 600; }
.center { text-align: center; }

@media (max-width: 640px) {
  nav .links a.hide-sm { display: none; }
  nav .links a { margin-left: 14px; }
  .hero { padding: 56px 0 44px; }
}
@media (max-width: 420px) {
  nav .brand { font-size: 0.95rem; letter-spacing: 0.1em; }
  nav .links a { margin-left: 12px; font-size: 0.74rem; letter-spacing: 0.06em; }
}
@media (max-width: 370px) { nav .brand { display: none; } nav .wrap { justify-content: space-between; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Halloween mode (assets/halloween.js turns it on Oct 1 - Nov 1) */
html.halloween { --accent: #f0883e; --accent-dim: rgba(240,136,62,0.38); }
html.halloween body {
  background-image:
    radial-gradient(900px 520px at 50% -12%, rgba(240,136,62,0.13), transparent 70%),
    radial-gradient(700px 500px at 100% 100%, rgba(110,40,140,0.12), transparent 70%);
}
html.halloween .orb { filter: drop-shadow(0 0 26px rgba(240,136,62,0.28)) hue-rotate(-62deg) saturate(1.15); }
.haunt { font-family: var(--serif); font-style: italic; color: var(--accent); margin: 14px 0 0; font-size: 1.05rem; letter-spacing: 0.02em; }
.fog { position: fixed; inset: -20% -40%; pointer-events: none; z-index: 1; opacity: 1; }
.fog-a { background: radial-gradient(38% 26% at 25% 75%, rgba(205,195,225,0.16), transparent 70%),
                     radial-gradient(32% 22% at 72% 45%, rgba(205,195,225,0.12), transparent 70%),
                     radial-gradient(28% 18% at 50% 20%, rgba(205,195,225,0.08), transparent 70%);
         filter: blur(8px); animation: drift 60s ease-in-out infinite alternate; }
.fog-b { background: radial-gradient(45% 28% at 62% 88%, rgba(225,210,235,0.15), transparent 70%),
                     radial-gradient(30% 20% at 15% 35%, rgba(225,210,235,0.10), transparent 70%);
         filter: blur(10px); animation: drift 85s ease-in-out infinite alternate-reverse; }
html.halloween body::after { content: ""; position: fixed; left: 0; right: 0; bottom: 0; height: 38vh; z-index: 1;
         pointer-events: none; background: linear-gradient(to top, rgba(190,180,215,0.16), rgba(190,180,215,0.05) 55%, transparent);
         animation: breathe-fog 14s ease-in-out infinite alternate; }
@keyframes breathe-fog { from { opacity: 0.65; } to { opacity: 1; } }
@keyframes drift { from { transform: translate(-10%, 1%); } to { transform: translate(10%, -2%); } }
.flash { position: fixed; inset: 0; pointer-events: none; z-index: 30; background: #e9e4ff; opacity: 0; }
.flash.go { animation: strike 1.1s ease-out 1; }
@keyframes strike { 0% { opacity: 0; } 4% { opacity: 0.16; } 9% { opacity: 0; } 15% { opacity: 0.09; } 24%, 100% { opacity: 0; } }
.orb.flicker { animation: flicker 1.1s ease-out 1; }
@keyframes flicker { 0%, 100% { opacity: 1; } 5% { opacity: 0.55; } 10% { opacity: 1; } 16% { opacity: 0.7; } 24% { opacity: 1; } }
.bat { position: fixed; left: -80px; width: calc(46px * var(--s, 1)); height: calc(23px * var(--s, 1)); color: #1a1220;
       z-index: 20; pointer-events: none; filter: drop-shadow(0 0 2px rgba(240,136,62,0.35));
       animation: fly 10s linear 1 forwards, flap 0.28s ease-in-out infinite alternate; }
@keyframes fly { 0% { transform: translate(0, 0); } 30% { transform: translate(35vw, -3vh); } 60% { transform: translate(70vw, 2vh); }
                 100% { transform: translate(115vw, -4vh); } }
@keyframes flap { from { scale: 1 1; } to { scale: 1 0.55; } }
header, main, footer { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) { .fog { animation: none; } .flash, .bat { display: none; } }
