:root {
    --brand-red: #d0161c;
    --brand-red-dark: #9e0f14;
    --brand-black: #161616;
    --brand-ink: #262626;
    --brand-muted: #6b6560;
    --brand-bg: #ffffff;
    --brand-bg-alt: #f7f4f0;
    --brand-border: #e7e2da;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    color: var(--brand-ink);
    background: var(--brand-bg);
    line-height: 1.6;
}

a {
    color: var(--brand-red);
}

/* Top contact bar */

.site-topbar {
    background: var(--brand-black);
    color: #d8d4cf;
    font-size: 0.8rem;
}

.site-topbar-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 6px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.site-topbar a {
    color: #fff;
    text-decoration: none;
    font-weight: 600;
}

.site-topbar a:hover {
    color: var(--brand-red);
}

.site-topbar-sep {
    margin: 0 8px;
    opacity: 0.5;
}

/* Header */

.site-header {
    background: var(--brand-bg);
    border-bottom: 3px solid var(--brand-red);
    position: sticky;
    top: 0;
    z-index: 10;
}

.site-header-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--brand-black);
    flex: 0 0 auto;
}

.site-brand-icon {
    width: 30px;
    height: 30px;
    color: var(--brand-red);
    flex: 0 0 auto;
}

.site-brand-text {
    font-family: "Kaushan Script", cursive;
    font-size: 1.7rem;
    line-height: 1;
    color: var(--brand-red);
    text-shadow: 1px 1px 0 rgba(22, 22, 22, 0.15);
    white-space: nowrap;
}

.site-brand-text-inc {
    font-size: 1.1rem;
}

.site-nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--brand-black);
    cursor: pointer;
    padding: 6px;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 28px;
}

.site-nav a {
    color: var(--brand-ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 6px 2px;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover {
    color: var(--brand-red);
    border-bottom-color: var(--brand-red);
}

.site-nav-cta {
    background: var(--brand-red);
    color: #fff !important;
    padding: 10px 18px !important;
    border-radius: 999px;
    border-bottom: none !important;
}

.site-nav-cta:hover {
    background: var(--brand-red-dark);
}

/* User menu */

.site-nav-user {
    position: relative;
}

.site-nav-user-toggle {
    background: none;
    border: none;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--brand-ink);
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    padding: 6px 2px;
}

.site-nav-user-toggle:hover {
    color: var(--brand-red);
}

.site-nav-user-menu {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    border: 1px solid var(--brand-border);
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(22, 22, 22, 0.14);
    min-width: 170px;
    padding: 6px;
    z-index: 20;
}

.site-nav-user-menu.is-open {
    display: block;
}

.site-nav-user-menu a {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--brand-ink);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    border-bottom: none;
}

.site-nav-user-menu a:hover {
    background: var(--brand-bg-alt);
    color: var(--brand-red);
}

/* Main */

.site-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 40px 24px;
    min-height: 60vh;
}

.page h1 {
    margin-top: 0;
    font-size: 2rem;
    color: var(--brand-black);
}

.page h1::after {
    content: "";
    display: block;
    width: 64px;
    height: 4px;
    background: var(--brand-red);
    margin-top: 14px;
    border-radius: 2px;
}

.page-body {
    margin-top: 24px;
    font-size: 1.05rem;
    color: var(--brand-ink);
}

.page-body p {
    margin: 0 0 18px;
}

.page-body ul {
    list-style: none;
    margin: 0 0 18px;
    padding: 0;
}

.page-body ul li {
    position: relative;
    padding-left: 26px;
    margin-bottom: 10px;
}

.page-body ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    background: var(--brand-red);
    border-radius: 2px;
    transform: rotate(45deg);
}

/*
 * On the About page, flow multiple <ul>s into two balanced columns instead
 * of stacking them full-width. Quill can't produce a wrapping <div> to pin
 * two specific lists side by side (it has no generic container format), so
 * this uses CSS multi-column instead: break-inside/break-after keep each
 * list intact and keep a label paragraph glued to the list that follows it,
 * without hardcoding which paragraph/list pairs with which.
 */
.page-body-about {
    column-count: 2;
    column-gap: 40px;
}

.page-body-about > p:first-child {
    column-span: all;
}

.page-body-about ul {
    break-inside: avoid;
}

.page-body-about p {
    break-after: avoid-column;
}

@media (max-width: 700px) {
    .page-body-about {
        column-count: 1;
    }
}

.page-body.has-featured-image::after {
    content: "";
    display: table;
    clear: both;
}

.page-featured-image {
    max-width: 45%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 16px;
    border: 4px solid #fff;
    box-shadow: 0 2px 10px rgba(22, 22, 22, 0.18);
}

.page-featured-image.align-left {
    float: left;
    margin-right: 28px;
}

.page-featured-image.align-right {
    float: right;
    margin-left: 28px;
}

/* Gallery */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 18px;
}

.gallery-item {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: var(--brand-bg-alt);
    border: 1px solid var(--brand-border);
    box-shadow: 0 1px 3px rgba(22, 22, 22, 0.06);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(22, 22, 22, 0.15);
}

.gallery-item img {
    width: 100%;
    height: 170px;
    object-fit: cover;
    display: block;
}

.gallery-item {
    cursor: zoom-in;
}

/* Lightbox */

.lightbox[hidden] {
    display: none;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(10, 10, 10, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px;
}

body.lightbox-open {
    overflow: hidden;
}

.lightbox-content {
    max-width: 100%;
    max-height: 100%;
}

.lightbox-content img {
    display: block;
    max-width: 100%;
    max-height: calc(100vh - 120px);
    border-radius: 6px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: fixed;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.15s ease;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--brand-red);
}

.lightbox-close {
    top: 20px;
    right: 20px;
    width: 44px;
    height: 44px;
    font-size: 1.8rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
    width: 52px;
    height: 52px;
    font-size: 2.2rem;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

@media (max-width: 600px) {
    .lightbox {
        padding: 16px;
    }

    .lightbox-content img {
        max-height: calc(100vh - 80px);
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 38px;
        height: 38px;
        font-size: 1.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.6rem;
    }

    .lightbox-prev {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }
}

/* Footer */

.site-footer {
    background: var(--brand-black);
    color: #cfcbc6;
    margin-top: 40px;
}

.site-footer-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 24px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.site-footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.site-footer-brand .site-brand-icon {
    width: 26px;
    height: 26px;
}

.site-footer-brand .site-brand-text {
    font-size: 1.4rem;
}

.site-footer-info {
    font-size: 0.9rem;
    line-height: 1.8;
}

.site-footer-info p {
    margin: 0;
}

.site-footer-info a {
    color: #fff;
    text-decoration: none;
}

.site-footer-info a:hover {
    color: var(--brand-red);
}

.site-footer-copyright {
    text-align: center;
    padding: 16px 24px;
    margin: 0;
    font-size: 0.8rem;
    color: #8a8580;
    border-top: 1px solid #333;
}

/* Mobile */

@media (max-width: 768px) {
    .site-topbar-inner {
        justify-content: center;
        text-align: center;
    }

    .site-topbar-address,
    .site-topbar-sep {
        display: none;
    }

    .site-nav-toggle {
        display: block;
    }

    .site-nav {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--brand-bg);
        border-bottom: 3px solid var(--brand-red);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 24px 16px;
        display: none;
    }

    .site-nav.is-open {
        display: flex;
    }

    .site-nav a {
        padding: 12px 0;
        border-bottom: 1px solid var(--brand-border);
    }

    .site-nav-cta {
        text-align: center;
        margin-top: 10px;
    }

    .site-nav-user {
        width: 100%;
    }

    .site-nav-user-toggle {
        width: 100%;
        justify-content: space-between;
        padding: 12px 0;
        border-bottom: 1px solid var(--brand-border);
    }

    .site-nav-user-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding: 4px 0 0 12px;
        min-width: 0;
    }

    .page-featured-image {
        float: none !important;
        max-width: 100%;
        margin: 0 0 18px !important;
    }

    .site-footer-inner {
        flex-direction: column;
    }
}
