@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-400.ttf") format("truetype");
    font-style: normal;
    font-weight: 400;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-800.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

@font-face {
    font-family: "Inter";
    src: url("../fonts/inter-900.ttf") format("truetype");
    font-style: normal;
    font-weight: 900;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed-700.ttf") format("truetype");
    font-style: normal;
    font-weight: 700;
    font-display: swap;
}

@font-face {
    font-family: "Barlow Condensed";
    src: url("../fonts/barlow-condensed-800.ttf") format("truetype");
    font-style: normal;
    font-weight: 800;
    font-display: swap;
}

:root {
    --bg: #f7eadb;
    --bg-soft: #fff8f0;
    --card: #ffffff;
    --text: #4d312b;
    --muted: #8c6b62;
    --accent: #d98262;
    --accent-dark: #8b4e40;
    --yellow: #f8ca68;
    --green: #9acdc7;
    --border: rgba(77, 49, 43, 0.14);
    --shadow: 0 18px 45px rgba(77, 49, 43, 0.16);
    --radius: 28px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --font-body: "Inter", "Segoe UI", sans-serif;
    --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
    --display-tracking: 0.01em;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-body);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    background:
        radial-gradient(circle at top right, rgba(248, 202, 104, 0.34), transparent 38%),
        radial-gradient(circle at bottom left, rgba(154, 205, 199, 0.32), transparent 38%),
        var(--bg);
    color: var(--text);
}

body.is-modal-open {
    overflow: hidden;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.app {
    width: min(100%, 760px);
    margin: 0 auto;
    padding: 18px 14px calc(96px + var(--safe-bottom));
}

.hero {
    position: sticky;
    top: 0;
    z-index: 10;
    margin: -18px -14px 16px;
    padding: 18px 14px 14px;
    background: rgba(247, 234, 219, 0.88);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(77, 49, 43, 0.08);
}

.hero__inner {
    width: min(100%, 760px);
    margin: 0 auto;
}

.scroll-hint {
    --scroll-hint-edge: rgba(247, 234, 219, 0.94);
    --scroll-hint-cue-bg: rgba(255, 255, 255, 0.9);
    --scroll-hint-cue-shadow: 0 10px 24px rgba(77, 49, 43, 0.12);
    position: relative;
    overflow: hidden;
}

.scroll-hint::before,
.scroll-hint::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 36px;
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
    z-index: 2;
}

.scroll-hint::before {
    left: 0;
    background: linear-gradient(90deg, var(--scroll-hint-edge), rgba(247, 234, 219, 0));
}

.scroll-hint::after {
    right: 0;
    background: linear-gradient(270deg, var(--scroll-hint-edge), rgba(247, 234, 219, 0));
}

.scroll-hint.is-scrollable:not(.is-at-start)::before,
.scroll-hint.is-scrollable:not(.is-at-end)::after {
    opacity: 1;
}

.scroll-hint__cue {
    position: absolute;
    top: 50%;
    right: 8px;
    width: 31px;
    height: 31px;
    transform: translateY(-50%);
    border-radius: 999px;
    background: var(--scroll-hint-cue-bg);
    box-shadow: var(--scroll-hint-cue-shadow);
    pointer-events: none;
    opacity: 0;
    transition: opacity 180ms ease;
    z-index: 3;
}

.scroll-hint__cue::before,
.scroll-hint__cue::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 7px;
    height: 7px;
    border-top: 2px solid var(--accent-dark);
    border-right: 2px solid var(--accent-dark);
    transform: translateY(-50%) rotate(45deg);
}

.scroll-hint__cue::before {
    left: 6px;
}

.scroll-hint__cue::after {
    left: 12px;
    opacity: 0.55;
}

.scroll-hint.is-scrollable:not(.is-at-end):not(.is-interacted) .scroll-hint__cue {
    opacity: 1;
    animation: scroll-hint-cue-nudge 1.6s ease-in-out infinite;
}

.site-menu {
    display: flex;
    gap: 10px;
    margin: 0;
    overflow-x: auto;
    padding: 2px 34px 12px 2px;
    scrollbar-width: none;
}

.site-menu::-webkit-scrollbar {
    display: none;
}

.site-menu__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid rgba(77, 49, 43, 0.1);
    background: rgba(255, 255, 255, 0.64);
    color: var(--accent-dark);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    text-decoration: none;
    white-space: nowrap;
    box-shadow: 0 8px 20px rgba(77, 49, 43, 0.06);
}

.site-menu__link.is-current {
    background: var(--text);
    border-color: transparent;
    color: #fff;
}

.scroll-hint--menu {
    margin: 0 0 10px;
}

.scroll-hint--menu .scroll-hint__cue {
    top: 20px;
    transform: translateY(-50%);
}

.eyebrow {
    margin: 0 0 6px;
    font-size: 0.79rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-dark);
}

h1 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(2rem, 8vw, 4rem);
    line-height: 0.9;
    letter-spacing: var(--display-tracking);
    color: var(--accent);
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
    paint-order: stroke fill;
    text-shadow:
        1px 0 0 rgba(255, 255, 255, 0.82),
        -1px 0 0 rgba(255, 255, 255, 0.82),
        0 1px 0 rgba(255, 255, 255, 0.82),
        0 -1px 0 rgba(255, 255, 255, 0.82);
}

.subtitle {
    margin: 10px 0 0;
    max-width: 34rem;
    color: #765950;
    font-size: 1.04rem;
    font-weight: 700;
    line-height: 1.45;
}

.quick-actions {
    display: flex;
    gap: 10px;
    margin-top: 14px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
}

.quick-actions::-webkit-scrollbar {
    display: none;
}

.chip,
.icon-button,
.primary-button,
.secondary-button {
    border: 0;
    cursor: pointer;
    font: inherit;
    text-decoration: none;
    white-space: nowrap;
}

.chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
    color: var(--accent-dark);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 8px 20px rgba(77, 49, 43, 0.08);
}

.chip:disabled {
    opacity: 0.42;
    cursor: not-allowed;
}

.day-strip {
    display: flex;
    gap: 9px;
    overflow-x: auto;
    padding: 4px 56px 14px 16px;
    margin: 0;
    scrollbar-width: none;
}

.day-strip::-webkit-scrollbar {
    display: none;
}

.scroll-hint--days {
    --scroll-hint-cue-bg: rgba(255, 255, 255, 0.96);
    --scroll-hint-cue-shadow: 0 14px 28px rgba(77, 49, 43, 0.16);
    margin-inline: -14px;
}

.scroll-hint--days .scroll-hint__cue {
    right: 6px;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(77, 49, 43, 0.08);
}

.scroll-hint--days .scroll-hint__cue::before {
    left: 8px;
    width: 8px;
    height: 8px;
}

.scroll-hint--days .scroll-hint__cue::after {
    left: 15px;
    width: 8px;
    height: 8px;
}

.day-tab {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    gap: 4px;
    width: 60px;
    min-height: 66px;
    border: 1px solid var(--border);
    border-radius: 19px;
    background: rgba(255, 255, 255, 0.64);
    color: var(--muted);
    box-shadow: 0 10px 22px rgba(77, 49, 43, 0.08);
    cursor: pointer;
}

.day-tab.is-active {
    background: var(--text);
    color: #fff;
    border-color: transparent;
}

.day-tab.is-today {
    outline: 3px solid rgba(248, 202, 104, 0.72);
}

.day-tab__num {
    font-family: var(--font-display);
    font-size: 1.38rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0.015em;
}

.day-tab__label {
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.status-banner {
    display: none;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: start;
    gap: 16px;
    padding: 18px 20px;
    margin: 8px 0 16px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(255, 248, 240, 0.96));
    box-shadow: 0 16px 38px rgba(77, 49, 43, 0.12);
    border: 1px solid rgba(77, 49, 43, 0.08);
}

.status-banner.is-visible {
    display: grid;
}

.status-banner.is-current {
    border-left: 6px solid var(--green);
}

.status-banner.is-future {
    border-left: 6px solid rgba(217, 130, 98, 0.34);
}

.status-banner__signal {
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-top: 2px;
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(154, 205, 199, 0.22), rgba(154, 205, 199, 0.08));
}

.status-banner__dot {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    border-radius: 999px;
    background: var(--green);
    box-shadow: 0 0 0 8px rgba(154, 205, 199, 0.18);
    flex: 0 0 auto;
}

.status-banner.is-future .status-banner__signal {
    background: linear-gradient(180deg, rgba(217, 130, 98, 0.18), rgba(217, 130, 98, 0.06));
}

.status-banner.is-future .status-banner__dot {
    background: rgba(217, 130, 98, 0.72);
    box-shadow: 0 0 0 8px rgba(217, 130, 98, 0.08);
}

.status-banner__dot::after {
    content: "";
    position: absolute;
    inset: -6px;
    border-radius: inherit;
    border: 1px solid rgba(154, 205, 199, 0.5);
    animation: status-dot-pulse 2.4s ease-in-out infinite;
}

.status-banner.is-future .status-banner__dot::after {
    border-color: rgba(217, 130, 98, 0.24);
    animation: none;
}

.status-banner__content {
    display: grid;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.status-banner__label {
    margin: 0;
    font-size: 0.73rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--accent-dark);
}

.status-banner__title {
    margin: 0;
    font-size: clamp(1.18rem, 2vw, 1.42rem);
    font-weight: 800;
    line-height: 1.22;
    letter-spacing: 0;
    color: var(--text);
}

.status-banner__text {
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--accent-dark);
}

.status-banner__place {
    margin: 0;
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.4;
    color: var(--muted);
}

.status-banner__cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border-radius: 999px;
    margin-top: 4px;
    background: var(--text);
    box-shadow: 0 12px 24px rgba(77, 49, 43, 0.18);
    color: #fff;
    font-size: 0.94rem;
    font-weight: 800;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
}

.status-banner__text[hidden],
.status-banner__place[hidden],
.status-banner__cta[hidden] {
    display: none !important;
}

@keyframes status-dot-pulse {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.45;
    }

    50% {
        transform: scale(1.45);
        opacity: 0;
    }
}

@keyframes scroll-hint-cue-nudge {

    0%,
    100% {
        transform: translateY(-50%) translateX(0);
    }

    45% {
        transform: translateY(-50%) translateX(4px);
    }
}

.card {
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--card);
    box-shadow: var(--shadow);
    border: 1px solid rgba(255, 255, 255, 0.82);
}

.card__loading {
    padding: 36px 24px;
    text-align: center;
    color: var(--muted);
    font-weight: 700;
}

.card__poster {
    background: #ead8c8;
}

.poster-image {
    display: block;
    width: 100%;
    height: auto;
    cursor: zoom-in;
}

.poster-meta {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 16px 18px 10px;
    background: linear-gradient(180deg, rgba(247, 234, 219, 0.68), rgba(247, 234, 219, 0));
}

.poster-date {
    display: inline-flex;
    flex-direction: column;
    gap: 2px;
    padding: 12px 14px;
    border-radius: 20px;
    background: var(--bg-soft);
    border: 1px solid rgba(77, 49, 43, 0.08);
    box-shadow: 0 10px 26px rgba(77, 49, 43, 0.08);
    min-width: 0;
}

.poster-date__title {
    font-family: var(--font-display);
    font-size: 1.72rem;
    font-weight: 800;
    line-height: 0.98;
    letter-spacing: 0.025em;
    color: var(--accent);
}

.poster-date__value {
    margin-top: 3px;
    font-size: 0.96rem;
    font-weight: 800;
    color: var(--accent-dark);
    letter-spacing: 0;
}

.card__body {
    padding: 4px 18px 18px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    background: rgba(248, 202, 104, 0.28);
    color: var(--accent-dark);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    white-space: nowrap;
}

.host {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
    padding: 14px 15px;
    border-radius: 20px;
    background: var(--bg-soft);
    border: 1px solid rgba(77, 49, 43, 0.08);
    color: var(--muted);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.45;
}

.host strong {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 800;
}

.buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 16px 0 18px;
}

.primary-button,
.secondary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 16px;
    border-radius: 17px;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.005em;
}

.primary-button {
    background: var(--text);
    color: #fff;
}

.secondary-button {
    background: var(--bg-soft);
    color: var(--accent-dark);
    border: 1px solid var(--border);
}

.secondary-button--gallery {
    background: rgba(255, 255, 255, 0.82);
}

.section-title {
    margin: 22px 0 12px;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--accent-dark);
}

.timeline {
    display: grid;
    gap: 10px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 84px 1fr;
    gap: 12px;
    padding: 13px;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: #fff;
}

.timeline-item.is-current {
    border-color: rgba(154, 205, 199, 0.9);
    background: rgba(154, 205, 199, 0.14);
    box-shadow: 0 10px 24px rgba(154, 205, 199, 0.18);
}

.timeline-item.is-past {
    opacity: 0.58;
}

.timeline-time {
    font-size: 0.98rem;
    font-weight: 800;
    color: var(--accent-dark);
    line-height: 1.2;
}

.timeline-content strong {
    display: block;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.36;
    color: var(--text);
}

.timeline-content span {
    display: inline-flex;
    margin-top: 7px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #8a675e;
}

.bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    padding: 12px 14px calc(12px + var(--safe-bottom));
    background: rgba(255, 248, 240, 0.88);
    backdrop-filter: blur(18px);
    border-top: 1px solid rgba(77, 49, 43, 0.1);
}

.bottom-nav__inner {
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    gap: 10px;
    width: min(100%, 760px);
    margin: 0 auto;
}

.icon-button {
    display: grid;
    place-items: center;
    min-height: 54px;
    border-radius: 18px;
    background: var(--text);
    color: #fff;
    font-size: 1.45rem;
    font-weight: 950;
}

.icon-button:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

.nav-date {
    display: grid;
    place-items: center;
    min-height: 54px;
    border-radius: 18px;
    background: #fff;
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 8px 24px rgba(77, 49, 43, 0.09);
    text-align: center;
}

.modal {
    position: fixed;
    inset: 0;
    z-index: 50;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 16px;
    background: rgba(32, 20, 17, 0.84);
}

.modal.is-open {
    display: flex;
}

.modal__image {
    max-width: 100%;
    max-height: 88vh;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.modal__close {
    position: absolute;
    right: 16px;
    top: 16px;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--text);
    font-size: 1.45rem;
    font-weight: 950;
    cursor: pointer;
    z-index: 2;
}

.gallery-modal {
    padding: 18px;
}

.gallery-modal__panel {
    position: relative;
    display: grid;
    gap: 14px;
    width: min(100%, 860px);
}

.gallery-modal__meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding-right: 60px;
    color: #fff;
}

.gallery-modal__date,
.gallery-modal__count {
    margin: 0;
}

.gallery-modal__date {
    font-size: 1rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.gallery-modal__count {
    font-size: 0.9rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.74);
}

.gallery-modal__stage {
    position: relative;
}

.gallery-modal__figure {
    display: grid;
    place-items: center;
    min-height: min(72vh, 560px);
    margin: 0;
    padding: 12px;
    border-radius: 26px;
    background: rgba(255, 248, 240, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
}

.gallery-modal__image {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: min(68vh, 760px);
    object-fit: contain;
    border-radius: 18px;
    box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

.gallery-modal__nav {
    position: absolute;
    top: 50%;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.96);
    color: var(--text);
    font-size: 1.5rem;
    font-weight: 950;
    transform: translateY(-50%);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
    cursor: pointer;
}

.gallery-modal__nav--prev {
    left: 14px;
}

.gallery-modal__nav--next {
    right: 14px;
}

.gallery-modal__nav:disabled {
    opacity: 0.32;
    cursor: not-allowed;
}

.gallery-modal__caption {
    margin: 0;
    text-align: center;
    font-size: 0.92rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.8);
}

.empty-poster {
    display: grid;
    place-items: center;
    min-height: 320px;
    padding: 22px;
    text-align: center;
    color: var(--muted);
    font-weight: 800;
}

@media (max-width: 520px) {
    .scroll-hint--days {
        margin-inline: -14px;
    }

    .day-strip {
        padding-inline: 16px 56px;
    }

    .status-banner {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .status-banner__signal {
        margin-top: 0;
    }

    .status-banner__cta {
        width: 100%;
    }

    .poster-meta {
        grid-template-columns: 1fr;
        align-items: flex-start;
    }

    .badge {
        justify-self: flex-start;
    }

    .gallery-modal {
        padding: 12px;
    }

    .gallery-modal__meta {
        display: grid;
        gap: 4px;
        padding-right: 56px;
    }

    .gallery-modal__figure {
        min-height: min(64vh, 420px);
        padding: 8px;
    }

    .gallery-modal__nav {
        width: 42px;
        height: 42px;
    }

    .gallery-modal__nav--prev {
        left: 8px;
    }

    .gallery-modal__nav--next {
        right: 8px;
    }
}

@media (min-width: 680px) {
    .app {
        padding-inline: 22px;
    }

    .hero {
        margin-inline: -22px;
        padding-inline: 22px;
    }

    .scroll-hint--days {
        margin-inline: -22px;
    }

    .day-strip {
        padding-inline: 24px 64px;
        margin: 0;
    }

    .buttons {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.page-detail__main {
    width: min(100%, 880px);
    margin: 0 auto;
    padding: 20px 16px 48px;
}

.site-credit {
    width: min(100%, 880px);
    margin: 0 auto;
    padding: 0 16px 28px;
}

.page-home .site-credit {
    width: min(100%, 760px);
    padding-bottom: calc(148px + var(--safe-bottom));
}

.site-credit__inner {
    display: inline-flex;
    flex-flow: column;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    padding: 10px 0 0;
}

.site-credit__text {
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
    text-align: center;
    opacity: 0;
    transform: translateY(8px);
    animation: site-credit-text-loop 7.2s ease-in-out infinite;
}

.site-credit__label {
    color: rgba(77, 49, 43, 0.62);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-credit__name {
    color: rgba(77, 49, 43, 0.84);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.site-credit__logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: clamp(90px, 18vw, 118px);
    padding-left: 14px;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-6px);
    animation: site-credit-logo-loop 7.2s ease-in-out infinite;
    overflow: hidden;
}

.site-credit__logo img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.88) contrast(1.02) opacity(0.86);
}

@keyframes site-credit-text-loop {

    0%,
    8% {
        opacity: 0;
        transform: translateY(8px);
    }

    14%,
    68% {
        opacity: 1;
        transform: translateY(0);
    }

    86%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes site-credit-logo-loop {

    0%,
    20% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translateX(-6px);
    }

    30%,
    74% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }

    90%,
    100% {
        opacity: 0;
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}

.page-detail--martin {
    --detail-grid-left: 1.15fr;
    --detail-grid-right: 0.85fr;
    --detail-media-min-height: 280px;
    --detail-media-ratio: 1 / 1.08;
    --detail-media-position: center center;
    --detail-mobile-ratio: 16 / 10;
}

.page-detail--teresina {
    --detail-grid-left: 1.1fr;
    --detail-grid-right: 0.78fr;
    --detail-media-min-height: 320px;
    --detail-media-ratio: 4 / 5;
    --detail-media-position: center top;
    --detail-mobile-ratio: 16 / 11;
}

.page-detail--not-found {
    --detail-grid-left: 1fr;
    --detail-grid-right: 1fr;
    --detail-media-min-height: 0;
    --detail-media-ratio: auto;
    --detail-media-position: center center;
    --detail-mobile-ratio: auto;
}

.detail-hero,
.detail-card {
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.detail-hero {
    padding: 22px;
    margin-bottom: 18px;
}

.detail-hero__grid {
    display: grid;
    grid-template-columns: minmax(0, var(--detail-grid-left, 1.15fr)) minmax(220px, var(--detail-grid-right, 0.85fr));
    gap: 20px;
    align-items: center;
}

.detail-hero__content,
.detail-hero__media {
    min-width: 0;
}

.detail-hero__media {
    position: relative;
}

.detail-hero__media-frame {
    overflow: hidden;
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 248, 240, 0.92), rgba(247, 234, 219, 0.72));
    border: 1px solid rgba(255, 255, 255, 0.82);
    box-shadow: 0 16px 36px rgba(77, 49, 43, 0.12);
}

.detail-hero__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: var(--detail-media-min-height, 280px);
    aspect-ratio: var(--detail-media-ratio, 1 / 1.08);
    object-fit: cover;
    object-position: var(--detail-media-position, center center);
}

.detail-eyebrow {
    margin: 0 0 6px;
    color: var(--accent-dark);
    font-family: var(--font-display);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.detail-title,
.detail-heading {
    font-family: var(--font-display);
    letter-spacing: 0.02em;
}

.detail-title {
    margin: 0;
    color: var(--accent);
    font-size: clamp(2.4rem, 8vw, 4.4rem);
    line-height: 0.94;
    text-transform: none;
    -webkit-text-stroke: 2px rgba(255, 255, 255, 0.9);
    paint-order: stroke fill;
}

.detail-intro {
    max-width: 680px;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.6;
    font-weight: 700;
}

.detail-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 16px;
}

.detail-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 16px;
    font-weight: 800;
    text-decoration: none;
    border: 1px solid transparent;
}

.detail-button--primary {
    background: var(--text);
    color: #fff;
}

.detail-button--secondary {
    background: var(--bg-soft);
    border-color: var(--border);
    color: var(--accent-dark);
}

.detail-layout {
    display: grid;
    gap: 18px;
}

.detail-card {
    padding: 20px;
}

.detail-heading {
    margin: 0 0 10px;
    font-size: 1.8rem;
    line-height: 1;
}

.detail-card p {
    margin: 0;
    line-height: 1.7;
    color: var(--text);
}

.detail-copy {
    display: grid;
    gap: 14px;
}

.detail-timeline {
    display: grid;
    gap: 10px;
}

.detail-timeline__item {
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid var(--border);
    background: var(--bg-soft);
}

.detail-timeline__item strong {
    display: block;
    margin-bottom: 4px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.02em;
    color: var(--accent-dark);
}

.detail-source {
    color: var(--muted);
    font-size: 0.94rem;
}

.detail-source a {
    color: var(--accent-dark);
    font-weight: 800;
}

.detail-card--not-found {
    display: grid;
    gap: 14px;
    text-align: left;
}

@media (max-width: 760px) {
    .detail-hero__grid {
        grid-template-columns: 1fr;
    }

    .detail-hero__media {
        order: -1;
    }

    .detail-hero__media img {
        min-height: 0;
        aspect-ratio: var(--detail-mobile-ratio, 16 / 10);
    }
}


.site-credit {
    width: min(100%, 880px);
    margin: 0 auto;
    padding: 0 16px 28px;
    text-align: center;
}

.site-credit a {
    text-decoration: none;
}

.page-home .site-credit {
    width: min(100%, 760px);
    padding-bottom: calc(148px + var(--safe-bottom));
}

.site-credit__inner {
    display: inline-flex;
    align-items: center;
    gap: 14px;
    max-width: 100%;
    padding: 10px 0 0;
}

.site-credit__text {
    margin: 0;
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0 8px;
    text-align: left;
    opacity: 0;
    transform: translateY(8px);
    animation: site-credit-text-loop 7.2s ease-in-out infinite;
}

.site-credit__label {
    color: rgba(77, 49, 43, 0.62);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.site-credit__name {
    color: rgba(77, 49, 43, 0.84);
    font-size: 0.88rem;
    font-weight: 800;
    line-height: 1.45;
    letter-spacing: 0.01em;
}

.site-credit__logo {
    display: inline-flex;
    align-items: center;
    flex: 0 0 auto;
    width: clamp(90px, 18vw, 118px);
    padding-left: 14px;
    opacity: 0;
    clip-path: inset(0 100% 0 0);
    transform: translateX(-6px);
    animation: site-credit-logo-loop 7.2s ease-in-out infinite;
    overflow: hidden;
}

.site-credit__logo img {
    display: block;
    width: 100%;
    height: auto;
    filter: saturate(0.88) contrast(1.02) opacity(0.86);
}

@keyframes site-credit-text-loop {

    0%,
    8% {
        opacity: 0;
        transform: translateY(8px);
    }

    14%,
    68% {
        opacity: 1;
        transform: translateY(0);
    }

    86%,
    100% {
        opacity: 0;
        transform: translateY(0);
    }
}

@keyframes site-credit-logo-loop {

    0%,
    20% {
        opacity: 0;
        clip-path: inset(0 100% 0 0);
        transform: translateX(-6px);
    }

    30%,
    74% {
        opacity: 1;
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }

    90%,
    100% {
        opacity: 0;
        clip-path: inset(0 0 0 0);
        transform: translateX(0);
    }
}
