/* Mulcahy Heavy Industries — shared chrome for content pages.
   The immersive apps (fog tracker, webcams) intentionally do NOT use this;
   they style themselves full-bleed. This is for the hub + writing pages. */

:root {
    --mhi-bg: #0a0c0f;
    --mhi-panel: #12161b;
    --mhi-border: rgba(0, 255, 255, 0.18);
    --mhi-text: #e6edf3;
    --mhi-muted: #8b98a5;
    --mhi-cyan: #00ffff;
    --mhi-cyan-soft: rgba(0, 255, 255, 0.7);
    --mhi-max: 920px;
    --mono: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;
    --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--mhi-bg);
    color: var(--mhi-text);
    font-family: var(--sans);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--mhi-cyan-soft); text-decoration: none; }
a:hover { color: var(--mhi-cyan); text-decoration: underline; }

.wrap {
    max-width: var(--mhi-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Header (injected by site.js) ---- */
.site-header {
    border-bottom: 1px solid var(--mhi-border);
    background: rgba(10, 12, 15, 0.85);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 100;
}
.site-header .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    height: 64px;
}
.site-header .brand {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.22em;
    font-weight: 600;
    color: var(--mhi-text);
    white-space: nowrap;
}
.site-header .brand:hover { text-decoration: none; color: var(--mhi-cyan); }
.site-nav { display: flex; gap: 4px; flex-wrap: wrap; }
.site-nav a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--mhi-muted);
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 6px;
}
.site-nav a:hover { color: var(--mhi-cyan); text-decoration: none; border-color: var(--mhi-border); }
.site-nav a.current { color: var(--mhi-cyan); border-color: var(--mhi-border); }

/* ---- Hero ---- */
.hero { padding: 72px 0 40px; }
.hero h1 {
    font-size: clamp(32px, 6vw, 52px);
    line-height: 1.1;
    margin: 0 0 12px;
    letter-spacing: -0.01em;
}
.hero .tagline {
    font-family: var(--mono);
    color: var(--mhi-cyan-soft);
    font-size: 14px;
    letter-spacing: 0.1em;
    margin: 0 0 24px;
}
.hero p { color: var(--mhi-muted); max-width: 60ch; margin: 0 0 16px; }
.hero figure {
    margin: 8px 0 24px;
    padding: 0;
    max-width: 72ch;
}
.hero figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--mhi-border);
}
.hero figcaption {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--mhi-muted);
}

/* ---- Social / contact links ---- */
.links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }
.links a {
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.08em;
    padding: 10px 16px;
    border: 1px solid var(--mhi-border);
    border-radius: 8px;
    background: var(--mhi-panel);
    color: var(--mhi-text);
}
.links a:hover { color: #000; background: var(--mhi-cyan); border-color: var(--mhi-cyan); text-decoration: none; }

/* ---- Section heading ---- */
.section { padding: 32px 0; }
.section > h2 {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--mhi-muted);
    border-bottom: 1px solid var(--mhi-border);
    padding-bottom: 10px;
    margin: 0 0 24px;
}

/* ---- Project / link cards ---- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.card {
    display: block;
    background: var(--mhi-panel);
    border: 1px solid var(--mhi-border);
    border-radius: 12px;
    padding: 20px;
    transition: transform 0.12s ease, border-color 0.12s ease, box-shadow 0.12s ease;
}
.card:hover {
    transform: translateY(-2px);
    border-color: var(--mhi-cyan);
    box-shadow: 0 8px 28px rgba(0, 255, 255, 0.12);
    text-decoration: none;
}
.card h3 { margin: 0 0 8px; font-size: 18px; color: var(--mhi-text); }
.card p { margin: 0; color: var(--mhi-muted); font-size: 14px; }
.card .meta {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--mhi-cyan-soft);
    margin-bottom: 10px;
}

/* ---- Link lists (e.g. hikes) ---- */
.linklist { list-style: none; padding: 0; margin: 0; }
.linklist li {
    padding: 16px 0;
    border-bottom: 1px solid var(--mhi-border);
}
.linklist li:last-child { border-bottom: none; }
.linklist .title { font-size: 16px; font-weight: 600; }
.linklist .desc { color: var(--mhi-muted); font-size: 14px; margin-top: 4px; }
.linklist .desc a { font-family: var(--mono); font-size: 12px; }

/* ---- Long-form documents (privacy / support pages) ---- */
.doc { max-width: 72ch; }
.doc h2 {
    font-size: 22px;
    line-height: 1.25;
    margin: 36px 0 12px;
    color: var(--mhi-text);
    letter-spacing: -0.01em;
}
.doc h2:first-child { margin-top: 0; }
.doc h3 {
    font-family: var(--mono);
    font-size: 14px;
    letter-spacing: 0.04em;
    margin: 24px 0 8px;
    color: var(--mhi-cyan-soft);
}
.doc p { color: var(--mhi-muted); margin: 0 0 16px; }
.doc ul { color: var(--mhi-muted); margin: 0 0 16px; padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc li figure {
    margin: 16px 0 8px;
    padding: 0;
}
.doc li:has(figure) { margin-bottom: 24px; }
.doc strong { color: var(--mhi-text); }
.doc a { word-break: break-word; }
.doc code {
    font-family: var(--mono);
    font-size: 0.88em;
    background: var(--mhi-panel);
    border: 1px solid var(--mhi-border);
    border-radius: 4px;
    padding: 1px 5px;
}
.doc hr {
    border: none;
    border-top: 1px solid var(--mhi-border);
    margin: 32px 0;
}
.doc table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 20px;
    font-size: 14px;
}
.doc th, .doc td {
    text-align: left;
    padding: 10px 12px;
    border: 1px solid var(--mhi-border);
    vertical-align: top;
}
.doc th {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--mhi-cyan-soft);
    background: var(--mhi-panel);
}
.doc td { color: var(--mhi-muted); }
.doc figure {
    margin: 24px 0;
    padding: 0;
}
.doc figure img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
    border: 1px solid var(--mhi-border);
}
.doc figcaption {
    margin-top: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.06em;
    color: var(--mhi-muted);
}

/* ---- Footer (injected by site.js) ---- */
.site-footer {
    border-top: 1px solid var(--mhi-border);
    margin-top: 48px;
    padding: 28px 0;
}
.site-footer .wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer, .site-footer a {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.08em;
    color: var(--mhi-muted);
}
.site-footer a:hover { color: var(--mhi-cyan); }
.site-footer .social { display: flex; gap: 16px; }
