/* Oslo Verkstedlag – statisk HTML/CSS (React-look) */
:root {
    --bg: #e8e8e8;
    --bar: #d4d4d4;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Courier New', Courier, monospace;
    min-height: 100vh;
    background-color: var(--bg);
    position: relative;
    overflow-x: hidden;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    position: relative;
}

/* 4x4 dither background */
.dither-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    opacity: 0.4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='4' height='4'%3E%3Crect width='2' height='2' fill='%23000'/%3E%3Crect x='2' y='0' width='2' height='2' fill='%23fff'/%3E%3Crect x='0' y='2' width='2' height='2' fill='%23fff'/%3E%3Crect x='2' y='2' width='2' height='2' fill='%23000'/%3E%3C/svg%3E");
    background-size: 4px 4px;
    background-position: top left;
    image-rendering: pixelated;
    pointer-events: none;
}

/* Top bar */
.top-bar {
    position: relative;
    z-index: 30;
    background-color: var(--bar);
    border-bottom: 4px solid black;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    gap: 24px;
}

.top-bar-icon {
    width: 20px;
    height: 20px;
    background-color: black;
    display: flex;
    align-items: center;
    justify-content: center;
}

.top-bar-icon::after {
    content: '';
    width: 12px;
    height: 12px;
    background-color: white;
}

.top-nav {
    display: flex;
    gap: 32px;
}

.top-nav-link {
    color: black;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.top-nav-link:hover {
    text-decoration: underline;
}

/* Main content */
.main {
    flex: 1;
    position: relative;
    z-index: 10;
    padding: 24px 32px;
    overflow-auto;
}

.grid {
    max-width: 80rem;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px 32px;
}

@media (max-width: 768px) {
    .grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .main {
        padding: 16px;
    }
}

/* Window wrapper with corner decorations */
.window-wrap {
    position: relative;
    scroll-margin-top: 1rem;
}

.window-wrap--status {
    grid-column: 1 / -1;
}

@media (min-width: 769px) {
    .window-wrap--status {
        grid-column: span 1;
    }
}

.corner {
    position: absolute;
    width: 16px;
    height: 16px;
    background-color: white;
    border: 2px solid black;
    z-index: 10;
}

.corner-tl { top: -8px; left: -8px; }
.corner-tr { top: -8px; right: -8px; }
.corner-bl { bottom: -8px; left: -8px; }
.corner-br { bottom: -8px; right: -8px; }

/* Window frame */
.window {
    background-color: white;
    border: 4px solid black;
    position: relative;
}

.window-title-bar {
    height: 32px;
    border-bottom: 4px solid black;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.window-title-bar::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        0deg,
        black 0px,
        black 2px,
        white 2px,
        white 4px
    );
}

.window-title-bar-text {
    position: relative;
    z-index: 1;
    background-color: white;
    padding: 4px 12px;
    font-weight: bold;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    border: 2px solid black;
}

.window-body {
    padding: 8px;
}

.window-inner {
    border: 4px solid black;
}

.hero-image {
    width: 100%;
    height: auto;
    display: block;
    image-rendering: pixelated;
}

/* INFO window content */
.window-body--info {
    padding: 16px;
}

.info-heading {
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: black;
    border-bottom: 2px solid black;
    padding-bottom: 8px;
    margin-bottom: 16px;
}

.info-p {
    font-size: 14px;
    line-height: 1.6;
    color: black;
    margin-bottom: 12px;
}

.info-for {
    font-size: 14px;
    font-weight: bold;
    margin-top: 12px;
    margin-bottom: 4px;
    color: black;
}

.info-list {
    list-style: none;
    font-size: 14px;
    line-height: 1.8;
    color: black;
    margin-bottom: 12px;
}

.info-contact {
    font-size: 14px;
    margin-bottom: 12px;
    color: black;
}

.info-link {
    color: black;
    text-decoration: underline;
}

.info-link:hover {
    text-decoration: none;
}

.instagram-btn {
    display: inline-block;
    border: 4px solid black;
    background-color: white;
    padding: 8px 16px;
    font-weight: bold;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: black;
    text-decoration: none;
    transition: background-color 0.15s, color 0.15s;
}

.instagram-btn:hover {
    background-color: black;
    color: white;
}

/* STATUS window content */
.window-body--status {
    padding: 16px;
    font-size: 14px;
    line-height: 1.8;
    color: black;
}

.status-line {
    margin-bottom: 8px;
}

.status-line:last-child {
    margin-bottom: 0;
}

/* Footer */
.footer {
    position: relative;
    z-index: 30;
    background-color: var(--bar);
    border-top: 4px solid black;
    padding: 8px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 12px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: black;
}

@media (max-width: 480px) {
    .footer {
        flex-direction: column;
        gap: 4px;
        text-align: center;
    }
}
