@import url("./tokens.css");

@font-face {
    font-family: "Berkeley Mono";
    src: url("fonts/BerkeleyMono-Regular.woff2") format("woff2");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Berkeley Mono";
    src: url("fonts/BerkeleyMono-Light.woff2") format("woff2");
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Berkeley Mono";
    src: url("fonts/BerkeleyMono-Medium.woff2") format("woff2");
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Berkeley Mono";
    src: url("fonts/BerkeleyMono-Bold.woff2") format("woff2");
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

:root {
    --site-accent: var(--sl-color-accent);
    --site-shell-width: 1040px;
    --site-shell-pad-inline: 16px;
    --site-shell-pad-block: 16px;
    --site-terminal-bg: #090b0e;
    --site-terminal-rule: rgba(255, 255, 255, 0.82);
    --site-terminal-paper: #f6f4ef;
    --site-terminal-muted: rgba(246, 244, 239, 0.7);
    --site-terminal-label-width: 168px;
}

html {
    background: var(--site-terminal-bg);
    color: var(--site-terminal-paper);
    font-size: 14px;
    scrollbar-gutter: stable;
}

body {
    min-height: 100vh;
    min-height: 100dvh;
    background: var(--site-terminal-bg);
    color: var(--site-terminal-paper);
    font-family: var(--sl-font-mono);
    line-height: 1.6;
}

dl,
dt,
dd {
    margin: 0;
}

a {
    color: inherit;
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 0.14em;
}

.site-shell {
    max-width: var(--site-shell-width);
    margin: 0 auto;
    padding: var(--site-shell-pad-block) var(--site-shell-pad-inline);
}

.site-main {
    min-height: calc(100vh - (var(--site-shell-pad-block) * 2));
    min-height: calc(100dvh - (var(--site-shell-pad-block) * 2));
}

.machine-report {
    background: var(--site-terminal-bg);
    color: var(--site-terminal-paper);
    border: 1px solid var(--site-terminal-rule);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06) inset;
    min-height: 100%;
}

.machine-report a {
    color: inherit;
}

.machine-report-cap {
    height: 32px;
    border-bottom: 1px solid var(--site-terminal-rule);
    background:
        repeating-linear-gradient(
            90deg,
            transparent 0 13px,
            var(--site-terminal-paper) 13px 15px
        );
}

.machine-report-title {
    padding: 18px 18px 20px;
    border-bottom: 1px solid var(--site-terminal-rule);
    text-align: center;
}

.machine-report-name {
    color: var(--site-terminal-muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.machine-report h1 {
    margin-top: 10px;
    font-size: clamp(1.7rem, 4.8vw, 3rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: 0.06em;
    text-wrap: balance;
    text-transform: uppercase;
}

.machine-report-section {
    display: grid;
    grid-template-columns: var(--site-terminal-label-width) minmax(0, 1fr);
    border-bottom: 1px solid var(--site-terminal-rule);
}

.machine-report-section:last-child {
    border-bottom: none;
}

.machine-report-labels,
.machine-report-values {
    display: flex;
    flex-direction: column;
}

.machine-report-labels {
    padding: 16px 18px;
    border-right: 1px solid var(--site-terminal-rule);
    gap: 8px;
}

.machine-report-values {
    padding: 16px 22px;
    gap: 8px;
}

.machine-report-labels p,
.machine-report-values p {
    min-height: 1.2em;
}

.machine-report-labels p {
    color: var(--site-terminal-paper);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.machine-report-values p {
    color: var(--site-terminal-paper);
    font-size: clamp(1.02rem, 2vw, 1.12rem);
    font-weight: 500;
}

.primary-link {
    color: var(--site-accent);
    text-decoration: none;
    border-bottom: 1px solid currentColor;
}

@media (max-width: 700px) {
    .site-shell {
        padding: 10px;
    }

    .site-main {
        min-height: calc(100vh - 20px);
        min-height: calc(100dvh - 20px);
    }

    .machine-report-cap {
        height: 22px;
        background:
            repeating-linear-gradient(
                90deg,
                transparent 0 9px,
                var(--site-terminal-paper) 9px 11px
            );
    }

    .machine-report-title {
        padding: 14px 12px 16px;
    }

    .machine-report h1 {
        font-size: 1.35rem;
    }

    .machine-report-section {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .machine-report-labels {
        border-right: 1px solid var(--site-terminal-rule);
        border-bottom: none;
        padding: 10px 10px 10px 12px;
        gap: 6px;
    }

    .machine-report-values {
        padding: 10px 12px 12px;
    }

    .machine-report-labels p {
        font-size: 10px;
    }

    .machine-report-values p {
        font-size: 0.98rem;
    }
}
