/* =========================================
   DAV ARCHIVE — Design tokens
   Palette: paper white, ink, DAV maroon, brass gold, hairline grey
   Display: Teko | Body: Poppins
========================================= */

:root {
    --paper:      #FFFFFF;
    --paper-soft: #F7F5F2;
    --ink:        #1B1B1B;
    --ink-soft:   #5A5750;
    --maroon:     #7A1E2B;
    --maroon-dk:  #4E1119;
    --brass:      #B98B2A;
    --line:       #E4E0D8;
    --dark-bg:    #16110F;
    --dark-line:  #3A322B;

    --font-display: 'Teko', sans-serif;
    --font-body: 'Poppins', sans-serif;
}

/* =========================================
   Reset & base
========================================= */
* { margin: 0; padding: 0; box-sizing: border-box; }

html {
    scroll-behavior: smooth;
}

/* Hide scrollbar, keep scrolling */
html, body {
    scrollbar-width: none;       /* Firefox */
    -ms-overflow-style: none;    /* IE/Edge */
}
::-webkit-scrollbar { width: 0; height: 0; }

body {
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-weight: 300;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }

.container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 100px 32px;
}

h1, h2, h3 {
    font-family: var(--font-display);
    font-weight: 600;
    letter-spacing: 0.02em;
    line-height: 1;
}

h2 {
    font-size: clamp(2.4rem, 5vw, 3.6rem);
    color: var(--maroon);
    margin-bottom: 44px;
    text-transform: uppercase;
}

.section-eyebrow {
    display: inline-block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--brass);
    margin-bottom: 10px;
}
.eyebrow-light { color: var(--brass); }

.section-sub {
    color: var(--ink-soft);
    font-size: 1rem;
    margin-top: -28px;
    margin-bottom: 40px;
    max-width: 520px;
}

/* =========================================
   Header / Nav
========================================= */
.main-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

.navbar {
    max-width: 1200px;
    margin: 0 auto;
    padding: 18px 32px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    font-family: var(--font-display);
    font-size: 1.4rem;
    letter-spacing: 0.1em;
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--maroon);
    color: var(--paper);
    font-size: 1rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 36px;
    list-style: none;
}

.nav-links a {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--ink);
    position: relative;
    padding-bottom: 4px;
}

.nav-links a:not(.cta-button)::after {
    content: '';
    position: absolute;
    left: 0; bottom: 0;
    width: 0;
    height: 1px;
    background: var(--maroon);
    transition: width 0.25s ease;
}
.nav-links a:not(.cta-button):hover::after { width: 100%; }

.cta-button {
    background: var(--maroon);
    color: var(--paper) !important;
    padding: 9px 22px;
    border-radius: 2px;
    font-size: 0.9rem;
    transition: background 0.2s ease;
}
.cta-button:hover { background: var(--maroon-dk); }

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
}
.hamburger span {
    width: 24px;
    height: 2px;
    background: var(--ink);
}

/* =========================================
   Hero
========================================= */
.hero-section {
    position: relative;
    height: 100vh;
    min-height: 560px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-photo {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(35%) contrast(1.05);
}

.hero-fade {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at center, rgba(20,14,12,0.35) 0%, rgba(20,14,12,0.65) 60%, rgba(20,14,12,0.82) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--paper);
    padding: 0 24px;
}

.hero-eyebrow {
    font-family: var(--font-display);
    font-size: 1rem;
    letter-spacing: 0.35em;
    color: var(--brass);
    margin-bottom: 18px;
}

.hero-content h1 {
    font-size: clamp(4rem, 14vw, 9rem);
    letter-spacing: 0.03em;
    text-shadow: 0 4px 30px rgba(0,0,0,0.4);
}

.hero-sub {
    font-family: var(--font-display);
    font-size: clamp(1.3rem, 3vw, 1.9rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    margin-top: 6px;
}

.scroll-down-btn {
    display: inline-block;
    margin-top: 56px;
    width: 26px;
    height: 42px;
    border: 1.5px solid rgba(255,255,255,0.6);
    border-radius: 14px;
    position: relative;
}
.scroll-down-btn span {
    position: absolute;
    top: 8px;
    left: 50%;
    width: 4px;
    height: 4px;
    background: var(--paper);
    border-radius: 50%;
    transform: translateX(-50%);
    animation: scrollDot 1.6s ease infinite;
}
@keyframes scrollDot {
    0% { top: 8px; opacity: 1; }
    70% { top: 24px; opacity: 0; }
    100% { top: 24px; opacity: 0; }
}

/* =========================================
   Intro
========================================= */
.intro-section {
    text-align: center;
    padding: 90px 32px;
}
.intro-section p {
    font-size: clamp(1.1rem, 2.4vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    color: var(--ink-soft);
    max-width: 720px;
    margin: 0 auto;
    line-height: 1.8;
}

/* =========================================
   Memories / Tabs
========================================= */
.tabs {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--line);
    margin-bottom: 36px;
}

.tab-btn {
    background: none;
    border: none;
    font-family: var(--font-display);
    font-size: 1.15rem;
    letter-spacing: 0.04em;
    padding: 10px 4px;
    margin-right: 28px;
    color: var(--ink-soft);
    position: relative;
    text-transform: uppercase;
}
.tab-btn::after {
    content: '';
    position: absolute;
    left: 0; bottom: -1px;
    width: 100%;
    height: 2px;
    background: var(--maroon);
    transform: scaleX(0);
    transition: transform 0.25s ease;
}
.tab-btn.active { color: var(--maroon); }
.tab-btn.active::after { transform: scaleX(1); }

.tab-pane { display: none; color: var(--ink-soft); }
.tab-pane.active { display: block; }

/* =========================================
   Dark sections (Meme Corner / Legends)
========================================= */
.dark-section {
    background: var(--dark-bg);
    color: var(--paper);
}
.dark-section h2 { color: var(--paper); }
.dark-section .section-sub { color: rgba(255,255,255,0.55); }

/* =========================================
   Meme grid
========================================= */
.meme-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.meme-item {
    aspect-ratio: 1 / 1;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--dark-line);
    background: #0F0C0A;
}

.meme-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.meme-item img:hover { transform: scale(1.04); }

.meme-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background: #000;
}
/* Minimal native controls styling nudge */
.meme-item video::-webkit-media-controls-panel {
    background-image: linear-gradient(transparent, rgba(0,0,0,0.6));
}

/* =========================================
   Photo gallery (masonry-ish)
========================================= */
.gallery-grid {
    columns: 3 260px;
    column-gap: 18px;
}
.gallery-item {
    break-inside: avoid;
    margin-bottom: 18px;
    border-radius: 4px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.gallery-item img {
    width: 100%;
    transition: transform 0.4s ease;
}
.gallery-item:hover img { transform: scale(1.03); }

/* =========================================
   Legends
========================================= */
.legends-content {
    border-left: 2px solid var(--brass);
    padding-left: 28px;
    max-width: 640px;
}
.legends-content h3 {
    font-size: 1.8rem;
    color: var(--brass);
    text-transform: uppercase;
    margin-bottom: 14px;
}
.legends-content p {
    color: rgba(255,255,255,0.6);
}

/* =========================================
   Contribute
========================================= */
#contribute {
    text-align: center;
}
#contribute p {
    color: var(--ink-soft);
    max-width: 520px;
    margin: 0 auto 36px;
}
.cta-button-large {
    display: inline-block;
    background: var(--maroon);
    color: var(--paper);
    padding: 16px 40px;
    border-radius: 2px;
    font-family: var(--font-display);
    font-size: 1.1rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    transition: background 0.2s ease, transform 0.2s ease;
}
.cta-button-large:hover {
    background: var(--maroon-dk);
    transform: translateY(-2px);
}

/* =========================================
   Footer
========================================= */
.main-footer {
    text-align: center;
    padding: 28px;
    font-size: 0.85rem;
    color: var(--ink-soft);
    border-top: 1px solid var(--line);
}

/* =========================================
   Responsive
========================================= */
@media (max-width: 820px) {
    .gallery-grid { columns: 2 200px; }
    .meme-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
    .nav-links {
        position: fixed;
        top: 64px;
        left: 0; right: 0;
        flex-direction: column;
        background: var(--paper);
        padding: 24px 32px;
        gap: 20px;
        border-bottom: 1px solid var(--line);
        transform: translateY(-120%);
        transition: transform 0.3s ease;
    }
    .nav-links.open { transform: translateY(0); }
    .hamburger { display: flex; }
    .container { padding: 70px 22px; }
    .meme-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
    .gallery-grid { columns: 2 150px; }
}