/* Huddle Log site: shared stylesheet. System fonts, no scripts, nothing fetched
   from anywhere else. Brand Petrol #147174 (docs/UI_DESIGN_SYSTEM.md, ADR-0035);
   dark-mode links use #5FB1B4, as in the app. Follows the visitor's light or
   dark appearance. Text colours meet WCAG AA (4.5:1) on page and card.
   The home page adds home.css on top of this file. */
:root {
    color-scheme: light dark;
    --ink: #1d1d1f;
    --muted: #5c6066;
    --rule: #e1e3e6;
    --card: #ffffff;
    --page: #f5f5f7;
    --page-alt: #ffffff;
    --field: #f5f6f7;
    --link: #147174;
    --brand: #147174;
    --button: #147174;
    --button-ink: #ffffff;
    --bar: rgba(251, 251, 253, 0.82);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    --gutter: clamp(16px, 4vw, 40px);
}
@media (prefers-color-scheme: dark) {
    :root {
        --ink: #f5f5f7;
        --muted: #a8abb0;
        --rule: #333438;
        --card: #1c1c1e;
        --page: #000000;
        --page-alt: #111113;
        --field: #111113;
        --link: #5fb1b4;
        --brand: #5fb1b4;
        --button: #147174;
        --button-ink: #ffffff;
        --bar: rgba(22, 22, 24, 0.8);
    }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
    margin: 0;
    background: var(--page);
    color: var(--ink);
    font: 17px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 var(--gutter) 72px; }

.skip {
    position: absolute; left: -9999px; top: 0; z-index: 100;
    background: var(--card); color: var(--ink); padding: 8px 12px; border-radius: 8px;
}
.skip:focus { left: 12px; top: 12px; }

/* Site bar, shared by every page. */
header.site {
    position: sticky; top: 0; z-index: 50;
    background: var(--bar);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--rule);
}
header.site .bar {
    max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter);
    height: 52px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.mark {
    display: inline-flex; align-items: center; gap: 10px;
    font-weight: 600; font-size: 17px; letter-spacing: -0.01em;
    color: var(--ink); text-decoration: none; white-space: nowrap;
}
.mark img { width: 28px; height: 28px; border-radius: 7px; }
header.site nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 22px; }
header.site nav a { color: var(--ink); text-decoration: none; font-size: 14px; opacity: 0.85; }
header.site nav a:hover { color: var(--link); opacity: 1; }
header.site nav .wide { display: none; }
@media (min-width: 760px) { header.site nav .wide { display: list-item; } }

.hero { text-align: center; padding: 40px 0 8px; }

h1 { font-family: var(--font-display); font-size: 40px; line-height: 1.1; letter-spacing: -0.025em; margin: 48px 0 10px; }
h2 { font-size: 22px; line-height: 1.3; letter-spacing: -0.01em; margin: 40px 0 10px; }
h3 { font-size: 17px; line-height: 1.4; margin: 24px 0 6px; }
.lede { color: var(--muted); font-size: 20px; line-height: 1.45; margin: 0 0 8px; }
.note { color: var(--muted); font-size: 15px; }

.card {
    background: var(--card);
    border: 1px solid var(--rule);
    border-radius: 18px;
    padding: 24px 26px;
    margin: 16px 0;
}
.card > :first-child { margin-top: 0; }
.card > :last-child { margin-bottom: 0; }

a { color: var(--link); text-underline-offset: 2px; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, video:focus-visible {
    outline: 3px solid var(--link); outline-offset: 2px;
}

/* Legal pages: long text, comfortable measure. */
.legal h2 { font-size: 20px; }
.legal li { margin: 6px 0; }
.legal ul ul { margin-top: 6px; }

/* Footer, shared by every page. */
footer.site {
    border-top: 1px solid var(--rule);
    color: var(--muted); font-size: 13px;
    background: var(--page);
}
footer.site .bar { max-width: 1120px; margin: 0 auto; padding: 22px var(--gutter) 40px; }
footer.site nav ul { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 0; }
footer.site nav li + li::before { content: "·"; padding: 0 10px; color: var(--muted); }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--ink); text-decoration: underline; }
footer.site p { margin: 0; }

/* Contact form. */
label { display: block; font-size: 15px; font-weight: 600; margin: 16px 0 6px; }
.optional { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], textarea {
    width: 100%; padding: 10px 12px;
    background: var(--field); color: var(--ink);
    border: 1px solid var(--rule); border-radius: 10px;
    font: inherit; font-size: 16px;
}
textarea { min-height: 150px; resize: vertical; }
.hp { display: none; }
.button {
    display: inline-block; margin-top: 18px;
    background: var(--button); color: var(--button-ink); text-decoration: none;
    border: 0; cursor: pointer; font: inherit; font-weight: 600; font-size: 16px;
    padding: 11px 22px; border-radius: 980px;
}
.button:hover { filter: brightness(1.1); }

@media (max-width: 480px) {
    body { font-size: 16px; }
    h1 { font-size: 32px; }
    .lede { font-size: 18px; }
    .card { padding: 18px; }
}
.center { text-align: center; }
