:root {
    --bg: #fff8ea;

    --surface: rgba(255, 250, 240, 0.94);
    --card: rgba(255, 250, 240, 0.94);

    --primary: #082f5f;

    --text: #082f5f;
    --text-soft: #8b6847;

    --border: #e5d6b8;

    --gold: #d8b66d;
    --gold-soft: #efe0bd;

    --shadow:
        0 18px 45px rgba(72, 48, 20, 0.12);

    --page-width: 1120px;

    --radius-lg: 34px;
    --radius-md: 24px;
    --radius-sm: 18px;

    --transition:
        0.25s ease;
}

/* =========================
   DARK MODE VARIABLES
========================= */

html[data-theme="dark"] {
    --bg: #0d1724;

    --surface: rgba(20, 28, 40, 0.96);
    --card: #162233;

    --primary: #f7ead6;

    --text: #f7ead6;
    --text-soft: #d8bd96;

    --border:
        rgba(216, 182, 109, 0.22);

    --gold: #d8b66d;

    --gold-soft:
        rgba(216, 182, 109, 0.14);

    --shadow:
        0 18px 45px rgba(0, 0, 0, 0.38);
}

/* =========================
   RESET
========================= */

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

html {
    width: 100%;

    overflow-x: hidden;

    scroll-behavior: smooth;

    scroll-padding-top: 120px;
}

body {
    margin: 0;

    width: 100%;
    min-width: 320px;

    overflow-x: hidden;

    background: var(--bg);
    color: var(--text);

    font-family:
        "Segoe UI",
        Arial,
        sans-serif;

    text-rendering: optimizeLegibility;

    -webkit-font-smoothing: antialiased;
}

/* =========================
   MEDIA
========================= */

img,
picture,
video,
canvas,
svg {
    max-width: 100%;
    display: block;
}

/* =========================
   LINKS
========================= */

a {
    color: inherit;
    text-decoration: none;
}

/* =========================
   BUTTONS
========================= */

button,
input,
textarea,
select {
    font: inherit;
}

button {
    cursor: pointer;
}

/* =========================
   MAIN
========================= */

.site-main {
    width: 100%;
    overflow: hidden;

    background: var(--bg);
}

/* =========================
   LAYOUT
========================= */

.container {
    width:
        min(
            var(--page-width),
            calc(100% - 28px)
        );

    margin-inline: auto;
}

/* =========================
   TYPOGRAPHY
========================= */

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;

    line-height: 1.15;
}

p {
    margin-top: 0;
}

/* =========================
   SELECTION
========================= */

::selection {
    background:
        rgba(214, 177, 97, 0.28);

    color: var(--text);
}

/* =========================
   SCROLLBAR
========================= */

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background:
        rgba(214, 177, 97, 0.45);

    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background:
        rgba(214, 177, 97, 0.72);
}

/* =========================
   DARK MODE GLOBAL
========================= */

html[data-theme="dark"] body,
html[data-theme="dark"] .site-main {
    background: var(--bg);
    color: var(--text);
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 900px) {

    html {
        scroll-padding-top: 136px;
    }

    .container {
        width:
            calc(100% - 22px);
    }
}

@media (max-width: 640px) {

    html {
        scroll-padding-top: 124px;
    }

    body {
        font-size: 15px;
    }

    .container {
        width:
            calc(100% - 16px);
    }
}

/* =========================
   GLOBAL MOTION
========================= */

html,
body,
.site-main,
.site-header,
.accordion-card,
.about-card,
.home-activity-card,
.link-resource-card,
.cine-card,
.contact-card,
.about-poster-card,
.hero-page-panel,
.site-footer {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

/* =========================
   REVEAL ON SCROLL
========================= */

.reveal-item {
    opacity: 0;
    transform: translateY(18px);
    transition:
        opacity 0.55s ease,
        transform 0.55s ease;
}

.reveal-item.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* =========================
   ACCESSIBILITY
========================= */

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

    .reveal-item {
        opacity: 1 !important;
        transform: none !important;
    }
}