/* ════════════════════════════════════════════════════════════════════
   solfo.properties — the public website (src/frontend).
   ────────────────────────────────────────────────────────────────────
   One stylesheet, no script: the Content-Security-Policy refuses inline
   style and script, and a landing page needs neither. The artwork beside
   this file — logo.svg (inlined by the home page), mark.svg (the shield,
   the background watermark) — is published with it to /assets/frontend/.

   The hues are the house brand's, as the back office names them
   (assets/backend/layout/backend.css); fixed here, the page is dark on
   every device.
   ════════════════════════════════════════════════════════════════════ */

:root {
    color-scheme: dark;

    --site-orange: #FF6D0A;
    --site-orange-deep: #E8590A;
    --site-ink-950: #091320;
    --site-ink-900: #0E1A2B;
    --site-ink-800: #14243A;
    --site-cream: #F9F5EE;
    --site-muted: rgba(249, 245, 238, 0.62);
    --site-faint: rgba(249, 245, 238, 0.40);

    --site-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
    --site-gutter: 24px;
}

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    -webkit-text-size-adjust: 100%;
}

/* ── The background ───────────────────────────────────────────────────
   A dusk gradient on the house navy, the brand orange glowing in from the
   top-left corner and, fainter, from the bottom-right; the shield mark as
   a large watermark (body::before) and a fine grid fading out from the
   centre (body::after).

   To put a PHOTOGRAPH behind the logo instead, drop it beside this file
   (e.g. background.jpg) and make it the first layer of background-image:
       url("background.jpg") center / cover no-repeat,
   keeping the gradients beneath it for legibility — or dim the picture
   by leaving only the linear-gradient and lowering its alpha. */
body.site {
    margin: 0;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow-x: hidden;
    font-family: var(--site-font);
    color: var(--site-cream);
    background-color: var(--site-ink-900);
    /* the glows are sized by the viewport, so they stay a corner's warmth on
       a phone as on a wide screen instead of washing the navy out */
    background-image: radial-gradient(58vw 42vh at 8% 4%, rgba(255, 109, 10, 0.20), transparent 60%),
    radial-gradient(40vw 32vh at 94% 100%, rgba(232, 89, 10, 0.13), transparent 60%),
    linear-gradient(165deg, var(--site-ink-950) 0%, var(--site-ink-900) 50%, var(--site-ink-800) 100%);
}

body.site::before {
    content: "";
    position: fixed;
    right: -6vw;
    bottom: -8vh;
    width: min(72vh, 72vw);
    aspect-ratio: 192 / 220;
    background: url("mark.svg") center / contain no-repeat;
    opacity: 0.07;
    pointer-events: none;
    z-index: 0;
}

body.site::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: linear-gradient(rgba(249, 245, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(249, 245, 238, 0.035) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    mask-image: radial-gradient(ellipse at center, #000 35%, transparent 80%);
    pointer-events: none;
    z-index: 0;
}

/* ── The page ─────────────────────────────────────────────────────── */
.site-hero {
    position: relative;
    z-index: 1;
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 12vh var(--site-gutter) 8vh;
}

.site-logo {
    margin: 0;
    width: min(640px, 88vw);
    line-height: 0;
    /* the fallback text, when the artwork is missing */
    font-size: clamp(1.6rem, 1rem + 2.4vw, 2.6rem);
    font-weight: 600;
    letter-spacing: 0.08em;
    line-height: 1.2;
}

.site-logo svg {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.45));
}

.site-rule {
    width: 56px;
    height: 2px;
    margin: 2.4rem auto 1.5rem;
    border-radius: 1px;
    background: var(--site-orange);
}

.site-tagline {
    margin: 0;
    font-size: clamp(0.82rem, 0.72rem + 0.4vw, 1rem);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--site-muted);
}

.site-foot {
    position: relative;
    z-index: 1;
    padding: 1.4rem var(--site-gutter) 2rem;
    text-align: center;
    font-size: 0.78rem;
    letter-spacing: 0.04em;
    color: var(--site-faint);
}

/* ── The 404 page ─────────────────────────────────────────────────── */
.site-hero--note {
    padding-top: 16vh;
}

.site-code {
    margin: 0 0 0.4rem;
    font-size: clamp(3.6rem, 2.6rem + 4vw, 6.4rem);
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.02em;
    color: var(--site-orange);
}

.site-title {
    margin: 0 0 0.9rem;
    font-size: clamp(1.3rem, 1.1rem + 0.9vw, 1.9rem);
    font-weight: 600;
}

.site-text {
    margin: 0 0 1.8rem;
    max-width: 36rem;
    line-height: 1.55;
    color: var(--site-muted);
}

.site-text code {
    padding: 0.1em 0.4em;
    border-radius: 4px;
    background: rgba(249, 245, 238, 0.08);
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
    color: var(--site-cream);
    word-break: break-all;
}

.site-actions {
    margin: 0;
}

.site-link {
    display: inline-block;
    padding: 0.7rem 1.4rem;
    border: 1px solid rgba(255, 109, 10, 0.55);
    border-radius: 999px;
    color: var(--site-cream);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: background-color 0.15s, border-color 0.15s;
}

.site-link:hover,
.site-link:focus-visible {
    background: rgba(255, 109, 10, 0.14);
    border-color: var(--site-orange);
    outline: none;
}

/* ── Entrance ─────────────────────────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
    .site-hero > * {
        animation: site-rise 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) both;
    }

    .site-rule {
        animation-delay: 0.18s;
    }

    .site-tagline,
    .site-text {
        animation-delay: 0.3s;
    }

    .site-actions {
        animation-delay: 0.42s;
    }

    @keyframes site-rise {
        from {
            opacity: 0;
            transform: translateY(14px);
        }

        to {
            opacity: 1;
            transform: none;
        }
    }
}
