/* ScreenState site. The palette is the product's own, copied from
   assets/theme.css: sampled from the artwork, every pair measured to clear 4.5
   to 1 on its own ground. Light and dark as the manager has them; dark is the
   default and the toggle can choose light. The ring model is the product's too:
   no ring at rest, a green one on hover and focus. */

:root {
    color-scheme: dark;
    --surface: #0b0e14;
    --panel: #141820;
    --raised: #1e232c;
    --border: #2c323d;
    --text: #e6eaf0;
    --muted: #8d95a3;
    --accent: #3d9bff;
    --secondary: #b3bcff;
    --secondary-soft: #1e2140;
    --ring: #34d399;
    --glow: rgba(61, 155, 255, 0.12);
    --on-accent: #0b0e14;

    --radius: 14px;
    --gutter: 16px;
    --max: 1040px;
    --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-display: "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
}

:root[data-theme="light"] {
    color-scheme: light;
    --surface: #f4f6f9;
    --panel: #ffffff;
    --raised: #e7ebf1;
    --border: #d2d8e1;
    --text: #171a1f;
    --muted: #5d6470;
    --accent: #0059a8;
    --secondary: #4338ca;
    --secondary-soft: #e2e2fb;
    --ring: #047857;
    --glow: rgba(0, 89, 168, 0.10);
    --on-accent: #ffffff;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background:
        radial-gradient(1100px 560px at 75% -10%, var(--glow), transparent 65%),
        var(--surface);
    color: var(--text);
    font: 17px/1.6 var(--font);
    overflow-x: hidden;
}

a { color: var(--accent); text-underline-offset: 3px; }

img { max-width: 100%; }

:focus { outline: none; }

.wrap {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    /* Sides only: a shorthand here outranks `section`'s vertical padding. */
    padding-inline: var(--gutter);
}

/* Header */

.site-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 20px;
    padding-bottom: 20px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.15rem;
    border: 2px solid transparent;
    border-radius: 9px;
    padding: 2px 6px;
}

.brand img { width: 40px; height: 40px; }

.site-head nav { display: flex; gap: 14px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }

.site-head nav a {
    color: var(--muted);
    text-decoration: none;
    font-size: 0.95rem;
    border: 2px solid transparent;
    border-radius: 8px;
    padding: 4px 8px;
}

.site-head nav a:hover,
.site-head nav a:focus-visible,
.brand:hover,
.brand:focus-visible { color: var(--text); border-color: var(--ring); }

.theme {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 10px;
    background: var(--raised);
    cursor: pointer;
}

.theme:hover,
.theme:focus-visible { border-color: var(--ring); }

.theme img { width: 28px; height: 28px; }

/* Hero */

.hero {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 48px;
    align-items: center;
    padding-top: 48px;
    padding-bottom: 56px;
}

.eyebrow {
    display: inline-flex;
    gap: 8px;
    flex-wrap: wrap;
    margin: 0 0 18px;
}

.pill {
    border: 1px solid var(--border);
    background: var(--panel);
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.8rem;
    color: var(--muted);
}

h1 {
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 5.5vw, 3.8rem);
    line-height: 1.04;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.lead { font-size: 1.15rem; color: var(--muted); margin: 0 0 28px; max-width: 34em; }

.lead strong { color: var(--text); font-weight: 600; }

.art { display: grid; place-items: center; }

.art img {
    width: min(100%, 256px);
    height: auto;
    filter: drop-shadow(0 24px 48px var(--glow));
}

.cta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 10px;
    border: 2px solid transparent;
    background: var(--raised);
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
}

.btn:hover,
.btn:focus-visible { border-color: var(--ring); }

.btn-primary { background: var(--accent); color: var(--on-accent); }

/* Sections */

section { padding-top: 64px; padding-bottom: 16px; }

h2 {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 3.8vw, 2.4rem);
    letter-spacing: -0.015em;
    line-height: 1.12;
    margin: 0 0 16px;
}

.kicker {
    color: var(--accent);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 0.78rem;
    margin: 0 0 10px;
}

.prose { max-width: 40em; color: var(--muted); }

.prose p { margin: 0 0 16px; }

.prose strong { color: var(--text); }

.note { margin-top: 20px; }

/* Steps */

.steps { counter-reset: step; list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 12px; max-width: 44em; }

.steps li {
    counter-increment: step;
    position: relative;
    padding: 14px 18px 14px 60px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--muted);
}

.steps li::before {
    content: counter(step);
    position: absolute;
    left: 18px;
    top: 13px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: var(--accent);
    color: var(--on-accent);
    font-weight: 700;
    font-size: 0.9rem;
}

.steps li strong { color: var(--text); }

/* Lists */

.card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px 24px;
}

.card h3 { margin: 0 0 12px; font-size: 1.15rem; }

.card ul { margin: 0; padding-left: 20px; color: var(--muted); }

.card li { margin-bottom: 8px; }

.card li strong { color: var(--text); }

code {
    font-family: "Cascadia Code", Consolas, monospace;
    font-size: 0.88em;
    background: var(--raised);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 1px 6px;
    overflow-wrap: anywhere;
}

/* Support: the house donate section, last before the footer. */

.support .cta { margin-top: 20px; }

.btn-donate img {
    display: block;
    height: 2.7em;
    width: auto;
}

/* Footer */

.site-foot {
    margin-top: 64px;
    padding-top: 28px;
    padding-bottom: 40px;
    border-top: 1px solid var(--border);
    color: var(--muted);
    font-size: 0.9rem;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.site-foot a { color: var(--muted); }

/* Phones */

@media (max-width: 820px) {
    .hero { grid-template-columns: 1fr; gap: 28px; padding-top: 24px; }
    .art { order: -1; }
    .art img { width: 160px; }
}

@media (max-width: 520px) {
    body { font-size: 16px; }
    .site-head nav a.hide-sm { display: none; }
    .site-head nav { gap: 6px; }
}

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