/* @font-face declarations */
@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-500.woff2') format('woff2');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/poppins-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-400-italic.woff2') format('woff2');
    font-weight: 400;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Playfair Display';
    src: url('../fonts/playfair-display-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-400.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-600.woff2') format('woff2');
    font-weight: 600;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-700.woff2') format('woff2');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

/* Base typography */
body {
    font-family: var(--font-primary);
    font-size: var(--font-size-base);
    color: var(--color-text);
    background-color: var(--color-white);
    line-height: var(--line-height-normal);
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    color: var(--color-dark);
    line-height: var(--line-height-snug);
    margin-bottom: var(--space-md);
}

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); font-weight: 400; }
h2 { font-size: var(--font-size-4xl); font-weight: 400; }
h3 { font-size: var(--font-size-2xl); font-weight: 400; }
h4 { font-size: var(--font-size-xl); font-weight: 400; }
h5 { font-size: var(--font-size-lg); font-weight: 400; }
h6 { font-size: var(--font-size-md); font-weight: 400; }

p {
    margin-bottom: var(--space-md);
    line-height: var(--line-height-loose);
}

a {
    color: var(--color-primary);
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-accent);
}

strong, b {
    font-weight: 600;
}

/* Editorial utility classes */
.serif {
    font-family: var(--font-display);
}

.editorial-label {
    font-size: var(--font-size-xs);
    font-weight: 700;
    letter-spacing: var(--tracking-mega);
    text-transform: uppercase;
    color: var(--color-primary);
    display: block;
    margin-bottom: var(--space-lg);
}

.editorial-label--light {
    color: var(--color-accent);
}

/* Selection */
::selection {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* ── Pull Quote ────────────────────────── */
.pull-quote {
    position: relative;
    font-family: var(--font-display);
    font-style: italic;
    font-size: clamp(1.5rem, 3vw, 2.25rem);
    line-height: var(--line-height-snug);
    color: var(--color-dark);
    padding-left: var(--space-2xl);
    margin: var(--space-3xl) 0;
    max-width: 680px;
}

.pull-quote::before {
    content: '\201C';
    position: absolute;
    left: 0;
    top: -0.15em;
    font-size: 4em;
    line-height: 1;
    color: var(--color-warm-accent);
    opacity: 0.35;
    font-style: normal;
}

.pull-quote cite {
    display: block;
    margin-top: var(--space-md);
    font-family: var(--font-primary);
    font-style: normal;
    font-size: var(--font-size-sm);
    font-weight: 600;
    letter-spacing: var(--tracking-editorial);
    text-transform: uppercase;
    color: var(--color-text-muted);
}

/* ── Grain Overlay ─────────────────────── */
.grain {
    position: relative;
}

.grain::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 128px 128px;
    mix-blend-mode: overlay;
}

/* ── Vignette for dark sections ─────────── */
.vignette {
    position: relative;
}

.vignette::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, transparent 50%, rgba(0, 0, 0, 0.15) 100%);
    z-index: 0;
}

/* Responsive typography */
@media (max-width: 768px) {
    h1 { font-size: var(--font-size-3xl); }
    h2 { font-size: var(--font-size-2xl); }
    h3 { font-size: var(--font-size-xl); }
    h4 { font-size: var(--font-size-lg); }
}

/* Visually-hidden utility — accessible for screen readers, invisible on screen */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute !important;
    word-wrap: normal !important;
}
