/* ===================================================================
   Kitchen Eyes - Base Styles
   Typography, body defaults, and global element styling
   =================================================================== */

body {
    font-family: var(--font-primary);
    font-size: 16px;
    color: var(--text-secondary);
    background-color: var(--navy-deep);
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* -- Headings -- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.15;
}

h1 { font-size: clamp(2.6rem, 5.5vw, 4rem); line-height: 1.08; letter-spacing: -0.025em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.12; }
h3 { font-size: clamp(1.35rem, 2.8vw, 1.85rem); }
h4 { font-size: clamp(1.1rem, 2vw, 1.35rem); letter-spacing: -0.01em; }

/* -- Body Text -- */
p {
    color: var(--text-secondary);
    line-height: 1.8;
    max-width: 68ch;
}

.text-large {
    font-size: 1.15rem;
    line-height: 1.9;
}

.text-small {
    font-size: 0.875rem;
}

.text-xs {
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

/* -- Gradient Text -- */
.gradient-text {
    background: linear-gradient(135deg, #5FC7C0 0%, #1E7F7A 40%, #B8955E 80%, #D2B27A 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.gradient-text--gold {
    background: linear-gradient(135deg, #B8955E 0%, #D2B27A 50%, #E5CFA0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* -- Links -- */
a {
    color: var(--teal-light);
    transition: color var(--duration-fast) ease;
}
a:hover {
    color: var(--gold-light);
}

/* -- Selection -- */
::selection {
    background: var(--teal);
    color: var(--text-white);
}

/* -- Scrollbar -- */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--navy-deepest);
}
::-webkit-scrollbar-thumb {
    background: var(--navy-light);
    border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--teal-muted);
}

/* -- Focus -- */
:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

/* -- Image Defaults -- */
img {
    display: block;
    max-width: 100%;
    height: auto;
}

/* -- Image Fallback System --
   Prevents broken image icons from ever displaying.
   Decorative images that fail to load are hidden gracefully.
   Container backgrounds provide visual continuity. */
img.img-fallback-hidden {
    opacity: 0 !important;
    pointer-events: none;
}

/* Background fallback for image containers */
.hero__bg,
.page-hero__bg,
.cinematic-strip__bg,
.atmosphere-panel__bg,
.cta-banner__bg {
    background: linear-gradient(145deg, #050C18 0%, #0A1828 40%, #0E1926 70%, #07111F 100%);
}

.feature-row__visual--image {
    background: linear-gradient(160deg, #0E1926 0%, #0A1520 50%, #07111F 100%);
}
