/* ============================================================
   Baskervville — self-hosted
   ============================================================ */
@font-face {
    font-display: swap;
    font-family: 'Baskervville';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/baskervville-v20-latin_latin-ext-regular.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Baskervville';
    font-style: normal;
    font-weight: 500;
    src: url('../fonts/baskervville-v20-latin_latin-ext-500.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Baskervville';
    font-style: normal;
    font-weight: 600;
    src: url('../fonts/baskervville-v20-latin_latin-ext-600.woff2') format('woff2');
}
@font-face {
    font-display: swap;
    font-family: 'Baskervville';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/baskervville-v20-latin_latin-ext-700.woff2') format('woff2');
}

/* lato-300 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lato';
    font-style: normal;
    font-weight: 300;
    src: url('../fonts/lato-v25-latin_latin-ext-300.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-regular - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lato';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/lato-v25-latin_latin-ext-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-700 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lato';
    font-style: normal;
    font-weight: 700;
    src: url('../fonts/lato-v25-latin_latin-ext-700.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* lato-900 - latin_latin-ext */
@font-face {
    font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
    font-family: 'Lato';
    font-style: normal;
    font-weight: 900;
    src: url('../fonts/lato-v25-latin_latin-ext-900.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}

/* ============================================================
   Design tokens
   ============================================================ */
:root {
    --lre-color-taupe: #b09f8d;
    --lre-color-taupe-dark: #978674;
    --lre-color-cream: #f7f1e8;
    --lre-color-on-taupe: #ffffff;
    --lre-color-ink: #1f1a14;
    --lre-color-ink-muted: rgba(31, 26, 20, 0.7);

    --lre-font-serif: 'Baskervville', Georgia, 'Times New Roman', serif;
    --lre-font-sans: 'Lato', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

    --lre-header-h: 88px;
    --lre-container: 1440px;
    --lre-gutter: clamp(20px, 4vw, 64px);
}

/* ============================================================
   Reset / base
   ============================================================ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

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

body {
    margin: 0;
    font-family: var(--lre-font-serif);
    font-weight: 400;
    color: var(--lre-color-ink);
    background: #ffffff;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

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

button {
    font-family: inherit;
}

/* Accessibility helpers */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    word-wrap: normal !important;
}

.skip-link.screen-reader-text:focus {
    background: var(--lre-color-ink);
    color: #ffffff;
    clip: auto;
    clip-path: none;
    height: auto;
    width: auto;
    margin: 0;
    padding: 12px 18px;
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 1000;
    text-decoration: none;
}

.lre-placeholder {
    padding: 64px var(--lre-gutter);
    color: var(--lre-color-ink-muted);
    font-style: italic;
}

/* ============================================================
   Site header (desktop bar + mobile drawer)
   ============================================================ */

.site-header {
    background: var(--lre-color-taupe);
    color: var(--lre-color-on-taupe);
    position: relative;
}

.site-header__inner {
    max-width: var(--lre-container);
    margin: 0 auto;
    padding: 0 var(--lre-gutter);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: var(--lre-header-h);
}

/* Logo */
.site-header__logo {
    display: inline-flex;
    align-items: center;
    color: var(--lre-color-on-taupe);
    line-height: 1;
    flex-shrink: 0;
}

.site-header__logo:focus-visible {
    outline: 2px solid var(--lre-color-on-taupe);
    outline-offset: 4px;
}

.site-header__logo-img {
    height: clamp(48px, 6vw, 72px);
    width: auto;
    display: block;
}

/* Desktop nav */
.site-header__nav {
    display: flex;
    align-items: center;
}

.site-header__menu-list,
.site-header__lang {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 20px;
}

.site-header__lang {
    gap: 10px;
    padding-left: 18px;
}

.site-header__menu-list .menu-item a,
.site-header__lang-link {
    font-family: var(--lre-font-sans);
    font-weight: 400;
    font-size: 16px;
    color: var(--lre-color-on-taupe);
}

.site-header__menu-list .menu-item a:hover,
.site-header__menu-list .menu-item a:focus-visible,
.site-header__lang-link:hover,
.site-header__lang-link:focus-visible {
    opacity: 0.7;
    outline: none;
}

.site-header__menu-list .current-menu-item > a {
    font-weight: 700;
}

/* Burger (also morphs into X when drawer is open) */
.site-header__burger {
    display: none;
    background: transparent;
    border: 0;
    padding: 12px;
    cursor: pointer;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    color: var(--lre-color-on-taupe);
    position: relative;
    z-index: 200;
    transition: opacity 0.2s ease;
}

.site-header__burger:hover {
    opacity: 0.75;
}

.site-header__burger:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 2px;
}

.site-header__burger-bar {
    width: 22px;
    height: 2px;
    background: currentColor;
    display: block;
    transform-origin: center;
    transition: transform 0.32s ease, opacity 0.18s ease;
}

.site-header__burger[aria-expanded="true"] .site-header__burger-bar:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-bar:nth-child(2) {
    opacity: 0;
    transform: scaleX(0);
}

.site-header__burger[aria-expanded="true"] .site-header__burger-bar:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 960px) {
    .site-header__nav {
        display: none;
    }
    .site-header__burger {
        display: inline-flex;
    }
}

/* Drawer (mobile) */
.site-drawer {
    position: fixed;
    inset: 0;
    z-index: 100;
    visibility: hidden;
    pointer-events: none;
    transition: visibility 0s linear 0.32s;
}

.site-drawer.is-open {
    visibility: visible;
    pointer-events: auto;
    transition: visibility 0s linear 0s;
}

.site-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 26, 20, 0.45);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.site-drawer.is-open .site-drawer__backdrop {
    opacity: 1;
}

.site-drawer__panel {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: min(82%, 420px);
    background: var(--lre-color-taupe);
    color: var(--lre-color-on-taupe);
    transform: translateX(100%);
    transition: transform 0.32s ease;
    padding: 88px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 24px;
    box-shadow: -16px 0 48px rgba(31, 26, 20, 0.18);
}

.site-drawer.is-open .site-drawer__panel {
    transform: translateX(0);
}

.site-drawer__menu,
.site-drawer__lang {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.site-drawer__menu a {
    font-family: var(--lre-font-sans);
    font-weight: 300;
    font-size: 20px;
    color: var(--lre-color-on-taupe);
    display: inline-block;
    text-decoration: none;
    letter-spacing: 0.04em;
}

.site-drawer__lang {
    flex-direction: row;
    gap: 22px;
    margin-top: 12px;
    padding-top: 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
}

.site-drawer__lang a {
    font-family: var(--lre-font-sans);
    font-weight: 300;
    font-size: 16px;
    color: var(--lre-color-on-taupe);
    text-decoration: none;
    letter-spacing: 0.04em;
}

.site-drawer__lang .is-active a {
    font-weight: 500;
}

body.is-drawer-open {
    overflow: hidden;
}

/* ============================================================
   Site footer
   ============================================================ */

.site-footer {
    background: var(--lre-color-taupe);
    color: var(--lre-color-on-taupe);
    margin-top: auto;
}

.site-footer__inner {
    max-width: var(--lre-container);
    margin: 0 auto;
    padding: 25px var(--lre-gutter) 25px;
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 40px;
    align-items: center;
}

/* Brand col */
.site-footer__logo {
    display: inline-flex;
    color: var(--lre-color-on-taupe);
    line-height: 1;
}

.site-footer__logo img {
    height: clamp(72px, 7vw, 100px);
    width: auto;
    display: block;
}

/* Nav col */
.site-footer__col--nav {
    justify-self: center;
}

.site-footer__menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 2.4vw, 40px);
    justify-content: center;
}

.site-footer__menu .menu-item a {
    font-family: var(--lre-font-sans);
    font-weight: 400;
    font-size: 16px;
    color: var(--lre-color-on-taupe);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer__menu .menu-item a:hover,
.site-footer__menu .menu-item a:focus-visible {
    opacity: 0.7;
    outline: none;
}

/* Contact col */
.site-footer__col--contact {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-self: end;
}

.site-footer__phones,
.site-footer__socials {
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-footer__phones {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.site-footer__phones a,
.site-footer__email a {
    font-family: var(--lre-font-sans);
    font-weight: 400;
    font-size: 16px;
    color: var(--lre-color-on-taupe);
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer__phones a:hover,
.site-footer__email a:hover {
    opacity: 0.7;
}

.site-footer__email {
    margin: 0;
}

.site-footer__socials {
    display: flex;
    gap: 10px;
    margin-top: 4px;
}

.site-footer__social {
    width: 32px;
    height: 32px;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--lre-color-on-taupe);
    transition: opacity 0.2s ease;
}

.site-footer__social:hover,
.site-footer__social:focus-visible {
    opacity: 0.7;
    outline: none;
}

/* Bottom strip */
.site-footer__bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    padding: 12px var(--lre-gutter);
    text-align: center;
}

.site-footer__legal {
    margin: 0;
    font-family: var(--lre-font-sans);
    font-weight: 400;
    font-size: 13px;
    color: var(--lre-color-on-taupe);
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.site-footer__legal a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.site-footer__legal a:hover {
    opacity: 0.7;
}

.site-footer__sep {
    opacity: 0.5;
}

@media (max-width: 860px) {
    .site-footer__inner {
        grid-template-columns: 1fr;
        gap: 24px;
        text-align: center;
        padding: 32px var(--lre-gutter) 24px;
    }
    .site-footer__col--brand,
    .site-footer__col--contact {
        justify-self: center;
    }
    .site-footer__col--contact {
        align-items: center;
    }
}

@media (max-width: 473px){
    .site-footer__sep{
        display: none;
    }
}
