@font-face {
    font-family: "Hubot Sans";
    src: url("../fonts/hubot-sans-regular.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Hubot Sans";
    src: url("../fonts/hubot-sans-semibold.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
}

@font-face {
    font-family: "Hubot Sans";
    src: url("../fonts/hubot-sans-bold.woff2") format("woff2");
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Hubot Sans Expanded";
    src: url("../fonts/hubot-sans-expanded-black.woff2") format("woff2");
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin-ext.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
    font-family: "JetBrains Mono";
    src: url("../fonts/jetbrains-mono-latin.woff2") format("woff2");
    font-weight: 600;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
    --accent: #E31E26;
    --accent-ink: #E31E26;

    --font-body: "Hubot Sans", sans-serif;
    --font-head: "Hubot Sans", sans-serif;
    --font-name: "Hubot Sans Expanded", sans-serif;
    --font-mono: "JetBrains Mono", monospace;

    --view: 100vh;
    --bar: 48px;
    --dock-space: 136px;
    --column: 560px;
    --board: 176px;

    --fg: #252932;
    --panel: #FFFFFF;
    --rail: #FAFAFA;
    --line: #E5E7EB;
    --item-bg: #EFF0F0;
    --muted: #71717A;
    --body: #52525B;
    --dot: rgba(37, 41, 50, 0.09);
    --pending: #A1A1AA;
    --shade: rgba(24, 24, 27, 0.22);

    --icon-arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='m13 6 6 6-6 6'/%3E%3C/svg%3E");
}

@supports (height: 100svh) {
    :root {
        --view: 100svh;
    }
}

@media (max-height: 700px) {
    :root {
        --board: 132px;
    }
}

@media (min-width: 1200px) {
    :root {
        --board: 300px;
        --dock-space: 172px;
    }
}

@media (min-width: 1200px) and (max-height: 820px) {
    :root {
        --board: 240px;
    }
}

:root[data-theme="dark"] {
    --accent-ink: #FF4D55;
    --fg: #F4F4F5;
    --panel: #0B0B0D;
    --rail: #141417;
    --line: #26262B;
    --item-bg: #232328;
    --muted: #9A9AA3;
    --body: #D1D5DB;
    --dot: rgba(255, 255, 255, 0.07);
    --pending: #5B5B64;
    --shade: transparent;
}

html,
body {
    margin: 0;
}

html {
    scroll-padding-bottom: var(--dock-space);
}

body {
    background: var(--panel);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 14px;
    line-height: 24px;
}

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

a:hover {
    color: var(--accent);
}

button:focus-visible,
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.station {
    position: relative;
    isolation: isolate;
    min-height: var(--view);
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    justify-content: safe center;
    gap: 20px;
    padding: calc(var(--bar) + 24px) 16px 32px;
}

.station-title {
    width: 100%;
    max-width: var(--column);
    box-sizing: border-box;
    margin: 0;
    padding-left: 40px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 13px;
    line-height: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.screen {
    position: relative;
    isolation: isolate;
    min-height: var(--view);
    box-sizing: border-box;
    padding: calc(var(--bar) + 32px) max(16px, calc(50% - 280px)) var(--dock-space);
    overflow-x: clip;
}

.screen:focus {
    outline: none;
}

.screen-eyebrow {
    margin: 0;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.screen-title {
    margin: 14px 0 0;
    font-family: var(--font-name);
    font-weight: 900;
    font-size: 30px;
    line-height: 36px;
    letter-spacing: -0.025em;
}

.screen-dot {
    color: var(--accent-ink);
}

.board {
    position: relative;
    flex: none;
    width: var(--board);
    height: var(--board);
}

.board-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
}

.board-ghost,
.board-line {
    fill: none;
    stroke-width: 0.8;
    stroke-linejoin: round;
}

.board-ghost {
    stroke: var(--pending);
    stroke-dasharray: 2 2;
}

.board-line {
    stroke: var(--line);
}

.board-base {
    fill: var(--item-bg);
}

.board-piece {
    filter: drop-shadow(0 calc(var(--lifted) * 3px) calc(var(--lifted) * 4px) var(--shade));
}

.board-label {
    position: absolute;
    top: var(--y);
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    color: var(--muted);
}

@media (max-height: 700px) {
    .board-label {
        font-size: 9px;
    }
}

@media (min-width: 1200px) {
    .station {
        gap: 24px;
        padding: calc(var(--bar) + 32px) 48px 40px;
    }

    .station-title {
        align-self: flex-start;
        width: 50%;
        max-width: none;
        padding: 0 24px 0 0;
        text-align: right;
        font-size: 14px;
    }

    .screen {
        padding: var(--bar) max(72px, calc(50% - 648px)) var(--dock-space);
    }

    .screen-title {
        margin-top: 16px;
        font-size: 58px;
        line-height: 62px;
    }

    .board-label {
        font-size: 13px;
    }
}
