/* 7MATIC — shared shell for the public pages (coming soon + legal).
   Deliberately independent of the theme CSS in /preview/: those pages are a
   frozen draft, these are live and must not break when the draft changes. */

:root {
    --black: #050505;
    --ink: #0b0b0b;
    --lime: #e8ff45;
    --white: #f4f4f0;
    --grey: #8a8a85;
    --line: rgba(244, 244, 240, .12);
    --font-display: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
    --font-body: 'Inter', 'Helvetica Neue', Arial, sans-serif;
    --font-mono: 'Space Mono', ui-monospace, 'SF Mono', Menlo, monospace;
}

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

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

body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 300;
    line-height: 1.65;
    letter-spacing: -.01em;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a { color: inherit; }

::selection { background: var(--lime); color: var(--black); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }

.label {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--grey);
}

/* Soft lime bloom behind the content — one gradient, no animation loop. */
.glow {
    position: fixed;
    inset: 0;
    pointer-events: none;
    background:
        radial-gradient(58vw 46vw at 78% 8%, rgba(232, 255, 69, .10), transparent 62%),
        radial-gradient(46vw 40vw at 8% 96%, rgba(232, 255, 69, .06), transparent 60%);
    z-index: 0;
}

/* Film grain, same idea as the theme: an SVG noise tile at very low opacity. */
.grain {
    position: fixed;
    inset: -50%;
    width: 200%;
    height: 200%;
    pointer-events: none;
    opacity: .035;
    z-index: 1;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)'/%3E%3C/svg%3E");
}

.shell {
    position: relative;
    z-index: 2;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 clamp(22px, 5vw, 64px);
}

.masthead {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: clamp(26px, 4vw, 44px) 0;
}

.masthead__logo img {
    display: block;
    height: clamp(26px, 3.4vw, 34px);
    width: auto;
}

.status {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    white-space: nowrap;
}

.status__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--lime);
    box-shadow: 0 0 0 0 rgba(232, 255, 69, .55);
    animation: pulse 2.8s ease-out infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(232, 255, 69, .5); }
    70%  { box-shadow: 0 0 0 9px rgba(232, 255, 69, 0); }
    100% { box-shadow: 0 0 0 0 rgba(232, 255, 69, 0); }
}

.foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 26px;
    margin-top: clamp(56px, 9vw, 110px);
    padding: 26px 0 40px;
    border-top: 1px solid var(--line);
}

.foot__links { display: flex; gap: 22px; }

.foot a {
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color .25s ease, border-color .25s ease;
}

.foot a:hover { color: var(--lime); border-bottom-color: var(--lime); }

@media (prefers-reduced-motion: reduce) {
    * { animation: none !important; transition: none !important; }
}
