/*
 * Styles for the two STATIC pages (/ and /about).
 *
 * Deliberately not part of the app bundle: these pages ship no framework and
 * no renderer, so their whole cost is this file plus one image. The palette is
 * lifted from the key art (deep navy ground, the orange from the mark) and
 * kept in step with the game's own dark UI so the demo does not feel like a
 * different product.
 */

:root {
  --ground: #0b1017;
  --ground-2: #111823;
  --line: #1e2836;
  --ink: #e8edf3;
  --ink-dim: #94a3b4;
  --accent: #f08a2c; /* the mark's orange */
  --accent-soft: rgba(240, 138, 44, 0.14);
  --blue: #4fa3ff; /* the game UI's blue, for continuity */
  --radius: 14px;
  --measure: 68ch;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family:
    ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  /* A soft lift behind the hero so the art does not sit on a flat slab. */
  background-image: radial-gradient(1200px 600px at 50% -10%, #16202e 0%, transparent 70%);
  background-repeat: no-repeat;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--blue);
}

.wrap {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* --- top bar ------------------------------------------------------------ */

.topbar {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 0 0.4rem;
}

.topbar img {
  width: 34px;
  height: 34px;
  border-radius: 8px;
}

.topbar .name {
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-right: auto;
}

.topbar nav {
  display: flex;
  gap: 1.25rem;
  font-size: 0.95rem;
}

.topbar nav a {
  color: var(--ink-dim);
  text-decoration: none;
}

.topbar nav a:hover,
.topbar nav a[aria-current='page'] {
  color: var(--ink);
}

/* --- hero --------------------------------------------------------------- */

.hero {
  margin: 1.2rem 0 0;
}

.hero-art {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--ground-2);
}

.tagline {
  margin: 1.6rem auto 0;
  max-width: 46ch;
  text-align: center;
  font-size: clamp(1.15rem, 2.6vw, 1.6rem);
  line-height: 1.35;
  font-weight: 600;
  text-wrap: balance;
}

.tagline em {
  font-style: normal;
  color: var(--accent);
}

.sub {
  margin: 0.9rem auto 0;
  max-width: 62ch;
  text-align: center;
  color: var(--ink-dim);
  text-wrap: pretty;
}

/* --- countdown ---------------------------------------------------------- */

.opens {
  margin: 2.4rem auto 0;
  max-width: 640px;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ground-2), rgba(17, 24, 35, 0.4));
  padding: 1.4rem 1.2rem 1.5rem;
}

.opens .label {
  font-size: 0.82rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.opens .when {
  margin-top: 0.35rem;
  font-weight: 700;
  font-size: 1.05rem;
}

.clock {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  margin-top: 1rem;
}

.clock div {
  min-width: 74px;
  padding: 0.55rem 0.3rem 0.45rem;
  border-radius: 10px;
  background: #0d131c;
  border: 1px solid var(--line);
}

.clock b {
  display: block;
  font-size: 1.7rem;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

.clock span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-dim);
}

.opens .ask {
  margin: 1.1rem 0 0;
  font-weight: 600;
  color: var(--accent);
}

/* --- buttons ------------------------------------------------------------ */

.cta {
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 1.8rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.35rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: var(--ground-2);
  color: var(--ink);
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.btn:hover {
  border-color: #2c3b4f;
}

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #17110a;
}

.btn.primary:hover {
  filter: brightness(1.07);
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #46c46a;
  box-shadow: 0 0 0 3px rgba(70, 196, 106, 0.18);
}

/* --- content sections --------------------------------------------------- */

section {
  margin-top: 3.4rem;
}

h1,
h2,
h3 {
  line-height: 1.2;
  text-wrap: balance;
}

h1 {
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.75rem);
  margin: 0 0 0.7rem;
}

h3 {
  font-size: 1.05rem;
  margin: 0 0 0.35rem;
}

p {
  max-width: var(--measure);
  text-wrap: pretty;
}

.lede {
  font-size: 1.1rem;
  color: var(--ink);
}

.muted {
  color: var(--ink-dim);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--ground-2);
  padding: 1.1rem 1.2rem;
}

.card p {
  margin: 0;
  color: var(--ink-dim);
  font-size: 0.95rem;
}

/* A screenshot with a caption that explains what you are looking at. */
figure {
  margin: 1.6rem 0 0;
}

figure img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
}

figcaption {
  margin-top: 0.6rem;
  color: var(--ink-dim);
  font-size: 0.92rem;
  max-width: var(--measure);
}

/* --- notify form -------------------------------------------------------- */

.notify {
  margin-top: 1.2rem;
  display: flex;
  gap: 0.6rem;
  justify-content: center;
  flex-wrap: wrap;
}

.notify input {
  flex: 1 1 260px;
  max-width: 340px;
  padding: 0.75rem 0.9rem;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #0d131c;
  color: var(--ink);
  font-size: 1rem;
}

.notify input:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
}

/* --- footer ------------------------------------------------------------- */

footer {
  margin: 4rem 0 2.5rem;
  padding-top: 1.4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
  font-size: 0.88rem;
}

footer p {
  max-width: none;
}

/* --- small screens ------------------------------------------------------ */

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .clock div {
    min-width: 0;
    flex: 1;
  }

  .clock b {
    font-size: 1.35rem;
  }

  .topbar nav {
    gap: 0.9rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}
