:root {
    --office-wall: #d8cf86;
    --office-light: #f1e8a9;
    --carpet: #8b875b;
    --paper: #e9e2c7;
    --ink: #39382d;
    --warning: #a64b36;
    --terminal: #262b22;
}

* { box-sizing: border-box; }

body.yellow-office {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background:
        linear-gradient(90deg, rgb(80 72 34 / 8%) 1px, transparent 1px),
        linear-gradient(var(--office-wall), #c9c080);
    background-size: 43px 43px, auto;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.5;
}

.yellow-office::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: repeating-linear-gradient(0deg, rgb(60 50 10 / 3%) 0 1px, transparent 1px 3px);
    z-index: 10;
}

.office-light {
    height: 22px;
    margin: 0 auto 1rem;
    width: min(70%, 520px);
    background: var(--office-light);
    box-shadow: 0 0 40px 12px rgb(241 232 169 / 55%);
    animation: flicker 7s infinite;
}

@keyframes flicker {
    0%, 100% { opacity: 1; }
    46% { opacity: 1; }
    48% { opacity: 0.78; }
    50% { opacity: 1; }
    83% { opacity: 0.9; }
}

.office-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0.5rem 1rem 3rem;
}

.office-grid {
    display: grid;
    gap: 1.25rem;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    align-items: start;
}

.office-panel {
    border: 1px solid rgb(57 56 45 / 35%);
    background: rgb(233 226 199 / 88%);
    box-shadow: 5px 6px 0 rgb(57 56 45 / 10%);
    padding: 1rem;
    position: relative;
}

.office-panel:nth-child(3n+1) { transform: translate(1px, -2px); }
.office-panel:nth-child(3n+2) { transform: translate(-2px, 1px); margin-top: 0.6rem; }
.office-panel--copy { transform: translate(2px, 2px) !important; animation: shift 0.4s ease-out; }

@keyframes shift {
    from { transform: translate(0, -6px); }
}

.office-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
}

.office-panel--paper {
    font-family: Georgia, "Times New Roman", serif;
    background: #e3dbbb;
    border-style: dashed;
}

.office-panel__label {
    font: 0.75rem/1.4 monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.office-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 0.5rem;
    margin-bottom: 1.25rem;
}

.office-header h1 {
    font-size: 1.4rem;
    margin: 0;
    letter-spacing: 0.06em;
}

.office-terminal {
    color: var(--office-light);
    background: var(--terminal);
    font: 0.9rem/1.6 monospace;
    padding: 1rem;
}

.office-terminal .warn { color: #e0836c; }

.office-list { list-style: none; margin: 0; padding: 0; }
.office-list li { padding: 0.25rem 0; border-bottom: 1px dotted rgb(57 56 45 / 35%); }

.room-btn, .office-btn {
    font: 0.75rem/1.2 monospace;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--ink);
    background: var(--office-light);
    border: 1px solid var(--ink);
    padding: 0.45rem 0.7rem;
    margin: 0.2rem 0.2rem 0 0;
    cursor: pointer;
}

.room-btn:hover, .office-btn:hover { background: #fff6bd; }

.yellow-office a:focus-visible,
.yellow-office button:focus-visible {
    outline: 3px solid var(--warning);
    outline-offset: 2px;
}

.office-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.office-table th, .office-table td { text-align: left; padding: 0.25rem; border-bottom: 1px solid rgb(57 56 45 / 25%); }

.office-bar { height: 12px; background: rgb(57 56 45 / 20%); margin: 0.3rem 0 0.7rem; }
.office-bar span { display: block; height: 100%; background: var(--carpet); }

.office-media {
    height: 90px;
    margin-bottom: 0.5rem;
    border: 1px solid var(--ink);
    background: repeating-linear-gradient(45deg, var(--carpet) 0 6px, #7d7a50 6px 12px);
    display: grid;
    place-items: center;
    font: 0.7rem monospace;
}

.office-final {
    margin: 4rem auto 2rem;
    max-width: 520px;
    min-height: 8rem;
}

.office-footer {
    margin-top: 3rem;
    text-align: center;
    font: 0.8rem monospace;
}

.visually-quiet { color: rgb(57 56 45 / 70%); font-size: 0.8rem; }

.cursor::after {
    content: "_";
    animation: blink 1.3s steps(1) infinite;
}

@keyframes blink { 50% { opacity: 0; } 62% { opacity: 1; } 80% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }
}
