@font-face {
    font-family: Manrope;
    src: url("../fonts/manrope-cyrillic.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

@font-face {
    font-family: Manrope;
    src: url("../fonts/manrope-latin.woff2") format("woff2");
    font-weight: 400 800;
    font-display: swap;
    unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
    color-scheme: dark;
    --bg: #131209;
    --surface: #181818;
    --raised: #1f1f1f;
    --text: #f9f5e9;
    --muted: #c5bcaa;
    --accent: #fdde6c;
    --line: #454139;
    --radius: 16px;
    --motion: cubic-bezier(.22, 1, .36, 1);
}

html {
    background: var(--bg);
    scroll-behavior: smooth;
    scrollbar-color: #83744c var(--bg);
}

body.site-body {
    position: relative;
    isolation: isolate;
    margin: 0;
    background: transparent;
    color: var(--text);
    font: 400 1rem/1.5 Manrope, system-ui, sans-serif;
}

.site-backdrop {
    position: fixed;
    inset: -16vh -10vw;
    pointer-events: none;
    z-index: -1;
    background: url("./facade.webp") center top / cover no-repeat;
    opacity: .2;
    transform: translate3d(0, calc(var(--parallax-shift, 0px) * -1), 0);
    will-change: transform;
}

.container-xl {
    --bs-gutter-x: 3rem;
    max-width: 1280px;
}

main section[id], .quick-links[id] { scroll-margin-top: 112px; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .24em; }
button, a { touch-action: manipulation; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
p { text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
h1 { font-size: 3.75rem; line-height: 1; letter-spacing: -.07em; }
h2 { font-size: 3rem; line-height: 1; letter-spacing: -.055em; }
h3 { font-size: 1.25rem; line-height: 1.4; letter-spacing: -.025em; }
.text-secondary, .text-secondary-light, .text-white-50 { color: var(--muted) !important; }

.eyebrow {
    display: block;
    margin: 0 0 12px;
    color: var(--accent);
    font-size: .75rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 16px;
    z-index: 1100;
    padding: 8px 12px;
    background: var(--accent);
    color: var(--bg);
    transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; top: 0; z-index: 1020; }
.site-header .navbar { padding: 12px calc(var(--bs-gutter-x) * .5); }
.nav-shell {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-height: 64px;
    padding: 8px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgb(24 24 24 / .94);
    backdrop-filter: blur(12px);
}

.brand-mark { display: block; margin: 0; padding: 0; }
.brand-mark img { width: 148px; height: auto; }
.navbar .nav-link { color: var(--muted); font-size: .875rem; font-weight: 650; white-space: nowrap; }
.navbar .nav-link:hover, .nav-link[aria-current="page"] { color: var(--accent); }
.header-actions, .header-mobile-actions, .lang-switch, .social-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.header-actions { gap: 16px; }
.lang-link, .icon-pill, .menu-pill {
    display: inline-grid;
    place-items: center;
    min-width: 40px;
    min-height: 40px;
    border: 1px solid transparent;
    border-radius: 8px;
    color: var(--muted);
    background: transparent;
    font-size: .875rem;
    font-weight: 700;
    text-decoration: none;
}

.lang-link.is-active, .lang-link:hover, .icon-pill:hover { color: var(--text); border-color: var(--line); }
.menu-pill { background: var(--accent); color: var(--bg); font-size: 1.125rem; }
.mobile-menu-links { display: grid; gap: 4px; margin-bottom: 24px; }
.mobile-menu-links a { padding: 8px 0; color: var(--text); font-weight: 650; text-decoration: none; }
.mobile-menu-links a[aria-current="page"], .mobile-menu-links a:hover { color: var(--accent); }
.mobile-contact-card { padding-top: 16px; border-top: 1px solid var(--line); }

.btn-cta, .btn-outline-light {
    --bs-btn-padding-x: 12px;
    --bs-btn-padding-y: 8px;
    --bs-btn-border-radius: 8px;
    --bs-btn-font-weight: 750;
    min-height: 44px;
    transition: transform .5s var(--motion), opacity .3s var(--motion);
}

.btn-cta {
    --bs-btn-color: #18160e;
    --bs-btn-bg: var(--accent);
    --bs-btn-border-color: var(--accent);
    --bs-btn-hover-color: #18160e;
    --bs-btn-hover-bg: #f8e7a1;
    --bs-btn-hover-border-color: #f8e7a1;
    --bs-btn-active-color: #18160e;
    --bs-btn-active-bg: var(--accent);
    --bs-btn-active-border-color: var(--accent);
}

.btn-cta:active, .btn-outline-light:active, .menu-pill:active { transform: scale(.98); }
.btn:focus-visible, .carousel-indicators button:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.btn-cta span { padding-left: 8px; }

.text-link {
    display: inline-flex;
    align-items: center;
    justify-content: start;
    gap: 8px;
    min-height: 44px;
    width: fit-content;
    padding: 0;
    border: 0;
    background: none;
    color: var(--accent);
    font-size: .875rem;
    font-weight: 700;
    text-align: left;
    text-decoration: none;
}

.text-link:hover { color: var(--text); text-decoration: underline; }
.text-link:active { opacity: .75; }
.text-link span { transition: transform .5s var(--motion); }
.text-link:hover span { transform: translate(3px, -3px); }

.hero-section { padding: 32px 0 0; }
.hero-layout {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 48px;
}

.hero-intro { padding-block: 24px; }
.hero-intro .eyebrow { display: flex; gap: 8px; align-items: center; margin-bottom: 24px; }
.brand-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.hero-intro h1 {
    max-width: 680px;
    font-size: 6rem;
    background: linear-gradient(95deg, #fffaf0, #d0c5ad);
    background-clip: text;
    color: transparent;
}

.hero-lead { max-width: 40ch; margin: 24px 0; color: var(--muted); font-size: 1.125rem; line-height: 1.55; }
.hero-gallery { padding: 8px 8px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.hero-gallery .carousel-inner { border-radius: 8px; }
.hero-gallery .carousel-item { transition-timing-function: var(--motion); }
.hero-figure { margin: 0; }
.hero-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.hero-figure figcaption { padding: 12px 8px 0; font-size: .75rem; color: var(--muted); }
.hero-gallery .hero-indicators { position: static; margin: 0; justify-content: flex-end; gap: 8px; padding-inline: 8px; }
.hero-gallery .hero-indicators button {
    width: 44px;
    height: 44px;
    margin: 0;
    border: 0;
    background: none;
    color: var(--muted);
    text-indent: 0;
    font-size: .75rem;
    font-weight: 750;
    opacity: 1;
}

.hero-gallery .hero-indicators button.active { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.hero-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; margin-top: 32px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--line); }
.hero-facts a { min-width: 0; padding: 16px 24px; background: var(--surface); text-decoration: none; }
.hero-facts a:hover { background: var(--raised); }
.hero-facts a:focus-visible { outline-offset: -4px; }
.hero-facts .eyebrow { margin-bottom: 4px; }
.hero-facts strong { display: block; font-size: 1.125rem; }

.section-space { padding: 80px 0; }
.section-head { margin-bottom: 24px; }
.section-head-split { display: flex; gap: 12px 24px; align-items: end; justify-content: space-between; flex-wrap: wrap; }
.event-card, .place-card, .contact-card, .map-card, .announcement-item,
.service-content-card, .service-sidebar, .service-cta, .service-hero-box, .not-found-box {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--surface);
}

.event-card, .contact-card, .service-content-card, .service-sidebar, .announcement-item { padding: 24px; }
.event-card { display: flex; flex-direction: column; gap: 16px; height: 100%; }
.event-top { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.event-label, .service-badge { width: fit-content; padding: 4px 8px; border-radius: 4px; background: var(--raised); color: var(--accent); font-size: .75rem; font-weight: 750; }
.event-date { color: var(--muted); font-size: .875rem; }
.event-card p, .place-card p, .contact-card p, .story-layout p:not(.eyebrow), .service-content-card p, .service-lead, .service-cta p, .announcement-item p, .not-found-box p { color: var(--muted); }
.event-card p, .announcement-item p, .service-content-card p:last-child { margin-bottom: 0; }

.story-section { background: rgb(19 18 9 / .78); }
.story-layout { display: grid; grid-template-columns: minmax(120px, .3fr) minmax(0, 1fr); align-items: start; gap: 24px; }
.story-heading { max-width: 680px; }
.story-heading span { opacity: .38; transition: opacity .65s var(--motion); transition-delay: calc(var(--word) * 40ms); }
.story-heading.is-visible span { opacity: 1; }
.story-layout p:not(.eyebrow) { max-width: 54ch; margin: 24px 0 0; }

.place-card { height: 100%; padding: 8px; overflow: hidden; }
.place-card img, .modal-cover { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.place-card img { border-radius: 8px; }
.place-card-body { padding: 16px; }
.place-card p { margin: 8px 0 0; }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.quick-links a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 56px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); font-size: .875rem; font-weight: 700; text-decoration: none; }
.quick-links a:hover { color: var(--accent); background: var(--raised); }
.quick-links a span:last-child { color: var(--accent); }

.contact-section { background: rgb(19 18 9 / .78); }
.visit-layout { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 24px; }
.contact-card h2 { margin-bottom: 16px; }
.visit-hours { display: grid; gap: 4px; margin: 24px 0; padding: 0; color: var(--muted); list-style: none; font-variant-numeric: tabular-nums; }
.contact-list { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 16px 0; font-weight: 650; }
.contact-list a:hover, .footer-link:hover, .header-link-button:hover { color: var(--accent); }
.map-card { display: flex; flex-direction: column; padding: 8px; }
.map-card iframe { display: block; flex: 1; width: 100%; min-height: 280px; border: 0; border-radius: 8px; background: var(--raised); }
.map-card .text-link { margin-inline: 12px; }

.site-footer { padding: 48px 0 16px; border-top: 1px solid var(--line); background: var(--surface); }
.footer-brand img { width: 148px; }
.brand-mark img.site-custom-logo, .footer-brand img.site-custom-logo { height: 48px; object-fit: contain; object-position: left; }
.footer-copy, .footer-detail, .footer-bottom { color: var(--muted); font-size: .875rem; }
.footer-copy { max-width: 34ch; }
.footer-card { display: grid; gap: 4px; }
.footer-link { width: fit-content; }
.header-link-button { display: inline-flex; align-items: center; gap: 8px; font-size: .875rem; text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--line); }

.service-hero, .taplist-page, .not-found-page { padding: 32px 0 64px; }
.service-hero + .section-space { padding-top: 0; }
.service-hero-box, .service-cta, .not-found-box { padding: 40px; }
.service-hero-box h1, .service-cta h2, .not-found-box h1 { margin-block: 12px 16px; }
.service-lead, .service-cta p, .not-found-box p { max-width: 64ch; }
.hero-actions, .cta-banner-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.service-sidebar h2 { margin-bottom: 16px; font-size: 1.5rem; }
.service-sidebar ul { margin: 0; padding-left: 20px; color: var(--muted); }
.service-sidebar li + li { margin-top: 8px; }
.service-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px; }
.service-cta h2 { font-size: 2.25rem; }
.announcement-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.announcement-item h3 { margin-bottom: 8px; }

.taplist-header { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 16px; margin-bottom: 24px; }
.page-tap-list { overflow-anchor: none; }
.qrbar-frame { display: block; width: 100%; height: 900px; border: 0; outline: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }

.offcanvas, .modal-content { --bs-dark-rgb: 24, 24, 24; --bs-modal-border-radius: 16px; color: var(--text); }
.offcanvas { --bs-offcanvas-width: min(100%, 420px); --bs-offcanvas-transition: transform .5s var(--motion); }
.modal .modal-dialog { transition-timing-function: var(--motion); }
.modal-close-btn { position: absolute; top: 12px; right: 12px; padding: 8px; background-color: var(--raised); opacity: 1; }
.form-control { background-color: var(--raised); color: var(--text); border-color: var(--line); }
.form-control:focus { background-color: var(--raised); color: var(--text); border-color: var(--accent); box-shadow: 0 0 0 2px rgb(253 222 108 / .25); }

@media (width < 1200px) {
    .hero-intro h1 { font-size: 4.5rem; }
    .hero-layout { gap: 32px; }
}

@media (width < 992px) {
    .hero-layout, .visit-layout { grid-template-columns: 1fr; }
    .hero-layout { gap: 24px; }
    .hero-intro { padding: 0; }
    .hero-intro h1 { font-size: 3.75rem; }
    .hero-figure img { aspect-ratio: 16 / 9; }
    .section-space { padding-block: 48px; }
    .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (width < 768px) {
    .site-backdrop { background-image: url("./facade-mobile.webp"); }
    .container-xl { --bs-gutter-x: 2rem; }
    .nav-shell { min-height: 56px; padding: 4px 12px; }
    .hero-section, .service-hero, .taplist-page, .not-found-page { padding-top: 24px; }
    h1, .hero-intro h1 { font-size: 3rem; }
    h2 { font-size: 2.25rem; line-height: 1.12; }
    .hero-intro .eyebrow { margin-bottom: 12px; }
    .hero-lead { margin-block: 16px; font-size: 1rem; }
    .hero-facts { margin-top: 24px; }
    .hero-facts a { padding: 12px 8px; }
    .hero-facts .eyebrow { font-size: .75rem; letter-spacing: 0; }
    .hero-facts strong { font-size: .875rem; overflow-wrap: anywhere; }
    .story-layout, .announcement-strip { grid-template-columns: 1fr; }
    .story-layout { gap: 8px; }
    .service-hero-box, .service-cta, .not-found-box { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .site-backdrop { will-change: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
    .story-heading span { opacity: 1; }
}
