/* InfFront — inffront.com
   One page, one stylesheet. The page is a single column hung off a hairline
   running down its left edge, with a square where each section starts: the
   front, and the things standing at it. Nothing else is decoration.

   The palette is the mark's — a cool green-biased neutral, deep green — and
   deliberately not Arspec's slate and cyan: the company is not the product. */

:root {
    color-scheme: light dark;

    --paper: #F2F4F3;
    --surface: #FBFCFB;
    --ink: #151A18;
    --ink-2: #333C39;
    --muted: #5A6663;
    --line: #D2DAD7;
    --accent: #0F5C4E;
    --accent-ink: #FFFFFF;
    --accent-soft: #DBE9E4;

    --font-display: "Fraunces", Georgia, "Times New Roman", serif;
    --font-body: "Libre Franklin", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-mono: ui-monospace, "Cascadia Mono", Consolas, Menlo, monospace;

    --measure: 64ch;
    --rail: 2.25rem;
    --radius: 5px;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --paper: #0F1312;
        --surface: #161B19;
        --ink: #E7EBE9;
        --ink-2: #C3CCC9;
        --muted: #93A09C;
        --line: #283230;
        --accent: #62C9AD;
        --accent-ink: #0B211C;
        --accent-soft: #1B2F2A;
    }
}

:root[data-theme="dark"] {
    --paper: #0F1312;
    --surface: #161B19;
    --ink: #E7EBE9;
    --ink-2: #C3CCC9;
    --muted: #93A09C;
    --line: #283230;
    --accent: #62C9AD;
    --accent-ink: #0B211C;
    --accent-soft: #1B2F2A;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .18em; }
a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 3px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -.015em;
    margin: 0 0 .55em;
    text-wrap: balance;
}
h1 { font-size: clamp(2.2rem, 6vw, 3.3rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 1.9rem); }
h3 { font-size: 1.1rem; font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }

p { margin: 0 0 1.05em; max-width: var(--measure); }
p:last-child { margin-bottom: 0; }

code, .mono { font-family: var(--font-mono); font-size: .92em; }
img { max-width: 100%; height: auto; }

.wrap { width: min(100% - 2.5rem, 880px); margin-inline: auto; }

.eyebrow {
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .7rem;
}

/* ── header ── */

.site-header { padding: 1.4rem 0; }
.site-header .wrap {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: .65rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.15rem;
    letter-spacing: -.01em;
}
.brand:hover { text-decoration: none; }
.brand img { width: 30px; height: 30px; }
.site-header nav { margin-left: auto; display: flex; gap: 1.4rem; align-items: center; }
.site-header nav a { color: var(--ink-2); font-weight: 500; font-size: .94rem; }
.site-header nav a:hover { color: var(--ink); text-decoration: none; }

/* ── the front: the rule the page hangs off ── */

.front {
    border-left: 1px solid var(--line);
    padding: 1.5rem 0 1rem var(--rail);
    margin-bottom: 2rem;
}
.block { padding-bottom: 3.5rem; position: relative; }
.block:last-child { padding-bottom: 1rem; }

/* The square where a block begins — set on the rule, half out either side. */
.block::before {
    content: "";
    position: absolute;
    left: calc(var(--rail) * -1 - 5px);
    top: .62em;
    width: 9px;
    height: 9px;
    background: var(--accent);
    border-radius: 1px;
}
.block.lead::before { top: .9em; width: 11px; height: 11px; left: calc(var(--rail) * -1 - 6px); }

@media (max-width: 620px) {
    :root { --rail: 1.35rem; }
    body { font-size: 16px; }
}

.lede {
    font-size: 1.18rem;
    color: var(--ink-2);
    max-width: 52ch;
}

/* ── the product ── */

.product {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.75rem 1.5rem;
    margin-top: 1.5rem;
    max-width: var(--measure);
}
.product-head {
    display: flex;
    align-items: baseline;
    gap: .75rem;
    flex-wrap: wrap;
    margin-bottom: .6rem;
}
.product-head h3 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    letter-spacing: -.015em;
    margin: 0;
}
.product-head .where {
    font-family: var(--font-mono);
    font-size: .85rem;
    color: var(--muted);
}
.product p { font-size: .98rem; color: var(--ink-2); }

.facts {
    list-style: none;
    margin: 1.1rem 0 0;
    padding: 0;
    display: grid;
    gap: .45rem;
    font-size: .93rem;
    color: var(--ink-2);
}
.facts li {
    display: grid;
    grid-template-columns: 8.5rem minmax(0, 1fr);
    gap: .3rem 1rem;
}
.facts .label {
    color: var(--muted);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding-top: .18em;
}
@media (max-width: 520px) {
    .facts li { grid-template-columns: 1fr; }
}

.cta {
    display: flex;
    flex-wrap: wrap;
    gap: .7rem;
    margin-top: 1.4rem;
}
.btn {
    display: inline-flex;
    align-items: center;
    padding: .6rem 1.1rem;
    border-radius: var(--radius);
    font-weight: 600;
    font-size: .93rem;
    border: 1px solid var(--line);
    background: var(--paper);
    color: var(--ink);
    line-height: 1.2;
}
.btn:hover { text-decoration: none; border-color: var(--ink-2); }
.btn-primary {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: transparent;
}
.btn-primary:hover { filter: brightness(1.08); border-color: transparent; }

/* ── contact ── */

.contact {
    font-family: var(--font-mono);
    font-size: 1.05rem;
}

/* ── footer ── */

.site-footer {
    border-top: 1px solid var(--line);
    padding: 1.75rem 0 3rem;
    color: var(--muted);
    font-size: .88rem;
}
.site-footer .wrap {
    display: flex;
    flex-wrap: wrap;
    gap: .6rem 2rem;
    justify-content: space-between;
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--ink-2); }
