:root {
    --bg0: #000000;
    --bg1: #090101;
    --ink: #b8877c;
    --ink-bright: #d7aea5;
    --muted: #8e5e54;
    --amber: #a56a2a;
    --wood: #2a0806;
    --line: rgba(58, 22, 14, 0.18);
    --shadow: 0 28px 80px rgba(7, 2, 2, 0.55), 0 6px 18px rgba(0, 0, 0, 0.45);
    --r: 22px;
    --max: 1240px;
}

* {
    box-sizing: border-box;
}

html,body {
    height: 100%;
}

body {
    margin: 0;
    color: var(--ink);
    font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
    background: radial-gradient(1100px 700px at 70% 20%, rgba(90, 40, 18, 0.06), transparent 55%), radial-gradient(900px 600px at 20% 70%, rgba(55, 20, 12, 0.05), transparent 60%), linear-gradient(180deg, var(--bg0), var(--bg1));
    overflow-x: hidden;
}

a {
    color: inherit;
}

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

.wrap {
    width: min(100% - 36px, var(--max));
    margin: 0 auto;
    padding: 32px 0 28px;
}

.pill:hover {
    color: #754e06;
    border-color: rgb(75, 44, 1);
}

header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 0 18px;
}

.mark {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    letter-spacing: .12em;
    font-weight: 700;
    line-height: 1;
}

.sigil {
    width: 48px;
    height: 48px;
    border-radius: 20px;
    background: radial-gradient(circle at 30% 30%, rgba(10, 0, 0, 0.45), transparent 55%), linear-gradient(135deg, rgba(24, 1, 1, 0.25), rgba(26, 4, 4, 0.2)), var(--wood);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.sigil img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

nav {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-right: 35px;
    margin-top: -23px;
}

nav a {
    text-decoration: none;
    font-size: 15px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10,6,4,.35);
    backdrop-filter: blur(6px);
}

.hero.layout-split {
    display: grid;
    grid-template-columns: minmax(0, 2fr) 300px;
    gap: 18px;
    align-items: start;
    margin-top: 0;
}

.hero h2 {
    font-family: "MedievalSharp", ui-sans-serif, system-ui;
    font-size: clamp(30px, 3.2vw, 48px);
    line-height: 1.15;
    letter-spacing: .02em;
    margin: 0 0 12px 0;
}

.card {
    border: 1px solid var(--line);
    border-radius: var(--r);
    background: radial-gradient(900px 340px at 10% 10%,rgba(120, 58, 24, 0.06),transparent 45%),rgba(8, 3, 2, 0.44);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.card-main {
    padding: 26px;
    min-width: 0;
}

.card > :first-child {
    margin-top: 0;
}

.main-column {
    display: grid;
    gap: 18px;
    align-content: start;
}

.featured-video {
    display: grid;
    grid-template-columns: minmax(0, 2.08fr) 252px;
    gap: 10px;
    margin-top: 10px;
    align-items: start;
}

.featured-video-main {
    min-width: 0;
}

.featured-video-frame {
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    background: rgba(34, 3, 3, 0.22);
    box-shadow: var(--shadow);
}

.featured-video-frame iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border: 0;
    display: block;
}

.featured-video-list {
    display: grid;
    gap: 4px;
    align-content: start;
}

.video-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 12px;
}

.video-thumb {
    display: grid;
    grid-template-columns: 138.5px 97px;
    gap: 9px;
    align-items: center;
    width: 100%;
    padding: 2px 8px 2px 2px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.video-thumb-grid {
    grid-template-columns: 145px minmax(0, 1fr);
    min-height: 105px;
    padding: 6px;
}

.video-thumb-grid span {
    position: relative;
    z-index: 2;
    width: calc(100% + 40px);
    justify-self: end;
    overflow-wrap: normal;
    word-break: normal;
    text-shadow: 0 1px 4px #000;
}

.thumb-frame {
    background: rgba(34, 3, 3, 0.35);
    border-radius: 12px;
    width: 100%;
}

.video-thumb:hover {
    transform: translateY(-1px);
    color: #7a2a18;
    border-color: rgb(75, 44, 1);
    background: rgb(41, 23, 1);
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.video-thumb.active {
    border-color: rgba(165, 106, 42, 0.45);
    box-shadow: 0 0 0 1px rgba(165, 106, 42, 0.22) inset;
}

.video-thumb:focus-visible {
    outline: none;
    box-shadow: 0 0 0 2px rgba(120, 60, 30, 0.55);
}

.video-thumb img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}

.video-thumb span {
    min-width: 0;
    font-size: 14px;
    line-height: 1.35;
    color: var(--ink);
    text-align: right;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
    margin-top: 10px;
}

.gallery-item {
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    display: block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    display: block;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(34, 3, 3, 0.22);
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.gallery-item:hover img {
    transform: translateY(-2px);
    border-color: rgb(75, 44, 1);
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

/* Full-screen viewer */

body.viewer-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: none;
    background: #080505;
    color: var(--ink);
}

.lightbox.open {
    display: block;
}

.lightbox-inner {
    position: relative;
    width: 100%;
    height: 100%;
    background: #080505;
}

.lightbox-stage {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.lightbox-stage img {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 120px);
    max-height: calc(100dvh - 80px);
    object-fit: contain;
    border: 0;
    background: #080505;
    cursor: pointer;
    transition:
        max-width 0.18s ease,
        max-height 0.18s ease;
    -webkit-tap-highlight-color: transparent;
    user-select: none;
}

.lightbox.info-hidden .lightbox-stage img {
    max-width: 100vw;
    max-height: 100dvh;
}

.lightbox-caption {
    position: absolute;
    left: 50%;
    bottom: 24px;
    z-index: 1;
    width: min(620px, calc(100vw - 80px));
    padding: 8px 22px 9px;
    transform: translateX(-50%);
    border: 1px solid rgba(165, 106, 42, 0.38);
    border-radius: 22px;
    background: rgba(24, 9, 8, 0.65);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.38);
    text-align: center;
    backdrop-filter: blur(8px);
    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;
}

.lightbox.info-hidden .lightbox-caption {
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
}

.lightbox-caption h3 {
    margin: 0;
    color: var(--ink-bright);
    font-family: "MedievalSharp", system-ui;
    font-size: clamp(0.9rem, 1.4vw, 1.1rem);
    font-weight: 400;
    line-height: 1.1;
}

.lightbox-caption p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.25;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    z-index: 2;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(24, 9, 8, 0.85);
    color: var(--ink-bright);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover,
.lightbox-nav:hover {
    border-color: var(--amber);
}

.lightbox-close {
    top: 16px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 29px;
    line-height: 1;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 64px;
    font-size: 38px;
}

.lightbox-prev {
    left: 14px;
}

.lightbox-next {
    right: 14px;
}

:focus-visible {
    outline: 2px solid var(--amber);
    outline-offset: 3px;
}


.brand {
    margin: 0;
    font-size: 34px;
    line-height: 1;
    letter-spacing: .02em;
    font-weight: 700;
    font-family: "MedievalSharp", ui-sans-serif, system-ui;
}

.brand-block {
    display: flex;
    flex-direction: column;
    transform: translateY(4px);
}

.tagline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin: 1px 0 0 8px;
    font-size: 0.60rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
}

.tagline::before {
    content: "";
    width: 25px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.tagline::after {
    content: "";
    width: 43px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.nav-buttons {
    display: flex;
    gap: 16px;
}

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 14px;
    align-items: center;
}

.btn {
    text-decoration: none;
    padding: 8px 13px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(39, 3, 3, 0.35);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn:hover {
    transform: translateY(-1px);
    color: #7a2a18;
    border-color: rgb(75, 44, 1);
    background: rgb(41, 23, 1);
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.btn.primary {
    padding: 11px 17px;
    font-weight: 500;
    border-color: rgba(18, 1, 1, 0.35);
    background: radial-gradient(circle at 30% 30%, rgba(99, 12, 12, 0.28), transparent 55%),linear-gradient(180deg, rgba(61, 3, 3, 0.22), rgba(0,0,0,.1));
    box-shadow: 0 0 14px rgba(120, 60, 30, 0.22);
}

.btn:not(.primary) {
    font-size: 15px;
    opacity: 0.9;
}

.btn.primary:hover {
    color: #7a2a18;
    border-color: rgb(75, 44, 1);
    background: rgb(41, 23, 1);
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.side {
    display: grid;
    gap: 18px;
    align-content: start;
}

.side .panel {
    padding: 16px;
}

.panel {
    padding: 18px;
}

.panel a {
    text-decoration: none;
}

.panel h2 {
    margin: 0 0 8px;
    font-size: 16px;
    font-family: "MedievalSharp", ui-sans-serif, system-ui;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.list {
    display: grid;
    gap: 10px;
    margin-top: 12px;
}

.item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(34, 3, 3, 0.35);
    text-decoration: none;
}

.item:hover {
    color: #7a2a18;
    border-color: rgb(75, 44, 1);
    background: rgb(41, 23, 1);
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.item b {
    min-width: 0;
    font-size: 15px;
    opacity: 0.95;
}

.item span {
    text-align: right;
    white-space: nowrap;
    font-size: 13px;
    color: var(--muted);
}

.item small {
    color: var(--muted);
    text-align: right;
    white-space: nowrap;
}

.side-item {
    column-gap: 12px;
}

.rule {
    height: 1px;
    background: rgba(58, 22, 14, 0.22);
    margin: 12px 0;
}

.info {
    display: grid;
    margin-top: 12px;
}

.info.item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 14px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(34, 3, 3, 0.35);
}

.info.item span {
    font-size: 15px;
    text-align: left;
}

.info.item small {
    color: var(--muted);
    font-size: 14px;
    text-align: right;
    white-space: nowrap;
}

.info.item:hover {
    color: inherit;
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.footer {
    margin-top: 60px;
    color: rgba(116, 77, 77, 0.75);
    font-size: 12px;
    letter-spacing: .06em;
    text-align: left;
    hyphens: auto;
}

@media (max-width: 900px) {
    .item, .info.item {
        grid-template-columns: 1fr;
        row-gap: 4px;
    }
    .item span, .item small, .info.item small {
        text-align: left;
        white-space: normal;
    }
    .wrap {
        width: min(100% - 28px, var(--max));
        padding: 24px 0;
    }
    header {
        gap: 14px;
    }
    nav {
        margin-right: 0;
        margin-top: 0;
    }
    .hero.layout-split {
        grid-template-columns: 1fr;
    }
    .video-thumb {
        grid-template-columns: 112px minmax(0, 1fr);
        gap: 8px;
        padding: 3px 6px 3px 2px;
    }
    .featured-video {
        grid-template-columns: 1fr;
    }
    .featured-video-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .video-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .image-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .wrap {
        width: min(100% - 20px, var(--max));
        padding: 18px 0 22px;
    }
    header {
        flex-direction: column;
        gap: 12px;
        padding: 12px 0 16px;
    }
    .mark {
        gap: 10px;
    }
    .sigil {
        width: 42px;
        height: 42px;
        border-radius: 16px;
    }
    .brand {
        position: relative;
        font-size: 25px;
        line-height: 1.05;
        top: 2px;
    }
    .brand-block {
        transform: none;
    }
    .tagline {
        margin: 4px 0 0 2px;
        letter-spacing: 0.1em;
    }
    .tagline::before {
        width: 22px;
    }
    .tagline::after {
        width: 34px;
    }
    nav {
        width: 100%;
        margin: 0;
    }
    nav a {
        font-size: 14px;
        padding: 9px 11px;
    }
    .card-main, .panel {
        padding: 16px;
    }
    .hero h2 {
        font-size: clamp(26px, 7vw, 34px);
        line-height: 1.2;
    }
    .actions {
        gap: 10px;
    }
    .btn {
        padding: 9px 12px;
    }
    .btn.primary {
        padding: 11px 15px;
    }
    .featured-video-list {
        grid-template-columns: 1fr;
    }
    .video-thumb {
        grid-template-columns: 96px minmax(0, 1fr);
        gap: 10px;
        padding: 9px;
    }
    .video-thumb-grid span {
        width: 100%;
    }
    .image-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }
    .video-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 520px) {
    .wrap {
        width: min(100% - 16px, var(--max));
        padding: 14px 0 20px;
    }
    header {
        gap: 10px;
        padding: 10px 0 14px;
    }
    .mark {
        gap: 9px;
    }
    .sigil {
        width: 38px;
        height: 38px;
        border-radius: 14px;
    }
    .brand {
        font-size: 24px;
        top: 4px;
    }
    .tagline {
        font-size: 0.56rem;
        letter-spacing: 0.08em;
    }
    .tagline::before {
        width: 16px;
    }
    .tagline::after {
        width: 29px;
    }
    nav a {
        width: auto;
        white-space: nowrap;
    }
    .hero h2 {
        font-size: clamp(24px, 8vw, 30px);
    }
    .actions {
        flex-direction: column;
        align-items: stretch;
    }
    .actions .btn {
        justify-content: center;
        width: 100%;
    }
    .video-thumb {
        grid-template-columns: 88px minmax(0, 1fr);
    }
    .image-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .lightbox-stage img {
        max-width: calc(100vw - 20px);
        max-height: calc(100dvh - 20px);
    }

    .lightbox.info-hidden .lightbox-stage img {
        max-width: 100vw;
        max-height: 100dvh;
    }

    .lightbox-caption {
        bottom: 14px;
        width: calc(100vw - 28px);
        padding: 9px 16px 10px;
    }

    .lightbox-nav {
        width: 30px;
        height: 48px;
        font-size: 26px;
        background: rgba(24, 9, 8, 0.65);
    }

    .lightbox-prev {
        left: 2px;
    }

    .lightbox-next {
        right: 2px;
    }

    .lightbox-close {
        top: 10px;
        right: 8px;
        width: 40px;
        height: 40px;
        font-size: 25px;
        background: rgba(24, 9, 8, 0.65);
    }
}
