/*
 * Galera — design tokens, fonts and base layer
 */

/* ── Fonts ──────────────────────────────────────────────────────────────── */
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-400-cyrillic.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-400-latin.woff2') format('woff2');
    font-weight: 400;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-500-cyrillic.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-500-latin.woff2') format('woff2');
    font-weight: 500;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-700-cyrillic.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Roboto';
    src: url('../fonts/roboto-700-latin.woff2') format('woff2');
    font-weight: 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-600-cyrillic.woff2') format('woff2');
    font-weight: 600 700;
    font-display: swap;
    unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
    font-family: 'Montserrat';
    src: url('../fonts/montserrat-600-latin.woff2') format('woff2');
    font-weight: 600 700;
    font-display: swap;
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+2000-206F, U+2122, U+2191, U+2193, U+2212;
}

/* ── Design tokens ──────────────────────────────────────────────────────── */
:root {
    /* Brand */
    --color-primary:       #662C8D;
    --color-primary-dark:  #4E1F70;
    --color-primary-light: #8B5BAE;
    --color-primary-soft:  #F3EDF8;
    --color-navy:          #002855;
    --color-accent:        #0496FF;

    /* Neutrals */
    --color-text:      #1A1A1A;
    --color-muted:     #6B7280;
    --color-border:    #E4E2E8;
    --color-bg:        #FFFFFF;
    --color-bg-alt:    #F7F6F9;

    /* Status */
    --color-sale:    #E5342E;
    --color-success: #2E7D32;

    /* Typography */
    --font-body:    'Roboto', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading: 'Montserrat', 'Roboto', system-ui, sans-serif;
    --line-height:  1.6;

    /* Layout */
    --container-width: 1280px;
    --gutter:          20px;

    /* UI */
    --radius:       10px;
    --radius-sm:    6px;
    --radius-pill:  999px;
    --transition:   .2s ease;
    --focus-ring:   0 0 0 3px var(--color-primary-soft);
    --shadow:       0 6px 24px rgba(26, 12, 40, .10);
    --shadow-soft:  0 2px 10px rgba(26, 12, 40, .06);

    /* Header */
    --header-height:     72px;
    --header-top-height: 40px;

    /* Z-index */
    --z-dropdown: 100;
    --z-header:   200;
    --z-overlay:  300;
    --z-modal:    400;
}

/* ── Base ───────────────────────────────────────────────────────────────── */
html {
    font-size: 16px;
    scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: var(--line-height);
    color: var(--color-text);
    background-color: var(--color-bg);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--color-navy);
}

h1 { font-size: 40px; }
h2 { font-size: 32px; }
h3 { font-size: 24px; }
h4 { font-size: 20px; }

a {
    color: inherit;
    text-decoration: none;
    transition: color var(--transition);
}

p a:not([class]) {
    color: var(--color-primary);
    text-decoration: underline;
}

img {
    max-width: 100%;
    height: auto;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

.site      { display: flex; flex-direction: column; min-height: 100vh; }
.site-main { flex: 1 0 auto; }

.container {
    width: 100%;
    max-width: var(--container-width);
    padding: 0 var(--gutter);
    margin: 0 auto;
}

/* Visually hidden, still read by screen readers */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: var(--z-modal);
    width: auto;
    height: auto;
    margin: 0;
    padding: 12px 20px;
    clip: auto;
    background: var(--color-primary);
    color: #FFF;
    border-radius: var(--radius-sm);
}

/* Page is locked while an off-canvas panel is open */
.is-locked { overflow: hidden; }

@media (max-width: 1023px) {
    h1 { font-size: 32px; }
    h2 { font-size: 26px; }
    h3 { font-size: 21px; }
}

@media (max-width: 767px) {
    :root { --gutter: 16px; --header-height: 60px; }
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 19px; }
}
/* ── Page content ───────────────────────────────────────────────────────── */
.page__title { margin: 0 0 20px; }

/* Line length cap: full-width paragraphs on a 1440 screen are unreadable.
   WooCommerce pages opt out of it in components.css — a cart is not prose. */
.page__content,
.entry-content { max-width: 78ch; }

.page__content p,
.entry-content p { margin: 0 0 16px; }

.page-comments { padding-bottom: 48px; }
