/*
 * Samarth Ahuja — light editorial design system (warm ivory + antique gold)
 * Global tokens + document-level typography. Component styles live in each LWC
 * and consume these custom properties (they inherit through shadow DOM).
 */

@font-face {
    font-family: 'Playfair Display';
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
    src: url('/sfsites/c/resource/samFonts/PlayfairDisplay-var.woff2') format('woff2');
}

@font-face {
    font-family: 'Playfair Display';
    font-style: italic;
    font-weight: 400 700;
    font-display: swap;
    src: url('/sfsites/c/resource/samFonts/PlayfairDisplay-italic-var.woff2') format('woff2');
}

@font-face {
    font-family: 'Inter';
    font-style: normal;
    font-weight: 400 600;
    font-display: swap;
    src: url('/sfsites/c/resource/samFonts/Inter-var.woff2') format('woff2');
}

:root {
    /* palette */
    --sa-bg: #faf8f4;
    --sa-bg-raised: #ffffff;
    --sa-bg-inset: #f2eee6;
    --sa-ink: #211e19;
    --sa-ink-muted: #5c564b;
    --sa-ink-faint: #8f887a;
    --sa-gold: #a5843b;
    --sa-gold-bright: #866928;
    --sa-hairline: rgba(33, 30, 25, 0.16);
    --sa-hairline-soft: rgba(33, 30, 25, 0.09);

    /* type */
    --sa-font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
    --sa-font-sans: 'Inter', -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;

    /* rhythm */
    --sa-max-width: 72rem;
    --sa-section-pad: clamp(3.5rem, 8vw, 6.5rem);

    /* map onto LWR branding hooks so standard components follow the theme */
    --dxp-g-root: var(--sa-bg);
    --dxp-g-root-contrast: var(--sa-ink);
    --dxp-g-root-1: var(--sa-bg-raised);
    --dxp-g-root-contrast-1: var(--sa-ink);
    --dxp-g-brand: var(--sa-gold);
    --dxp-g-brand-contrast: #17151a;
    --dxp-g-root-font-family: var(--sa-font-sans);
}

html,
body {
    height: 100%;
}

html {
    background: var(--sa-bg);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--sa-bg);
    color: var(--sa-ink);
    font-family: var(--sa-font-sans);
    font-size: 1rem;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

::selection {
    background: var(--sa-gold);
    color: #17151a;
}
