@font-face {
    font-family: "P22 Typewriter";
    src: url("/fonts/p22-typewriter-regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --bg: #ffcc01;
    --paper: #fff8df;
    --paper-strong: #fff4c1;
    --text: #111111;
    --line: #111111;
    --shadow: 8px 8px 0 #111111;
}

body[data-theme="artist"] {
    --bg: #ffcc01;
    --paper: #fff8df;
    --paper-strong: #fff4c1;
    --text: #111111;
    --line: #111111;
    --shadow: 8px 8px 0 #111111;
}

body[data-theme="light"] {
    --bg: #f3efe5;
    --paper: #fffdfa;
    --paper-strong: #f4efe7;
    --text: #121212;
    --line: #121212;
    --shadow: 8px 8px 0 rgba(18, 18, 18, 0.18);
}

body[data-theme="dark"] {
    --bg: #111111;
    --paper: #1c1c1c;
    --paper-strong: #242424;
    --text: #f4f0e7;
    --line: #f4f0e7;
    --shadow: 8px 8px 0 rgba(0, 0, 0, 0.55);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: "P22 Typewriter", monospace;
    transition: background-color 180ms ease, color 180ms ease;
}

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

a {
    color: inherit;
    text-decoration: none;
}

.site-nav {
    width: min(1200px, calc(100vw - 28px));
    margin: 18px auto 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    position: relative;
}

.brand,
.theme-chip,
.menu-button,
.menu a {
    border: 2px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.brand {
    width: 52px;
    height: 52px;
    display: grid;
    place-items: center;
    font-weight: 700;
    overflow: hidden;
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-toggle {
    display: none;
}

.nav-controls {
    margin-left: auto;
    display: flex;
    align-items: center;
}

.theme-switcher {
    display: flex;
    align-items: center;
    gap: 10px;
}

.theme-chip {
    width: 52px;
    height: 52px;
    padding: 0;
    display: grid;
    place-items: center;
    cursor: pointer;
    transition: transform 140ms ease, background-color 180ms ease, color 180ms ease;
}

.theme-chip.is-active {
    transform: translate(-2px, -2px);
}

.theme-icon {
    display: inline-block;
    position: relative;
}

.theme-icon-light {
    width: 18px;
    height: 18px;
    border: 2px solid var(--line);
    border-radius: 50%;
}

.theme-icon-light::before,
.theme-icon-light::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-top: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    transform: rotate(45deg);
}

.theme-icon-light::after {
    transform: rotate(90deg);
    inset: -8px;
}

.theme-icon-dark {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--line);
}

.theme-icon-dark::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--paper);
}

.theme-art-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.menu-button {
    width: 52px;
    height: 52px;
    padding: 11px 10px;
    display: none;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
}

.menu-button span {
    display: block;
    height: 3px;
    width: 100%;
    background: var(--line);
}

.menu {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.menu a {
    display: block;
    padding: 14px 18px;
}

.page-shell {
    width: min(1200px, calc(100vw - 28px));
    margin: 20px auto 0;
    padding-bottom: 40px;
}

.hero-card,
.info-strip,
.panel,
.feature-card,
.availability,
.page-footer {
    border: 2px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
}

.hero-card {
    display: grid;
    grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
    gap: 18px;
    padding: 18px;
    align-items: stretch;
}

.hero-copy {
    padding: 14px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 18px;
}

.eyebrow,
.panel-kicker,
.strip-label {
    margin: 0;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.hero-copy h1,
.panel h2,
.feature-copy h2 {
    margin: 0;
    font-size: clamp(2.8rem, 6vw, 5.2rem);
    line-height: 0.92;
}

.intro,
.panel p,
.route-copy,
.feature-copy p,
.strip-value,
.page-footer p {
    margin: 0;
    font-size: 1rem;
    line-height: 1.7;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.action-link,
.inline-link {
    border: 2px solid var(--line);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    color: var(--text);
}

.action-link {
    padding: 14px 18px;
}

.action-link.alt {
    background: var(--paper);
}

.inline-link {
    justify-self: start;
    padding: 12px 16px;
}

.hero-portrait {
    margin: 0;
    min-height: 420px;
    overflow: hidden;
    border: 2px solid var(--line);
    background: #ddd6bf;
}

.hero-portrait img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 34% center;
}

.info-strip {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
}

.strip-item {
    padding: 18px;
}

.strip-item + .strip-item {
    border-left: 2px solid var(--line);
}

.content-grid {
    margin-top: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, 0.92fr);
    gap: 18px;
}

.panel {
    padding: 22px;
    display: grid;
    gap: 18px;
    align-content: start;
}

.panel-about h2 {
    font-size: clamp(2rem, 4vw, 3.4rem);
}

.panel-links {
    background: var(--paper-strong);
}

.route-card {
    border: 2px solid var(--line);
    background: var(--paper);
    box-shadow: var(--shadow);
    color: var(--text);
    padding: 16px;
    display: grid;
    gap: 8px;
    transition: transform 140ms ease;
}

.route-card:hover,
.action-link:hover,
.inline-link:hover,
.menu a:hover,
.theme-chip:hover,
.menu-button:hover {
    transform: translate(-2px, -2px);
}

.route-title,
.strip-value {
    font-weight: 700;
}

.feature-card {
    margin-top: 18px;
    padding: 18px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 0.8fr);
    gap: 18px;
    align-items: center;
}

.feature-copy {
    display: grid;
    gap: 16px;
}

.feature-copy h2 {
    font-size: clamp(1.8rem, 4vw, 3.3rem);
}

.feature-image {
    margin: 0;
    border: 2px solid var(--line);
    background: #111111;
    padding: 0;
    min-height: 280px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.feature-image img {
    max-height: 320px;
    width: auto;
    object-fit: contain;
}

.feature-image video {
    width: 100%;
    height: 100%;
    min-height: 280px;
    object-fit: cover;
    display: block;
    background: #111111;
}

.tools-panel {
    margin-top: 18px;
    border: 2px solid var(--line);
    background: var(--paper-strong);
    box-shadow: var(--shadow);
    padding: 20px 22px;
    display: grid;
    gap: 16px;
}

.tools-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.tool-chip {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 14px;
    border: 2px solid var(--line);
    background: var(--paper);
    color: var(--text);
    box-shadow: var(--shadow);
    transition: background-color 160ms ease, color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.tool-chip:hover {
    transform: translate(-2px, -2px);
}

.tool-chip[data-tool="photoshop"]:hover {
    background: #001e36;
    color: #31a8ff;
    border-color: #31a8ff;
}

.tool-chip[data-tool="lightroom"]:hover {
    background: #001d26;
    color: #31a8ff;
    border-color: #31a8ff;
}

.tool-chip[data-tool="audition"]:hover {
    background: #1d0031;
    color: #c58cff;
    border-color: #c58cff;
}

.tool-chip[data-tool="indesign"]:hover {
    background: #49021f;
    color: #ff5fa2;
    border-color: #ff5fa2;
}

.tool-chip[data-tool="illustrator"]:hover {
    background: #2f1700;
    color: #ff9a00;
    border-color: #ff9a00;
}

.tool-chip[data-tool="premiere"]:hover {
    background: #1f103f;
    color: #d2a8ff;
    border-color: #d2a8ff;
}

.tool-chip[data-tool="logic"]:hover {
    background: #1d1d1f;
    color: #ff6a3d;
    border-color: #ff6a3d;
}

.tool-chip[data-tool="procreate"]:hover {
    background: #171717;
    color: #8ce0ff;
    border-color: #8ce0ff;
}

.tool-chip[data-tool="davinci"]:hover {
    background: #12202b;
    color: #7bd7ff;
    border-color: #7bd7ff;
}

.tool-chip[data-tool="finalcut"]:hover {
    background: #1b2330;
    color: #8dd5ff;
    border-color: #8dd5ff;
}

.tool-chip[data-tool="vscode"]:hover {
    background: #0f2236;
    color: #3ea6ff;
    border-color: #3ea6ff;
}

.availability {
    margin-top: 18px;
    padding: 20px 24px;
    text-align: center;
}

.availability p {
    margin: 0;
    font-size: clamp(1.35rem, 4vw, 2.4rem);
    line-height: 1.2;
}

.page-footer {
    width: min(1200px, calc(100vw - 28px));
    margin: 0 auto 26px;
    padding: 18px;
    display: grid;
    place-items: center;
    gap: 6px;
    text-align: center;
}

.scroll-top {
    position: fixed;
    right: 18px;
    bottom: 18px;
    width: 52px;
    height: 52px;
    border: 2px solid var(--line);
    background: var(--paper);
    color: var(--text);
    box-shadow: var(--shadow);
    display: grid;
    place-items: center;
    cursor: pointer;
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 160ms ease, transform 160ms ease, background-color 180ms ease, color 180ms ease;
    z-index: 40;
}

.scroll-top.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

@media (max-width: 900px) {
    .menu-button {
        display: flex;
    }

    .menu {
        position: absolute;
        top: 64px;
        right: 0;
        width: min(280px, 100%);
        display: grid;
        gap: 10px;
        opacity: 0;
        pointer-events: none;
        transform: translateY(-10px);
        transition: opacity 160ms ease, transform 160ms ease;
    }

    .menu a {
        padding: 14px 16px;
    }

    .menu-toggle:checked ~ .menu {
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-controls {
        margin-left: 0;
    }

    .hero-card,
    .content-grid,
    .feature-card {
        grid-template-columns: 1fr;
    }

    .hero-portrait {
        min-height: 360px;
    }
}

@media (max-width: 640px) {
    .site-nav,
    .page-shell,
    .page-footer {
        width: calc(100vw - 20px);
    }

    .site-nav {
        margin-top: 10px;
        align-items: center;
        flex-wrap: nowrap;
    }

    .brand,
    .theme-chip,
    .menu-button {
        width: 48px;
        height: 48px;
    }

    .nav-controls {
        order: 0;
        width: auto;
        margin-left: auto;
        justify-content: flex-end;
        flex: 0 0 auto;
    }

    .theme-switcher {
        gap: 8px;
    }

    .hero-card,
    .feature-card,
    .panel,
    .availability {
        padding: 14px;
    }

    .hero-copy {
        padding: 4px;
    }

    .hero-portrait {
        min-height: 300px;
    }

    .hero-copy h1 {
        font-size: clamp(2.4rem, 12vw, 4rem);
    }

    .info-strip {
        grid-template-columns: 1fr;
    }

    .strip-item + .strip-item {
        border-left: 0;
        border-top: 2px solid var(--line);
    }

    .feature-image {
        min-height: 220px;
    }

    .feature-image img,
    .feature-image video {
        max-height: none;
        min-height: 220px;
    }

    .scroll-top {
        right: 14px;
        bottom: 14px;
        width: 48px;
        height: 48px;
    }
}
