@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&display=swap');

:root {
  --display:"Cormorant Garamond",Georgia,serif;
  --radius:1.15rem;
}

h1,h2,h3 {font-optical-sizing:auto}
.brand {letter-spacing:.025em;line-height:1}
.passage-scene h1 {font-size:clamp(4.5rem,9.1vw,10.9rem);line-height:.79}
.passage-scene h1 em {font-weight:600}
.author-intro h1,.lead-content h1,.novels-hero h1 {font-weight:700}
.journal-copy h2,.project-grid h3 {letter-spacing:-.03em}
header nav {align-items:center;gap:clamp(.2rem,1vw,.8rem)}
header nav a {
  display:inline-flex;
  align-items:center;
  min-height:38px;
  padding:.5rem .7rem;
  border-radius:999px;
}
header nav a[aria-current] {
  text-decoration:none;
  background:#ffc6981c;
  box-shadow:inset 0 0 0 1px #ffc6983d;
}
header nav a:hover {background:#e9edf31a}
.button,summary,input,select,.scene-controls .motion-toggle {border-radius:.7rem}
.panel,.card,.observation,.journal-card,.project-grid article,.project-links article,
.editorial-text,.film dialog {border-radius:var(--radius);overflow:hidden}
.card img,.book img {border-radius:calc(var(--radius) - 3px) calc(var(--radius) - 3px) 0 0}
.countdown-grid {border-radius:.72rem;overflow:hidden;border:1px solid #ecb78a67}
.scene-steps {border-radius:.75rem;overflow:hidden}
.scene-steps button {border-radius:.55rem}
.creature-dossier img,.editorial-text img,.social-brand img {border-radius:.85rem}
.social-link {display:inline-flex;align-items:center;gap:.55rem}
.social-link img {
  display:block;
  width:17px;
  height:17px;
  object-fit:contain;
  filter:brightness(0) invert(.88);
}
.social-link:hover img {filter:brightness(0) invert(.15)}
footer .footer-social {padding:.4rem .5rem;border-radius:.5rem}
footer .footer-social:hover {background:#ffffff1a;color:var(--ink)}
footer .footer-social:hover img {filter:brightness(0) invert(1)}

.portal-stage {
  position:relative;
  isolation:isolate;
  display:grid;
  align-items:end;
  overflow:hidden;
  min-height:clamp(490px,76svh,850px);
  background:#101826;
  scroll-margin-top:80px;
}
.portal-stage>img,.portal-stage canvas {
  position:absolute;
  width:100%;
  height:100%;
  inset:0;
  object-fit:cover;
}
.portal-stage>img {z-index:-3;object-position:center 45%}
.portal-stage canvas {z-index:-2;opacity:0;transition:opacity .65s ease;pointer-events:none}
.portal-stage[data-rendered=webgl] canvas {opacity:1}
.portal-stage::after {
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(90deg,#080c16ec 0%,#080c1648 38%,transparent 65%),
    linear-gradient(0deg,#080b0fe8,transparent 50%);
  pointer-events:none;
}
.portal-copy {padding-block:clamp(2rem,7vw,6rem)}
.portal-copy h2 {
  font-size:clamp(3.3rem,8vw,8.4rem);
  line-height:.84;
  margin-bottom:.35em;
  max-width:9ch;
  text-shadow:0 5px 25px #000d;
}
.portal-copy .solid {box-shadow:0 0 32px #ffad6b2e}
@media(max-width:720px) {
  header nav a {min-height:38px;padding:.5rem .42rem}
  .passage-scene h1 {font-size:clamp(2.8rem,11vw,5.4rem)}
  .portal-stage {min-height:clamp(470px,72svh,700px)}
  .portal-stage::after {background:linear-gradient(0deg,#080b0f 1%,#080b0f8a 36%,transparent 67%)}
}
@media(prefers-reduced-motion:reduce) {
  .portal-stage canvas {display:none}
}
.portal-pause {
  position:absolute;
  right:clamp(1.15rem,5vw,5rem);
  top:1.15rem;
  background:#111724db;
}
