﻿:root {
    --bg: #efe4d8;
    --paper: #fffaf4;
    --paper-strong: #fff4e9;
    --ink: #2d1e15;
    --muted: #6d5f55;
    --brand: #c45b3c;
    --brand-dark: #8b3e2c;
    --line: #e7d8c9;
    --shadow-lg: 0 28px 52px rgba(44, 28, 18, 0.2);
    --shadow-sm: 0 12px 24px rgba(44, 28, 18, 0.11);
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "Nunito Sans", "Segoe UI", sans-serif;
    background:
        radial-gradient(circle at 8% 12%, rgba(228, 145, 92, 0.22) 0%, rgba(228, 145, 92, 0) 35%),
        radial-gradient(circle at 88% -12%, rgba(139, 62, 44, 0.2) 0%, rgba(139, 62, 44, 0) 42%),
        var(--bg);
    color: var(--ink);
}

.container {
    width: min(1180px, 92vw);
    margin: 0 auto;
}

.hero {
    position: relative;
    min-height: 520px;
    background-image: url("https://images.unsplash.com/photo-1511895426328-dc8714191300?q=80&w=2400&auto=format&fit=crop");
    background-size: cover;
    background-position: center 42%;
    overflow: hidden;
}

.hero-filter {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(145deg, rgba(22, 14, 10, 0.78), rgba(69, 32, 20, 0.55)),
        linear-gradient(90deg, rgba(196, 91, 60, 0.35), transparent 45%);
}

.hero-shell {
    position: relative;
    z-index: 2;
    padding: 26px 0 48px;
}

.top-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.brand {
    color: #fff8f0;
    text-decoration: none;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.5rem, 2.3vw, 2rem);
    letter-spacing: 0.02em;
}

.nav-links {
    display: flex;
    gap: 10px;
}

.nav-links a {
    text-decoration: none;
    font-weight: 700;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.34);
    background: rgba(255, 255, 255, 0.08);
    backdrop-filter: blur(10px);
    border-radius: 999px;
    padding: 8px 14px;
    transition: all 0.25s ease;
}

.nav-links a:hover {
    background: rgba(255, 255, 255, 0.18);
    transform: translateY(-1px);
}

.profile-card {
    margin-top: 72px;
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: center;
    background: linear-gradient(155deg, rgba(255, 248, 241, 0.94), rgba(250, 232, 216, 0.86));
    border-radius: 28px;
    padding: 22px;
    border: 1px solid rgba(255, 255, 255, 0.6);
    box-shadow: var(--shadow-lg);
}

.avatar-wrap {
    width: 220px;
    height: 220px;
    border-radius: 24px;
    overflow: hidden;
    border: 4px solid rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-sm);
}

.avatar-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-content h1 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.eyebrow {
    margin: 0 0 6px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: #845743;
    font-size: 0.77rem;
}

#familyOrigin {
    margin: 8px 0 0;
    font-size: 1.03rem;
    color: #4f3a2f;
}

.meta-row {
    margin-top: 15px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 13px;
    border-radius: 999px;
    background: rgba(139, 62, 44, 0.09);
    color: #764331;
    font-size: 0.9rem;
    font-weight: 700;
}

.dot {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #9f664f;
}

.timeline {
    margin-top: 48px;
    margin-bottom: 70px;
}

.timeline-head {
    text-align: center;
}

.timeline-head h2 {
    margin: 0;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
}

.timeline-head p {
    margin: 12px auto 0;
    max-width: 820px;
    color: var(--muted);
    font-size: 1.12rem;
}

.timeline-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.upload-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-weight: 800;
    letter-spacing: 0.01em;
    border-radius: 16px;
    padding: 15px 24px;
    color: #fff;
    background: linear-gradient(115deg, var(--brand), #de7a58);
    box-shadow: var(--shadow-sm);
    transition: transform 0.23s ease, filter 0.23s ease;
}

.upload-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.04);
}

.year-tabs {
    margin-top: 30px;
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
}

.year-tab {
    border: 1px solid #d8c7b8;
    color: #67584d;
    background: #fff9f3;
    border-radius: 999px;
    padding: 10px 22px;
    font-weight: 800;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.year-tab:hover {
    border-color: var(--brand);
    color: var(--brand-dark);
}

.year-tab.active {
    background: linear-gradient(120deg, var(--brand), #de825f);
    color: #fff;
    border-color: transparent;
    box-shadow: var(--shadow-sm);
}

.edition-panel {
    margin: 22px auto 0;
    width: min(860px, 100%);
    background: linear-gradient(155deg, #fffdf9, var(--paper-strong));
    border: 1px solid var(--line);
    border-radius: 22px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.edition-year {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.76rem;
    color: #8a624f;
    font-weight: 800;
}

.edition-panel h3 {
    margin: 10px 0 8px;
    font-family: "Cormorant Garamond", Georgia, serif;
    font-size: clamp(1.9rem, 3vw, 2.7rem);
}

.edition-slogan {
    margin: 0;
    color: var(--brand-dark);
    font-weight: 800;
    font-size: 1.08rem;
}

.edition-description {
    margin: 12px auto 0;
    max-width: 720px;
    color: var(--muted);
    font-size: 1rem;
}

.edition-location {
    margin: 10px 0 0;
    font-weight: 700;
    color: #805a45;
}

.gallery {
    margin-top: 26px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.media-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 22px rgba(44, 28, 18, 0.08);
    display: flex;
    flex-direction: column;
}

.media-visual {
    position: relative;
    aspect-ratio: 4 / 3;
    background: #dfd0c1;
    overflow: hidden;
}

.media-visual img,
.media-visual video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.media-content {
    padding: 13px;
}

.media-top {
    display: flex;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7d6759;
}

.media-caption {
    margin: 9px 0 0;
    color: #4f3f34;
    font-size: 0.94rem;
    line-height: 1.45;
}

.empty-state {
    margin-top: 22px;
    border: 1px dashed #ccb5a3;
    border-radius: 15px;
    text-align: center;
    color: #7d6758;
    background: #fff9f1;
    padding: 22px;
    font-weight: 700;
}

.hidden {
    display: none !important;
}

.site-footer {
    border-top: 1px solid #dccbbb;
    background: rgba(255, 248, 241, 0.75);
    padding: 24px 0;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.footer-inner p {
    margin: 0;
    font-weight: 800;
}

.footer-inner span {
    color: var(--muted);
}

@media (max-width: 960px) {
    .profile-card {
        grid-template-columns: 1fr;
        text-align: center;
        justify-items: center;
        margin-top: 56px;
    }

    .meta-row {
        justify-content: center;
    }

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

@media (max-width: 640px) {
    .hero {
        min-height: 620px;
    }

    .top-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .timeline {
        margin-top: 34px;
    }

    .gallery {
        grid-template-columns: 1fr;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
    }
}
