/* ============================================================
   9LE BASE — Design System Foundation
   Shared CSS layer for all 9 Light Entertainment property sites.
   Each project site overrides the CSS custom properties below
   in its own theme file. Components stay structural; theming is
   tokenized. Don't touch this file when forking — only override
   variables in the project theme layer.
   ============================================================ */

/* ---------- Reset / Normalize ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; line-height: 1.5; min-height: 100vh; }
img, picture, svg, video {
    display: block;
    max-width: 100%;
    height: auto;
}
h1, h2, h3, h4, h5, h6, p, ul, ol, blockquote { margin: 0; }
ul, ol { padding: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, textarea, select { font: inherit; }

/* ---------- Design Tokens (9LE house defaults — override per project) ---------- */
:root {
    /* Color palette — defaults match 9light.ca house style */
    --color-bg-page:        #000000;
    --color-bg-card:        rgba(0, 0, 0, 0.20);
    --color-text:           #ffffff;
    --color-text-muted:     rgba(255, 255, 255, 0.72);
    --color-accent:         #E8853D;   /* Soft Copper — primary brand accent */
    --color-accent-alt:     #4D9EFF;   /* Sky Blue — secondary accent */
    --color-accent-soft:    rgba(232, 133, 61, 0.12);
    --color-border:         transparent;
    --color-divider:        rgba(255, 255, 255, 0.15);

    /* Typography stack */
    --font-display:         'Oswald', system-ui, -apple-system, sans-serif;
    --font-body:            'Oswald', system-ui, -apple-system, sans-serif;

    /* Fluid type scale */
    --fs-hero:              clamp(2.25rem, 5vw + 1rem, 4.5rem);
    --fs-h1:                clamp(2rem, 3.5vw + 0.5rem, 3.25rem);
    --fs-h2:                clamp(1.5rem, 2.5vw + 0.5rem, 2.5rem);
    --fs-h3:                clamp(1.2rem, 1.8vw + 0.3rem, 1.75rem);
    --fs-h4:                clamp(1.05rem, 1.2vw + 0.2rem, 1.35rem);
    --fs-body:              clamp(0.95rem, 0.4vw + 0.85rem, 1.0625rem);
    --fs-small:             0.85rem;

    /* Layout / spacing */
    --container-max:        980px;
    --container-pad:        clamp(1rem, 3vw, 2rem);
    --card-radius:          14px;
    --card-shadow:          0 6px 28px rgba(0, 0, 0, 0.18);
    --card-padding:         clamp(1.5rem, 4vw, 3rem);
    --section-gap:          clamp(1.5rem, 4vw, 3rem);
    --stack:                1.25rem;     /* default vertical rhythm */
}

/* ---------- Base typography ---------- */
body {
    font-family: var(--font-body);
    font-size: var(--fs-body);
    color: var(--color-text);
    background-color: var(--color-bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.08;
    color: var(--color-accent);
    font-weight: 400;
    letter-spacing: 0.005em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p { line-height: 1.65; }
p + p { margin-top: 1rem; }

a { transition: color .18s ease; }
a:hover, a:focus-visible { color: var(--color-accent); }

::selection { background: var(--color-accent); color: #fff; }

/* ---------- Layout primitives ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin-inline: auto;
    padding-inline: var(--container-pad);
}

.stack > * + * { margin-top: var(--stack); }
.stack-lg > * + * { margin-top: 2rem; }
.stack-sm > * + * { margin-top: 0.5rem; }

/* ---------- Card ---------- */
.card {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--card-radius);
    padding: var(--card-padding);
    margin-block-end: var(--section-gap);
    box-shadow: var(--card-shadow);
    overflow: hidden;
}
.card:last-child { margin-block-end: 0; }

/* ---------- Eyebrow / label badge ---------- */
.eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: var(--fs-small);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-accent);
}

.section-label {
    display: inline-block;
    background: var(--color-accent);
    color: #fff;
    padding: 0.55rem 1.25rem;
    border-radius: 999px;
    font-family: var(--font-display);
    letter-spacing: 0.12em;
    font-size: 0.95rem;
    text-transform: uppercase;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    padding: 0.85rem 2.25rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    background: var(--color-accent);
    color: #fff;
    border-radius: 8px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    text-align: center;
}
.btn:hover, .btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
    color: #fff;
}
.btn--block { display: block; width: 100%; }

/* ---------- Callout / note box ---------- */
.callout {
    background: var(--color-accent-soft);
    border-left: 4px solid var(--color-accent);
    border-radius: 6px;
    padding: 1.25rem 1.5rem;
    margin-block: 1.5rem;
    line-height: 1.55;
}
.callout strong { color: var(--color-accent); }

/* ---------- Pull-quote ---------- */
.pull-quote {
    border-left: 3px solid var(--color-accent);
    padding-inline-start: 1.25rem;
    font-style: italic;
    color: var(--color-text-muted);
    line-height: 1.55;
}

/* ---------- Gallery (responsive grid) ---------- */
.gallery {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}
.gallery img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 6px;
    transition: transform .25s ease;
}
.gallery a:hover img,
.gallery img:hover { transform: scale(1.025); }

.gallery--3 { grid-template-columns: repeat(3, 1fr); }
.gallery--col-3 { grid-template-columns: repeat(3, 1fr); }
.gallery--col-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 720px) {
    .gallery--col-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Image helpers ---------- */
.full-image {
    width: 100%;
    border-radius: var(--card-radius);
    object-fit: cover;
}
.image-rounded { border-radius: var(--card-radius); }

/* ---------- 9LE footer credit module ---------- */
.le-credit {
    text-align: center;
    padding: 2.5rem 1rem 1.5rem;
    font-family: var(--font-display);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--color-text-muted);
}
.le-credit a:hover { color: var(--color-accent); }
.le-credit__sep { opacity: 0.4; padding: 0 0.5rem; }

/* ---------- Utility classes ---------- */
.text-center { text-align: center; }
.text-muted { color: var(--color-text-muted); }
.full-width { width: 100%; }
.no-margin { margin: 0; }
.mt-0 { margin-top: 0 !important; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-1 { margin-bottom: 1rem; }
.mb-2 { margin-bottom: 2rem; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
