/* ============================================================================
   DEMO / TEST MODE holding page (templates/coming-soon.html).

   Self-contained on purpose. This page renders no site header, so it cannot rely
   on anything base/common.css pulls in through it - and it needs almost none of
   that anyway: one logo, one heading, one paragraph, one link. Importing
   common.css here would drag in the button, tag, badge, pagination, photo-viewer
   and result-header sheets for a page that has none of those elements.

   Design tokens (base/root.css) ARE required and are linked by the template
   itself, since fragments/header - which normally links them - is not rendered.
   ========================================================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-main);
    background: var(--gradient-body);
    background-attachment: fixed;
    color: #fff;
    min-height: 100vh;
    /* min-height 100dvh under the 100vh fallback: on mobile the browser chrome makes
       100vh taller than the visible area, which would push the block off-centre. */
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1.25rem;
    overflow-x: hidden;
}

.coming-soon {
    width: 100%;
    max-width: 620px;
    text-align: center;
    animation: comingSoonIn 0.7s cubic-bezier(0.4, 0, 0.2, 1) both;
}

/* ── Logo ────────────────────────────────────────────────────────── */

.coming-soon-logo {
    display: inline-block;
    margin-bottom: 2.5rem;
}

/* NO `display` IN THIS SHARED RULE. `.coming-soon-logo img` is a descendant selector
   (specificity 0,1,1) and would beat the single-class `.coming-soon-logo-mini`
   (0,1,0) below no matter what order they appear in - which is exactly what happened
   first time round: the round badge inherited display:block and BOTH marks rendered,
   stacked, on desktop. Each variant declares its own display; this rule only carries
   what they genuinely share. */
.coming-soon-logo img {
    /* object-fit is stated explicitly because the site-wide rule in base/common.css is
       `cover`, which crops the wordmark - if this page is ever switched to import
       common.css, this line is what keeps the logo intact. */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 6px 24px color-mix(in srgb, var(--shadow-tint) 55%, transparent));
}

.coming-soon-logo-wide {
    display: block;
    /* Scales with the viewport rather than a fixed width, so the mark shrinks on a
       narrow screen instead of forcing the page sideways. */
    height: clamp(3rem, 9vw, 5rem);
}

/* The round badge stands in for the wordmark below 480px - same swap the site
   header does, for the same reason. */
.coming-soon-logo-mini {
    display: none;
    height: 5rem;
    margin: 0 auto;
}

@media (max-width: 480px) {
    .coming-soon-logo-wide { display: none; }
    .coming-soon-logo-mini { display: block; }
}

/* ── Copy ────────────────────────────────────────────────────────── */

.coming-soon-title {
    font-size: clamp(2.25rem, 9vw, 4rem);
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    background: linear-gradient(45deg, #fff, var(--color-gold));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 80px color-mix(in srgb, var(--hue-gold) 30%, transparent);
}

/* Gold hairline under the title - the one piece of brand furniture on the page. */
.coming-soon-title::after {
    content: "";
    display: block;
    width: 84px;
    height: 3px;
    margin: 1.25rem auto 0;
    border-radius: var(--radius-pill);
    background: linear-gradient(90deg, var(--brand-1), var(--brand-2));
}

.coming-soon-tagline {
    font-size: clamp(1rem, 2.4vw, 1.15rem);
    line-height: 1.65;
    opacity: 0.85;
    max-width: 46ch;
    margin: 1.75rem auto 0;
}

/* ── Sign-in line ────────────────────────────────────────────────── */

.coming-soon-signin {
    margin-top: 3rem;
    font-size: 0.9rem;
    opacity: 0.7;
}

.coming-soon-signin a {
    color: var(--color-gold);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.coming-soon-signin a:hover,
.coming-soon-signin a:focus-visible {
    color: var(--color-gold-text);
    border-bottom-color: currentColor;
}

/* ── Motion ──────────────────────────────────────────────────────── */

@keyframes comingSoonIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
    .coming-soon { animation: none; }
}
