/* Plot Point's "coming soon" page. Colours and type follow the game's "Daily Pop" look
   (docs/DESIGN.md §11a, public/css/style.css): Indigo & Tangerine by day, After Dark at night. */
@font-face {
  font-family: "Literata"; font-style: normal; font-weight: 200 900; font-display: swap;
  src: url(/fonts/literata-latin-standard-normal.woff2) format("woff2");
}
@font-face {
  font-family: "Bricolage Grotesque"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url(/fonts/bricolage-grotesque-latin-opsz-normal.woff2) format("woff2");
}

:root {
  --bg: #25206b;
  --ink: #f7f5ff;
  --accent: #ff8a2a;       /* the pin, the P's bowl, the date pill */
  --accent-ink: #1d1850;
  --second: #b9a8ff;       /* the trail, the globe, the days-to-go line */
  --far: #d0343f;          /* guess colours, furthest first */
  --mid: #ff8a2a;
  --near: #9b87f5;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16162a; --ink: #f3f1ff; --accent: #ff5ca8; --accent-ink: #14081a; --second: #5ce1ff;
    --far: #ff5a5f; --mid: #ffb347; --near: #b9a8ff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100dvh;
  display: flex;
  background: var(--bg);
  color: var(--ink);
  font: 400 17px/1.5 "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-optical-sizing: auto;
}

/* ---- Globe: faint, mostly off the right edge. Fixed, so the part off-screen adds no scrolling. ---- */
.globe {
  position: fixed; top: 44%; right: 0; pointer-events: none;
  width: min(120vh, 160vw); aspect-ratio: 1;
  transform: translate(62%, -50%);
  fill: none; stroke: var(--second); opacity: .13;
}
.globe * { vector-effect: non-scaling-stroke; stroke-width: 1.5px; }

/* ---- The column ---- */
main {
  position: relative;
  width: 100%; max-width: 620px; margin: auto;
  padding: 28px 22px 44px;
  padding-left: max(22px, env(safe-area-inset-left));
  padding-right: max(22px, env(safe-area-inset-right));
  text-align: center;
}
main p { margin: 0; }

/* ---- Hero: the guess trail and the pin ---- */
.hero { display: block; width: min(100%, 400px); height: auto; margin: 0 auto; overflow: visible; }
.trail { fill: none; stroke: var(--second); stroke-width: 3; stroke-linecap: round; stroke-dasharray: .1 10; }
.reveal { fill: none; stroke-width: 16; stroke-dasharray: 1; stroke-dashoffset: 0; }
.dot { stroke: var(--bg); stroke-width: 4; transform-box: fill-box; transform-origin: center; }
.dot.far { fill: var(--far); }
.dot.mid { fill: var(--mid); }
.dot.near { fill: var(--near); }
.pin { fill: var(--accent); }
.book { fill: var(--bg); }
.shadow { fill: #000; opacity: .28; }

/* ---- Wordmark: Literata Bold, with the P of "Point" drawn as a pilcrow ---- */
.wordmark {
  margin: 10px 0 0; display: inline-flex; align-items: baseline; white-space: nowrap;
  font: 700 clamp(3rem, 15vw, 5rem)/1 "Literata", Georgia, serif; letter-spacing: -0.01em;
}
.pilcrow-p { width: .467em; height: .7em; margin-right: .03em; flex: none; }
.pilcrow-p .stem { fill: currentColor; }
.pilcrow-p .bowl { fill: var(--accent); }

/* ---- Words ---- */
.hook {
  margin-top: 26px;
  font-size: clamp(1.75rem, 7.4vw, 2.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -0.015em;
  text-wrap: balance;
}
.pitch {
  max-width: 31ch; margin: 14px auto 0;
  font-size: clamp(1.05rem, 4.2vw, 1.2rem); line-height: 1.45; opacity: .86;
  text-wrap: balance;
}
.date { margin-top: 30px; }
.pill {
  display: inline-block; padding: 12px 22px; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-size: clamp(1rem, 4.3vw, 1.15rem); font-weight: 800; line-height: 1.2;
}
.count { margin-top: 12px; min-height: 1.5em; color: var(--second); font-weight: 700; }

/* ---- Motion: the trail draws in, each guess lands, then the pin drops. Once, on arrival. ---- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: draw 1.7s cubic-bezier(.45, 0, .3, 1) .25s both; }
  .dot { animation: land .4s cubic-bezier(.3, 1.7, .5, 1) both; }
  .dot.far { animation-delay: .55s; }
  .dot.mid { animation-delay: .95s; }
  .dot.near { animation-delay: 1.5s; }
  .drop { animation: drop .55s cubic-bezier(.3, 1.5, .5, 1) 1.9s both; }
  .shadow { animation: settle .55s ease-out 1.9s both; }
}
@keyframes draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes land { from { opacity: 0; transform: scale(.2); } to { opacity: 1; transform: scale(1); } }
@keyframes drop { from { opacity: 0; transform: translateY(-26px); } to { opacity: 1; transform: translateY(0); } }
@keyframes settle { from { opacity: 0; } to { opacity: .28; } }

/* Short, wide screens (a phone on its side): shrink the picture so the date stays in view. */
@media (max-height: 560px) {
  .hero { width: min(100%, 230px); }
  .hook { margin-top: 14px; }
  .date { margin-top: 18px; }
}
