/* ==========================================================================
   Cracked Glass: coming soon page
   Loads after /styles.css. The app is light (ice blue, black ink) under a thin
   dark bar that carries The Ultra Deep name, as planned for every app.
   ========================================================================== */

.cg {
  --ice: #d5e6f0;
  --ink: #0a0c0e;
  --ink-muted: #33424d;
  /* left edge of the page content, matching the centered 70rem column */
  --edge: max(var(--gutter), calc((100vw - var(--measure)) / 2 + var(--gutter)));
  background: var(--ice);
  color: var(--ink);
}

html:has(.cg) {
  background: var(--ice);
  color-scheme: light;
}

.cg ::selection {
  background: rgba(10, 12, 14, 0.85);
  color: var(--ice);
}

/* ---------- Dark bar ---------- */

.bar {
  background: #08080a;
  border-bottom: 1px solid rgba(236, 235, 232, 0.13);
}

.bar__home {
  display: inline-block;
  padding: 0.7rem var(--gutter) 0.7rem var(--edge);
  font-family: var(--serif);
  font-size: 1.25rem;
  line-height: 1;
  color: var(--text);
  text-decoration: none;
}

.bar__home em {
  color: var(--accent);
}

.bar__the {
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--muted);
  margin-right: 0.35em;
}

.bar__home:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -4px;
}

/* ---------- Stage ---------- */

.cg__stage {
  flex: 1;
  width: 100%;
  max-width: var(--measure);
  margin: 0 auto;
  padding: clamp(3rem, 10vh, 6.5rem) var(--gutter) clamp(2.5rem, 6vh, 4rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 3rem 4rem;
}

.cg__copy {
  flex: 1 1 28rem;
  min-width: 0;
}

.cg__label {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.7rem;
  border: 1.5px solid var(--ink);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.cg__title {
  margin: 0;
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(3.75rem, 14vw, 8.5rem);
  line-height: 0.92;
  letter-spacing: -0.02em;
}

.cg__lede {
  margin: 2rem 0 0;
  max-width: 34rem;
  font-size: clamp(1.0625rem, 2vw, 1.25rem);
  line-height: 1.5;
  text-wrap: pretty;
}

.cg__note {
  margin: 1.5rem 0 0;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Dial ---------- */

.cg__dial {
  flex: 0 1 20rem;
  margin: 0;
  padding: 1.5rem 1.25rem 1rem;
  border: 1.5px solid var(--ink);
  background: #eaf3f8;
}

.cg__dial svg {
  display: block;
  width: 100%;
  height: auto;
}

.cg__dial figcaption {
  margin-top: 0.5rem;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.6875rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ---------- Footer ---------- */

.cg__footer {
  border-top: 1.5px solid var(--ink);
  max-width: none;
  margin: 0;
  padding: 1.25rem var(--gutter) 1.75rem var(--edge);
}

.cg__footer p,
.cg .credit {
  color: var(--ink-muted);
}

.cg .credit:hover,
.cg .credit:focus-visible {
  color: var(--ink);
}

.cg__legal {
  margin-top: 0.4rem !important;
  max-width: 44rem;
}

/* ---------- Entrance ---------- */

@media (prefers-reduced-motion: no-preference) {
  .cg__copy,
  .cg__dial {
    opacity: 0;
    transform: translateY(10px);
    animation: rise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  }
  .cg__dial { animation-delay: 0.2s; }
}
