/* ============================================================
   maid.day — Victorian Scholastic Glamour Meets Neon-Lit Modernity
   Color Palette:
     #1C1108 — Near-black ink brown (primary dark bg)
     #2E1E0A — Deep walnut (secondary dark, nav, card backs)
     #F5C842 — Neon amber gold (primary accent, glow)
     #E8D5A3 — Warm parchment (text on dark, card fronts)
     #C8A96E — Honeyed sand (secondary text, ornament)
     #6B3F1A — Burnt sienna (SVG ornament fills)
     #F9F3E3 — Off-white ivory (light surface sections)
   Fonts:
     Playfair Display SC — headings, hero, logotype
     IM Fell English — body, pull-quotes, captions
     Space Grotesk — nav, labels, card-back bullets
   ============================================================ */

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

html {
    scroll-behavior: smooth;
}

body {
    background-color: #1C1108;
    color: #E8D5A3;
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
}

/* ============================================================
   FIXED MINIMAL NAV
   ============================================================ */
#site-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 40px;
    background: rgba(28, 17, 8, 0.92);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid rgba(245, 200, 66, 0.15);
    opacity: 0;
    transition: opacity 0.4s ease;
}

#site-nav.nav-visible {
    opacity: 1;
}

.nav-logo {
    font-family: 'Playfair Display SC', serif;
    font-weight: 400;
    font-size: 14px;
    letter-spacing: 0.12em;
    color: #E8D5A3;
    text-transform: lowercase;
    font-variant: small-caps;
}

.nav-contact {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C8A96E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.nav-contact:hover {
    color: #F5C842;
}

/* ============================================================
   ACT I: THE FOYER (HERO)
   ============================================================ */
.act-foyer {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    background-color: #1C1108;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.foyer-inner {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 40px;
}

.foyer-lockup {
    text-align: center;
    position: relative;
    z-index: 2;
}

/* Hero title: ~160px desktop, scales down on smaller viewports */
.hero-title {
    font-family: 'Playfair Display SC', serif;
    font-weight: 900;
    font-size: clamp(72px, 12vw, 160px);
    letter-spacing: -0.01em;
    color: #E8D5A3;
    line-height: 1;
    opacity: 0;
    transform: scale(0.96);
    /* glow animation applied via JS class */
    text-shadow:
        0 0 40px rgba(245, 200, 66, 0),
        0 0 80px rgba(245, 200, 66, 0);
    transition:
        opacity 0.8s ease,
        transform 0.8s ease;
}

.hero-title.hero-loaded {
    opacity: 1;
    transform: scale(1.0);
}

.hero-title.hero-glow {
    text-shadow:
        0 0 40px rgba(245, 200, 66, 0.7),
        0 0 80px rgba(245, 200, 66, 0.3);
}

.hero-rule {
    width: 100%;
    height: 2px;
    background: #F5C842;
    margin: 28px auto;
    max-width: 800px;
    opacity: 0;
    box-shadow:
        0 0 8px #F5C842,
        0 0 20px rgba(245, 200, 66, 0.4);
    transition: opacity 0.6s ease 0.6s;
}

.hero-rule.rule-visible {
    opacity: 1;
}

.hero-tagline {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 22px;
    color: #E8D5A3;
    max-width: 640px;
    margin: 0 auto;
    opacity: 0;
    transition: opacity 0.6s ease 0.9s;
}

.hero-tagline.tagline-visible {
    opacity: 1;
}

/* Ornamental mark (top-left of foyer) */
.foyer-ornament {
    position: absolute;
    top: 48px;
    left: 48px;
    z-index: 2;
    opacity: 0.85;
}

/* Corner flourishes */
.foyer-corner-tl,
.foyer-corner-tr,
.foyer-corner-bl,
.foyer-corner-br {
    position: absolute;
    z-index: 2;
    opacity: 0.6;
}

.foyer-corner-tl {
    top: 20px;
    left: 20px;
}

.foyer-corner-tr {
    top: 20px;
    right: 20px;
}

.foyer-corner-bl {
    bottom: 20px;
    left: 20px;
}

.foyer-corner-br {
    bottom: 20px;
    right: 20px;
}

/* ============================================================
   ACT II: THE CARD CATALOG
   ============================================================ */
.act-catalog {
    background-color: #2E1E0A;
    padding: 100px 40px 120px;
}

.catalog-heading {
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: 36px;
    color: #E8D5A3;
    text-align: center;
    letter-spacing: 0.12em;
    margin-bottom: 72px;
}

.catalog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

/* Flip Card */
.flip-card {
    perspective: 1200px;
    height: 520px;
    will-change: transform;
    opacity: 0;
    transform: translateY(32px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.flip-card.card-visible {
    opacity: 1;
    transform: translateY(0);
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 600ms cubic-bezier(0.4, 0.0, 0.2, 1.0);
    will-change: transform;
}

.flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    border-radius: 0;
}

/* Card Front */
.flip-card-front {
    background-color: #E8D5A3;
    border: 2px solid #6B3F1A;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 0 0px rgba(245, 200, 66, 0);
    transition: box-shadow 0.3s ease;
}

.flip-card:hover .flip-card-front {
    box-shadow: inset 0 0 12px rgba(245, 200, 66, 0.15);
}

/* SVG Border overlay */
.card-border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
}

.card-front-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 40px;
}

.card-icon {
    display: block;
    flex-shrink: 0;
}

.card-label {
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: 22px;
    letter-spacing: 0.08em;
    color: #2E1E0A;
    margin: 0;
}

.card-caption {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: #6B3F1A;
    letter-spacing: 0.02em;
}

/* Card Back */
.flip-card-back {
    background-color: #1C1108;
    border: 2px solid #6B3F1A;
    transform: rotateY(180deg);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 48px 40px;
    gap: 32px;
}

.card-back-title {
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: 20px;
    color: #F5C842;
    letter-spacing: 0.08em;
    text-shadow:
        0 0 8px #F5C842,
        0 0 20px rgba(245, 200, 66, 0.4);
}

.card-back-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.card-back-list li {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #E8D5A3;
    padding-left: 20px;
    position: relative;
}

.card-back-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 6px;
    height: 6px;
    background: #F5C842;
    transform: translateY(-50%) rotate(45deg);
    box-shadow: 0 0 4px #F5C842;
}

/* ============================================================
   ACT III: THE READING ROOM
   ============================================================ */
.act-reading {
    background-color: #F9F3E3;
    padding: 100px 40px 120px;
}

.reading-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
}

.pull-quote {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 32px;
    color: #2E1E0A;
    line-height: 1.4;
    border-left: 3px solid #F5C842;
    padding-left: 28px;
    margin-bottom: 40px;
    box-shadow: -3px 0 8px rgba(245, 200, 66, 0.3);
}

.reading-rule {
    width: 80px;
    height: 1px;
    background: #F5C842;
    margin-bottom: 36px;
    box-shadow:
        0 0 8px #F5C842,
        0 0 20px rgba(245, 200, 66, 0.4);
}

.reading-body {
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 17px;
    color: #2E1E0A;
    line-height: 1.75;
    margin-bottom: 24px;
    max-width: 700px;
}

/* Detail Modules */
.reading-detail-col {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.detail-module {
    border-left: 2px solid rgba(245, 200, 66, 0.4);
    padding: 20px 24px;
    background: rgba(200, 169, 110, 0.08);
}

.detail-heading {
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: 16px;
    letter-spacing: 0.08em;
    color: #2E1E0A;
    margin-bottom: 12px;
}

.detail-body {
    font-family: 'IM Fell English', Georgia, serif;
    font-size: 15px;
    color: #2E1E0A;
    line-height: 1.7;
}

/* ============================================================
   ACT IV: THE CATALOG STRIP
   ============================================================ */
/*
   Catalog strip: 200px tall, sits between Reading Room and Registry.
   Tiled acanthus pattern: 240px × 60px tile, stroked in #6B3F1A.
   Rule above/below strip: (2px amber glow border).
   Card diamond marker: `#F5C842` SVG marker (4px × 4px, rotated 45°).
   Google Fonts: Playfair Display SC (Google Fonts), Space Grotesk (Google Fonts).
   preceded by diamond bullet. desktop layout: 3-column grid.
*/
.act-strip {
    background-color: #1C1108;
    height: 200px;
    overflow: hidden;
    display: flex;
    align-items: center;
    position: relative;
}

.strip-pattern {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
}

.acanthus-tile {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 80px;
    /* Repeat via background */
}

/* We'll tile using CSS background approach via pseudo-element */
.act-strip::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    /* top and bottom amber rules */
    border-top: 1px solid rgba(245, 200, 66, 0.3);
    border-bottom: 1px solid rgba(245, 200, 66, 0.3);
    pointer-events: none;
}

.strip-pattern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(107, 63, 26, 0.5);
    transform: translateY(-1px);
}

.strip-pattern::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(107, 63, 26, 0.5);
    transform: translateY(1px);
}

/* ============================================================
   ACT V: THE REGISTRY (FOOTER)
   ============================================================ */
.act-registry {
    background-color: #1C1108;
    padding: 0 40px 40px;
    position: relative;
}

.registry-rule {
    width: 100%;
    height: 1px;
    background: #F5C842;
    box-shadow:
        0 0 8px #F5C842,
        0 0 20px rgba(245, 200, 66, 0.4);
    margin-bottom: 60px;
}

.registry-inner {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: start;
    margin-bottom: 60px;
}

.registry-logotype {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 20px;
}

.registry-mark {
    flex-shrink: 0;
}

.registry-name {
    font-family: 'Playfair Display SC', serif;
    font-weight: 700;
    font-size: 28px;
    letter-spacing: 0.04em;
    color: #E8D5A3;
}

.registry-tagline {
    font-family: 'IM Fell English', Georgia, serif;
    font-style: italic;
    font-size: 15px;
    color: #C8A96E;
    max-width: 320px;
    line-height: 1.6;
}

.registry-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-end;
}

.registry-link {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #C8A96E;
    text-decoration: none;
    transition: color 0.2s ease;
}

.registry-link:hover {
    color: #F5C842;
}

.registry-copyright {
    max-width: 1200px;
    margin: 0 auto;
    border-top: 1px solid rgba(107, 63, 26, 0.4);
    padding-top: 24px;
}

.registry-copyright span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #6B3F1A;
    text-transform: uppercase;
}

/* ============================================================
   STRIP ACANTHUS — SVG TILE REPEATING
   ============================================================ */
.strip-pattern {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='60' viewBox='0 0 240 60'%3E%3Crect width='240' height='60' fill='none'/%3E%3Cellipse cx='120' cy='30' rx='18' ry='12' fill='none' stroke='%236B3F1A' stroke-width='1'/%3E%3Cellipse cx='120' cy='30' rx='10' ry='6' fill='none' stroke='%236B3F1A' stroke-width='0.8'/%3E%3Ccircle cx='120' cy='30' r='2' fill='%236B3F1A'/%3E%3Cpath d='M102 30 C90 24 76 28 72 20 C68 14 72 8 80 10 C70 14 68 20 78 22 C86 24 96 22 102 30 Z' fill='%236B3F1A' opacity='0.7'/%3E%3Cpath d='M102 30 C90 36 76 32 72 40 C68 46 72 52 80 50 C70 46 68 40 78 38 C86 36 96 38 102 30 Z' fill='%236B3F1A' opacity='0.7'/%3E%3Cpath d='M138 30 C150 24 164 28 168 20 C172 14 168 8 160 10 C170 14 172 20 162 22 C154 24 144 22 138 30 Z' fill='%236B3F1A' opacity='0.7'/%3E%3Cpath d='M138 30 C150 36 164 32 168 40 C172 46 168 52 160 50 C170 46 172 40 162 38 C154 36 144 38 138 30 Z' fill='%236B3F1A' opacity='0.7'/%3E%3Cline x1='0' y1='4' x2='240' y2='4' stroke='%236B3F1A' stroke-width='0.5'/%3E%3Cline x1='0' y1='56' x2='240' y2='56' stroke='%236B3F1A' stroke-width='0.5'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    background-size: 240px 60px;
}

/* Hide inline SVG in strip since we use bg image */
.acanthus-tile {
    display: none;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
    .catalog-grid {
        grid-template-columns: 1fr;
        max-width: 420px;
    }

    .flip-card {
        height: 480px;
    }

    .reading-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .registry-inner {
        grid-template-columns: 1fr;
        gap: 48px;
    }

    .registry-links {
        align-items: flex-start;
    }

    .pull-quote {
        font-size: 24px;
    }

    #site-nav {
        padding: 12px 20px;
    }

    .foyer-ornament {
        top: 24px;
        left: 24px;
    }

    .act-catalog {
        padding: 80px 24px 100px;
    }

    .act-reading {
        padding: 80px 24px 100px;
    }

    .act-registry {
        padding: 0 24px 40px;
    }
}

@media (max-width: 600px) {
    .catalog-heading {
        font-size: 26px;
    }

    .hero-rule {
        max-width: 90%;
    }
}
