/* Structural only. Every decision worth arguing about is a custom property,
   so committing to a look later means editing this block and nothing else.

   Components import this into their shadow roots; the properties inherit
   through shadow boundaries, which is exactly why they're properties. */

:root {
    color-scheme: light dark;

    --bg:        #ffffff;
    --surface:   #f5f6f8;
    --line:      #e3e5ea;
    --fg:        #14161a;
    --muted:     #6b7280;
    --accent:    #b3122b;
    --accent-fg: #ffffff;
    --good:      #157f3d;

    --radius:    14px;
    --gap:       1rem;
    --pad:       1.15rem;
    --measure:   34rem;

    --font: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg:      #0f1114;
        --surface: #171a1f;
        --line:    #262a31;
        --fg:      #e9eaee;
        --muted:   #9aa1ad;
        --accent:  #e8405c;
        --good:    #35c46a;
    }
}

* { box-sizing: border-box; }

/* Any `display` rule beats the user-agent's `[hidden] { display: none }`, so a
   flex or grid container with the hidden attribute stays visible. This is the
   single most common way a "hidden" panel isn't. */
[hidden] { display: none !important; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.45;
    -webkit-font-smoothing: antialiased;
}

/* Phones first: one column, thumb-reachable, never wider than a comfortable
   measure even on a laptop. */
.wrap {
    max-width: var(--measure);
    margin: 0 auto;
    padding: var(--pad);
}
