:root {
    color-scheme: light;
    --paper: #f8f5ef;
    --white: #fffdfa;
    --ink: #241d1d;
    --muted: #62564f;
    --wine: #542537;
    --deep: #2c1520;
    --gold: #dbc29a;
    --rule: #ded4c8;
    --serif: Georgia, 'Times New Roman', serif;
    font-family: system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; }
main { flex: 1; }
.private main, .organizers, .header-inner, .hero-inner, .site-footer > div {
    width: min(100% - clamp(40px, 10vw, 144px), 1320px);
    margin-inline: auto;
}
h1, h2 { font-family: var(--serif); line-height: 1.05; font-weight: 500; margin: 0 0 .4em; }
h1 { font-size: clamp(2.5rem, 6vw, 5rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.35rem, 2.8vw, 2.1rem); letter-spacing: -.02em; }
p { margin: 0 0 1em; }
a { color: var(--wine); text-underline-offset: .23em; }
:focus-visible { outline: 3px solid #367ca1; outline-offset: 4px; }
img { display: block; max-width: 100%; }
input, select, button { font: inherit; }
label { display: block; font-size: .91rem; font-weight: 650; margin-bottom: 12px; }
input:not([type=checkbox]), select {
    display: block; width: 100%; min-height: 46px; margin-top: 5px; padding: 8px 11px;
    color: var(--ink); border: 1px solid #a99b8e; border-radius: 5px; background: #fff;
}
input[type=checkbox] { accent-color: var(--wine); }
button, .button {
    display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
    padding: 10px 18px; border: 1px solid var(--wine); border-radius: 5px;
    background: var(--wine); color: white; font-weight: 650; text-decoration: none; cursor: pointer;
    transition: background-color .2s, color .2s, border-color .2s;
}
button:hover, .button:hover { background: var(--deep); }
.site-header { background: var(--white); border-bottom: 1px solid var(--rule); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; padding-block: 10px; }
.wordmark { font: 600 clamp(1rem, 2.4vw, 1.3rem) var(--serif); color: var(--ink); text-decoration: none; }
.header-inner nav, .actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.header-inner nav > a:not(.button) { padding: 8px 4px; font-size: .9rem; font-weight: 650; }
.hero { background: radial-gradient(ellipse at 70% 0%, #612e3c 0%, var(--deep) 68%); color: white; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1fr 1.22fr; gap: clamp(24px, 5vw, 76px); align-items: center; padding-block: clamp(42px, 7vw, 105px); }
.hero-copy { animation: enter .75s ease-out both; }
.hero h1 { text-wrap: balance; max-width: 10ch; font-size: clamp(3rem, 6.1vw, 6.1rem); }
.eyebrow { font-size: .77rem; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .15em; }
.hero-text { max-width: 38ch; color: #f0e5e3; font-size: clamp(1rem, 1.6vw, 1.15rem); }
.hero .actions { margin-top: 26px; }
.hero .button { background: var(--gold); border-color: var(--gold); color: var(--deep); }
.hero .button:hover { background: #f5dfbf; }
.hero .secondary { background: transparent; color: white; border-color: #bda6aa; }
.hero .secondary:hover { background: #703e4d; }
.hero-photo { margin: 0; aspect-ratio: 1.32; overflow: hidden; border: 1px solid #a47e78; border-radius: 8px; animation: enter 1s .13s ease-out both; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 53% 50%; }
.organizers { padding-block: clamp(44px, 7vw, 92px); }
.organizers h2 { margin-bottom: 22px; }
.partners { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(10px, 2vw, 24px); }
.partners figure { margin: 0; padding: clamp(12px, 2vw, 24px); background: var(--white); border: 1px solid var(--rule); border-radius: 7px; }
.partners img { width: 100%; height: clamp(95px, 13vw, 170px); object-fit: contain; }
.partners figure:first-child img { object-fit: cover; border-radius: 3px; }
.partners figcaption { margin-top: 12px; font-weight: 650; }
.group { margin: clamp(24px, 4vw, 46px) 0 0; overflow: hidden; border-radius: 7px; }
.group img { width: 100%; height: auto; }
.reveal.is-waiting { opacity: 0; transform: translateY(16px); }
.reveal { transition: opacity .7s ease, transform .7s ease; }
@keyframes enter { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.site-footer { border-top: 1px solid var(--rule); color: var(--muted); background: var(--white); padding-block: 22px; font-size: .9rem; }
.site-footer > div { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.panel, .basket, .notice {
    margin-bottom: 16px; padding: clamp(16px, 3vw, 30px);
    background: var(--white); border: 1px solid var(--rule); border-radius: 8px;
}
.notice { margin: 14px auto; width: min(100% - 40px, 820px); }
.notice.error { color: #7d1d30; border-color: #b76b78; }
.access { margin: 32px auto; width: min(100% - 40px, 580px); scroll-margin-top: 24px; }
.access h1 { font-size: 2.5rem; }
.access details { margin: 12px 0; }
.basket { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.private main { padding-bottom: 56px; }
.member-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 80px; border-bottom: 1px solid var(--rule); margin-bottom: 30px; }
.member-bar > span { font: 600 1.23rem var(--serif); }
.member-bar small { color: var(--muted); font: 650 .75rem system-ui, sans-serif; margin-left: 7px; }
.portal-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: .92rem; }
.portal-nav a { min-height: 44px; display: inline-flex; align-items: center; }
.portal-nav .current { font-weight: 750; }
.portal-nav button { background: transparent; color: var(--wine); }
.portal-nav button:hover { background: #eee1e3; }
.catalog-head { background: var(--deep); border-radius: 8px; padding: clamp(24px, 5vw, 60px); color: #fff; margin-bottom: 20px; }
.catalog-head p { color: #f0e5e3; margin: 0; }
.filters { display: grid; grid-template-columns: 1.15fr 1fr auto auto; gap: 14px; align-items: end; background: var(--white); border: 1px solid var(--rule); padding: 17px; border-radius: 8px; }
.filters label { margin: 0; }
.toggle { min-height: 46px; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.result-line { display: flex; justify-content: space-between; align-items: baseline; margin-block: 19px 12px; color: var(--muted); font-size: .9rem; }
.result-line p { margin: 0; }
.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 238px), 1fr)); gap: clamp(12px, 1.8vw, 23px); }
.costume { display: flex; flex-direction: column; overflow: hidden; border-radius: 8px; background: var(--white); border: 1px solid var(--rule); }
.photo-cover { position: relative; display: grid; place-items: center; aspect-ratio: 1.12; overflow: hidden; background: #ede7de; color: var(--muted); }
.photo-cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: transform .3s ease; }
.photo-cover:hover img { transform: scale(1.04); }
.photo-cover > span { position: absolute; right: 9px; bottom: 9px; display: grid; place-items: center; width: 35px; height: 35px; border-radius: 50%; background: var(--white); color: var(--wine); font-size: 1.13rem; }
.card-info { display: flex; flex-direction: column; flex: 1; padding: 14px; }
.card-meta { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.category, .reference { color: var(--muted); font-size: .78rem; margin: 0; overflow-wrap: anywhere; }
.card-info h2 { font-size: 1.23rem; margin-bottom: 5px; overflow-wrap: anywhere; }
.badge { display: inline-block; font-size: .73rem; font-weight: 700; background: #ede7e2; color: #53433d; border-radius: 30px; padding: 3px 8px; }
.badge-available { background: #e2eee3; color: #24452e; }
.badge-loaned, .badge-reserved { background: #f4e7d7; color: #633b20; }
.card-action { margin-top: auto; padding-top: 12px; }
.card-action button, .in-cart { width: 100%; font-size: .87rem; }
.in-cart { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; border: 1px solid var(--rule); border-radius: 5px; }
.extra-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.extra-photos img { width: 47px; height: 47px; object-fit: contain; border: 1px solid var(--rule); border-radius: 4px; }
.pages { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 18px; margin-top: 25px; }
dialog { max-width: min(92vw, 1000px); max-height: 92vh; padding: 12px; border: 1px solid var(--rule); border-radius: 8px; background: var(--white); }
dialog::backdrop { background: #21131dee; }
dialog form { display: flex; justify-content: flex-end; margin-bottom: 8px; }
dialog img { max-height: 73vh; object-fit: contain; margin: auto; }
@media (max-width: 850px) {
    .hero-inner { grid-template-columns: 1fr 1fr; }
    .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .filter-action button { width: 100%; }
}
@media (max-width: 610px) {
    .header-inner { align-items: start; flex-direction: column; gap: 6px; }
    .hero-inner, .partners { grid-template-columns: 1fr; }
    .hero-photo { aspect-ratio: 1.75; }
    .hero h1 { max-width: none; }
    .member-bar { display: block; padding-block: 13px; }
    .portal-nav { margin-top: 8px; gap: 12px; }
    .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .card-info { padding: 10px; }
    .card-action button { padding-inline: 6px; }
}
@media (max-width: 375px) { .catalog { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .reveal.is-waiting { opacity: 1; transform: none; }
}

.vc-brand-logo { display: block; width: min(100%, 200px); height: auto; }
.wordmark { flex: 0 1 200px; }
.access > .vc-brand-logo { margin-bottom: 20px; }
@media (max-width: 610px) {
    .wordmark { display: inline-block; flex-basis: auto; }
}
