/* ============================================
   naru.day — Glassmorphic Daylight Gallery
   ============================================ */

/* --- Reset & Base --- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

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

body {
    font-family: 'Karla', sans-serif;
    font-weight: 400;
    font-size: clamp(0.95rem, 1.2vw, 1.1rem);
    line-height: 1.85;
    color: #3A5050;
    background-color: #FBF8F4;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Grid-Line Architecture --- */
.grid-lines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(to right, rgba(200, 216, 212, 0.08) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(200, 216, 212, 0.08) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* --- Section Base --- */
.section {
    position: relative;
    width: 100%;
    padding: clamp(60px, 8vw, 120px) clamp(20px, 5vw, 60px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 1;
}

.section--glass {
    background: rgba(240, 248, 246, 0.7);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.section--solid {
    background: #FBF8F4;
}

/* --- Content Card --- */
.content-card {
    max-width: 680px;
    width: 100%;
    text-align: center;
}

/* --- Typography --- */
.section__heading {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(2rem, 4.5vw, 3.5rem);
    color: #1A3030;
    margin-bottom: 1.5rem;
    letter-spacing: -0.01em;
}

.section__body {
    color: #3A5050;
    max-width: 560px;
    margin: 0 auto;
}

.accent-label {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-style: italic;
    color: #D06848;
    font-size: 0.85rem;
}

/* --- Elastic Interactions --- */
.elastic-hover {
    transition: transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.elastic-hover:hover {
    transform: scale(1.04);
}

.elastic-hover:active {
    transform: scale(0.97);
}

/* ============================================
   HERO SECTION
   ============================================ */
.hero {
    min-height: 100vh;
    justify-content: center;
    position: relative;
}

.hero__content {
    text-align: center;
    opacity: 0;
    transform: translateY(30px);
    animation: heroFadeIn 1.2s ease-out 0.3s forwards;
}

.hero__title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: clamp(3rem, 8vw, 6rem);
    color: #1A3030;
    letter-spacing: 0.04em;
    margin-bottom: 1rem;
    line-height: 1.1;
}

.hero__period {
    color: #D06848;
    display: inline-block;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hero__period:hover {
    transform: scale(1.3);
}

.hero__subtitle {
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: #3A5050;
    letter-spacing: 0.06em;
    opacity: 0;
    animation: subtitleFadeIn 1s ease-out 1s forwards;
}

@keyframes heroFadeIn {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes subtitleFadeIn {
    to {
        opacity: 0.8;
    }
}

/* --- Scroll Indicator --- */
.scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    cursor: pointer;
    opacity: 0;
    animation: scrollIndicatorIn 0.8s ease-out 1.8s forwards;
    transition: opacity 0.4s ease;
}

.scroll-indicator__arrow {
    display: block;
    animation: scrollBounce 2s cubic-bezier(0.34, 1.56, 0.64, 1) infinite;
}

@keyframes scrollIndicatorIn {
    to {
        opacity: 0.7;
    }
}

@keyframes scrollBounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(10px);
    }
}

/* ============================================
   ABOUT SECTION
   ============================================ */
.about .section__body {
    font-size: clamp(1rem, 1.4vw, 1.15rem);
    line-height: 2;
}

/* ============================================
   JOURNAL SECTION
   ============================================ */
.journal__entries {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
    margin-top: 1rem;
}

.journal__entry {
    text-align: left;
    padding: 1.5rem 2rem;
    border-radius: 12px;
    background: rgba(251, 248, 244, 0.6);
    border: 1px solid rgba(200, 216, 212, 0.3);
    transition: border-color 400ms ease, background 400ms ease;
}

.journal__entry:hover {
    border-color: rgba(208, 104, 72, 0.25);
    background: rgba(251, 248, 244, 0.85);
}

.journal__date {
    display: block;
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
}

.journal__entry-title {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: 1.25rem;
    color: #1A3030;
    margin-bottom: 0.5rem;
}

.journal__excerpt {
    color: #3A5050;
    font-size: 0.95rem;
    line-height: 1.75;
}

/* ============================================
   IDEAS SECTION
   ============================================ */
.ideas__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-top: 1.5rem;
}

.ideas__card {
    text-align: left;
    padding: 1.5rem;
    border-radius: 12px;
    background: rgba(240, 248, 246, 0.5);
    border: 1px solid rgba(200, 216, 212, 0.25);
    transition: border-color 400ms ease, background 400ms ease;
}

.ideas__card:hover {
    border-color: rgba(160, 200, 192, 0.5);
    background: rgba(240, 248, 246, 0.75);
}

.ideas__card .accent-label {
    display: block;
    margin-bottom: 0.75rem;
    font-size: 0.8rem;
}

.ideas__text {
    font-size: 0.92rem;
    line-height: 1.75;
    color: #3A5050;
}

/* ============================================
   GALLERY SECTION
   ============================================ */
.gallery__mosaic {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    max-width: 500px;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.gallery__tile {
    aspect-ratio: 1;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    transition: filter 400ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery__tile-label {
    font-family: 'Libre Baskerville', Georgia, serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.03em;
    transition: transform 400ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gallery__tile:hover .gallery__tile-label {
    transform: scale(1.08);
}

.gallery__tile--teal {
    background: #A0C8C0;
}

.gallery__tile--teal .gallery__tile-label {
    color: #1A3030;
}

.gallery__tile--coral {
    background: #D06848;
}

.gallery__tile--coral .gallery__tile-label {
    color: #FBF8F4;
}

.gallery__tile--cream {
    background: #F0D0B8;
}

.gallery__tile--cream .gallery__tile-label {
    color: #1A3030;
}

.gallery__tile--soft {
    background: #C8D8D4;
}

.gallery__tile--soft .gallery__tile-label {
    color: #3A5050;
}

/* ============================================
   CONTACT SECTION
   ============================================ */
.contact .section__body {
    margin-bottom: 2rem;
}

.contact__email {
    display: inline-block;
    font-size: 1.1rem;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: 1px solid rgba(208, 104, 72, 0.3);
    text-decoration: none;
    transition: border-color 300ms ease, background 300ms ease, transform 300ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.contact__email:hover {
    border-color: rgba(208, 104, 72, 0.6);
    background: rgba(208, 104, 72, 0.06);
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 2rem;
    text-align: center;
    background: #1A3030;
    z-index: 1;
    position: relative;
}

.footer__text {
    font-family: 'Karla', sans-serif;
    font-weight: 300;
    font-size: 0.85rem;
    color: #A0C8C0;
    letter-spacing: 0.04em;
}

/* ============================================
   SCROLL REVEAL ANIMATIONS
   ============================================ */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 600px) {
    .gallery__mosaic {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }

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

    .journal__entry {
        padding: 1.2rem 1.4rem;
    }

    .hero__title {
        font-size: clamp(2.5rem, 12vw, 4rem);
    }
}
