/*!
 * depthcloud.io — © 2026 Oğulcan Doğan. All rights reserved.
 * dc-origin: depthcloud.io/7f3a-0gd
 */
:root {
    --dc-origin: "depthcloud.io/7f3a-0gd";
    --bg-dark: #0b0615;
    --bg-card: #160e26;
    --deep: rgba(0, 0, 0, 0.55);
    --rule: rgba(255, 255, 255, 0.1);
    --primary: #7B0AD1;
    --primary-soft: rgba(123, 10, 209, 0.2);
    --accent-orange: #E98C52;
    --accent-yellow: #FFC978;
    --turquoise: #29ffd8;
    --text-main: #f1ecf7;
    --text-muted: #8f84a1;
    --link: #FFC978;
    --hover-tint: rgba(255, 255, 255, 0.06);
    --font-mono: 'JetBrains Mono', 'Courier New', monospace;
    --font-serif: 'Lora', Georgia, serif;
    --rail: 104px;
    --page: 1120px;
}

[data-theme="light"] {
    --bg-dark: #f7f1fb;
    --bg-card: #ffffff;
    --deep: rgba(123, 10, 209, 0.13);
    --rule: rgba(45, 31, 66, 0.16);
    --primary-soft: rgba(123, 10, 209, 0.08);
    --accent-orange: #c46a30;
    --accent-yellow: #8a641f;
    --turquoise: #0f9a82;
    --text-main: #1e142e;
    --text-muted: #655875;
    --link: #7B0AD1;
    --hover-tint: rgba(45, 31, 66, 0.06);
}

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

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: var(--font-serif);
    font-size: 1.0625rem;
    line-height: 1.7;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
p,
ul,
figure {
    margin: 0;
    padding: 0;
}

ul {
    list-style: none;
}

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

a {
    color: var(--link);
}

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

.mono {
    font-family: var(--font-mono);
}

.back-home,
.theme-toggle {
    position: fixed;
    top: 18px;
    z-index: 50;
}

.back-home {
    left: 18px;
    line-height: 0;
    transition: transform 0.2s ease;
}

.back-home:hover {
    transform: scale(1.06);
}

.back-home img {
    width: 46px;
    height: 46px;
    object-fit: contain;
}

.theme-toggle {
    right: 18px;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--text-muted);
    cursor: pointer;
    line-height: 1;
}

.theme-toggle:hover {
    color: var(--accent-yellow);
    border-color: var(--accent-yellow);
}

.page {
    max-width: var(--page);
    margin: 0 auto;
    padding: 0 clamp(16px, 4vw, 32px);
}

/* Shared two-column rhythm: a narrow data rail and the content beside it. */
.railed {
    display: grid;
    grid-template-columns: var(--rail) minmax(0, 1fr);
    column-gap: 28px;
}

.depth {
    font-family: var(--font-mono);
    font-size: 0.86rem;
    font-weight: 500;
    color: var(--text-muted);
    text-align: right;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}

/* Lists shown as physical server cabinets: same hardware as the room on the home page. */
.cabinet {
    --hw: #160e26;
    --hw-edge: #4a2b73;
    --hw-low: #0a0512;
    --hw-hover: #21153a;
    --hw-well: #0e081a;
    --hw-rack: #2a1846;
    --hw-pin: #6a4a96;
    --hw-ring: #0e081a;
    --hw-text: #f1ecf7;
    --hw-muted: #a297b5;
    --hw-link: #FFC978;
    --hw-link-hover: #ffffff;
    --hw-orange: #E98C52;
    --hw-teal: #29ffd8;
    display: grid;
    gap: 6px;
    padding: 14px clamp(10px, 2.4vw, 26px);
    background:
        repeating-linear-gradient(to bottom, var(--hw-pin) 0 6px, transparent 6px 26px) left 8px top 0 / 5px 100% no-repeat,
        repeating-linear-gradient(to bottom, var(--hw-pin) 0 6px, transparent 6px 26px) right 8px top 0 / 5px 100% no-repeat,
        var(--hw-rack);
    box-shadow: 0 0 0 4px var(--hw-ring), 8px 10px 0 4px var(--accent-orange);
}

[data-theme="light"] .cabinet {
    --hw: #ffffff;
    --hw-edge: #d9c8ec;
    --hw-low: #c8b3e0;
    --hw-hover: #f5edfb;
    --hw-well: #eadff4;
    --hw-rack: #d6c4ea;
    --hw-pin: #a98fcb;
    --hw-ring: #4a2b73;
    --hw-text: #1e142e;
    --hw-muted: #655875;
    --hw-link: #6a0bb5;
    --hw-link-hover: #2d0a4e;
    --hw-orange: #b55a22;
    --hw-teal: #0b7a67;
}

.site-footer {
    max-width: var(--page);
    margin: 0 auto;
    padding: 40px clamp(16px, 4vw, 32px) 48px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 0.86rem;
}

@media (max-width: 760px) {
    :root {
        --rail: 0px;
    }

    .railed {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
    }

    .depth {
        text-align: left;
    }

}

/* Below this width the page gutter is too narrow for fixed controls, so they scroll away. */
@media (max-width: 1279px) {
    .back-home,
    .theme-toggle {
        position: absolute;
    }
}

@media (prefers-reduced-motion: reduce) {
    .back-home {
        transition: none;
    }
}
