/* ============================================================
   COVER — the landing screen, and a lighter coat of paint
   over the top of style.css. Loaded last, so everything in
   here is an override; nothing in style.css had to change.
   ============================================================ */

:root{
  --serif:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,"Songti SC","Noto Serif SC",serif;
  --cover-h:100svh;
}

/* ---------- the cover itself ---------- */
.cover{
  position:relative;z-index:2;
  height:var(--cover-h);min-height:520px;
  display:flex;align-items:flex-end;
  overflow:hidden;
  background:#06080f;
}
@supports not (height:100svh){ .cover{height:100vh} }

.cover-img{position:absolute;inset:0;z-index:0;background:#06080f}
.cover-img img{
  width:100%;height:100%;object-fit:cover;
  /* biased low so the two figures at the bottom of the frame survive the crop
     on tall viewports, while keeping most of the Earth */
  object-position:50% 58%;
  display:block;
  /* The cover is a 640px animated frame doing its own motion. No Ken Burns
     zoom on top — it would only add upscale blur and fight the animation. */
}
/* the still fallback is a big image and does benefit from a slow drift */
.cover-img img[src$=".webp"]{
  animation:coverDrift 60s ease-in-out infinite alternate;
}
@keyframes coverDrift{
  from{transform:scale(1.01) translate3d(0,0,0)}
  to{transform:scale(1.045) translate3d(0,-.7%,0)}
}

/* faint scanlines + a magenta/cyan bloom at the edges — the cyberpunk half */
.cover-scan{
  position:absolute;inset:0;z-index:1;pointer-events:none;mix-blend-mode:screen;opacity:.5;
  background:
    repeating-linear-gradient(180deg,
      rgba(255,255,255,.045) 0 1px, transparent 1px 3px),
    radial-gradient(90% 60% at 3% 50%, rgba(255,110,199,.16), transparent 70%),
    radial-gradient(90% 60% at 97% 46%, rgba(96,232,255,.14), transparent 70%);
}
@media(prefers-reduced-motion:reduce){
  .cover-img img{animation:none}
}

/* melts the photo into the page background so there's no hard seam */
.cover-veil{
  position:absolute;inset:0;z-index:1;pointer-events:none;
  background:
    radial-gradient(120% 78% at 22% 88%, rgba(9,6,12,.72), transparent 62%),
    linear-gradient(180deg, rgba(6,8,15,.42) 0%, transparent 26%, transparent 48%,
      rgba(15,11,18,.55) 74%, rgba(19,13,21,.92) 92%, var(--bg) 100%);
}

/* a few extra twinkles over the sky */
.cover-stars{position:absolute;inset:0;z-index:1;pointer-events:none;opacity:.85}
.cover-stars i{
  position:absolute;width:3px;height:3px;border-radius:50%;
  background:#fff;box-shadow:0 0 7px 2px rgba(255,214,232,.75);
  opacity:0;animation:twinkle 5.5s ease-in-out infinite;
}
.cover-stars i:nth-child(1){top:16%;left:18%;animation-delay:.2s}
.cover-stars i:nth-child(2){top:11%;left:63%;animation-delay:1.6s}
.cover-stars i:nth-child(3){top:27%;left:80%;animation-delay:2.9s;width:2px;height:2px}
.cover-stars i:nth-child(4){top:34%;left:34%;animation-delay:3.8s;width:2px;height:2px}
.cover-stars i:nth-child(5){top:8%;left:44%;animation-delay:4.7s}
.cover-stars i:nth-child(6){top:22%;left:9%;animation-delay:2.2s;width:2px;height:2px}
@keyframes twinkle{
  0%,100%{opacity:0;transform:scale(.6)}
  50%{opacity:.95;transform:scale(1)}
}

.cover-inner{
  position:relative;z-index:2;
  /* No width:100% here. This element also carries .wrap, and width:100% beat
     .wrap's gutter (equal specificity, cover.css loads later) — which ran the
     title straight into the left edge of the screen. Let .wrap govern, then add
     a scaling inset so the type has room to breathe against the artwork. */
  padding-bottom:clamp(38px,7vh,74px);
  padding-inline:clamp(4px,2.6vw,48px);
  will-change:opacity,transform;
}

.cover-kicker{
  font-size:11px;text-transform:uppercase;letter-spacing:.42em;
  color:rgba(255,222,236,.82);margin-bottom:18px;
  text-shadow:0 2px 18px rgba(0,0,0,.8);
}
.cover-kicker::after{
  content:"";display:block;width:52px;height:1px;margin-top:16px;
  background:linear-gradient(90deg,var(--rose),rgba(255,158,187,0));
}

.cover-title{
  font-family:var(--serif);
  font-size:clamp(50px,10.5vw,124px);
  font-weight:400;line-height:.94;letter-spacing:-.022em;
  color:#fff;
  text-shadow:0 6px 46px rgba(0,0,0,.72);
}
.cover-title .cover-zh{
  display:block;margin-top:.1em;
  font-size:.42em;letter-spacing:.16em;font-weight:400;
  background:linear-gradient(100deg,var(--blush),var(--rose) 48%,var(--peach));
  -webkit-background-clip:text;background-clip:text;color:transparent;
  text-shadow:none;
}

.cover-line{
  margin-top:24px;font-size:clamp(14px,1.7vw,17px);
  color:rgba(255,241,247,.9);letter-spacing:.01em;
  text-shadow:0 2px 20px rgba(0,0,0,.85);
}
.cover-note{
  margin-top:12px;max-width:34ch;
  font-family:var(--serif);font-style:italic;
  font-size:clamp(14px,1.75vw,18px);line-height:1.55;
  color:rgba(255,226,238,.78);
  text-shadow:0 2px 20px rgba(0,0,0,.85);
}

.cover-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:30px}

.cover-count{
  display:flex;align-items:baseline;gap:8px;
  padding:9px 18px;border-radius:99px;
  border:1px solid rgba(255,158,187,.34);
  background:linear-gradient(150deg,rgba(255,158,187,.2),rgba(255,255,255,.05));
  backdrop-filter:blur(10px);
}
.cover-count b{font-size:20px;font-weight:700;color:#fff;letter-spacing:-.02em}
.cover-count span{font-size:10.5px;text-transform:uppercase;letter-spacing:.18em;color:rgba(255,226,238,.78)}

.cover-scroll{
  display:inline-flex;align-items:center;gap:10px;cursor:pointer;
  padding:10px 20px;border-radius:99px;
  border:1px solid rgba(255,255,255,.26);
  background:rgba(255,255,255,.07);backdrop-filter:blur(10px);
  color:#fff;font:600 13px/1 inherit;letter-spacing:.02em;
  transition:.22s;
}
.cover-scroll:hover{background:rgba(255,158,187,.24);border-color:rgba(255,158,187,.6)}
.cover-scroll span{display:inline-block;animation:nudgeDown 1.9s ease-in-out infinite}
@keyframes nudgeDown{0%,100%{transform:translateY(0);opacity:.75}50%{transform:translateY(4px);opacity:1}}

/* The cover owns the title AND the dates. The header below is a status bar and
   nothing more — lantern, label, countdown, tallies. It must not restate either. */
.cover + .hero{padding-top:20px;padding-bottom:4px}
.cover + .hero .lantern{font-size:28px}
.cover + .hero .brand{align-items:center;gap:12px}
.eyebrow{
  font-size:11px;text-transform:uppercase;letter-spacing:.36em;
  color:var(--rose);opacity:.85;margin:0;
}

@media(max-width:640px){
  .cover-inner{padding-bottom:34px}
  .cover-note{max-width:26ch}
  .cover-kicker{letter-spacing:.3em;margin-bottom:14px}
  /* On a narrow, tall viewport the crop is horizontal, not vertical — so what
     matters is staying centred on the two figures. */
  .cover-img img{object-position:50% 50%}
}

/* ---------- lighter coat of paint over the rest ---------- */

h1,.h2,.bk h3,.cityhead .h2,.opthead h3{
  font-family:var(--serif);font-weight:500;letter-spacing:-.015em;
}
h1{font-weight:400}
.h2{font-size:23px}
/* keeps the cyan tail from style.css — cover.css loads last, so it has to
   restate it or the cyberpunk half of the palette gets painted over */
.h2::after{background:linear-gradient(90deg,rgba(255,110,199,.5),rgba(96,232,255,.22) 55%,transparent)}

.note h3,.mini h4,.wx h4,.clhead h3{font-family:var(--serif);font-weight:500;letter-spacing:-.01em}

/* softer, rounder, warmer */
.bk,.note,.mini,.wx,.opt,.routebar,.datapanel,.mapbox{border-radius:24px}
.bk{box-shadow:0 26px 70px -30px rgba(0,0,0,.8),0 0 0 1px rgba(255,158,187,.07)}

.glow{opacity:.5}
.g1{background:radial-gradient(circle,rgba(255,168,196,.6),transparent 68%)}
.g2{background:radial-gradient(circle,rgba(214,180,250,.44),transparent 68%)}

::selection{background:rgba(255,158,187,.34);color:#fff}
:focus-visible{outline:2px solid var(--rose);outline-offset:3px;border-radius:8px}

*{scrollbar-width:thin;scrollbar-color:rgba(255,158,187,.42) transparent}
::-webkit-scrollbar{width:10px;height:10px}
::-webkit-scrollbar-thumb{background:rgba(255,158,187,.36);border-radius:99px;border:3px solid transparent;background-clip:content-box}
::-webkit-scrollbar-thumb:hover{background:rgba(255,158,187,.6);background-clip:content-box}
::-webkit-scrollbar-track{background:transparent}

@media(prefers-reduced-motion:reduce){
  .cover-img img,.cover-stars i,.cover-scroll span,.lantern{animation:none}
  html{scroll-behavior:auto}
}

@media print{
  .cover{display:none!important}
}
