/* GOTTA — base reset & typography */

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--ff-text);
    font-size: var(--fs-body-m);
    line-height: var(--lh-body);
    color: var(--ink);
    background: var(--bg-page);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

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

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--dur-fast) var(--ease-quiet);
}
a:hover, a:focus-visible { color: var(--color-onyx); }

/* ── Subtle atmospheric depth on dark surfaces ──
   Multi-layer radial gradients prevent the page from reading as pure flat
   black. Very low alpha so content always wins. Inherits the brand palette. */
body.page-dark,
body.pdp-v2,
body.page-find,
body.page-home,
body.page-moods {
    background-color: var(--color-onyx);
    background-image:
        radial-gradient(ellipse 75% 55% at 12% 18%, rgba(201, 165, 104, 0.05) 0%, transparent 55%),
        radial-gradient(ellipse 65% 50% at 88% 82%, rgba(74, 14, 21, 0.055) 0%, transparent 55%),
        radial-gradient(ellipse 55% 40% at 50% 105%, rgba(40, 52, 44, 0.04) 0%, transparent 50%);
    background-repeat: no-repeat;
    background-attachment: scroll;
}
/* On dark surfaces, hovering to onyx would make gold/ivory links disappear.
   Override to ivory so links stay visible.
   :where() keeps specificity at (0,1,1) — same as the global a:hover above —
   so any class-based button hover (e.g. .page-cta:hover, .btn--gold:hover)
   still wins and can fill-swap to a light bg + dark text on purpose. */
:where(body.pdp-v2, body.page-home, body.page-moods, body.page-find, body.page-dark, .section--dark) a:hover,
:where(body.pdp-v2, body.page-home, body.page-moods, body.page-find, body.page-dark, .section--dark) a:focus-visible {
    color: var(--color-ivory);
}

p { margin: 0 0 var(--space-s) 0; }
ul, ol { padding-left: 1.25rem; }

button {
    font: inherit;
    color: inherit;
    border: 0;
    background: none;
    cursor: pointer;
}

input, textarea, select {
    font: inherit;
    color: inherit;
    background: transparent;
    border: 0;
    outline: 0;
}

::selection { background: var(--color-onyx); color: var(--color-ivory); }
img::selection,
video::selection,
svg::selection,
.site-header::selection,
.site-header *::selection { background: transparent; }

:focus-visible {
    outline: 2px solid var(--color-crown-gold);
    outline-offset: 3px;
    border-radius: 2px;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
}
.skip-link:focus {
    left: 1rem;
    top: 1rem;
    padding: 0.75rem 1rem;
    background: var(--color-onyx);
    color: var(--color-ivory);
    z-index: 9999;
}

/* === Type primitives === */

.display-h1, .display-h2, .display-h3 {
    font-family: var(--ff-display);
    color: var(--ink-strong);
    margin: 0 0 var(--space-m) 0;
}

.display-h1 {
    font-size: var(--fs-h1);
    line-height: var(--lh-display);
    letter-spacing: var(--tr-display-tight);
    font-weight: 400;
}

.display-h2 {
    font-size: var(--fs-h2);
    line-height: var(--lh-display-2);
    letter-spacing: var(--tr-display);
    font-weight: 400;
}

.display-h3 {
    font-size: var(--fs-h3);
    line-height: var(--lh-h3);
    font-weight: 500;
}

.display-h4 {
    font-family: var(--ff-text);
    font-size: var(--fs-h4);
    font-weight: 600;
    line-height: var(--lh-tight);
    letter-spacing: -0.005em;
    margin: 0 0 var(--space-s) 0;
    color: var(--ink-strong);
}

.eyebrow {
    display: inline-block;
    font-family: var(--ff-text);
    font-size: var(--fs-eyebrow);
    font-weight: 500;
    letter-spacing: var(--tr-eyebrow);
    text-transform: uppercase;
    color: var(--ink-soft);
    margin: 0 0 var(--space-s) 0;
}
.eyebrow--gold { color: var(--color-crown-gold); }

.body-l { font-size: var(--fs-body-l); line-height: var(--lh-body); }
.body-m { font-size: var(--fs-body-m); line-height: var(--lh-body); }
.body-s { font-size: var(--fs-body-s); line-height: 1.55; color: var(--ink-soft); }

.mono {
    font-family: var(--ff-mono);
    font-size: var(--fs-micro);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--ink-soft);
}

.italic { font-style: italic; }

/* Pull-quote — magazine register */
.pull {
    font-family: var(--ff-display);
    font-style: italic;
    font-size: clamp(1.25rem, 1.4vw + 0.9rem, 2rem);
    line-height: 1.35;
    color: var(--ink-strong);
    border-left: 1px solid var(--color-crown-gold);
    padding-left: var(--space-m);
    margin: var(--space-l) 0;
    max-width: 38ch;
}

/* Prose blocks (fallback for the WP page editor) */
.prose { max-width: 68ch; }
.prose h2 { font-family: var(--ff-display); font-size: var(--fs-h3); font-weight: 500; margin-top: var(--space-l); }
.prose h3 { font-family: var(--ff-text); font-size: var(--fs-h4); font-weight: 600; margin-top: var(--space-m); }
.prose p { font-size: var(--fs-body-l); }
.prose a { border-bottom: 1px solid var(--rule); }
.prose a:hover { border-color: var(--color-onyx); }

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