/* Layout: one dawn sky. Centered announcement, countdown on a single baseline,
   and the Eduzoria mark enlarged into the horizon: an open book with the sun rising behind it. */
:root {
  --ink: #14183B;          /* night sky, top */
  --ink-2: #1B2160;        /* sky near the horizon */
  --indigo: #3340D9;       /* the book */
  --indigo-light: #7F8BFF; /* page edges, accents on dark */
  --sunrise: #F4A31B;      /* the sun */
  --sun-hi: #FFCF6B;
  --cream: #F7F5EF;        /* primary text on dark */
  --mist: #AAB1DB;         /* secondary text on dark (brand tagline colour) */
  --rule: rgba(170,177,219,.22);
  --display: "Bricolage Grotesque", "Arial Black", system-ui, sans-serif;
  --body: "Figtree", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0; min-height: 100%;
  background: linear-gradient(180deg, var(--ink) 0%, var(--ink) 38%, var(--ink-2) 78%, #2A2A6E 100%);
  color: var(--cream); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
.wrap {
  max-width: 1120px; margin: 0 auto;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
}

/* stars: a few fixed points, fading toward the horizon */
.sky { position: absolute; inset: 0 0 auto 0; height: 70vh; pointer-events: none; overflow: hidden; }
.sky i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: var(--cream); opacity: .35; }

header { position: relative; z-index: 2; }
header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 28px; flex-wrap: wrap; }
.logo svg { display: block; height: 30px; width: auto; }
.date-tag {
  font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--mist);
  border: 1px solid var(--rule); border-radius: 999px; padding: 7px 14px; white-space: nowrap;
}
.date-tag b { color: var(--sunrise); font-weight: 600; }

main { position: relative; z-index: 2; text-align: center; }
main .wrap { padding-block: clamp(36px, 7vw, 84px) 0; display: flex; flex-direction: column; align-items: center; gap: 22px; }

.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 13px; font-weight: 600; letter-spacing: .22em; text-transform: uppercase; color: var(--sunrise); }
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .6; }
.hi { font-size: 15px; letter-spacing: .04em; color: var(--mist); margin-top: -12px; }

h1 {
  font-family: var(--display); font-weight: 800; font-optical-sizing: auto;
  font-size: clamp(40px, 7.6vw, 92px); line-height: .98; letter-spacing: -.025em;
  margin: 4px 0 0; text-wrap: balance; max-width: 15ch;
}
h1 em { font-style: normal; background: linear-gradient(180deg, var(--sun-hi), var(--sunrise)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { max-width: 54ch; margin: 0; font-size: clamp(16px, 1.9vw, 19px); color: var(--mist); text-wrap: pretty; }
.lede strong { color: var(--cream); font-weight: 500; }

/* countdown */
.count {
  margin-top: 18px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  width: min(100%, 680px); border-block: 1px solid var(--rule);
}
.unit { padding: 22px 8px 18px; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.unit + .unit { border-left: 1px solid var(--rule); }
.num {
  font-family: var(--display); font-weight: 700; font-size: clamp(38px, 7vw, 72px); line-height: 1;
  font-variant-numeric: tabular-nums; letter-spacing: -.02em; color: var(--cream);
}
.unit:first-child .num { color: var(--sunrise); }
.lbl { font-size: 11px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--mist); }
.when { font-size: 13px; color: var(--mist); margin: -6px 0 0; }
.when time { color: var(--cream); font-weight: 500; }
.live { font-family: var(--display); font-weight: 700; font-size: clamp(26px, 4vw, 40px); color: var(--sunrise); padding: 26px 0; }

/* modules */
.mods { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; max-width: 760px; }
.mods li { font-size: 13.5px; color: var(--mist); border: 1px solid var(--rule); border-radius: 999px; padding: 5px 13px; }

/* horizon scene */
.scene { position: relative; z-index: 0; margin-top: clamp(-130px, -7vw, -10px); height: clamp(230px, 34vw, 400px); pointer-events: none; }
main .wrap { position: relative; z-index: 1; padding-bottom: 28px; }
.scene svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#sun { transition: transform 2.4s cubic-bezier(.2,.7,.1,1); }
.sun-note { position: absolute; left: 0; right: 0; bottom: 18px; z-index: 2; text-align: center; font-size: 12px; letter-spacing: .06em; color: rgba(247,245,239,.62); }

footer { background: #121647; position: relative; z-index: 2; }
footer .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px 24px; flex-wrap: wrap; padding-block: 22px 26px; font-size: 13px; color: var(--mist); }
footer .links { display: flex; gap: 8px 18px; flex-wrap: wrap; }
footer a { color: var(--cream); text-decoration: none; border-bottom: 1px solid var(--rule); }
footer a:hover, footer a:focus-visible { border-color: var(--sunrise); outline: none; }
.badge svg { display: block; height: 22px; width: auto; }

@media (max-width: 560px) {
  .count { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .unit:nth-child(3) { border-left: 0; }
  .unit:nth-child(n+3) { border-top: 1px solid var(--rule); }
  .logo svg { height: 24px; }
  footer .wrap { justify-content: center; text-align: center; }
}
@media (prefers-reduced-motion: reduce) { #sun { transition: none; } }

/* contact row (shown only when an email or WhatsApp number is set in the Customizer) */
.contact { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 14px; margin-top: 8px; font-size: 14px; color: var(--mist); }
.contact .lbl-inline { width: 100%; font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--mist); }
.contact a { color: var(--cream); text-decoration: none; border: 1px solid var(--rule); border-radius: 999px; padding: 8px 16px; transition: border-color .2s, color .2s; }
.contact a:hover, .contact a:focus-visible { border-color: var(--sunrise); color: var(--sunrise); outline: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }
body.admin-bar .sky { top: 32px; }
