:root {
    --red-dark: #641425;
    --red-mid: #8e1630;
    --red-bright: #c61732;
    --ink: #29282b;
    --muted: #67666a;
    --paper: #fff;
    --line: #dedde0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: var(--red-dark);
}

* { box-sizing: border-box; }

html { min-height: 100%; }

body {
    min-height: 100vh;
    margin: 0;
    background-color: var(--red-dark);
    background-image:
        url('../images/circle_1.svg'),
        url('../images/circle_2.svg'),
        url('../images/circle_3.svg'),
        url('../images/fabric_bg.jpg');
    background-position: 25% -20%, 60% -70%, 30% 20%, 0 0;
    background-repeat: no-repeat, no-repeat, no-repeat, repeat;
    background-attachment: fixed, fixed, fixed, scroll;
}

button, a { font: inherit; }
a { color: #7e1028; }
a:hover { color: #b01332; }

:focus-visible {
    outline: 3px solid #ffdf69;
    outline-offset: 3px;
}

.skip-link {
    position: fixed;
    z-index: 100;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.65rem 0.9rem;
    transform: translateY(-160%);
    background: #fff;
    color: #5b0c1d;
    border-radius: 0.25rem;
}
.skip-link:focus { transform: translateY(0); }

.site-frame {
    width: min(957px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.site-header {
    min-height: 93px;
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.brand { display: inline-block; }
.brand img {
    display: block;
    width: min(340px, 72vw);
    height: auto;
}

.main-navigation {
    position: relative;
    z-index: 2;
    border: 1px solid rgba(30, 20, 24, 0.55);
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(25, 0, 7, 0.5);
}

.main-navigation ul {
    display: flex;
    margin: 0;
    padding: 0;
    list-style: none;
    background: #f6f6f6;
}

.main-navigation li { border-right: 1px solid var(--line); }
.main-navigation a {
    display: block;
    min-height: 56px;
    padding: 1.2rem 1.35rem;
    color: #777579;
    text-decoration: none;
    background: linear-gradient(#fff, #f0f1f1);
}
.main-navigation a:hover,
.main-navigation a[aria-current='page'] {
    color: #38363a;
    background: linear-gradient(#ececec, #fff);
}

.menu-toggle { display: none; }

.content-panel {
    position: relative;
    min-height: 200px;
    overflow: hidden;
    border: 1px solid rgba(60, 10, 25, 0.75);
    border-radius: 0 0 5px 5px;
    background: var(--paper);
    box-shadow: 0 2px 5px rgba(25, 0, 7, 0.45);
}

.slideshow { position: relative; }
.slides {
    position: relative;
    overflow: hidden;
    aspect-ratio: 850 / 566;
    background: #f5f5f5;
}
.slide {
    position: absolute;
    inset: 0;
    width: 100%;
    margin: 0;
}
.slide[hidden] { display: none; }
.slide img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    backface-visibility: hidden;
    will-change: transform;
}

.gallery-controls {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.gallery-button {
    position: absolute;
    pointer-events: auto;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    border: 1px solid rgba(255,255,255,0.7);
    border-radius: 999px;
    background: rgba(50, 10, 20, 0.72);
    color: #fff;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
}
.gallery-button:hover { background: rgba(90, 8, 28, 0.92); }
.gallery-previous, .gallery-next {
    top: 50%;
    transform: translateY(-50%);
    font-size: 2.25rem;
    line-height: 1;
}
.gallery-previous { left: 0.85rem; }
.gallery-next { right: 0.85rem; }
.gallery-dots {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    display: flex;
    gap: 0.45rem;
    transform: translateX(-50%);
}
.gallery-dots button {
    width: 0.8rem;
    height: 0.8rem;
    padding: 0;
    border: 1px solid #fff;
    border-radius: 999px;
    background: rgba(80, 10, 25, 0.55);
    cursor: pointer;
}
.gallery-dots button[aria-current='true'] { background: #fff; }

.prose {
    max-width: 760px;
    margin: 0 auto;
    padding: clamp(1.5rem, 4vw, 3.5rem);
    line-height: 1.65;
}
.prose h1 {
    margin-top: 0;
    font-size: clamp(1.65rem, 4vw, 2.25rem);
    color: #5f1023;
}
.prose h2 { margin-top: 2rem; font-size: 1.25rem; }
.prose p, .prose li { overflow-wrap: anywhere; }

.site-footer {
    padding: 2rem 0 0;
    color: #360914;
    font-size: 0.82rem;
    text-shadow: 0 1px rgba(255,255,255,0.08);
}
.site-footer nav { display: flex; gap: 1.5rem; }
.site-footer a {
    color: #f0e8eb;
    text-decoration: none;
}
.site-footer a:hover { color: #fff; text-decoration: underline; }

.visually-hidden {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

@media (max-width: 700px) {
    body { background-attachment: scroll; }
    .site-frame { width: min(100% - 1rem, 957px); padding-top: 1rem; }
    .site-header { min-height: 82px; align-items: center; }
    .menu-toggle {
        display: flex;
        width: 100%;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        min-height: 48px;
        border: 1px solid rgba(30,20,24,0.55);
        border-radius: 5px 5px 0 0;
        background: linear-gradient(#fff, #ececec);
        color: #4b494d;
        cursor: pointer;
    }
    .main-navigation { display: none; border-radius: 0; }
    .main-navigation.is-open { display: block; }
    .main-navigation ul { display: block; }
    .main-navigation li { border-right: 0; border-bottom: 1px solid var(--line); }
    .main-navigation a { min-height: 48px; padding: 0.95rem 1.1rem; }
    .content-panel { border-radius: 0 0 5px 5px; }
    .gallery-button { width: 2.65rem; height: 2.65rem; }
    .gallery-previous { left: 0.45rem; }
    .gallery-next { right: 0.45rem; }
    .gallery-dots { bottom: 0.7rem; gap: 0.35rem; }
    .gallery-dots button { width: 0.65rem; height: 0.65rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
