/* ===========================================================================
 * Family Platform prototype — base styles v0.1
 * ---------------------------------------------------------------------------
 * Thin reset + typographic defaults + focus-visible treatment. Component
 * styles live in components.css. Room-specific styles live under views/.
 * ========================================================================= */

*, *::before, *::after {
    box-sizing: border-box;
}

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
    -webkit-tap-highlight-color: transparent;
}

body {
    margin: 0;
    font-family: var(--fp-font-ui);
    font-size: var(--fp-fs-md);
    line-height: var(--fp-lh-normal);
    color: var(--fp-ink);
    background: var(--fp-cream);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: var(--fp-fw-semibold);
    line-height: var(--fp-lh-tight);
    margin: 0;
}

p { margin: 0; }

a {
    color: var(--fp-sky-deep);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color var(--fp-dur-quick) var(--fp-ease-standard);
}
a:hover { border-bottom-color: currentColor; }

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
    color: inherit;
    padding: 0;
    font-size: inherit;
}

input, select, textarea {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

code {
    font-family: var(--fp-font-mono);
    font-size: 0.9em;
    background: var(--fp-cream-tint);
    padding: 1px 5px;
    border-radius: 4px;
}

/* ---- Focus-visible: honest focus rings for accessibility ---- */
:focus { outline: none; }
:focus-visible {
    outline: 3px solid var(--fp-sky);
    outline-offset: 2px;
    border-radius: var(--fp-radius-sm);
}

/* ---- Kid-mode: larger touch targets and relaxed line-height ---- */
[data-role="kid"] body,
body[data-role="kid"] {
    font-family: var(--fp-font-kid);
    line-height: var(--fp-lh-relaxed);
}

[data-role="kid"] button,
[data-role="kid"] a,
[data-role="kid"] input,
[data-role="kid"] select {
    min-height: var(--fp-touch-target, 44px);
    min-width: var(--fp-touch-target, 44px);
}

/* ---- Utility: screen-reader-only text ---- */
.fp-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ---- Prototype disclosure banner (shown on every view) ---- */
.fp-proto-banner {
    position: fixed;
    bottom: var(--fp-space-3);
    left: 50%;
    transform: translateX(-50%);
    background: var(--fp-ink);
    color: var(--fp-cream);
    padding: var(--fp-space-2) var(--fp-space-4);
    border-radius: var(--fp-radius-pill);
    font-size: var(--fp-fs-xs);
    font-weight: var(--fp-fw-semibold);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    z-index: var(--fp-z-overlay);
    box-shadow: var(--fp-shadow-md);
    opacity: 0.9;
}
