/* coveycs.com — apex splash page.
   Palette: CoveyCS brand (AGENTS.md rule 4). No external fonts, no CDNs (rule 5). */

:root {
  --cc-navy:        #161340;  /* Covey Navy — the field */
  --cc-navy-lift:   #1E1A5C;  /* lifted navy, centre of the glow */
  --cc-navy-deep:   #100E30;  /* deeper navy, the edges */
  --cc-white:       #FFFFFF;
  --cc-light:       #E6E8F2;  /* Cool Light Gray */
  --cc-amber:       #F2B233;  /* Amber Gold — the one accent */

  --cc-face: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system,
             "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  height: 100%;
}

body {
  margin: 0;
  background-color: var(--cc-navy);
  color: var(--cc-white);
  font-family: var(--cc-face);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow: hidden;
}

/* Ambient field: a soft lift behind the wordmark, falling off to a darker edge. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(115% 85% at 50% 40%,
      var(--cc-navy-lift) 0%,
      var(--cc-navy) 52%,
      var(--cc-navy-deep) 100%);
  z-index: -1;
}

::selection {
  background: var(--cc-amber);
  color: var(--cc-navy);
}

.stage {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6vmin 5vw;
}

/* The wordmark is the whole page, so it is set like a mark rather than a heading:
   heavy, tightly tracked, and optically centred a little above the true middle. */
.wordmark {
  margin: 0;
  transform: translateY(-4%);
  font-size: clamp(2.5rem, 12.5vw, 9rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.035em;
  white-space: nowrap;
  display: flex;
  align-items: baseline;
  justify-content: center;
}

.wordmark__name { color: var(--cc-white); }
.wordmark__tld  { color: var(--cc-light); }

/* The separator, drawn rather than typed: a lit node standing in for the dot —
   the one place this page spends any colour. */
.wordmark__dot {
  display: inline-block;
  width: 0.135em;
  height: 0.135em;
  margin: 0 0.135em;
  background: var(--cc-amber);
  box-shadow: 0 0 0.75em rgba(242, 178, 51, 0.55);
  flex: none;
}

/* Load sequence: the name settles first, the node lights last. */
@media (prefers-reduced-motion: no-preference) {
  .wordmark__name,
  .wordmark__tld {
    opacity: 0;
    animation: cc-settle 900ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .wordmark__tld { animation-delay: 110ms; }

  .wordmark__dot {
    opacity: 0;
    animation:
      cc-light 700ms cubic-bezier(0.2, 0.7, 0.2, 1) 620ms forwards,
      cc-breathe 4.5s ease-in-out 1.4s infinite;
  }

  @keyframes cc-settle {
    from { opacity: 0; transform: translateY(0.14em); }
    to   { opacity: 1; transform: translateY(0); }
  }
  @keyframes cc-light {
    from { opacity: 0; transform: scale(0.35); }
    to   { opacity: 1; transform: scale(1); }
  }
  @keyframes cc-breathe {
    0%, 100% { box-shadow: 0 0 0.75em rgba(242, 178, 51, 0.55); }
    50%      { box-shadow: 0 0 1.4em  rgba(242, 178, 51, 0.85); }
  }
}

