/* =========================
   GOSHEN — Design Tokens & Foundation
   Awwwards-level editorial aesthetic
   ========================= */

/* --- Font Faces --- */
@font-face {
    font-family: 'PP Museum';
    src: url('../fonts/Museum Font/otf/PPMuseum-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Museum';
    src: url('../fonts/Museum Font/otf/PPMuseum-Light.otf') format('opentype');
    font-weight: 300;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'PP Neue Montreal';
    src: url('../fonts/Neue Montreal/PPNeueMontreal-Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* --- Design Tokens --- */
:root {
    /* Primary Theme Tokens */
    --ink: #191816;
    /* Primary deep text color */
    --cream: #f4f0ec;
    /* Light accent text color */
    --sand: #e6e0d8;
    /* Soft light backgrounds */
    --gold: #b39b7d;
    /* Golden accents / buttons */

    /* The original editorial dark theme used these names */
    --stone: color-mix(in srgb, var(--ink) 60%, var(--cream));
    --espresso: #12100e;
    --pearl: color-mix(in srgb, var(--sand) 15%, #ffffff);
    --smoke: color-mix(in srgb, var(--ink) 10%, var(--sand));

    /* Semantic Usage */
    --bg: var(--cream);
    --text: var(--ink);
    --muted: color-mix(in srgb, var(--ink) 60%, transparent);
    --line: color-mix(in srgb, var(--ink) 12%, transparent);
    --card: var(--sand);
    --glass: color-mix(in srgb, var(--cream) 85%, transparent);

    /* Dark Section Tokens (for footer or dark hero blocks) */
    --bg-dark: var(--ink);
    /* Main dark background */
    --text-dark: var(--cream);
    /* Lightest color for text on dark bg */
    --muted-dark: color-mix(in srgb, var(--cream) 60%, transparent);
    --line-dark: color-mix(in srgb, var(--cream) 15%, transparent);
    --card-dark: color-mix(in srgb, var(--cream) 5%, transparent);
    --glass-dark: color-mix(in srgb, var(--ink) 85%, transparent);

    /* Layout */
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --max: 1200px;
    --max-wide: 1400px;
    --max-narrow: 900px;
    --pad: clamp(20px, 3vw, 40px);

    /* Typography */
    --font-head: 'PP Museum', Georgia, 'Times New Roman', serif;
    --font-body: 'PP Neue Montreal', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;

    /* Transitions */
    --ease: cubic-bezier(.25, 0, .15, 1);
    --ease-out: cubic-bezier(0, 0, .15, 1);
    --ease-in-out: cubic-bezier(.76, 0, .24, 1);
    --duration: .3s;
    --duration-slow: .6s;
    --duration-slower: 1s;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

html.lenis,
html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

a:hover {
    text-decoration: none;
}

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

input,
select,
textarea {
    font: inherit;
}

ul,
ol {
    list-style: none;
}

/* --- Typography Scale — Dramatic Editorial --- */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-head);
    line-height: 1.05;
    margin: 0 0 16px;
    font-weight: 300;
    letter-spacing: -.02em;
}

h1 {
    font-size: clamp(44px, 7vw, 100px);
    letter-spacing: -.03em;
    line-height: .95;
}

h2 {
    font-size: clamp(32px, 4.5vw, 64px);
    line-height: 1;
}

h3 {
    font-size: clamp(22px, 2.5vw, 32px);
}

h4 {
    font-size: 20px;
}

p {
    margin: 0 0 16px;
}

p:last-child {
    margin-bottom: 0;
}

/* --- Utility Classes --- */
.eyebrow {
    margin: 0 0 14px;
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: .25em;
    text-transform: uppercase;
    color: var(--gold);
}

.section--dark .eyebrow {
    color: var(--gold);
}

.lead {
    font-size: clamp(16px, 1.3vw, 20px);
    line-height: 1.6;
    max-width: 56ch;
    color: var(--muted);
}

.section--dark .lead {
    color: var(--muted-dark);
}

.muted {
    color: var(--muted);
}

.section--dark .muted {
    color: var(--muted-dark);
}

.small {
    font-size: 13px;
}

.maxw {
    max-width: 62ch;
}

.text-center {
    text-align: center;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --- Reveal Text Wrapper --- */
.reveal-text {
    overflow: hidden;
    display: block;
}

.reveal-text .word {
    display: inline-block;
    transform: translateY(100%);
    opacity: 0;
}

/* --- Image Reveal --- */
.img-reveal {
    overflow: hidden;
    position: relative;
}

.img-reveal img {
    transform: scale(1.15);
    transition: transform 1.2s var(--ease-out);
}

.img-reveal.revealed img {
    transform: scale(1);
}

/* --- Selection --- */
::selection {
    background: color-mix(in srgb, var(--gold) 30%, transparent);
    color: var(--ink);
}

/* --- Focus visible --- */
:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

/* --- Page Loader --- */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 999;
    background: var(--ink);
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.page-loader__inner {
    color: var(--cream);
    font-family: var(--font-head);
    font-size: clamp(24px, 3vw, 40px);
    font-weight: 300;
    letter-spacing: .05em;
    opacity: 0;
}

/* --- Reduced Motion --- */
@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;
    }

    .reveal-text .word {
        transform: none;
        opacity: 1;
    }

    .img-reveal img {
        transform: none;
    }
}