:root {
    /* Color palette - Dark Theme TV */
    --color-bg: #000000;
    --color-surface: #141414;
    --color-surface-hover: #2f2f2f;
    --color-text: #ffffff;
    --color-muted: #a3a3a3;
    --color-accent: #e50914;
    --color-accent-strong: #b80710;
    --color-line: #333333;
    --color-link: #ffffff;
    --color-success: #1b8a44;
    --color-warning: #d9822b;

    /* Shadows / radii */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.8);
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 12px;

    /* Layout */
    --site-width: 100%;
    --container-padding: 4%;

    /* Typography */
    --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, 'Noto Sans', sans-serif;
    --font-serif: Georgia, 'Times New Roman', serif;
    --text-size-base: 16px;

    /* Spacing scale */
    --space-xxs: 0.25rem;
    --space-xs: 0.5rem;
    --space-sm: 0.75rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 3rem;

    /* Breakpoints */
    --bp-sm: 480px;
    --bp-md: 768px;
    --bp-lg: 1024px;
}

/* Base layout and typography */
html { font-size: var(--text-size-base); box-sizing: border-box; }
*, *:before, *:after { box-sizing: inherit; }

body {
    min-height: 100vh;
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-sans);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
}

/* Links */
a { color: var(--color-link); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }

button { cursor: pointer; font-family: inherit; }

.site-shell {
    width: min(100% - calc(var(--container-padding) * 2), var(--site-width));
    margin: 0 auto;
    padding: 0 var(--container-padding);
}

.skip-link { position: absolute; left: -9999px; }
.skip-link:focus {
    left: 1rem; top: 1rem; z-index: 1000; padding: 0.75rem 1rem; background: var(--color-accent); color: #fff;
}

/* Headings, paragraphs and lists */
h1, h2, h3, h4, h5, h6 { margin: 0 0 var(--space-sm) 0; font-weight: 700; color: var(--color-text); line-height: 1.15; }
h1 { font-size: 2.0rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
p { margin: 0 0 var(--space-md) 0; }
small, .small { font-size: 0.875rem; color: var(--color-muted); }
ul, ol { margin: 0 0 var(--space-md) 1.25rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; border: 0; padding: 0.6rem 0.9rem; border-radius: var(--radius-md); background: var(--color-accent); color: #fff; font-weight: 600; }
.btn:focus { outline: 3px solid color-mix(in srgb, var(--color-accent) 16%, transparent); outline-offset: 2px; }

/* Accessibility helpers */
.visually-hidden { position: absolute !important; height: 1px; width: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); white-space: nowrap; }

@media (min-width: var(--bp-lg)) {
    h1 { font-size: 2.6rem; }
    h2 { font-size: 1.8rem; }
}