:root {
    --gold: #c9a84c;
    --gold-light: #e8d5a3;
    --gold-dark: #a07b2c;
    --gold-glow: rgba(201, 168, 76, 0.18);
    --shadow-soft: 0 4px 40px rgba(60, 40, 10, 0.07), 0 1px 4px rgba(60, 40, 10, 0.04);
    --shadow-strong: 0 16px 64px rgba(60, 40, 10, 0.13), 0 4px 16px rgba(60, 40, 10, 0.07);
    --radius-card: 0;
    --radius-pill: 999px;
    --container: 1320px;
    --transition: 0.5s cubic-bezier(.4, 0, .2, 1);
    --control-height: 2.75rem;
    --control-height-sm: 2.5rem;
    --control-padding-x: 0.85rem;
    --control-font-size: 0.88rem;
    --btn-height: 2.75rem;
    --btn-height-sm: 2.5rem;
    --btn-padding-x: 1.25rem;
    --btn-font-size: 0.68rem;
    --btn-letter-spacing: 0.16em;
}

[data-theme="light"] {
    --bg: #fafaf7;
    --bg2: #f4f1eb;
    --bg3: #ede8df;
    --bg-alt: #f4f1eb;
    --bg-strong: #ede8df;
    --surface: #ffffff;
    --surface2: #f9f7f3;
    --surface-strong: #ffffff;
    --text: #1a1612;
    --text2: #4a4035;
    --text3: #7a7060;
    --text-soft: #4a4035;
    --text-muted: #a09080;
    --border: rgba(180, 155, 100, 0.2);
    --border2: rgba(180, 155, 100, 0.35);
    --border-strong: rgba(180, 155, 100, 0.35);
    --overlay: linear-gradient(125deg, rgba(250, 250, 247, 0.94) 0%, rgba(250, 250, 247, 0.62) 46%, rgba(250, 250, 247, 0.1) 100%);
    --hero-overlay: linear-gradient(160deg, rgba(250, 250, 247, 0.85) 0%, rgba(250, 250, 247, 0.35) 60%, rgba(250, 250, 247, 0.05) 100%);
    --nav-bg: rgba(250, 250, 247, 0.92);
    --card-bg: #ffffff;
    --card-shadow: 0 4px 40px rgba(60, 40, 10, 0.07), 0 1px 4px rgba(60, 40, 10, 0.04);
    --card-hover-shadow: 0 16px 64px rgba(60, 40, 10, 0.13), 0 4px 16px rgba(60, 40, 10, 0.07);
    --footer-bg: #1a1612;
    --footer-text: #f2e8d0;
}

[data-theme="dark"] {
    --bg: #0c0b09;
    --bg2: #111009;
    --bg3: #18160e;
    --bg-alt: #111009;
    --bg-strong: #18160e;
    --surface: #161410;
    --surface2: #1e1c16;
    --surface-strong: #161410;
    --text: #f0e8d5;
    --text2: #d4c9a8;
    --text3: #9a8f70;
    --text-soft: #d4c9a8;
    --text-muted: #6a6050;
    --border: rgba(201, 168, 76, 0.15);
    --border2: rgba(201, 168, 76, 0.28);
    --border-strong: rgba(201, 168, 76, 0.28);
    --overlay: linear-gradient(125deg, rgba(12, 11, 9, 0.95) 0%, rgba(12, 11, 9, 0.66) 46%, rgba(12, 11, 9, 0.14) 100%);
    --hero-overlay: linear-gradient(160deg, rgba(12, 11, 9, 0.92) 0%, rgba(12, 11, 9, 0.55) 55%, rgba(12, 11, 9, 0.1) 100%);
    --nav-bg: rgba(12, 11, 9, 0.94);
    --card-bg: #161410;
    --card-shadow: 0 4px 40px rgba(0, 0, 0, 0.4), 0 1px 4px rgba(0, 0, 0, 0.3);
    --card-hover-shadow: 0 16px 64px rgba(0, 0, 0, 0.6), 0 4px 16px rgba(201, 168, 76, 0.08);
    --footer-bg: #060504;
    --footer-text: #f0e8d5;
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Jost", sans-serif;
    background: var(--bg);
    color: var(--text);
    transition: background 0.6s, color 0.6s;
    overflow-x: hidden;
}

a,
button,
input {
    font: inherit;
}

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

img {
    display: block;
    max-width: 100%;
}

main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
}

main > .section:last-of-type {
    flex: 1 0 auto;
}

::selection {
    background: var(--gold);
    color: #0c0b09;
}

::-webkit-scrollbar {
    width: 0.45rem;
}

::-webkit-scrollbar-track {
    background: var(--bg);
}

::-webkit-scrollbar-thumb {
    background: var(--gold-dark);
    border-radius: var(--radius-pill);
}
