@font-face {
    font-family: "W95FA";
    src: url("assets/fonts/W95FA.woff2") format("woff2");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

:root {
    --desktop: #1b0d29;
    --desktop-2: #3a1f53;
    --window: #f2d9ff;
    --window-2: #ffd4ec;
    --window-3: #d9c3ff;
    --title: #4f1759;
    --title-hot: #8f0f65;
    --ink: #1b0f25;
    --muted: #553d65;
    --line: #17091d;
    --hilite: #9f2a7d;
    --lilac: #bda0ff;
    --yellow: #fff06f;
    --mint: #b8ff9c;
    --white: #fff8ff;
    --shadow: #07040a;
    --font-body: "W95FA", "Microsoft Sans Serif", "MS Sans Serif", Tahoma, sans-serif;
    --font-heading: Impact, "Arial Narrow", "Lucida Console", monospace;
    --cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd4ec' stroke='%2317091d' stroke-width='2' stroke-linejoin='round' d='M3 2v18l5-5 3 7 3-1-3-7h7z'/%3E%3C/svg%3E") 3 2, auto;
    --cursor-hot: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath fill='%23ffd4ec' stroke='%2317091d' stroke-width='2' stroke-linejoin='round' d='m12 2 2.5 6.5L21 11l-6.5 2.5L12 21l-2.5-7.5L3 11l6.5-2.5z'/%3E%3Ccircle cx='12' cy='11' r='2' fill='%2317091d'/%3E%3C/svg%3E") 12 12, pointer;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--desktop);
    color: var(--ink);
}

body {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    margin: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(255, 139, 215, 0.16), transparent 18rem),
        radial-gradient(circle at 90% 20%, rgba(189, 160, 255, 0.22), transparent 20rem),
        linear-gradient(135deg, rgba(255, 255, 255, 0.025) 25%, transparent 25% 75%, rgba(255, 255, 255, 0.025) 75%),
        linear-gradient(45deg, rgba(255, 139, 215, 0.045) 25%, transparent 25% 75%, rgba(255, 139, 215, 0.045) 75%),
        var(--desktop);
    background-size: auto, auto, 36px 36px, 36px 36px, auto;
    color: var(--ink);
    cursor: var(--cursor);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.45;
    overflow-x: hidden;
}

button,
a {
    cursor: var(--cursor-hot);
    font: inherit;
}

button {
    color: inherit;
}

.desktop {
    position: relative;
    z-index: 0;
    min-height: 100vh;
    padding: 8px 8px 40px;
}

/* Layer 1: decorative wallpaper, behind the interactive desktop UI. */
.code-wallpaper {
    position: fixed;
    z-index: 1;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.taskbar {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 100;
    display: grid;
    align-items: center;
    grid-template-columns: auto minmax(0, 1fr) auto;
    width: 100%;
    height: 32px;
    min-height: 32px;
    gap: 4px;
    padding: 2px 4px;
    border: 2px solid;
    border-color: var(--white) var(--title) var(--title) var(--white);
    background: var(--lilac);
    font-size: 11px;
    line-height: 1.1;
    overflow: hidden;
}

.taskbar-apps {
    display: flex;
    flex: 1 1 auto;
    gap: 4px;
    min-width: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
}

.taskbar-apps::-webkit-scrollbar {
    display: none;
}

.taskbar-apps button,
.window-controls button,
.menu-button {
    border: 2px solid var(--line);
    background: var(--white);
    box-shadow: 2px 2px 0 var(--shadow);
}

.start-button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-width: 78px;
    height: 24px;
    padding: 1px 9px 1px 6px;
    border: 2px solid;
    border-color: var(--white) var(--title) var(--title) var(--white);
    background: var(--window-3);
    box-shadow: 1px 1px 0 var(--shadow);
    color: var(--ink);
    font-size: 12px;
    line-height: 1;
    font-weight: 700;
    text-shadow: none;
}

.start-mark {
    display: inline-block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    background: url("assets/pink-windows-icon.png") center / 18px 18px no-repeat;
    image-rendering: pixelated;
}

.system-tray {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    min-height: 24px;
    padding: 2px 6px;
    border: 2px solid;
    border-color: var(--title) var(--white) var(--white) var(--title);
    background: var(--window-3);
    box-shadow: inset 1px 1px 0 var(--title);
    color: var(--ink);
    line-height: 1;
    text-shadow: none;
}

.clock {
    min-width: 68px;
    color: var(--ink);
    font-size: 11px;
    text-align: right;
    white-space: nowrap;
}

.taskbar .fx-toggle {
    display: inline-flex;
    align-items: center;
    min-width: 64px;
    max-width: none;
    height: 22px;
    min-height: 22px;
    justify-content: center;
    padding: 2px 5px;
    border: 2px solid;
    border-color: var(--white) var(--title) var(--title) var(--white);
    background: var(--window-3);
    box-shadow: 1px 1px 0 var(--shadow);
    color: var(--ink);
    font-size: 11px;
    letter-spacing: 0.02em;
    line-height: 1;
    text-align: center;
}

.taskbar .fx-toggle[aria-pressed="true"] {
    border-color: var(--title) var(--white) var(--white) var(--title);
    background: var(--window-2);
    box-shadow: inset 1px 1px 0 var(--title);
    color: var(--ink);
    text-shadow: none;
}

.fx-warning {
    width: min(420px, calc(100vw - 32px));
    margin: auto;
    padding: 0;
    border: 2px solid var(--line);
    background: var(--window);
    box-shadow: 7px 7px 0 var(--shadow);
    color: var(--ink);
    font-family: var(--font-body);
}

.fx-warning::backdrop {
    background: rgba(7, 4, 10, 0.72);
}

.fx-warning-titlebar {
    min-height: 32px;
    padding: 8px 10px;
    border-bottom: 2px solid var(--line);
    background: linear-gradient(90deg, var(--window-3), var(--window-2));
}

.fx-warning-titlebar h2 {
    margin: 0;
    font-size: 13px;
    line-height: 1.1;
}

.fx-warning-body {
    padding: 16px;
    background: var(--white);
}

.fx-warning-body p {
    margin: 0;
    color: var(--ink);
    overflow-wrap: anywhere;
}

.fx-warning-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 16px;
}

.fx-warning-actions button {
    min-height: 30px;
    padding: 4px 9px;
    border: 2px solid var(--line);
    background: var(--window-2);
    box-shadow: 2px 2px 0 var(--shadow);
    color: var(--ink);
}

.fx-warning-actions button:hover,
.fx-warning-actions button:focus-visible {
    background: var(--yellow);
    outline: 2px dotted var(--line);
    outline-offset: 2px;
}

.desktop-stage {
    position: relative;
    z-index: 2;
    width: 100%;
    min-height: calc(100vh - 48px);
    margin: 0;
}

.icon-grid {
    display: grid;
    grid-template-rows: repeat(auto-fill, minmax(92px, 1fr));
    grid-auto-flow: column;
    grid-auto-columns: 96px;
    gap: 18px 12px;
    width: max-content;
    height: calc(100vh - 48px);
    padding: 10px 0 0 6px;
}

.desktop-icon {
    display: grid;
    place-items: center;
    gap: 5px;
    min-height: 92px;
    padding: 5px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--white);
    text-align: center;
    text-shadow: 2px 2px 0 var(--shadow);
}

.desktop-icon:hover,
.desktop-icon:focus-visible,
.desktop-icon.is-selected {
    border-color: var(--yellow);
    background: rgba(255, 139, 215, 0.25);
    outline: 2px dotted var(--yellow);
    outline-offset: 2px;
}

.icon-label {
    max-width: 88px;
    padding: 1px 4px;
    background: rgba(27, 15, 37, 0.76);
    font-size: 12px;
    overflow-wrap: anywhere;
}

.icon-shape {
    position: relative;
    display: block;
    width: 54px;
    height: 44px;
    border: 2px solid var(--line);
    background: var(--window);
    box-shadow: 4px 4px 0 var(--shadow);
}

.folder {
    width: 64px;
    height: 64px;
    border: 0;
    background: url("assets/folder-pink-icon.png") center / 64px 64px no-repeat;
    box-shadow: none;
    image-rendering: pixelated;
}

.shortcut::before,
.computer::before,
.review-icon::before {
    content: "";
    position: absolute;
    inset: 8px;
    border: 2px solid var(--line);
    background: var(--yellow);
}

.file {
    width: 64px;
    height: 64px;
    border: 0;
    background: url("assets/markdown-icon.png") center / 64px 64px no-repeat;
    box-shadow: none;
    image-rendering: pixelated;
}

.devlog-icon {
    justify-items: center;
    text-align: center;
}

.devlog-icon .icon-shape.file {
    width: 64px;
    height: 64px;
    margin-inline: auto;
    background: url("assets/txt-icon.png") center / contain no-repeat;
}

.devlog-icon .icon-label {
    justify-self: center;
    text-align: center;
}

.shortcut::after {
    content: "↗";
    position: absolute;
    right: 3px;
    bottom: -4px;
    color: var(--title-hot);
    font-weight: 700;
}

.computer {
    border-bottom-width: 8px;
    background: var(--ink);
}

.computer::before {
    background: var(--mint);
}

.review-icon {
    width: 64px;
    height: 64px;
    border: 0;
    background: url("assets/birdie-icon.png") center / 64px 64px no-repeat;
    box-shadow: none;
    image-rendering: pixelated;
}

.review-icon::before {
    content: none;
}

.review-icon::after {
    content: none;
}

.window-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.window {
    position: absolute;
    left: min(var(--x), calc(100vw - var(--w) - 24px));
    top: var(--y);
    z-index: var(--z);
    display: none;
    flex-direction: column;
    width: min(var(--w), calc(100vw - 28px));
    height: var(--h);
    max-height: calc(100dvh - var(--y) - 48px);
    min-height: 0;
    border: 2px solid var(--line);
    background: var(--window);
    box-shadow: 7px 7px 0 var(--shadow);
    pointer-events: auto;
}

.window.is-open {
    display: flex;
}

.window.is-active {
    box-shadow: 7px 7px 0 var(--shadow), 0 0 0 3px var(--yellow);
}

.window.is-minimized {
    display: none;
}

@media (min-width: 761px) {
    .window.is-maximized {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 32px;
        left: 0;
        width: auto;
        height: auto;
        max-height: none;
        margin: 0;
        box-shadow: none;
    }

    .window.is-maximized.is-active {
        box-shadow: none;
    }

    .window.is-maximized .window-resize-handle {
        display: none;
        pointer-events: none;
    }
}

.window-titlebar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    min-height: 32px;
    padding: 4px 5px 4px 9px;
    border-bottom: 2px solid var(--line);
    background: linear-gradient(90deg, var(--window-3), var(--window-2));
    color: var(--ink);
    font-size: 12px;
    line-height: 1.1;
}

.window-titlebar h1,
.window-titlebar h2 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.1;
}

.window-controls {
    display: flex;
    gap: 4px;
    margin-left: auto;
}

.window-controls button {
    display: grid;
    width: 24px;
    height: 22px;
    padding: 0;
    place-items: center;
    background: var(--window-2);
    color: var(--ink);
    line-height: 1;
}

.window-body {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px;
    background:
        linear-gradient(rgba(255, 255, 255, 0.35) 1px, transparent 1px),
        var(--window);
    background-size: 100% 18px;
    overflow: auto;
    overscroll-behavior: contain;
}

.window-resize-handle {
    position: absolute;
    z-index: 4;
    display: block;
    width: 10px;
    height: 10px;
    border: 0;
    background: transparent;
    opacity: 0;
    pointer-events: auto;
}

.window-resize-handle-n,
.window-resize-handle-s {
    left: 10px;
    right: 10px;
    width: auto;
    cursor: ns-resize;
}

.window-resize-handle-n {
    top: -5px;
}

.window-resize-handle-s {
    bottom: -5px;
}

.window-resize-handle-e,
.window-resize-handle-w {
    top: 10px;
    bottom: 10px;
    height: auto;
    cursor: ew-resize;
}

.window-resize-handle-e {
    right: -5px;
}

.window-resize-handle-w {
    left: -5px;
}

.window-resize-handle-ne,
.window-resize-handle-sw {
    cursor: nesw-resize;
}

.window-resize-handle-ne {
    top: -5px;
    right: -5px;
}

.window-resize-handle-sw {
    bottom: -5px;
    left: -5px;
}

.window-resize-handle-se,
.window-resize-handle-nw {
    cursor: nwse-resize;
}

.window-resize-handle-se {
    right: -5px;
    bottom: -5px;
}

.window-resize-handle-nw {
    top: -5px;
    left: -5px;
}

#window-welcome .window-body,
#window-welcome .window-body *,
#window-projects .window-body,
#window-projects .window-body *,
#window-reviews .window-body,
#window-reviews .window-body *,
#window-log .window-body,
#window-log .window-body *,
#window-contact .window-body,
#window-contact .window-body *,
#window-about .window-body,
#window-about .window-body * {
    font-family: "Lucida Console", "Courier New", monospace;
}

.system-line {
    color: var(--title-hot);
    font-size: 12px;
}

.welcome-body h2 {
    margin: 8px 0 10px;
    font-family: var(--font-heading);
    color: var(--ink);
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 0.04em;
    line-height: 1;
    text-shadow: 3px 3px 0 var(--lilac);
    text-transform: uppercase;
}

.notepad-body {
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0;
    background: var(--white);
    background-size: auto;
    overflow: hidden;
}

.notepad-menu {
    display: flex;
    gap: 18px;
    padding: 5px 8px;
    border-bottom: 2px solid var(--line);
    background: var(--window);
    color: var(--ink);
    font-size: 12px;
}

.notepad-page {
    flex: 1 1 auto;
    min-height: 0;
    min-width: 0;
    padding: 16px;
    background: #fffaff;
    overflow: auto;
    overscroll-behavior: contain;
}

.markdown-mount,
.markdown-content {
    color: var(--ink);
    overflow-wrap: anywhere;
}

.markdown-mount h1,
.markdown-mount h2,
.markdown-mount h3,
.markdown-content h1,
.markdown-content h2,
.markdown-content h3 {
    color: var(--ink);
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.05;
    text-transform: uppercase;
}

.markdown-mount h1,
.markdown-content h1 {
    margin: 0 0 10px;
    font-size: clamp(28px, 5vw, 48px);
    letter-spacing: 0.04em;
    text-shadow: 3px 3px 0 var(--lilac);
}

.markdown-mount h2,
.markdown-content h2 {
    margin: 18px 0 8px;
    font-size: 24px;
    letter-spacing: 0.03em;
    text-shadow: 2px 2px 0 var(--lilac);
}

.markdown-mount h3,
.markdown-content h3 {
    margin: 14px 0 6px;
    color: var(--title-hot);
    font-family: var(--font-body);
    font-size: 16px;
    text-transform: none;
}

.markdown-mount p,
.markdown-content p {
    margin: 0 0 12px;
}

.markdown-mount ul,
.markdown-mount ol,
.markdown-content ul,
.markdown-content ol {
    margin: 10px 0 14px;
    padding-left: 24px;
}

.markdown-mount ul,
.markdown-content ul {
    list-style: square;
}

.markdown-mount li + li,
.markdown-content li + li {
    margin-top: 5px;
}

.markdown-mount blockquote,
.markdown-content blockquote {
    margin: 14px 0;
    padding: 9px 12px;
    border: 2px dotted var(--title);
    background: var(--window-2);
    color: var(--muted);
}

.markdown-mount hr,
.markdown-content hr {
    margin: 18px 0;
    border: 0;
    border-top: 2px dotted var(--title);
}

.markdown-mount a,
.markdown-content a {
    color: var(--title-hot);
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

.markdown-mount a:hover,
.markdown-mount a:focus-visible,
.markdown-content a:hover,
.markdown-content a:focus-visible {
    color: var(--ink);
    background: var(--yellow);
    outline: 2px dotted var(--line);
    outline-offset: 2px;
}

.markdown-mount code,
.markdown-content code {
    padding: 1px 4px;
    border: 1px solid var(--title);
    background: var(--window-2);
    color: var(--title-hot);
    font-size: 0.95em;
}

.markdown-mount pre,
.markdown-content pre {
    margin: 14px 0;
    padding: 11px 12px;
    border: 2px solid var(--line);
    background: var(--ink);
    color: var(--white);
    overflow: auto;
}

.markdown-mount pre code,
.markdown-content pre code {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
}

.markdown-mount img,
.markdown-content img {
    display: block;
    max-width: 100%;
    height: auto;
    border: 2px solid var(--line);
}

.markdown-mount table,
.markdown-content table {
    width: 100%;
    margin: 14px 0;
    border-collapse: collapse;
}

.markdown-mount th,
.markdown-mount td,
.markdown-content th,
.markdown-content td {
    padding: 6px 8px;
    border: 2px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.markdown-mount th,
.markdown-content th {
    background: var(--window-3);
    font-weight: 700;
}

.markdown-loading,
.markdown-error {
    margin: 0;
    padding: 10px;
    border: 2px dashed var(--title);
    background: var(--window-2);
    color: var(--muted);
}

.markdown-loading::before {
    content: "> ";
    color: var(--title-hot);
    font-weight: 700;
}

.markdown-error {
    border-color: var(--title-hot);
    color: var(--title-hot);
}

.subtitle {
    color: var(--muted);
    font-weight: 700;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.markdown-links {
    margin: 12px 0 0;
    padding-left: 20px;
    list-style: disc;
}

.markdown-links li {
    padding: 5px 0;
}

.markdown-links a {
    color: var(--title-hot);
    text-decoration: underline;
}

.markdown-links a:hover,
.markdown-links a:focus-visible {
    color: var(--ink);
    background: var(--yellow);
    outline: 2px dotted var(--line);
    outline-offset: 2px;
}

.menu-button {
    display: inline-flex;
    min-height: 36px;
    align-items: center;
    padding: 7px 11px;
    background: var(--white);
    color: var(--ink);
    text-decoration: none;
}

.menu-button::before {
    content: "★";
    margin-right: 7px;
    color: var(--title-hot);
}

.menu-button:hover,
.menu-button:focus-visible,
.window-controls button:hover,
.window-controls button:focus-visible {
    background: var(--yellow);
    outline: 2px dotted var(--line);
    outline-offset: 2px;
}

.taskbar-apps button:hover,
.start-button:hover,
.taskbar .fx-toggle:hover {
    background: var(--window-3);
}

.taskbar-apps button:focus-visible,
.start-button:focus-visible,
.taskbar .fx-toggle:focus-visible {
    outline: 2px dotted var(--yellow);
    outline-offset: 2px;
}

.menu-button.alt {
    background: var(--window-2);
}

.inventory-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.inventory-grid span {
    padding: 5px 8px;
    border: 2px solid var(--line);
    background: var(--white);
    box-shadow: 2px 2px 0 var(--shadow);
}

.project-list {
    display: grid;
    gap: 10px;
    grid-auto-rows: 1fr;
}

.project-file {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    min-height: 132px;
    padding: 10px;
    border: 2px dashed var(--title);
    background: rgba(255, 248, 255, 0.82);
}

.project-file-link {
    color: inherit;
    text-decoration: none;
}

.project-file-link:hover,
.project-file-link:focus-visible {
    border-style: solid;
    background: var(--white);
    outline: 2px dotted var(--line);
    outline-offset: 3px;
}

.project-file h3 {
    margin: 0 0 4px;
    color: var(--title-hot);
    font-size: 18px;
}

.project-file p {
    margin: 0;
    color: var(--muted);
}

.project-thumb {
    display: grid;
    position: relative;
    width: 112px;
    aspect-ratio: 1;
    place-items: center;
    border: 2px solid var(--line);
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 24px;
    text-shadow: 2px 2px 0 var(--shadow);
}

.project-thumb::after {
    position: absolute;
    inset: 0;
    z-index: 1;
    content: "";
    pointer-events: none;
    background: conic-gradient(from 90deg, rgba(189, 160, 255, 0.7) 25%, transparent 0 50%, rgba(189, 160, 255, 0.7) 0 75%, transparent 0) 0 0 / 8px 8px;
    -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.78) 34%, transparent 78%);
    mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, 0.78) 34%, transparent 78%);
}

.project-thumb-bedrock {
    overflow: hidden;
    padding: 12px;
    background: var(--white);
}

.project-thumb-bedrock img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: contain;
    image-rendering: pixelated;
}

.project-thumb-false-horizon {
    overflow: hidden;
    background: var(--white);
}

.project-thumb-false-horizon img {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    image-rendering: pixelated;
}

.project-open,
.project-status {
    display: inline-block;
    margin-top: 8px;
    padding: 2px 5px;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
}

.project-open {
    background: var(--yellow);
}

.project-status {
    background: var(--window-3);
}

.false-horizon-page {
    min-height: 100vh;
    padding: clamp(16px, 4vw, 48px);
    background:
        linear-gradient(135deg, rgba(255, 139, 215, 0.1), transparent 45%),
        var(--desktop);
}

.false-horizon-shell {
    width: min(100%, 920px);
    margin: 0 auto;
    border: 3px solid var(--line);
    background: var(--window);
    box-shadow: 8px 8px 0 var(--shadow);
}

.false-horizon-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 7px 10px;
    border-bottom: 3px solid var(--line);
    background: var(--title);
    color: var(--white);
}

.false-horizon-titlebar h1 {
    margin: 0;
    font-size: clamp(21px, 5vw, 34px);
    line-height: 1;
}

.false-horizon-back {
    flex: 0 0 auto;
    padding: 4px 7px;
    border: 2px solid var(--line);
    background: var(--window-2);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.false-horizon-back:hover,
.false-horizon-back:focus-visible {
    background: var(--yellow);
    outline: 2px dotted var(--white);
    outline-offset: 2px;
}

.false-horizon-content {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
    gap: clamp(16px, 3vw, 30px);
    padding: clamp(18px, 4vw, 42px);
}

.false-horizon-copy h2 {
    margin: 0 0 10px;
    color: var(--title-hot);
    font-size: clamp(28px, 6vw, 52px);
    line-height: 0.9;
}

.false-horizon-copy p {
    margin: 0 0 12px;
    color: var(--ink);
}

.false-horizon-status {
    display: inline-block;
    padding: 4px 7px;
    border: 2px solid var(--line);
    background: var(--yellow);
    color: var(--ink);
    font-size: 12px;
    font-weight: 700;
}

.false-horizon-art {
    display: grid;
    gap: 8px;
    align-content: start;
}

.false-horizon-art img {
    display: block;
    width: 100%;
    border: 3px solid var(--line);
    background: var(--desktop-2);
    image-rendering: pixelated;
}

.false-horizon-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.review-window-body {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    padding: 0;
    background: var(--window);
    background-size: auto;
    overflow: hidden;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.review-app {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    height: 100%;
    background: var(--white);
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
}

.birdie-profile,
.birdie-profile-view {
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    border-bottom: 2px solid var(--line);
    background: var(--white);
    overflow: visible;
}

.birdie-profile-view {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 100%;
    color: var(--ink);
}

.profile-back {
    flex: 0 0 auto;
    width: 100%;
    min-height: 34px;
    padding: 8px 14px;
    border: 0;
    border-bottom: 2px solid var(--line);
    background: var(--window-2);
    color: var(--ink);
    text-align: left;
    font-weight: 700;
}

.profile-back:hover,
.profile-back:focus-visible {
    background: var(--yellow);
    outline: 2px dotted var(--line);
    outline-offset: -5px;
}

.birdie-banner {
    position: relative;
    aspect-ratio: 3 / 1;
    border-bottom: 2px solid var(--line);
    background: var(--desktop-2);
    overflow: visible;
}

.birdie-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(27, 15, 37, 0.02), rgba(27, 15, 37, 0.22));
}

.birdie-banner-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 53%;
    image-rendering: pixelated;
}

.birdie-profile-main {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    min-width: 0;
    padding: 0 14px 14px;
    overflow: visible;
}

.birdie-avatar {
    position: relative;
    z-index: 2;
    display: block;
    width: 86px;
    height: 86px;
    margin-top: -44px;
    border: 3px solid var(--white);
    border-radius: 50%;
    outline: 2px solid var(--line);
    background: var(--ink);
    box-shadow: 3px 3px 0 var(--shadow);
    image-rendering: pixelated;
    object-fit: cover;
}

.birdie-profile-copy {
    min-width: 0;
    padding-top: 10px;
}

.birdie-profile-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    min-width: 0;
}

.birdie-profile h3 {
    margin: 0;
    color: var(--ink);
    font-size: clamp(19px, 3vw, 24px);
    line-height: 1.05;
}

.birdie-handle {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: 12px;
}

.birdie-bio {
    max-width: 62ch;
    margin: 10px 0 0;
    color: var(--ink);
    white-space: pre-line !important;
    overflow-wrap: anywhere;
}

.birdie-profile-link,
.tweet-view-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    min-height: 25px;
    gap: 4px;
    padding: 3px 7px;
    border: 2px solid var(--line);
    background: var(--window-2);
    box-shadow: 2px 2px 0 var(--shadow);
    color: var(--ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.1;
    text-decoration: none;
    white-space: nowrap;
}

.birdie-profile-link:hover,
.birdie-profile-link:focus-visible,
.tweet-view-link:hover,
.tweet-view-link:focus-visible {
    background: var(--yellow);
    outline: 2px dotted var(--line);
    outline-offset: 2px;
}

.tweet-avatar {
    width: 64px;
    height: 64px;
    border: 2px solid var(--line);
    border-radius: 50%;
    background: var(--ink);
    image-rendering: pixelated;
    object-fit: cover;
}

.review-view {
    display: grid;
    gap: 0;
    min-width: 0;
    min-height: 100%;
    overflow-x: hidden;
}

.feed-toolbar {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 14px;
    border-bottom: 2px solid var(--line);
    background: var(--window);
    color: var(--muted);
    font-size: 12px;
}

.feed-toolbar strong {
    color: var(--title-hot);
}

.tweet-list {
    display: grid;
}

.tweet-card,
.thread-root {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    width: 100%;
    min-width: 0;
    padding: 14px;
    border: 0;
    border-bottom: 2px solid var(--line);
    background: var(--white);
    color: var(--ink);
    text-align: left;
}

.tweet-card:hover,
.tweet-card:has(.tweet-content:focus-visible) {
    background: #fff0fa;
}

.tweet-avatar {
    width: 48px;
    height: 48px;
}

.post-avatar-link {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    align-self: start;
    justify-self: start;
    width: 100%;
    max-width: 54px;
    min-width: 0;
    padding: 0;
    border: 1px dotted transparent;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    text-align: left;
}

.post-avatar-link .tweet-avatar {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
}

.post-avatar-link:hover,
.post-avatar-link:focus-visible {
    border-color: var(--title);
    background: var(--window);
    color: var(--ink);
    outline: 2px dotted var(--title-hot);
    outline-offset: 2px;
}

.post-avatar-link:focus-visible .tweet-avatar {
    outline: 2px solid var(--yellow);
    outline-offset: 1px;
}

.tweet-card-body,
.thread-root > .tweet-content {
    min-width: 0;
}

.tweet-card-body {
    display: flex;
    flex-direction: column;
    gap: 7px;
    align-items: stretch;
}

.tweet-meta {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 3px 10px;
    min-width: 0;
}

.post-author-meta {
    display: inline-flex;
    align-items: baseline;
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 0 6px;
    max-width: 100%;
    min-width: 0;
    padding: 2px 4px;
    border: 1px dotted transparent;
    background: transparent;
    box-shadow: none;
    color: var(--ink);
    line-height: 1.15;
    text-align: left;
}

.post-author-meta .tweet-author,
.post-author-meta small {
    min-width: 0;
    overflow-wrap: anywhere;
}

.post-author-meta small,
.tweet-date {
    color: var(--muted);
    font-size: 11px;
    font-weight: 400;
}

.post-author-meta:hover,
.post-author-meta:focus-visible {
    border-color: var(--title);
    background: var(--window);
    color: var(--ink);
    outline: 2px dotted var(--title-hot);
    outline-offset: 2px;
}

.tweet-date {
    flex: 0 1 auto;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal;
}

.tweet-content {
    display: grid;
    gap: 7px;
    min-width: 0;
}

.review-media {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
    min-width: 0;
    margin: 2px 0 1px;
    overflow: hidden;
    border: 2px solid var(--line);
    background: var(--line);
}

.review-media .review-image {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1;
    max-height: none;
    border: 0;
    background: var(--ink);
    object-fit: cover;
}

.tweet-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 0.5em;
    min-width: 0;
}

.tweet-tag {
    color: var(--title-hot);
    cursor: default;
}

.tweet-author {
    color: var(--ink);
    font-weight: 700;
}

.tweet-author small {
    color: var(--muted);
    font-weight: 400;
}

.tweet-text {
    margin: 0;
    color: var(--ink);
    white-space: pre-line;
    overflow-wrap: anywhere;
}

.tweet-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 14px;
    max-width: 420px;
    margin-top: 5px;
    color: var(--muted);
}

.tweet-action {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 22px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    font-size: 12px;
}

.tweet-action:hover {
    color: var(--title-hot);
}

.tweet-content[data-review-detail]:focus-visible {
    outline: 2px dotted var(--title-hot);
    outline-offset: 3px;
}

.action-icon {
    display: inline-flex;
    width: 19px;
    height: 19px;
    align-items: center;
    justify-content: center;
    color: var(--title);
}

.action-icon svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
}

.action-icon.heart {
    color: var(--title-hot);
}

.review-back {
    width: 100%;
    padding: 10px 14px;
    border: 0;
    border-bottom: 2px solid var(--line);
    background: var(--window-2);
    color: var(--ink);
    text-align: left;
    font-weight: 700;
}

.review-back:hover,
.review-back:focus-visible {
    background: var(--yellow);
    outline: 2px dotted var(--line);
    outline-offset: -5px;
}

.thread-root {
    background: #fff8ff;
}

.review-image {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 320px;
    border: 2px solid var(--line);
    background: var(--ink);
    object-fit: contain;
}

.tweet-view-link {
    justify-self: start;
    margin-top: 1px;
    border-width: 1px;
    box-shadow: 1px 1px 0 var(--shadow);
    font-size: 10px;
}

#window-log .devlog-text {
    background-color: var(--white);
    background-image: linear-gradient(
        to bottom,
        transparent 0 35px,
        rgba(79, 23, 89, 0.24) 35px 36px
    );
    background-position: 0 16px;
    background-repeat: repeat;
    background-size: 100% 36px;
    color: var(--ink);
}

.text-mount {
    min-width: 0;
    max-width: 100%;
    color: var(--muted);
    white-space: pre-wrap;
    overflow: auto;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.devlog-text {
    flex: 1 1 auto;
    min-height: 0;
    padding: 16px;
    line-height: 36px;
}

.text-source-content,
.text-error {
    margin: 0;
    font: inherit;
    line-height: inherit;
    white-space: pre-wrap;
}

.text-source-content {
    min-height: 100%;
}

.text-error {
    color: var(--title-hot);
}

.text-loading {
    margin: 0;
    padding: 10px;
    border: 2px dashed var(--title);
    background: var(--window-2);
    color: var(--muted);
    line-height: 36px;
    overflow-wrap: anywhere;
}

.text-loading::before {
    content: "> ";
    color: var(--title-hot);
    font-weight: 700;
}

.taskbar-apps button {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    gap: 5px;
    width: auto;
    height: 24px;
    min-height: 24px;
    min-width: 96px;
    max-width: 164px;
    padding: 2px 7px 2px 5px;
    border: 2px solid;
    border-color: var(--white) var(--title) var(--title) var(--white);
    background: var(--window-3);
    box-shadow: 1px 1px 0 var(--shadow);
    color: var(--ink);
    overflow: hidden;
    text-align: left;
    line-height: 1;
    text-shadow: none;
    white-space: nowrap;
}

.taskbar-apps button.is-active {
    border-color: var(--title) var(--white) var(--white) var(--title);
    background: var(--lilac);
    box-shadow: inset 1px 1px 0 var(--title), inset -1px -1px 0 var(--white);
}

.task-icon {
    position: relative;
    display: inline-block;
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 1px 1px 0 var(--shadow);
}

.task-readme,
.task-contact {
    border: 0;
    background: url("assets/markdown-icon.png") center / 16px 16px no-repeat;
    box-shadow: none;
    image-rendering: pixelated;
}

.task-log {
    border: 0;
    background: url("assets/txt-icon.png") center / contain no-repeat;
    box-shadow: none;
    image-rendering: pixelated;
}

.task-projects {
    border: 0;
    background: url("assets/folder-pink-icon.png") center / 16px 16px no-repeat;
    box-shadow: none;
    image-rendering: pixelated;
}

.task-reviews {
    border-color: transparent;
    background: url("assets/birdie-icon.png") center / 16px 16px no-repeat;
    box-shadow: none;
    image-rendering: pixelated;
}

/* Touch-first devices keep the desktop visible beneath one active window. */
@media (max-width: 760px), (hover: none) and (pointer: coarse) {
    body {
        font-size: 14px;
    }

    .desktop {
        padding: 8px 8px 40px;
    }

    .desktop-stage {
        display: block;
    }

    .icon-grid {
        grid-template-columns: repeat(3, minmax(82px, 1fr));
        grid-template-rows: none;
        grid-auto-flow: row;
        grid-auto-columns: auto;
        width: 100%;
        height: auto;
        gap: 10px;
        padding: 8px 0;
    }

    .window-layer {
        position: fixed;
        z-index: 50;
        inset: 8px 8px 40px;
        display: block;
        pointer-events: none;
    }

    .window,
    .window.is-minimized {
        position: absolute;
        inset: 0;
        display: none;
        width: auto;
        height: auto;
        max-height: none;
        min-height: 0;
        overflow: hidden;
    }

    .window.is-open.is-active:not(.is-minimized) {
        display: flex;
    }

    .window-titlebar {
        flex: none;
    }

    .window-body {
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
    }

    .notepad-body {
        overflow: hidden;
    }

    .notepad-page,
    .devlog-text {
        min-height: 0;
        overflow: auto;
        overscroll-behavior: contain;
    }

    .window-resize-handle {
        display: none;
        pointer-events: none;
    }

    .window-controls [data-maximize] {
        display: none;
    }

    .project-file {
        grid-template-columns: 1fr;
    }

    .project-thumb {
        width: min(112px, 100%);
    }

    .false-horizon-content {
        grid-template-columns: 1fr;
    }

    .tweet-card,
    .thread-root {
        grid-template-columns: 42px minmax(0, 1fr);
        padding: 12px;
    }

    .tweet-avatar {
        width: 38px;
        height: 38px;
    }

    .post-avatar-link .tweet-avatar {
        width: 38px;
        height: 38px;
        flex-basis: 38px;
    }

    .review-image {
        max-height: none;
    }

    .review-window-body {
        display: flex;
        height: auto;
        min-height: 0;
        overflow: hidden;
        overscroll-behavior: contain;
    }

    .review-app {
        height: auto;
        min-height: 0;
        overflow-y: auto;
        overscroll-behavior: contain;
    }

    .birdie-profile-main {
        grid-template-columns: 76px minmax(0, 1fr);
        gap: 10px;
    }

    .birdie-avatar {
        width: 76px;
        height: 76px;
        margin-top: -39px;
    }

    .button-row .menu-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 520px) {
    .taskbar {
        padding-inline: 5px;
    }

    .start-button {
        min-width: auto;
        padding-right: 7px;
    }

    .taskbar-apps button {
        min-width: 96px;
    }

    .system-tray {
        gap: 4px;
        padding-inline: 6px;
    }

    .clock {
        min-width: 62px;
    }

    .birdie-profile-main {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 8px;
        padding-inline: 10px;
    }

    .birdie-avatar {
        width: 64px;
        height: 64px;
        margin-top: -33px;
    }

    .birdie-profile-copy {
        padding-top: 8px;
    }

    .birdie-profile-heading {
        display: grid;
        gap: 6px;
    }

    .birdie-profile-link {
        justify-self: start;
    }

    .birdie-bio {
        margin-top: 8px;
    }
}

@media (max-width: 430px) {
    .icon-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .welcome-body h2 {
        font-size: clamp(44px, 18vw, 68px);
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
    }
}
