/* ==========================================================================
   Aivotandra — "Coming Soon" holding page ("misty forest")
   Mobile-first. No external fonts/requests — the two image files ship
   alongside this page, so it still renders identically on any host with
   zero external dependencies.

   Adapted from the "Under Maintenance" version of this same template — same
   photograph + dark overlay, slow continuous Ken Burns zoom/drift, and gold
   reserved for the headline only (every other line of text is a cream
   variation). This one announces a launch instead of hiding a maintenance
   window, so it's indexable (no noindex) and leads with a prominent brand
   mark instead of a muted third-party credit.
   ========================================================================== */

:root {
  --overlay: #140002;
  --accent: #b9975b; /* headline + caret ONLY in this template */
  --fg: #f3efe6;
  --fg-dim: rgba(243, 239, 230, 0.82); /* higher than the other templates' dim tone — this sits on a photo, not a flat color */
  --fg-faint: rgba(243, 239, 230, 0.55);
  --font-serif: Georgia, "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", serif;
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", Consolas, "Courier New", monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  margin: 0;
  overflow: hidden; /* single full-screen view, never a scrolling page */
  overscroll-behavior: none; /* stop mobile pull-to-refresh / rubber-banding */
  background: var(--overlay); /* shows briefly before the photo paints, and behind it if it fails to load */
  color: var(--fg);
}

body {
  height: 100vh;
  height: 100dvh; /* upgrades on browsers that support it, accounts for mobile browser chrome */
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
}

/* ---- background layers ---------------------------------------------- */

/* Slow, continuous "Ken Burns" zoom/drift — 0% and 100% match exactly, so
   the loop has no visible jump (the same reason the art-deco rotation in
   ../burgundy-gold/ needed no special-casing: a symmetric animation that
   returns to its starting value loops for free). object-fit: cover already
   crops the image to fill the viewport; scaling up further (1.08 at the
   midpoint) stays safely within that crop, so no edges are ever revealed. */
.bg-photo {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  display: block;
}

.bg-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform-origin: center;
  animation: ken-burns 50s ease-in-out infinite;
  will-change: transform;
}

@keyframes ken-burns {
  0% {
    transform: scale(1) translate(0, 0);
  }
  50% {
    transform: scale(1.08) translate(-1%, -1%);
  }
  100% {
    transform: scale(1) translate(0, 0);
  }
}

.overlay {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: rgba(20, 0, 2, 0.75); /* dark overlay to make the text legible over the photo */
}

.noise {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.045;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

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

.content {
  position: relative;
  z-index: 3;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 1.1rem;
  padding: max(1.75rem, env(safe-area-inset-top)) max(1.75rem, env(safe-area-inset-right))
    max(3.25rem, env(safe-area-inset-bottom)) max(1.75rem, env(safe-area-inset-left));
  max-width: 640px;
  margin: 0 auto;
  /* Soft dark shadow for legibility over the photo — the other templates sit
     on flat/generated backgrounds and don't need this. */
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.55);
}

.status {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--fg-dim);
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--fg);
  animation: pulse 1.8s ease-in-out infinite;
  flex-shrink: 0;
}

@keyframes pulse {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(243, 239, 230, 0.35);
  }
  50% {
    opacity: 0.5;
    box-shadow: 0 0 0 6px rgba(243, 239, 230, 0);
  }
}

.headline {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.1;
  font-size: clamp(2.00rem, 6vw + 0.75rem, 4.25rem);
  color: var(--accent); /* the one and only gold element in this template */
  text-transform: lowercase; /* the original template's headline was all-caps, but this one is a proper noun and looks better in lowercase */
}

/* Blinking terminal-style caret, appended after the typed text by script.js
   and left blinking once typing finishes.

   Deliberately NOT display:inline-block: an inline-block is an atomic box a
   browser is free to line-wrap around even with no whitespace before it —
   the same wrap-boundary issue fixed in an earlier template. Left as plain
   inline, the caret just continues the same text run as the headline, so it
   can only ever end up on a new line by following an actual word wrap,
   never stranded alone on its own line. */
.caret {
  margin-left: 0.02em;
  color: var(--accent);
  animation: caret-blink 1s step-end infinite;
}

@keyframes caret-blink {
  0%,
  50% {
    opacity: 1;
  }
  50.01%,
  100% {
    opacity: 0;
  }
}

.message {
  margin: 0;
  max-width: 46ch;
  color: var(--fg-dim);
  font-size: clamp(0.75rem, 1.5vw + 0.6rem, 1.00rem);
  line-height: 1.6;
  text-transform: uppercase;
}

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

.countdown {
  display: flex;
  align-items: center;
  gap: clamp(0.5rem, 2vw, 1rem);
  margin-top: 0.5rem;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.countdown-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.3rem;
  min-width: 2.6em;
}

.countdown-value {
  font-size: clamp(1.3rem, 4vw, 2rem);
  font-weight: 600;
  color: var(--fg); /* cream, not gold — gold is reserved for the headline in this template */
}

.countdown-label {
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}

.countdown-sep {
  font-size: clamp(1.1rem, 3vw, 1.6rem);
  color: var(--fg-faint);
  transform: translateY(-0.7em); /* optically align with the digits, not the labels */
}

.eta-label {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--fg-faint);
  letter-spacing: 0.02em;
}

/* Brand mark. Unlike the muted "who's maintaining this" credit on the
   maintenance version of this template, this page IS Aivotandra's own
   coming-soon announcement, so the logo is full-opacity and sits at the top
   of the stack. aivotandra-logo-2.svg is already a flat cream fill, so no
   color-normalizing filter is needed — it's already the right color for
   this dark overlay. */
.brand-logo {
  display: block;
  height: 10rem;
  width: auto;
  margin-bottom: 0.25rem;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.5)); /* same legibility reasoning as .content's text-shadow — this sits directly on the photo */
}

/* ---- photo credit -------------------------------------------------------
   Required attribution for the background photo's license — a REAL,
   functional, keyboard-reachable link (unlike every other layer on this
   page, which is decorative and aria-hidden). Pinned to the bottom of the
   viewport independent of the centered .content stack, so it stays put
   regardless of how tall the content block ends up being. */
.photo-credit {
  position: fixed;
  left: 0;
  right: 0;
  bottom: max(0.6rem, env(safe-area-inset-bottom));
  z-index: 4;
  text-align: center;
  font-family: var(--font-sans);
  font-size: 0.65rem;
  color: var(--fg-faint);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.6);
  padding: 0 1rem;
}

.photo-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(243, 239, 230, 0.4);
}

.photo-credit a:hover,
.photo-credit a:focus-visible {
  color: var(--fg);
  text-decoration-color: currentColor;
}

/* ---- larger screens ---------------------------------------------------- */

@media (min-width: 640px) {
  .content {
    gap: 1.5rem;
  }
  .countdown {
    gap: 1.5rem;
  }
}

/* ---- respect reduced-motion preference ---------------------------------- */

@media (prefers-reduced-motion: reduce) {
  .status-dot {
    animation: none;
  }
  .caret {
    animation: none;
    opacity: 1;
  }
  .bg-photo img {
    animation: none;
  }
}
