/* ==========================================================================
   neutrinoks.io
   ========================================================================== */

@font-face {
    font-family: "IBM Plex Mono";
    src: url("../fonts/plex-mono-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-400.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-600.woff2") format("woff2");
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

/* --- Theme --------------------------------------------------------------- */

:root {
    color-scheme: light dark;

    --bg: #fbfbfc;
    --fg: #111317;
    --muted: #5d636d;
    --line: #dfe1e5;
    --accent: #c4361b;
    --logo-shadow: drop-shadow(0 2px 3px rgb(17 19 23 / 0.25)) drop-shadow(0 22px 34px rgb(17 19 23 / 0.28));

    --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        /* Pure black so the logo disc merges seamlessly with the page */
        --bg: #000;
        --fg: #eceef1;
        --muted: #8a919b;
        --line: #24272c;
        --accent: #ff6a3d;
        --logo-shadow: none;
    }
}

/* --- Base ---------------------------------------------------------------- */

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

html {
    /* Always reserve the scrollbar's space so content doesn't shift between pages */
    scrollbar-gutter: stable;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 1rem;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

strong, b { font-weight: 600; }

img { display: block; max-width: 100%; height: auto; }

a {
    color: inherit;
    text-decoration-line: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--line);
    text-underline-offset: 0.25em;
    transition: color 0.2s, text-decoration-color 0.2s;
}

a:hover, a:focus-visible {
    color: var(--accent);
    text-decoration-color: currentColor;
}

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

/* --- Landing page -------------------------------------------------------- */

.hero {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 1rem 2rem;
    text-align: center;
}

.logo {
    width: clamp(10rem, 42vw, 16rem);
    filter: var(--logo-shadow);
    animation: appear 1.2s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.logo-small { width: clamp(6rem, 25vw, 8rem); }

.hero h1 {
    margin: 2rem 0 0;
    font-size: clamp(1.75rem, 1.35rem + 1.5vw, 2.375rem);
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -0.018em;
    animation: appear 1.2s 0.15s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.tagline {
    margin: 0.5rem 0 0;
    color: var(--muted);
    font-family: var(--font-mono);
    font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.0625rem);
    letter-spacing: 0;
    animation: appear 1.2s 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.contact {
    margin-top: 2.5rem;
    font-size: 0.9375rem;
    animation: appear 1.2s 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

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

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

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

.footer {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
    padding: 1.5rem 1rem 2rem;
    color: var(--muted);
    font-size: 0.8125rem;
}

.footer nav { display: flex; gap: 1.5rem; }
.footer a { text-decoration: none; }
.footer a:hover, .footer a:focus-visible { text-decoration: underline; }
.footer a[aria-current="page"] { color: var(--fg); }

/* --- Legal pages ------------------------------------------------------- */

.page-header {
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 1.5rem 1rem 0;
}

.home {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
}

.home img { width: 1.75rem; }

.legal {
    flex: 1;
    width: 100%;
    max-width: 40rem;
    margin: 0 auto;
    padding: 3rem 1rem 4rem;
    font-size: 0.875rem;
    line-height: 1.7;
}

.legal h1 {
    margin: 0 0 1.75rem;
    font-size: 1.625rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.018em;
}

.legal h2 {
    margin: 2rem 0 0.375rem;
    font-size: 0.9375rem;
    font-weight: 600;
    line-height: 1.4;
}

.legal p, .legal address, .legal ul { margin: 0 0 1rem; }
.legal address { font-style: normal; }
.legal ul { padding-left: 1.25rem; }
.legal li { margin-bottom: 0.125rem; }
.legal .meta { color: var(--muted); font-size: 0.75rem; margin: -1rem 0 1.75rem; }
