/* =========================================================
   PALLADIUM DESIGN SYSTEM - BASE
   STEP 1: global foundation
========================================================= */

:root {
    --font-ui: "Manrope", ui-sans-serif, system-ui, sans-serif;
    --font-display: "Cormorant Garamond", ui-serif, serif;
    --font-sans: var(--font-ui);

    --ink: #171716;
    --ink-soft: #34322f;
    --paper: #f5f2ec;
    --paper-strong: #ebe6dd;
    --surface: #ffffff;
    --surface-dark: #111110;
    --surface-dark-soft: #191918;
    --muted: #74716b;
    --muted-light: rgba(255, 255, 255, 0.62);
    --line: rgba(23, 23, 22, 0.12);
    --line-light: rgba(255, 255, 255, 0.12);
    --gold: #b99a5f;
    --gold-soft: #d4bd8b;

    --content: 1240px;
    --content-wide: 1480px;
    --gutter: clamp(20px, 5vw, 76px);
    --section-space: clamp(78px, 9vw, 150px);
    --section-space-small: clamp(54px, 6vw, 96px);
    --nav-height: 82px;

    --radius-sm: 8px;
    --radius-md: 14px;
    --radius-lg: 22px;
    --radius-pill: 999px;

    --shadow-soft: 0 18px 55px rgba(19, 17, 13, 0.08);
    --shadow-card: 0 22px 70px rgba(19, 17, 13, 0.12);

    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --transition-fast: 180ms var(--ease);
    --transition: 320ms var(--ease);
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 24px);
    background: var(--surface-dark);
}

html,
body.public-site {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    overscroll-behavior-x: none;
}

@supports (overflow: clip) {
    html,
    body.public-site {
        overflow-x: clip;
    }
}

body.public-site {
    margin: 0;
    min-width: 320px;
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.public-site.mobile-menu-open {
    overflow: hidden;
}

body.public-site *,
body.public-site *::before,
body.public-site *::after {
    box-sizing: border-box;
}

body.public-site img,
body.public-site picture,
body.public-site video {
    max-width: 100%;
}

body.public-site img {
    display: block;
}

body.public-site button,
body.public-site input,
body.public-site select,
body.public-site textarea {
    font: inherit;
}

body.public-site button,
body.public-site a {
    -webkit-tap-highlight-color: transparent;
}

body.public-site a {
    color: inherit;
    text-decoration: none;
}

body.public-site h1,
body.public-site h2,
body.public-site h3,
body.public-site h4 {
    font-family: var(--font-display);
    font-weight: 600;
    text-wrap: balance;
}

body.public-site p {
    text-wrap: pretty;
}

body.public-site ::selection {
    background: var(--gold-soft);
    color: var(--ink);
}

body.public-site :focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 4px;
}

body.public-site section[id],
body.public-site header[id] {
    scroll-margin-top: calc(var(--nav-height) + 24px);
}

.public-container {
    width: min(var(--content), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.public-container--wide {
    width: min(var(--content-wide), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.section-eyebrow {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.69rem;
    font-weight: 750;
    line-height: 1.3;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

.inner-header .section-eyebrow,
.catalog-header .section-eyebrow,
.menus-header .section-eyebrow,
.quote-header .section-eyebrow,
.quote-success .section-eyebrow {
    color: rgba(255, 255, 255, 0.48);
}

@media (max-width: 900px) {
    :root {
        --nav-height: 72px;
        --gutter: clamp(18px, 5vw, 38px);
    }
}

@media (max-width: 600px) {
    :root {
        --nav-height: 66px;
        --gutter: 20px;
        --section-space: 76px;
        --section-space-small: 54px;
    }

    body.public-site {
        font-size: 15px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    body.public-site *,
    body.public-site *::before,
    body.public-site *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
    }
}
