/* ═══════════════════════════════════════════════════════════
   BASE — Design tokens & resets
   Editorial warm-dark theme tokens shared across pages.
   ═══════════════════════════════════════════════════════════ */

@font-face {
    font-family: 'ABC Marist';
    src: url('../font/ABCMarist-Medium-Trial.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denton Condensed Test';
    src: url('../font/DentonCondensedTest-Bold.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denton Condensed Test';
    src: url('../font/DentonCondensedTest-Black.otf') format('opentype');
    font-weight: 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Denton Condensed Test';
    src: url('../font/DentonCondensedTest-BlackItalic.otf') format('opentype');
    font-weight: 900;
    font-style: italic;
    font-display: swap;
}

:root {
    /* Surfaces */
    --bg-primary: #0c0b09;
    --bg-secondary: #111010;
    --bg-tertiary: #161514;
    --bg-card: rgba(255, 255, 255, 0.025);
    --bg-card-hover: rgba(255, 255, 255, 0.045);

    /* Text */
    --text-primary: #e8e0d4;
    --text-secondary: rgba(232, 224, 212, 0.55);
    --text-muted: rgba(232, 224, 212, 0.3);

    /* Accent — warm muted gold */
    --accent: #c9a96e;
    --accent-light: #dfc08a;
    --accent-dim: rgba(201, 169, 110, 0.15);

    /* Borders */
    --border-subtle: rgba(232, 224, 212, 0.06);
    --border-hover: rgba(201, 169, 110, 0.25);

    /* Type stacks */
    --font-serif: 'Playfair Display', 'Georgia', serif;
    --font-sans: 'Inter', 'DM Sans', sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
    --font-display: 'Denton Condensed Test', 'Playfair Display', serif;

    /* Layout */
    --container-width: 1100px;
    --section-pad-y: 6rem;

    /* Motion */
    --ease-out-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out-expo: cubic-bezier(0.19, 1, 0.22, 1);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

html,
body {
    width: 100%;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.7;
    font-family: var(--font-sans);
    scroll-behavior: smooth;
}

body.no-scroll {
    overflow: hidden;
}

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

a {
    color: inherit;
}

/* ── Accessibility helpers ── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: var(--bg-primary);
    padding: 0.75rem 1rem;
    font-weight: 600;
    z-index: 9999;
    border-radius: 0 0 6px 0;
}

.skip-link:focus {
    left: 0;
    outline: 2px solid var(--accent-light);
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
    border-radius: 4px;
}

@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;
    }
}
