/* historic.day - art-deco theatre of history */
/* Fonts: 'Playfair Display' (700), 'Lora' (400, 400italic), 'Poiret One' (400) */

:root {
    --bg: #1a1820;
    --gold: #c9a84c;
    --gold-light: #e8d08a;
    --gold-dim: #8a7a4a;
    --ivory: #f0e8d8;
    --cream: #d8d0c0;
    --velvet: #22202a;
    --rose: #c4756e;
    --burgundy: #3d1c28;
    --night: #22202a;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    background: var(--bg);
    color: var(--ivory);
    font-family: "Lora", Georgia, serif;
    line-height: 1.7;
    min-height: 100%;
    overflow-x: hidden;
}

body {
    background:
        radial-gradient(ellipse at top, rgba(201,168,76,0.05), transparent 60%),
        radial-gradient(ellipse at bottom, rgba(196,117,110,0.04), transparent 60%),
        var(--bg);
    padding: 24px;
}

/* ---------------------------------------- */
/* PAGE FRAME (full-page art-deco border)   */
/* ---------------------------------------- */
.page-frame {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    padding: 80px 48px;
}

.page-frame__svg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.page-frame > *:not(.page-frame__svg) {
    position: relative;
    z-index: 1;
}

/* ---------------------------------------- */
/* MASTHEAD                                 */
/* ---------------------------------------- */
.masthead {
    text-align: center;
    padding: 24px 0 48px;
}

.masthead__rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--gold) 20%, var(--gold) 80%, transparent);
    margin: 14px auto;
    max-width: 480px;
    position: relative;
}
.masthead__rule::before, .masthead__rule::after {
    content: "";
    position: absolute;
    top: -3px;
    width: 7px; height: 7px;
    background: var(--gold);
    transform: rotate(45deg);
}
.masthead__rule::before { left: calc(50% - 60px); }
.masthead__rule::after { right: calc(50% - 60px); }

.masthead__title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    margin: 8px 0;
}

.masthead__star {
    color: var(--gold);
    font-size: 1.1rem;
    letter-spacing: 0.4em;
}

.masthead__brand {
    font-family: "Poiret One", "Playfair Display", serif;
    font-weight: 400;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 6s linear infinite;
}

.masthead__sub {
    font-family: "Lora", serif;
    font-style: italic;
    color: var(--cream);
    font-size: 0.85rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    opacity: 0.85;
}

/* ---------------------------------------- */
/* HERO - The Date Theatre                  */
/* ---------------------------------------- */
.hero {
    position: relative;
    margin: 32px auto 64px;
    max-width: 880px;
    aspect-ratio: 800/520;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    animation: heroBreathe 7s ease-in-out infinite;
}

@keyframes heroBreathe {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.005); }
}

.hero__sunburst {
    position: absolute;
    inset: 0;
    background: repeating-conic-gradient(from 0deg at 50% 50%,
        rgba(201,168,76,0.10) 0deg 2deg,
        transparent 2deg 12deg);
    animation: rotateSlow 240s linear infinite;
    pointer-events: none;
}

@keyframes rotateSlow {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.hero__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.hero__inner {
    position: relative;
    text-align: center;
    padding: 0 48px;
    z-index: 2;
}

.hero__overline {
    font-family: "Poiret One", serif;
    font-size: 0.85rem;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--rose);
    margin-bottom: 18px;
}

.hero__day {
    font-family: "Poiret One", "Playfair Display", serif;
    font-weight: 400;
    font-size: clamp(2.5rem, 6vw, 5rem);
    letter-spacing: 0.08em;
    color: var(--gold);
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
    line-height: 1.05;
}

.hero__rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    margin: 22px auto;
}
.hero__rule span {
    height: 1px;
    width: 70px;
    background: var(--gold);
}
.hero__rule i {
    font-style: normal;
    color: var(--gold);
    font-size: 1rem;
}

.hero__full {
    font-family: "Playfair Display", serif;
    font-weight: 400;
    font-style: italic;
    font-size: clamp(0.95rem, 1.6vw, 1.1rem);
    color: var(--ivory);
    letter-spacing: 0.05em;
    margin-bottom: 18px;
}

.hero__tag {
    font-family: "Poiret One", serif;
    font-size: 0.8rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    color: var(--gold-dim);
}

/* ---------------------------------------- */
/* PRELUDE                                  */
/* ---------------------------------------- */
.prelude {
    max-width: 720px;
    margin: 56px auto 64px;
    text-align: center;
    padding: 0 24px;
}

.prelude__line {
    height: 0;
    border-top: 1px solid var(--gold);
    border-bottom: 1px solid var(--gold);
    height: 4px;
    margin: 16px auto;
    width: 240px;
}

.prelude__text {
    font-family: "Lora", serif;
    font-style: italic;
    font-size: 1.05rem;
    color: var(--cream);
    line-height: 1.9;
    padding: 12px 0;
}

/* ---------------------------------------- */
/* CENTURY BAND                             */
/* ---------------------------------------- */
.century-band {
    position: relative;
    background: var(--burgundy);
    margin: 72px -16px 48px;
    padding: 0;
    text-align: center;
    box-shadow: 0 0 0 1px var(--gold-dim) inset;
}

.century-band__steps {
    height: 14px;
    background-image:
        linear-gradient(45deg, var(--gold) 25%, transparent 25%),
        linear-gradient(-45deg, var(--gold) 25%, transparent 25%);
    background-size: 14px 14px;
    background-position: 0 0, 7px 0;
    opacity: 0.55;
}

.century-band__steps--top { border-bottom: 1px solid var(--gold-dim); }
.century-band__steps--bottom { border-top: 1px solid var(--gold-dim); }

.century-band__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 28px;
    padding: 28px 24px;
}

.century-band__numeral {
    font-family: "Poiret One", serif;
    color: var(--gold);
    letter-spacing: 0.3em;
    font-size: 1.2rem;
    opacity: 0.8;
}

.century-band__title {
    font-family: "Poiret One", "Playfair Display", serif;
    font-weight: 400;
    color: var(--ivory);
    font-size: 1.25rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

/* ---------------------------------------- */
/* EVENT CARD                               */
/* ---------------------------------------- */
.archive { padding: 8px 0; }

.event-card {
    position: relative;
    background: var(--velvet);
    border: 1px solid var(--gold-dim);
    max-width: 700px;
    margin: 60px auto;
    padding: 48px 56px;
    text-align: center;
    transition: transform 600ms ease, box-shadow 600ms ease;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 36px rgba(201,168,76,0.10), 0 0 0 1px var(--gold) inset;
}

.event-card__frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.event-card__inner {
    position: relative;
    z-index: 1;
}

.event-card__year {
    font-family: "Poiret One", serif;
    font-size: 2.2rem;
    color: var(--gold);
    letter-spacing: 0.16em;
    line-height: 1;
}

.event-card__title {
    font-family: "Playfair Display", serif;
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--ivory);
    margin: 18px 0 16px;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

.event-card__body {
    font-family: "Lora", serif;
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--cream);
    max-width: 540px;
    margin: 0 auto;
}

.event-card__rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 22px auto 14px;
    width: 220px;
}
.event-card__rule i {
    flex: 1;
    height: 1px;
    background: var(--gold-dim);
}
.event-card__rule b {
    flex: 1;
    height: 3px;
    background: var(--gold);
    max-width: 80px;
}

.event-card__caption {
    font-family: "Lora", serif;
    font-style: italic;
    font-size: 0.82rem;
    color: var(--rose);
    letter-spacing: 0.08em;
}

/* ---------------------------------------- */
/* ARCHIVE PICK / CALENDAR                  */
/* ---------------------------------------- */
.archive-pick {
    position: relative;
    margin: 88px auto 48px;
    max-width: 720px;
    padding: 36px 24px 48px;
    text-align: center;
    background: rgba(34,32,42,0.5);
    border: 1px solid var(--gold-dim);
}

.archive-pick__band-top, .archive-pick__band-bottom {
    position: absolute;
    left: 0;
    right: 0;
    height: 8px;
    background-image:
        linear-gradient(45deg, var(--gold) 25%, transparent 25%),
        linear-gradient(-45deg, var(--gold) 25%, transparent 25%);
    background-size: 8px 8px;
    background-position: 0 0, 4px 0;
    opacity: 0.5;
}
.archive-pick__band-top { top: -1px; }
.archive-pick__band-bottom { bottom: -1px; }

.archive-pick__title {
    font-family: "Poiret One", serif;
    font-size: 1.8rem;
    letter-spacing: 0.22em;
    color: var(--gold);
    text-transform: uppercase;
    margin-bottom: 8px;
}

.archive-pick__sub {
    font-family: "Lora", serif;
    font-style: italic;
    color: var(--cream);
    margin-bottom: 28px;
    font-size: 0.95rem;
}

.archive-pick__calendar {
    max-width: 480px;
    margin: 0 auto;
    border: 1px solid var(--gold-dim);
    padding: 20px;
    background: var(--velvet);
}

.archive-pick__monthbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--gold-dim);
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.archive-pick__nav {
    background: transparent;
    border: 1px solid var(--gold-dim);
    color: var(--gold);
    font-size: 0.9rem;
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: background 200ms ease, color 200ms ease;
    font-family: inherit;
}
.archive-pick__nav:hover {
    background: var(--gold);
    color: var(--bg);
}

.archive-pick__month {
    font-family: "Poiret One", serif;
    color: var(--gold);
    letter-spacing: 0.2em;
    font-size: 1rem;
}

.archive-pick__weekrow {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
    margin-bottom: 6px;
}
.archive-pick__weekrow span {
    font-family: "Poiret One", serif;
    font-size: 0.7rem;
    letter-spacing: 0.18em;
    color: var(--gold-dim);
    text-transform: uppercase;
    padding: 4px 0;
}

.archive-pick__grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}

.day-cell {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: "Lora", serif;
    font-size: 0.85rem;
    color: var(--cream);
    background: rgba(58,28,40,0.0);
    border: 1px solid transparent;
    cursor: pointer;
    transition: border-color 200ms ease, background 200ms ease, color 200ms ease;
    user-select: none;
}
.day-cell.empty {
    visibility: hidden;
    cursor: default;
}
.day-cell:hover {
    border-color: var(--gold);
    color: var(--gold);
}
.day-cell.is-today {
    color: var(--gold);
    border-color: var(--gold-dim);
    background: rgba(201,168,76,0.06);
}
.day-cell.is-selected {
    background: var(--burgundy);
    color: var(--gold-light);
    border-color: var(--gold);
}

.archive-pick__hint {
    margin-top: 22px;
    font-family: "Lora", serif;
    font-style: italic;
    color: var(--rose);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

/* ---------------------------------------- */
/* CURTAIN / FOOTER                         */
/* ---------------------------------------- */
.curtain {
    text-align: center;
    padding: 64px 16px 24px;
}

.curtain__rule {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 24px;
    max-width: 320px;
}
.curtain__rule i {
    flex: 1;
    height: 1px;
    background: var(--gold-dim);
}
.curtain__rule b {
    flex: 1;
    max-width: 100px;
    height: 3px;
    background: var(--gold);
}

.curtain__line {
    font-family: "Lora", serif;
    font-style: italic;
    color: var(--cream);
    letter-spacing: 0.18em;
    margin-bottom: 14px;
}

.curtain__brand {
    font-family: "Poiret One", serif;
    font-size: 1.4rem;
    letter-spacing: 0.32em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 5s linear infinite;
    margin-bottom: 8px;
}

.curtain__small {
    font-family: "Poiret One", serif;
    font-size: 0.75rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--gold-dim);
}

/* ---------------------------------------- */
/* SHIMMER                                  */
/* ---------------------------------------- */
.shimmer {
    background: linear-gradient(135deg, var(--gold) 0%, var(--gold-light) 50%, var(--gold) 100%);
    background-size: 200% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shimmer 4s linear infinite;
}

@keyframes shimmer {
    0%   { background-position: -200% 0; }
    100% { background-position:  200% 0; }
}

/* Reveal animation */
.reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 900ms ease, transform 900ms ease;
}
.reveal.is-in {
    opacity: 1;
    transform: translateY(0);
}

/* ---------------------------------------- */
/* RESPONSIVE                               */
/* ---------------------------------------- */
@media (max-width: 720px) {
    body { padding: 12px; }
    .page-frame { padding: 56px 20px; }
    .event-card { padding: 36px 22px; margin: 40px auto; }
    .century-band { margin: 56px -8px 32px; }
    .century-band__inner { gap: 16px; padding: 22px 12px; }
    .century-band__numeral { font-size: 1rem; }
    .century-band__title { font-size: 1rem; }
    .masthead__brand { font-size: 1.4rem; letter-spacing: 0.24em; }
    .archive-pick { padding: 28px 12px 40px; }
    .archive-pick__calendar { padding: 14px; }
    .day-cell { font-size: 0.75rem; }
    .hero__inner { padding: 0 24px; }
}
