/* Obsidian (Luxury) Template Styles */

/* Font Imports */
@import url('https://fonts.googleapis.com/css2?family=Tenor+Sans&family=Cormorant+Garamond:ital,wght@1,300&family=Jost:wght@300&family=DM+Mono:wght@400&display=swap');

:root {
    /* Colors - Dark Luxury Palette */
    --color-bg: #0D0D0D;
    --color-bg-elevated: #171717;
    --color-bg-subtle: #1F1F1F;

    /* Text */
    --color-text-primary: #FFFFFF;
    --color-text-muted: rgba(255, 255, 255, 0.65);
    --color-text-dim: rgba(255, 255, 255, 0.35);

    /* Gold Accents */
    --color-gold: #C9A84C;
    --color-gold-light: #E2C06E;
    --color-gold-dim: rgba(201, 168, 76, 0.3);

    /* Borders */
    --color-border: rgba(255, 255, 255, 0.08);
    --color-border-gold: rgba(201, 168, 76, 0.25);

    /* Fonts */
    --font-display: 'Tenor Sans', sans-serif;
    --font-accent: 'Cormorant Garamond', serif;
    --font-body: 'Jost', sans-serif;
    --font-mono: 'DM Mono', monospace;
}

/* Base Settings */
body {
    background-color: var(--color-bg);
    color: var(--color-text-primary);
    font-family: var(--font-body);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

/* Typography Classes */
.font-display {
    font-family: var(--font-display);
}

.font-accent {
    font-family: var(--font-accent);
}

.font-body {
    font-family: var(--font-body);
}

.font-mono {
    font-family: var(--font-mono);
}

/* Ken Burns Animation */
@keyframes kenBurns {
    from {
        transform: scale(1.0) translateX(0);
    }

    to {
        transform: scale(1.06) translateX(-1%);
    }
}

.animate-ken-burns {
    animation: kenBurns 20s ease-in-out infinite alternate;
}

/* Vignette Overlay */
.hero-vignette {
    background: radial-gradient(ellipse at center,
            transparent 40%,
            rgba(0, 0, 0, 0.7) 100%);
}

/* Reveal Animation */
.reveal {
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 1.4s cubic-bezier(0.16, 1, 0.3, 1), transform 1.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger Delays */
.delay-100 {
    transition-delay: 0.1s;
}

.delay-200 {
    transition-delay: 0.2s;
}

.delay-300 {
    transition-delay: 0.3s;
}

.delay-500 {
    transition-delay: 0.5s;
}

/* Interactive Elements */
a,
button {
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Card Hover */
.card-hover {
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.card-hover:hover {
    border-color: var(--color-gold);
    box-shadow: 0 0 40px rgba(201, 168, 76, 0.08);
}

/* Slot Machine Digit Animation */
.slot-wrapper {
    display: inline-block;
    height: 1em;
    /* Matches line-height usually, or strictly defined */
    line-height: 1;
    overflow: hidden;
    vertical-align: bottom;
}

.slot-digit {
    display: block;
    height: 1em;
    line-height: 1;
    will-change: margin-top;
}

/* Horizontal Line Animation */
.draw-line {
    width: 0;
    transition: width 1.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.draw-line.is-visible {
    width: 100%;
}

/* Asymmetric Gallery Grid */
.gallery-grid-asymmetric {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 16px;
}

@media (min-width: 768px) {
    .gallery-grid-asymmetric {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 350px);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border: 1px solid transparent;
    /* Start transparent for cleaner look */
    transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 1px solid var(--color-gold);
    opacity: 0;
    transform: scale(0.95);
    transition: all 0.5s ease;
    pointer-events: none;
    z-index: 2;
}

.gallery-item:hover::after {
    opacity: 1;
    transform: scale(1);
}

.gallery-item:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

/* Spanning Classes */
@media (min-width: 768px) {
    .gallery-item.span-2-row {
        grid-row: span 2;
    }

    .gallery-item.span-2-col {
        grid-column: span 2;
    }
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.5s ease;
    opacity: 0.7;
    filter: grayscale(100%);
}

.gallery-item:hover img {
    transform: scale(1.05);
    opacity: 1;
    filter: grayscale(0%);
}

/* Gold Border Utility */
.border-gold-gradient {
    border-image: linear-gradient(to right, transparent, var(--color-gold), transparent) 1;
}

/* Hero Sequence Visibility */
.hero-eyebrow.is-visible,
.hero-name-1.is-visible,
.hero-amp.is-visible,
.hero-name-2.is-visible,
.hero-date.is-visible {
    opacity: 1 !important;
    transform: translateY(0) !important;
}

.hero-line.is-visible {
    opacity: 1 !important;
    transform: scaleX(1) !important;
}

.hero-scroll.is-visible {
    opacity: 1 !important;
}

/* Premium refinement layer */
html,
body {
    min-height: 100%;
}

body {
    background:
        radial-gradient(circle at 15% 10%, rgba(201, 168, 76, 0.12), transparent 34%),
        radial-gradient(circle at 90% 20%, rgba(255, 255, 255, 0.04), transparent 40%),
        var(--color-bg);
    background-attachment: fixed;
    line-height: 1.7;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: 0.06;
    z-index: 4;
    background-image: url("data:image/svg+xml,%3Csvg width='180' height='180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='grain'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23grain)'/%3E%3C/svg%3E");
}

.luxury-hero {
    border-bottom: 1px solid rgba(201, 168, 76, 0.2);
}

.luxury-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.68) 100%);
}

.hero-eyebrow,
.hero-date {
    letter-spacing: 0.06em;
}

.hero-name-1,
.hero-name-2 {
    text-shadow: 0 20px 40px rgba(0, 0, 0, 0.48);
}

.luxury-countdown {
    background:
        linear-gradient(to bottom, rgba(31, 31, 31, 0.88), rgba(13, 13, 13, 0.94));
}

.luxury-countdown-unit {
    position: relative;
    padding: 20px 22px 14px;
    min-width: 118px;
    border: 1px solid rgba(201, 168, 76, 0.2);
    background: rgba(255, 255, 255, 0.01);
    box-shadow: 0 20px 36px rgba(0, 0, 0, 0.28);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}

.luxury-countdown-unit::before {
    content: '';
    position: absolute;
    top: 0;
    left: 18%;
    right: 18%;
    height: 1px;
    background: linear-gradient(to right, transparent, rgba(201, 168, 76, 0.6), transparent);
}

.luxury-countdown-unit:hover {
    transform: translateY(-6px);
    border-color: rgba(201, 168, 76, 0.52);
    box-shadow: 0 28px 46px rgba(0, 0, 0, 0.34);
}

.luxury-panel {
    position: relative;
    overflow: hidden;
}

.luxury-panel::before {
    content: '';
    position: absolute;
    inset: 16px;
    border: 1px solid rgba(201, 168, 76, 0.18);
    pointer-events: none;
}

.luxury-button {
    position: relative;
    overflow: hidden;
    text-shadow: 0 1px 0 rgba(0, 0, 0, 0.4);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.32);
}

.luxury-button::after {
    content: '→';
    margin-left: 10px;
    transition: transform 0.3s ease;
}

.luxury-button:hover::after {
    transform: translateX(4px);
}

.gallery-grid-asymmetric {
    gap: 18px;
}

.gallery-item {
    border-color: rgba(201, 168, 76, 0.12);
    box-shadow: 0 16px 30px rgba(0, 0, 0, 0.24);
    background: #0a0a0a;
}

.gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.36), transparent 48%);
    opacity: 0;
    transition: opacity 0.35s ease;
    pointer-events: none;
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

.gallery-item img {
    opacity: 0.8;
}

.luxury-card {
    border-radius: 16px;
    background:
        linear-gradient(145deg, rgba(31, 31, 31, 0.96), rgba(16, 16, 16, 0.96)) !important;
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
    transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.45s ease, box-shadow 0.45s ease;
}

.luxury-card:hover {
    transform: translateY(-8px);
    border-color: rgba(201, 168, 76, 0.58) !important;
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.36);
}

.luxury-info {
    background: rgba(0, 0, 0, 0.28);
    border: 1px solid rgba(201, 168, 76, 0.2);
    border-radius: 14px;
    padding: clamp(24px, 4vw, 36px);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.25);
}

.luxury-link {
    border-bottom-color: rgba(201, 168, 76, 0.45) !important;
}

.luxury-rsvp-card {
    border-radius: 16px;
    box-shadow: 0 26px 54px rgba(0, 0, 0, 0.4);
    background: linear-gradient(to bottom, #000, #0f0f0f);
}

.luxury-rsvp-card > div {
    border-color: rgba(201, 168, 76, 0.45) !important;
    border-radius: 14px;
}

.lcv-shell {
    border: 1px solid rgba(201, 168, 76, 0.26);
    border-radius: 14px;
    padding: clamp(14px, 2.6vw, 22px);
    background: linear-gradient(150deg, rgba(7, 7, 7, 0.92), rgba(15, 15, 15, 0.96));
}

.lcv-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
}

.lcv-chip {
    display: inline-flex;
    align-items: center;
    padding: 5px 10px;
    border-radius: 999px;
    border: 1px solid rgba(201, 168, 76, 0.4);
    color: rgba(201, 168, 76, 0.92);
    background: rgba(201, 168, 76, 0.08);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.lcv-note {
    margin: 0 0 10px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.lcv-status {
    margin: 0 0 14px;
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--color-text-dim);
}

.lcv-status[data-state="ready"] {
    color: var(--color-gold);
}

.lcv-status[data-state="error"] {
    color: #c78282;
}

.lcv-embed {
    width: 100%;
    display: block;
    min-height: 640px;
    border: 1px solid rgba(201, 168, 76, 0.26);
    border-radius: 10px;
    background: #0b0b0b;
    opacity: 1;
    transition: opacity 0.35s ease, filter 0.35s ease;
}

.lcv-shell.is-loading .lcv-embed {
    opacity: 0.4;
    filter: grayscale(0.35) blur(1px);
}

.lcv-shell.is-ready .lcv-embed {
    opacity: 1;
    filter: none;
}

.lcv-actions {
    margin-top: 12px;
    display: flex;
    justify-content: flex-end;
}

.lcv-actions a {
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-gold);
    border-bottom: 1px solid rgba(201, 168, 76, 0.4);
    padding-bottom: 2px;
}

.lcv-actions a:hover {
    color: #fff;
    border-bottom-color: rgba(255, 255, 255, 0.5);
}

.luxury-footer {
    background:
        linear-gradient(to top, rgba(201, 168, 76, 0.1), transparent 55%),
        var(--color-bg);
}

#lightbox-img {
    border-radius: 8px;
}

@media (max-width: 767px) {
    .luxury-hero {
        min-height: 90vh;
        padding-inline: 16px;
    }

    .luxury-countdown-unit {
        min-width: 132px;
    }

    .luxury-panel::before {
        inset: 10px;
    }

    .luxury-info {
        padding: 24px;
    }

    .lcv-embed {
        min-height: 560px;
    }

    .lcv-actions {
        justify-content: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    .animate-ken-burns,
    .reveal,
    .luxury-card,
    .luxury-countdown-unit,
    .gallery-item,
    .luxury-button {
        animation: none !important;
        transition: none !important;
    }
}
