:root {
    --bg: #0d0f12;
    --surface: #15181d;
    --border: #292e36;
    --text: #e8e8e8;
    --muted: #9299a3;
    --accent: #8fd3ff;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;

    background: var(--bg);
    color: var(--text);

    font-family:
        Inter,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;

    line-height: 1.7;
}

a {
    color: inherit;
}

/* Header */

.site-header {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;

    display: flex;
    justify-content: space-between;
    align-items: center;

    padding: 28px 0;

    border-bottom: 1px solid var(--border);
}

.site-title {
    color: var(--text);

    font-family: monospace;
    font-weight: bold;

    text-decoration: none;
}

nav {
    display: flex;
    gap: 24px;
}

nav a {
    color: var(--muted);

    font-size: 0.9rem;
    text-decoration: none;
}

nav a:hover {
    color: var(--text);
}

/* Main */

main {
    width: min(880px, calc(100% - 40px));
    margin: 0 auto;
}

/* Hero */

.hero {
    padding: 100px 0 64px;
}

.eyebrow {
    margin: 0 0 14px;

    color: var(--accent);

    font-family: monospace;
    font-size: 0.85rem;

    text-transform: uppercase;
    letter-spacing: 0.08em;
}

h1 {
    margin: 0;

    font-size: clamp(2.8rem, 8vw, 5.4rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.lead {
    max-width: 600px;

    margin: 28px 0 0;

    color: var(--muted);

    font-size: 1.15rem;
}

/* Solver */

.solver-section {
    margin-bottom: 72px;
}

.solver-area {
    min-height: 320px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 32px;

    background: var(--surface);

    border: 1px solid var(--border);
    border-radius: 8px;
}

.placeholder {
    margin: 0;

    color: var(--muted);

    font-family: monospace;
}

/* About */

.about-section {
    padding: 40px 0 80px;

    border-top: 1px solid var(--border);

    color: var(--muted);
}

.about-section p {
    margin: 0 0 10px;
}

.article-link {
    color: var(--accent);

    font-family: monospace;
    text-decoration: none;
}

.article-link:hover {
    color: var(--text);
}

/* Footer */

footer {
    width: min(1080px, calc(100% - 40px));
    margin: 0 auto;

    display: flex;
    gap: 20px;

    padding: 28px 0 40px;

    border-top: 1px solid var(--border);

    color: var(--muted);

    font-size: 0.85rem;
}

footer a {
    text-decoration: none;
}

footer a:hover {
    color: var(--text);
}

.puzzle
{
    width: min(100%, 520px);
    margin: 0 auto;
    padding: 32px;

    display: flex;
    flex-direction: column;
    gap: 20px;

    background: #11151a;
    border: 1px solid #2a3138;
    border-radius: 10px;
}

.solver-field
{
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.solver-field label
{
    font-size: 0.85rem;
    color: #aab4bf;
}

.solver-field input
{
    width: 100%;
    box-sizing: border-box;

    padding: 12px 14px;

    color: #eeeeee;
    background: #0c0f12;

    border: 1px solid #343c45;
    border-radius: 6px;

    font: inherit;
    font-size: 1rem;
}

.solver-field input:focus
{
    outline: none;
    border-color: #63d8ff;
}

.solve-button
{
    padding: 12px 18px;

    color: #081014;
    background: #63d8ff;

    border: none;
    border-radius: 6px;

    font: inherit;
    font-weight: 600;

    cursor: pointer;
}

.solve-button:hover
{
    background: #8ce3ff;
}

.solver-result
{
    min-height: 1.5em;

    color: #eeeeee;

    font-size: 1.1rem;
    line-height: 1.6;
    text-align: center;
}


/* Mobile */

@media (max-width: 600px) {
    .site-header {
        align-items: flex-start;
    }

    nav {
        gap: 14px;
    }

    .hero {
        padding: 72px 0 48px;
    }

    .solver-area {
        min-height: 260px;
        padding: 20px;
    }
}