/* SPDX-License-Identifier: MIT
   Copyright (c) 2026 Olha Stefanishyna */

:root {
    --serif: "Iowan Old Style", Charter, Georgia, "Times New Roman", serif;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
    --radius: 14px;
}

:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #05052f;
    --bg-raised: #0d0d55;
    --ink: #f3f3fe;
    --muted: #b9bdf0;
    --faint: #7e83c4;
    --line: #26266e;
    --accent: #f6711f;
    --accent-ink: #1a0d00;
    --art-glow: 0 0 120px rgba(246, 113, 31, 0.12);
    --glow-wide: #0b0b78;
    --glow-core: #f6711f9e;
    --accent-bg: #f6711fd7;
    --glow-accent: red;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f6f6ff;
    --bg-raised: #ffffff;
    --ink: #0d0d55;
    --muted: #454a7a;
    --faint: #7a7fa8;
    --line: #d9d9f5;
    --accent: #d95f10;
    --accent-ink: #ffffff;
    --art-glow: 0 12px 60px rgba(11, 11, 120, 0.12);
    --glow-wide: #cbcbfb;
    --glow-core: #f6711f66;
    --accent-bg: #f9b0839e;
    --glow-accent: red;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.65;
    transition: background 0.25s ease, color 0.25s ease;
}

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

main {
    padding-bottom: 4rem;
}

/* Content sections share one readable column; the hero is full-bleed. */
main>section:not(.hero) {
    width: min(calc(92% - 3rem), 70rem);
    margin-inline: auto;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 0.75rem 1.5rem;
    background: color-mix(in srgb, var(--bg) 88%, transparent);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: 0.01em;
}

.site-header nav {
    display: flex;
    gap: 1.25rem;
    margin-left: auto;
}

.site-header nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
}

.site-header nav a:hover {
    color: var(--ink);
}

#theme-toggle {
    background: none;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 1rem;
    line-height: 1;
    padding: 0.4rem 0.55rem;
    cursor: pointer;
}

#theme-toggle:hover {
    border-color: var(--accent);
}

/* Hero: one centered column over an "evening horizon" — the logo's
   navy → orange gradient, rising from the bottom edge. */
.hero {
    position: relative;
    isolation: isolate;
    display: flex;
    min-height: min(calc(100svh - 3.6rem), 50rem);
    padding: 5rem 1.5rem 8rem;
    border-top: 0;
    text-align: center;
    overflow: hidden;
    height: calc(100vh - 60px);
}

/* .hero::before {
    content: "";
    position: absolute;
    left: 50%;
    top: -9rem;
    width: 46rem;
    height: 26rem;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(closest-side, var(--glow-accent), transparent);
    pointer-events: none;
} */


.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -1;
    background:
        radial-gradient(ellipse 45% 42% at 50% 100%, var(--glow-core), transparent 75%),
        radial-gradient(ellipse 85% 70% at 50% 100%, var(--glow-wide), transparent 78%);
}

.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--muted) 20%, var(--accent) 50%, var(--muted) 80%, transparent);
}

.hero+section {
    border-top: 0;
}

.hero-text {
    margin: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    row-gap: 32px;
    max-width: 40rem;
}

.kicker {
    /* color: var(--muted); */
    font-size: 1rem;
    margin: 0 0 1.5rem;
    font-family: 'Courier New', Courier, monospace;
    /* background-color: var(--accent-bg); */
    background-color: var(--line);
}

.kicker em {
    font-family: var(--serif);
}

.hero h1 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: clamp(2.1rem, 8.2vw, 4.5rem);
    line-height: 1.08;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0 0 1.75rem;
}

.lede {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 36rem;
    margin: 0 auto 1rem;
    text-wrap: balance;
}

.lede-sync {
    font-size: 1rem;
    margin-bottom: 2.25rem;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
    margin: 0 0 1.5rem;
}

.button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
}

.button:hover {
    border-color: var(--accent);
}

.button.primary {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 8px 28px -10px var(--accent);
}

.platforms {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0;
}

section {
    padding: 2.5rem 0;
    border-top: 1px solid var(--line);
}

section h2 {
    font-family: var(--serif);
    font-weight: 600;
    font-size: 1.9rem;
    margin: 0 0 0.5rem;
    letter-spacing: -0.01em;
}

section>p {
    color: var(--muted);
    max-width: 42rem;
}

.video-frame {
    position: relative;
    margin-top: 1.5rem;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-raised);
    aspect-ratio: 16 / 9;
}

.video-frame video {
    width: 100%;
    height: 100%;
    display: block;
}

.video-frame video[hidden] {
    display: none;
}

#video-facade {
    position: absolute;
    inset: 0;
    width: 100%;
    background: none;
    border: 0;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: var(--ink);
}

#video-facade[hidden] {
    display: none;
}

#video-facade .play {
    width: 4.5rem;
    height: 4.5rem;
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    padding-left: 0.3rem;
    color: var(--accent);
}

#video-facade:hover .play {
    background: var(--accent);
    color: var(--accent-ink);
}

.facade-note {
    color: var(--faint);
    font-size: 0.85rem;
}

.feature-list {
    list-style: none;
    counter-reset: feature;
    margin: 1.5rem 0 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 3rem;
}

.feature-list li {
    counter-increment: feature;
    padding: 1.25rem 0 1.25rem 3.25rem;
    position: relative;
    border-top: 1px solid var(--line);
}

.feature-list li::before {
    content: counter(feature, decimal-leading-zero);
    position: absolute;
    left: 0;
    top: 1.35rem;
    font-family: var(--serif);
    font-style: italic;
    color: var(--accent);
    font-size: 1.1rem;
}

.feature-list h3 {
    font-size: 1.15rem;
    margin: 0 0 0.35rem;
}

.feature-list p {
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
}

.feature-list code,
.source-note code {
    font-size: 0.88em;
}

.download-list {
    list-style: none;
    margin: 1.5rem 0 0;
    padding: 0;
    max-width: 100%;
}

.download-list li+li {
    border-top: 1px solid var(--line);
}

.download-list a {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 0.9rem 0;
    color: var(--ink);
    text-decoration: none;
}

.download-list a:hover strong {
    color: var(--accent);
}

.download-list span {
    color: var(--faint);
    font-size: 0.92rem;
}

.source-note {
    color: var(--muted);
    max-width: 42rem;
}

.source-note a {
    color: var(--accent);
}

.main {
    position: relative;
}

.download::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--muted) 20%, var(--accent) 50%, var(--muted) 80%, transparent);
}

footer {
    border-top: 1px solid var(--line);
    padding: 1.5rem;
    text-align: center;
    color: var(--faint);
    font-size: 0.9rem;
}

footer a {
    color: var(--muted);
}

@media (max-width: 56rem) {
    .hero {
        padding: 3.5rem 1.25rem 6rem;
    }

    .feature-list {
        grid-template-columns: 1fr;
    }

    .site-header nav a:not(:last-child) {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body {
        transition: none;
    }
}
