/* ==========================================================================
   a6c.boo — Sepia-Tinted Neomorphic Archive
   ========================================================================== */

:root {
    --surface: #f0e6d3;
    --shadow-light: #fff8ee;
    --shadow-dark: #c4a882;
    --text-primary: #3d2e1f;
    --text-secondary: #7a6652;
    --accent: #b08d57;
    --sepia-overlay: #d4a76a;
    --deep-ground: #2a1f14;
    --radius-card: 16px;
    --radius-photo: 12px;
    --shadow-rest: 8px 8px 16px var(--shadow-dark), -8px -8px 16px var(--shadow-light);
    --shadow-hover: 12px 12px 24px var(--shadow-dark), -12px -12px 24px var(--shadow-light);
    --shadow-pressed: inset 6px 6px 12px var(--shadow-dark), inset -6px -6px 12px var(--shadow-light);
    --ease-tactile: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --photo-filter: sepia(0.6) saturate(0.8) brightness(1.05) contrast(0.95);
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    background-color: var(--surface);
    color: var(--text-primary);
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* ==========================================================================
   Grain Texture Overlay
   ========================================================================== */

#grain-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.035;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='256' height='256' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 256px 256px;
    mix-blend-mode: multiply;
}

/* ==========================================================================
   Hero Section — Opening Vista
   ========================================================================== */

.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4rem 3rem;
}

.hero-inner {
    max-width: 880px;
    width: 100%;
    text-align: center;
}

.hero-monogram {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-rest);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 2.25rem;
    transition: box-shadow 0.5s var(--ease-tactile),
                transform 0.5s var(--ease-tactile);
}

.hero-monogram:hover {
    box-shadow: var(--shadow-hover);
    transform: translateY(-3px);
}

.hero-monogram .monogram-letter {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 2.2rem;
    color: var(--accent);
    line-height: 1;
}

.hero-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: var(--text-primary);
    text-shadow: 2px 2px 4px var(--shadow-dark), -2px -2px 4px var(--shadow-light);
    margin-bottom: 1rem;
    letter-spacing: 0.02em;
}

.hero-subtitle {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.1rem, 2vw, 1.5rem);
    color: var(--text-secondary);
    letter-spacing: 0.04em;
    margin-bottom: 2.5rem;
}

.hero-frame {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-rest);
    padding: 16px;
    margin-bottom: 2rem;
    transition: transform 0.5s var(--ease-tactile),
                box-shadow 0.5s var(--ease-tactile);
}

.hero-frame:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.hero-photo {
    border-radius: var(--radius-photo);
    overflow: hidden;
    filter: var(--photo-filter);
}

.hero-photo svg,
.hero-photo img {
    display: block;
    width: 100%;
    height: auto;
}

/* Photo Corner Accents (album corners) */
.photo-corner {
    position: absolute;
    width: 14px;
    height: 14px;
    z-index: 2;
    pointer-events: none;
}

.photo-corner::before,
.photo-corner::after {
    content: '';
    position: absolute;
    background-color: var(--accent);
}

.photo-corner-tl { top: 6px; left: 6px; }
.photo-corner-tl::before { top: 0; left: 0; width: 14px; height: 1px; }
.photo-corner-tl::after  { top: 0; left: 0; width: 1px;  height: 14px; }

.photo-corner-tr { top: 6px; right: 6px; }
.photo-corner-tr::before { top: 0; right: 0; width: 14px; height: 1px; }
.photo-corner-tr::after  { top: 0; right: 0; width: 1px;  height: 14px; }

.photo-corner-bl { bottom: 6px; left: 6px; }
.photo-corner-bl::before { bottom: 0; left: 0; width: 14px; height: 1px; }
.photo-corner-bl::after  { bottom: 0; left: 0; width: 1px;  height: 14px; }

.photo-corner-br { bottom: 6px; right: 6px; }
.photo-corner-br::before { bottom: 0; right: 0; width: 14px; height: 1px; }
.photo-corner-br::after  { bottom: 0; right: 0; width: 1px;  height: 14px; }

.hero-meta {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--text-secondary);
    font-variant: small-caps;
    letter-spacing: 0.12em;
    margin-top: 0.75rem;
}

/* ==========================================================================
   Dot Separator
   ========================================================================== */

.dot-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 2.5rem 0;
}

.dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: var(--accent);
    box-shadow: 1px 1px 2px var(--shadow-dark), -1px -1px 2px var(--shadow-light);
}

.dot-separator-dark {
    background-color: var(--deep-ground);
}

.dot-separator-dark .dot {
    background-color: var(--sepia-overlay);
    box-shadow: none;
}

/* ==========================================================================
   Thin Horizontal Rule
   ========================================================================== */

.thin-rule {
    width: 60%;
    height: 1px;
    background-color: var(--text-secondary);
    opacity: 0.4;
    margin: 1.5rem auto 2.5rem;
}

.thin-rule-colophon {
    margin: 1.5rem auto;
    width: 40%;
}

/* ==========================================================================
   Archive Section
   ========================================================================== */

.archive-section {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 3rem 6rem;
}

.section-heading {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 4vw, 2.6rem);
    color: var(--text-primary);
    text-shadow: 1px 1px 2px var(--shadow-dark), -1px -1px 2px var(--shadow-light);
    text-align: center;
    margin-bottom: 0.75rem;
}

.section-sub {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    color: var(--text-secondary);
    text-align: center;
    max-width: 560px;
    margin: 0 auto;
}

/* ==========================================================================
   Card Grid
   ========================================================================== */

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* ==========================================================================
   Cards — Neomorphic
   ========================================================================== */

.card {
    background: var(--surface);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-rest);
    overflow: hidden;
    cursor: pointer;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease,
                transform 0.5s var(--ease-tactile),
                box-shadow 0.5s var(--ease-tactile);
    will-change: transform, box-shadow;
}

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

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
    transition: transform 0.4s var(--ease-tactile),
                box-shadow 0.4s var(--ease-tactile);
}

.card.is-pressed {
    transform: translateY(2px);
    box-shadow: var(--shadow-pressed);
    transition: transform 0.18s var(--ease-tactile),
                box-shadow 0.18s var(--ease-tactile);
}

.card-photo {
    padding: 12px 12px 0 12px;
}

.card-photo svg,
.card-photo img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-photo);
    filter: var(--photo-filter);
}

.card-content {
    padding: 16px 18px 22px;
}

.card-caption {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.1vw, 1.05rem);
    color: var(--text-primary);
    line-height: 1.6;
    margin-bottom: 10px;
}

.card-date {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 0.9rem;
    color: var(--text-secondary);
    font-variant: small-caps;
    letter-spacing: 0.08em;
}

/* ==========================================================================
   Detail Expansion Section
   ========================================================================== */

.detail-section {
    background-color: var(--deep-ground);
    padding: 7rem 3rem;
    transition: background-color 1s ease;
    position: relative;
    overflow: hidden;
}

.detail-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 30% 30%, rgba(212,167,106,0.08), transparent 60%),
        radial-gradient(ellipse at 70% 70%, rgba(176,141,87,0.06), transparent 55%);
    pointer-events: none;
}

.detail-inner {
    max-width: 1280px;
    margin: 0 auto;
    position: relative;
}

.detail-card {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 3.5rem;
    align-items: center;
    opacity: 0;
    transform: translateY(40px) scale(0.98);
    transition: opacity 1s ease, transform 1s var(--ease-tactile);
}

.detail-card.is-visible {
    opacity: 1;
    transform: translateY(0) scale(1);
}

.detail-photo {
    border-radius: var(--radius-photo);
    overflow: hidden;
    filter: var(--photo-filter);
    box-shadow: 0 30px 60px rgba(0,0,0,0.55), 0 8px 16px rgba(0,0,0,0.35);
}

.detail-photo svg,
.detail-photo img {
    display: block;
    width: 100%;
    height: auto;
}

.detail-text {
    color: var(--shadow-dark);
}

.detail-label {
    display: inline-block;
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 0.95rem;
    color: var(--accent);
    font-variant: small-caps;
    letter-spacing: 0.18em;
    margin-bottom: 1rem;
}

.detail-title {
    font-family: 'Libre Baskerville', serif;
    font-weight: 700;
    font-size: clamp(1.8rem, 3.4vw, 2.6rem);
    color: var(--shadow-light);
    text-shadow: 1px 1px 3px rgba(0,0,0,0.55);
    margin-bottom: 1.5rem;
    line-height: 1.25;
}

.detail-quote {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: clamp(1.15rem, 1.9vw, 1.45rem);
    color: var(--sepia-overlay);
    line-height: 1.65;
    margin-bottom: 1.75rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
}

.detail-body {
    font-family: 'Source Sans 3', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.05rem);
    color: var(--shadow-dark);
    line-height: 1.85;
    margin-bottom: 1.2rem;
}

.detail-date {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 1rem;
    color: var(--accent);
    font-variant: small-caps;
    letter-spacing: 0.1em;
    display: block;
    margin-top: 1.5rem;
}

/* ==========================================================================
   Colophon
   ========================================================================== */

.colophon-section {
    padding: 6rem 3rem 5rem;
    text-align: center;
}

.colophon-inner {
    max-width: 600px;
    margin: 0 auto;
}

.colophon-monogram {
    width: 78px;
    height: 78px;
    border-radius: 50%;
    background: var(--surface);
    box-shadow: var(--shadow-pressed);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.colophon-monogram .monogram-letter {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 2.4rem;
    color: var(--accent);
    line-height: 1;
}

.colophon-text {
    font-family: 'Libre Baskerville', serif;
    font-style: italic;
    font-weight: 400;
    font-size: 1.05rem;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.5rem;
}

.colophon-fine {
    font-family: 'Cormorant Garamond', serif;
    font-style: italic;
    font-weight: 300;
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-variant: small-caps;
    letter-spacing: 0.14em;
}

/* ==========================================================================
   Responsive
   ========================================================================== */

@media (max-width: 1200px) {
    .card-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .detail-card {
        gap: 2.5rem;
    }
}

@media (max-width: 768px) {
    .card-grid {
        grid-template-columns: 1fr;
    }

    .hero-section {
        padding: 3rem 1.5rem;
    }

    .archive-section {
        padding: 3rem 1.5rem 4rem;
    }

    .detail-section {
        padding: 4.5rem 1.5rem;
    }

    .detail-card {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .colophon-section {
        padding: 4rem 1.5rem;
    }
}

/* ==========================================================================
   Placeholder Photo (SVG stand-ins)
   ========================================================================== */

.placeholder-photo {
    display: block;
    width: 100%;
    height: auto;
}
