/* The Coming Soon page (src/coming-soon/page.mjs): dark navy with the brand gold, the brand fonts, mobile first. */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(/assets/fonts/inter-latin-wght-normal.woff2?v=3100e775e8) format('woff2');
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(/assets/fonts/noto-serif-latin-400-normal.woff2?v=4c0cbe3eec) format('woff2');
}
@font-face {
  font-family: 'Noto Serif';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url(/assets/fonts/noto-serif-latin-600-normal.woff2?v=abf0abc765) format('woff2');
}

:root {
  --cs-navy-950: #050c18;
  --cs-navy-900: #081325;
  --cs-navy-800: #0b1a30;
  --cs-navy-700: #12284a;
  --cs-gold: #d6b46c;         /* the logo gold (brand --ls-gold) */
  --cs-gold-light: #e8cd8f;   /* brand --ls-gold-light: gold for text on dark */
  --cs-gold-glint: #ebd5a1;   /* brand --ls-gold-glint */
  --cs-text: #efebe3;         /* brand --ls-warm-white */
  --cs-muted: #b8c0cc;        /* 9:1 on --cs-navy-800 */
  --cs-hair: rgba(214, 180, 108, 0.32);
  --cs-serif: 'Noto Serif', Georgia, 'Times New Roman', serif;
  --cs-sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  color-scheme: dark;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body.cs {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  background-color: var(--cs-navy-900);
  background-image:
    radial-gradient(120% 70% at 50% -10%, rgba(214, 180, 108, 0.16), transparent 60%),
    linear-gradient(180deg, var(--cs-navy-800) 0%, var(--cs-navy-900) 55%, var(--cs-navy-950) 100%);
  color: var(--cs-text);
  font-family: var(--cs-sans);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

.cs-main {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100svh;
  padding: 48px 16px 24px;
  isolation: isolate;
}

/* A soft gold light that drifts slowly behind the content. */
.cs-glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.cs-glow::before,
.cs-glow::after {
  content: '';
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.22;
}
.cs-glow::before {
  top: -160px;
  left: 50%;
  margin-left: -260px;
  background: radial-gradient(circle, rgba(214, 180, 108, 0.55), transparent 65%);
  animation: cs-drift 18s ease-in-out infinite alternate;
}
.cs-glow::after {
  bottom: -220px;
  right: -160px;
  background: radial-gradient(circle, rgba(18, 40, 74, 0.9), transparent 70%);
  opacity: 0.6;
}

.cs-inner {
  width: 100%;
  max-width: 760px;
  margin: auto;
  text-align: center;
}

.cs-brand { margin-bottom: 36px; }

.cs-logo {
  display: block;
  width: 84px;
  height: 84px;
  margin: 0 auto 18px;
  filter: drop-shadow(0 0 18px rgba(214, 180, 108, 0.28));
  animation: cs-shine 6s ease-in-out infinite;
}

.cs-name {
  margin: 0;
  color: var(--cs-gold);
  font-family: var(--cs-sans);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.34em;
  /* letter-spacing adds space after the last letter too; this keeps the word centred */
  padding-left: 0.34em;
}

.cs-tagline {
  margin: 6px 0 0;
  color: var(--cs-gold-light);
  font-family: var(--cs-serif);
  font-size: 1rem;
  letter-spacing: 0.04em;
}

.cs-title {
  margin: 0 0 18px;
  color: var(--cs-text);
  font-family: var(--cs-serif);
  font-weight: 600;
  font-size: clamp(2.125rem, 5.2vw + 1rem, 4.25rem);
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.cs-lead {
  margin: 0 auto 14px;
  max-width: 34ch;
  color: var(--cs-gold-glint);
  font-family: var(--cs-serif);
  font-size: clamp(1.125rem, 1vw + 0.95rem, 1.375rem);
  line-height: 1.45;
  text-wrap: balance;
}

.cs-body {
  margin: 0 auto;
  max-width: 58ch;
  color: var(--cs-muted);
  font-size: clamp(0.9875rem, 0.3vw + 0.92rem, 1.0625rem);
  text-wrap: pretty;
}

.cs-launch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin: 40px 0 20px;
  color: var(--cs-gold);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.14em;
}
.cs-launch-text { flex: 0 1 auto; text-wrap: balance; }
.cs-rule {
  display: none;
  flex: 0 1 64px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--cs-gold));
  transform-origin: right;
  animation: cs-grow 1.4s 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}
.cs-rule:last-child {
  background: linear-gradient(90deg, var(--cs-gold), transparent);
  transform-origin: left;
}

/* The countdown appears once coming-soon.js has filled it (without JavaScript the date line below says it all). */
.cs-countdown {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
  visibility: hidden;
}
.cs-countdown.is-ready { visibility: visible; }

.cs-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 14px 4px 12px;
  border: 1px solid var(--cs-hair);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.015));
  box-shadow: inset 0 1px 0 rgba(235, 213, 161, 0.08), 0 10px 30px rgba(0, 0, 0, 0.25);
}

.cs-num {
  color: var(--cs-text);
  font-family: var(--cs-serif);
  font-weight: 600;
  font-size: clamp(1.625rem, 4.6vw + 0.6rem, 3rem);
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
}

.cs-label {
  color: var(--cs-gold-light);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cs-when {
  margin: 16px 0 0;
  color: var(--cs-muted);
  font-size: 0.875rem;
}

.cs-done {
  margin: 12px 0 0;
  color: var(--cs-gold-light);
  font-weight: 500;
}

.cs-closing {
  margin: 40px 0 0;
  color: var(--cs-gold-glint);
  font-family: var(--cs-serif);
  font-size: clamp(1.0625rem, 0.8vw + 0.9rem, 1.25rem);
  text-wrap: balance;
}

.cs-footer {
  margin-top: 48px;
  text-align: center;
  color: var(--cs-muted);
  font-size: 0.8125rem;
}
.cs-footer p { margin: 0; }

/* Entrance: each block rises in turn. */
.cs-rise { animation: cs-rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.cs-inner > .cs-rise:nth-child(2) { animation-delay: 0.08s; }
.cs-inner > .cs-rise:nth-child(3) { animation-delay: 0.16s; }
.cs-inner > .cs-rise:nth-child(4) { animation-delay: 0.24s; }
.cs-inner > .cs-rise:nth-child(5) { animation-delay: 0.32s; }
.cs-inner > .cs-rise:nth-child(6) { animation-delay: 0.4s; }
.cs-inner > .cs-rise:nth-child(7) { animation-delay: 0.48s; }
.cs-inner > .cs-rise:nth-child(9) { animation-delay: 0.56s; }

@keyframes cs-rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes cs-grow {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}
@keyframes cs-shine {
  0%, 100% { filter: drop-shadow(0 0 14px rgba(214, 180, 108, 0.22)); }
  50% { filter: drop-shadow(0 0 26px rgba(214, 180, 108, 0.42)); }
}
@keyframes cs-drift {
  from { transform: translate3d(-40px, 0, 0) scale(1); }
  to { transform: translate3d(40px, 30px, 0) scale(1.12); }
}

@media (min-width: 480px) {
  .cs-countdown { gap: 14px; }
  .cs-unit { padding: 18px 8px 14px; border-radius: 16px; }
  .cs-label { font-size: 0.6875rem; letter-spacing: 0.14em; }
  .cs-launch { font-size: 0.75rem; letter-spacing: 0.2em; }
  .cs-rule { display: block; }
}

@media (min-width: 640px) {
  .cs-launch { font-size: 0.8125rem; letter-spacing: 0.24em; }
}

@media (min-width: 768px) {
  .cs-main { padding: 72px 32px 32px; }
  .cs-logo { width: 96px; height: 96px; }
  .cs-name { font-size: 0.875rem; }
  .cs-tagline { font-size: 1.0625rem; }
  .cs-countdown { gap: 18px; }
  .cs-unit { padding: 22px 10px 16px; }
  .cs-label { font-size: 0.75rem; }
  .cs-rule { flex-basis: 96px; }
}

@media (prefers-reduced-motion: reduce) {
  .cs-rise,
  .cs-rule,
  .cs-logo,
  .cs-glow::before { animation: none; }
}
