/* WEB-01: the shell stylesheet for the public site routes (`/` landing and
   `/login`). Deliberately separate from styles/app.css: those pages must not
   pull the editor's ~1000-line stylesheet to render a headline and a button.
   THEME-01: the --site-* custom properties are aliases onto the shared token
   contract in styles/theme-tokens.css (loaded before this file), so all three
   pages theme from one set of presets. */

* { box-sizing: border-box; }

/* REG-069: the native `hidden` attribute only wins through the UA stylesheet's
   [hidden]{display:none}, which any author `display` declaration overrides
   regardless of specificity — `.site-card`'s `display:flex` was rendering
   login.html's `hidden`-by-default invitation card, its name field and its
   Accept/Decline buttons to every visitor, invited or not. styles/app.css carries
   this same rule for the editor, added after the same failure there. This restores
   `hidden` as an always-authoritative way to hide any element on the site pages
   too, including markup written later. */
[hidden] { display: none !important; }

body.site {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: var(--site-bg);
    color: var(--site-text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

.site-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 24px;
    border-bottom: 1px solid var(--site-border);
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 16px;
    font-weight: 700;
    color: var(--site-text);
    text-decoration: none;
}

.site-nav-actions { display: flex; align-items: center; gap: 14px; }

.site-link { color: var(--site-muted); text-decoration: none; font-size: 14px; }
.site-link:hover { color: var(--site-text); text-decoration: underline; }

.site-main {
    flex: 1;
    width: 100%;
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 48px;
}

.site-main-narrow { max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 18px; }

/* WEB-02: the landing page is wider than the narrow login/error shell it shares
   this stylesheet with. */
.site-main-wide { max-width: 980px; }

.site-hero { margin-bottom: 56px; }

.site-pattern-card {
    margin: 0;
    padding: 22px 18px;
    background: #fff;
    border-radius: 12px;
    max-width: 480px;
}

.site-pattern-card svg { display: block; width: 100%; height: auto; }

.site-pattern-card figcaption { margin-top: 10px; }

.site-section-title { margin: 0 0 22px; font-size: 24px; font-weight: 700; }

.site-feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 20px;
}

.site-feature {
    padding: 20px 18px;
    background: var(--site-panel);
    border: 1px solid var(--site-border);
    border-radius: 12px;
}

.site-feature h3 { margin: 0 0 8px; font-size: 16px; }
.site-feature p { margin: 0; font-size: 14px; color: var(--site-muted); }

.site-cta-band {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--site-border);
    text-align: center;
}

.site-title { margin: 0 0 18px; font-size: 34px; line-height: 1.2; font-weight: 700; }

.site-lede { margin: 0 0 26px; font-size: 16px; color: var(--site-muted); }

.site-actions { margin: 0 0 22px; }

.site-btn {
    display: inline-block;
    padding: 11px 20px;
    border-radius: 10px;
    background: var(--site-primary);
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
}
.site-btn:hover { background: var(--site-primary-hover); }

.site-card {
    width: 100%;
    padding: 30px 26px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    text-align: center;
    background: var(--site-panel);
    border: 1px solid var(--site-border);
    border-radius: 14px;
}

.site-card-title { margin: 0; font-size: 20px; font-weight: 700; }

.site-google-button { min-height: 40px; display: flex; align-items: center; justify-content: center; }

.site-note { margin: 0; font-size: 13px; color: var(--site-muted); }

.site-error { margin: 0; font-size: 13px; color: var(--site-danger); }

.site-foot {
    padding: 20px 24px;
    border-top: 1px solid var(--site-border);
    font-size: 13px;
    color: var(--site-muted);
}

@media (max-width: 640px) {
    .site-main { padding: 40px 20px 36px; }
    .site-title { font-size: 27px; }
}
