:root {
    --bg: #efe9dc;
    --card: #fbf8f1;
    --text: #1b1a17;
    --muted: #6b665b;
    --line: #1b1a17;
    --accent: #c2410c;
    --shadow: #1b1a17;
    color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #141311;
        --card: #1e1d1a;
        --text: #ece6d6;
        --muted: #9c968a;
        --line: #ece6d6;
        --accent: #f59e0b;
        --shadow: #000000;
    }
}

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

body {
    margin: 0;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    place-items: center;
    padding: 2rem 1rem;
    background-color: var(--bg);
    background-image: radial-gradient(color-mix(in srgb, var(--text) 14%, transparent) 1px, transparent 1px);
    background-size: 18px 18px;
    color: var(--text);
    font-family: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
    font-size: 0.95rem;
    line-height: 1.7;
}

.card {
    width: 100%;
    max-width: 42rem;
    padding: clamp(1.25rem, 5vw, 2.75rem);
    background: var(--card);
    border: 2px solid var(--line);
    box-shadow: 8px 8px 0 var(--shadow);
}

h1 {
    margin: 0;
    line-height: 0;
}

.logo {
    display: block;
    width: 100%;
    max-width: 26rem;
    height: auto;
    margin: 0 auto;
    overflow: visible;
    color: var(--text);
}

.tagline {
    margin: 1rem 0 0;
    color: var(--muted);
    text-align: center;
    font-size: 0.85rem;
}

section {
    margin-top: 1.75rem;
    padding-top: 1.75rem;
    border-top: 2px dashed var(--line);
}

h2 {
    margin: 0 0 1rem;
    font-size: 0.95rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

h2::before {
    content: "> ";
    color: var(--accent);
}

p {
    margin: 0 0 1rem;
}

p:last-child {
    margin-bottom: 0;
}

.products {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 0.25rem 1.5rem;
}

.products li {
    padding-left: 2.5ch;
    text-indent: -2.5ch;
}

.products li::before {
    content: "* ";
    color: var(--accent);
    font-weight: 600;
}

.contacts {
    margin: 0;
    display: grid;
    gap: 0.5rem;
}

.contacts div {
    display: grid;
    grid-template-columns: 10ch 1fr;
    gap: 1ch;
}

.contacts dt {
    color: var(--muted);
}

.contacts dt::after {
    content: ":";
}

.contacts dd {
    margin: 0;
    font-weight: 600;
    overflow-wrap: anywhere;
}

a {
    color: inherit;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

a:hover,
a:focus-visible {
    background: var(--accent);
    color: var(--card);
    text-decoration: none;
}

footer {
    margin-top: 1.75rem;
    padding-top: 1rem;
    border-top: 2px dashed var(--line);
    color: var(--muted);
    font-size: 0.8rem;
    text-align: center;
}

@media (max-width: 30rem) {
    .contacts div {
        grid-template-columns: 1fr;
        gap: 0;
    }
}
