/*
Theme Name: Jan Rodan
Theme URI: https://janrodan.de
Author: Jan Rodan
Description: A quiet, direct personal homepage for Jan Rodan.
Version: 1.0.0
Requires at least: 6.5
Requires PHP: 8.2
Text Domain: janrodan
*/

:root {
    --paper: #f4f1e9;
    --paper-strong: #fffdf8;
    --ink: #1d2521;
    --muted: #68716c;
    --line: #d9d4c8;
    --accent: #c75b3e;
    --accent-dark: #8e3d2b;
    --shadow: 0 18px 48px rgba(29, 37, 33, 0.08);
    --radius: 18px;
    --shell: 1120px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 1rem;
    line-height: 1.65;
}

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

a {
    color: inherit;
}

a:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.site-shell {
    margin: 0 auto;
    max-width: var(--shell);
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    width: 100%;
}

.site-header {
    border-bottom: 1px solid var(--line);
}

.site-header-inner {
    align-items: center;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    min-height: 5.5rem;
}

.site-brand {
    align-items: center;
    display: inline-flex;
    font-weight: 750;
    gap: 0.75rem;
    letter-spacing: -0.02em;
    text-decoration: none;
}

.site-brand-mark {
    align-items: center;
    background: var(--ink);
    border-radius: 50%;
    color: var(--paper-strong);
    display: inline-flex;
    font-size: 0.75rem;
    height: 2.25rem;
    justify-content: center;
    letter-spacing: 0;
    width: 2.25rem;
}

.site-navigation {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 1.25rem;
}

.site-navigation a {
    color: var(--muted);
    font-size: 0.9rem;
    text-decoration: none;
}

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

.hero {
    align-items: end;
    display: grid;
    gap: 3rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(16rem, 0.75fr);
    padding-bottom: 7rem;
    padding-top: 7rem;
}

.eyebrow {
    color: var(--accent-dark);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    margin: 0 0 1rem;
    text-transform: uppercase;
}

.hero h1 {
    font-size: clamp(3rem, 8vw, 6.5rem);
    letter-spacing: -0.075em;
    line-height: 0.98;
    margin: 0;
    max-width: 10ch;
}

.hero-lede {
    color: var(--muted);
    font-size: 1.1rem;
    margin: 1.75rem 0 0;
    max-width: 35rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 2rem;
}

.button {
    background: var(--ink);
    border: 1px solid var(--ink);
    border-radius: 999px;
    color: var(--paper-strong);
    display: inline-flex;
    font-size: 0.9rem;
    font-weight: 700;
    padding: 0.7rem 1.1rem;
    text-decoration: none;
}

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

.button-secondary {
    background: transparent;
    color: var(--ink);
}

.pixel-game {
    align-items: stretch;
    background: #111923;
    border: 1px solid #2a3a49;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: #f4f1e9;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.35fr) minmax(14rem, 0.65fr);
    outline: none;
    padding: 1rem;
}

.pixel-game:focus-visible {
    outline: 3px solid var(--accent);
    outline-offset: 4px;
}

.pixel-game-screen {
    background: #0b1119;
    border: 1px solid #2a3a49;
    border-radius: 12px;
    min-width: 0;
    padding: 0.75rem;
}

.pixel-game-canvas {
    background: #101722;
    border: 1px solid #344b5c;
    display: block;
    image-rendering: pixelated;
    height: auto;
    max-width: 100%;
    width: 100%;
}

.pixel-game-status {
    color: #9ee7c7;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.78rem;
    margin: 0.75rem 0 0;
}

.pixel-game-controls {
    align-items: flex-start;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.75rem;
}

.pixel-game-help {
    color: #b8c4ca;
    font-size: 0.88rem;
    margin: 0 0 1.25rem;
}

.pixel-game-pad {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(3, 2.6rem);
    grid-template-rows: repeat(2, 2.6rem);
}

.pixel-game-pad button {
    background: #253746;
    border: 1px solid #557081;
    border-radius: 8px;
    color: #f4f1e9;
    cursor: pointer;
    font-size: 1rem;
    min-height: 2.6rem;
}

.pixel-game-pad button:hover,
.pixel-game-pad button:focus-visible {
    background: #3a5967;
}

.pixel-game-reset {
    border-color: #f4f1e9;
    margin-top: 1.25rem;
}

.hero-aside {
    border-left: 1px solid var(--line);
    color: var(--muted);
    padding-left: 2rem;
}

.hero-aside strong {
    color: var(--ink);
    display: block;
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.section {
    border-top: 1px solid var(--line);
    padding-bottom: 6rem;
    padding-top: 3.5rem;
}

.section-heading {
    align-items: end;
    display: flex;
    gap: 2rem;
    justify-content: space-between;
    margin-bottom: 2rem;
}

.section-heading h2 {
    font-size: clamp(2rem, 4vw, 3.3rem);
    letter-spacing: -0.05em;
    line-height: 1;
    margin: 0;
}

.section-heading p {
    color: var(--muted);
    margin: 0;
    max-width: 28rem;
}

.section-link {
    color: var(--accent-dark);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.link-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.link-card {
    background: var(--paper-strong);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    min-height: 12rem;
    padding: 1.5rem;
    position: relative;
    text-decoration: none;
    transition: border-color 160ms ease, transform 160ms ease;
}

.link-card:hover {
    border-color: var(--accent);
    transform: translateY(-4px);
}

.link-card-label {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
}

.link-card h3 {
    font-size: 1.45rem;
    letter-spacing: -0.04em;
    margin: auto 2rem 0 0;
}

.link-card-arrow {
    bottom: 1.5rem;
    color: var(--accent);
    font-size: 1.5rem;
    line-height: 1;
    position: absolute;
    right: 1.5rem;
}

.notes-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}

.note-card {
    border-top: 2px solid var(--ink);
    padding-top: 1rem;
}

.note-card time {
    color: var(--muted);
    font-size: 0.8rem;
}

.note-card h3 {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
    line-height: 1.2;
    margin: 0.7rem 0;
}

.note-card h3 a {
    text-decoration: none;
}

.note-card h3 a:hover {
    color: var(--accent-dark);
}

.note-card p {
    color: var(--muted);
    margin: 0;
}

.content-area {
    max-width: 48rem;
    padding-bottom: 6rem;
    padding-top: 5rem;
}

.content-area h1,
.content-area h2,
.content-area h3 {
    letter-spacing: -0.04em;
    line-height: 1.1;
}

.content-area h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    margin-top: 0;
}

.content-area a {
    color: var(--accent-dark);
}

.content-area img {
    border-radius: var(--radius);
    margin: 2rem 0;
}

.archive-header {
    border-bottom: 1px solid var(--line);
    padding-bottom: 2rem;
    padding-top: 5rem;
}

.archive-header h1 {
    font-size: clamp(2.5rem, 6vw, 4.8rem);
    letter-spacing: -0.06em;
    line-height: 1;
    margin: 0;
}

.archive-list {
    display: grid;
    gap: 2.5rem;
    padding-bottom: 6rem;
    padding-top: 3rem;
}

.archive-item {
    border-bottom: 1px solid var(--line);
    padding-bottom: 2rem;
}

.archive-item h2 {
    font-size: 2rem;
    letter-spacing: -0.04em;
    margin: 0.5rem 0;
}

.archive-item h2 a {
    text-decoration: none;
}

.archive-item p {
    color: var(--muted);
    margin: 0;
}

.site-footer {
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.85rem;
    padding-bottom: 2rem;
    padding-top: 2rem;
}

.site-footer-inner {
    align-items: center;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

.site-footer p {
    margin: 0;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links a {
    color: var(--muted);
    text-decoration: none;
}

.footer-links a:hover {
    color: var(--ink);
}

@media (max-width: 760px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        padding-bottom: 1.25rem;
        padding-top: 1.25rem;
    }

    .site-navigation {
        gap: 1rem;
    }

    .hero {
        display: block;
        padding-bottom: 5rem;
        padding-top: 5rem;
    }

    .hero-aside {
        border-left: 0;
        border-top: 1px solid var(--line);
        margin-top: 3rem;
        padding-left: 0;
        padding-top: 1.5rem;
    }

    .pixel-game {
        display: block;
    }

    .pixel-game-controls {
        align-items: center;
        padding: 1.25rem 0.75rem 0.75rem;
    }

    .pixel-game-help {
        text-align: center;
    }

    .section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
    }

    .site-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}
