/* ronri.day - Minimalist Mystery Design */
/* Colors: #1a1a2e (deep base), #e8b84b (accent gold), #f5f0e8 (warm off-white), #6c757d (muted gray), #4a90d9 (primary blue) */
/* Fonts: Inter, Space Grotesk, Georgia */

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

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

body {
    font-family: Georgia, 'Times New Roman', serif;
    background-color: #f5f0e8;
    color: #1a1a2e;
    line-height: 1.7;
    overflow-x: hidden;
    position: relative;
}

/* Grid Overlay */
#grid-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        linear-gradient(rgba(26, 26, 46, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(26, 26, 46, 0.03) 1px, transparent 1px);
    background-size: 60px 60px;
}

/* Header */
#site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(245, 240, 232, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(26, 26, 46, 0.06);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#site-header.scrolled {
    box-shadow: 0 2px 20px rgba(26, 26, 46, 0.08);
}

.header-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.logo-mark {
    color: #e8b84b;
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.logo:hover .logo-mark {
    transform: rotate(45deg);
}

.logo-text {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1.1rem;
    letter-spacing: 0.5px;
    color: #1a1a2e;
}

#main-nav {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-family: 'Inter', sans-serif;
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6c757d;
    text-decoration: none;
    position: relative;
    padding-bottom: 2px;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #e8b84b;
    transition: width 0.3s ease;
}

.nav-link:hover,
.nav-link.active {
    color: #1a1a2e;
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* Hero Section */
.section-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hero-photo {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 2rem;
    max-width: 700px;
}

.hero-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: #e8b84b;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.3s forwards;
}

.hero-title {
    font-family: Georgia, serif;
    font-size: 3.2rem;
    font-weight: normal;
    line-height: 1.3;
    color: #f5f0e8;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.5s forwards;
}

.hero-title em {
    font-style: italic;
    color: #e8b84b;
}

.hero-subtitle {
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    font-weight: 300;
    color: rgba(245, 240, 232, 0.7);
    letter-spacing: 0.5px;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease 0.7s forwards;
}

.hero-divider {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    opacity: 0;
    animation: fadeIn 1s ease 1s forwards;
}

.hero-divider .divider-line {
    display: block;
    width: 60px;
    height: 1px;
    background: rgba(232, 184, 75, 0.4);
}

.hero-divider .divider-diamond {
    color: #e8b84b;
    font-size: 0.6rem;
    opacity: 0.6;
}

/* Section Styles */
.section-today,
.section-archive,
.section-about {
    position: relative;
    z-index: 1;
    padding: 6rem 2rem;
}

.section-inner {
    max-width: 740px;
    margin: 0 auto;
}

.section-label {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    font-weight: 500;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #6c757d;
    margin-bottom: 3rem;
    text-align: center;
    position: relative;
}

.section-label::after {
    content: '';
    display: block;
    width: 30px;
    height: 1px;
    background: #e8b84b;
    margin: 1rem auto 0;
}

/* Card Flip */
.card-flip {
    perspective: 1200px;
    margin-bottom: 2.5rem;
    cursor: pointer;
    height: 320px;
}

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

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

.card-front,
.card-back {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    border: 1px solid rgba(26, 26, 46, 0.08);
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.card-front {
    background: #f5f0e8;
    box-shadow: 0 4px 30px rgba(26, 26, 46, 0.06);
}

.card-back {
    background: #1a1a2e;
    color: #f5f0e8;
    transform: rotateY(180deg);
    box-shadow: 0 4px 30px rgba(26, 26, 46, 0.15);
}

.card-number {
    font-family: Georgia, serif;
    font-size: 0.9rem;
    color: #e8b84b;
    letter-spacing: 2px;
    margin-bottom: 1rem;
    display: block;
}

.card-title {
    font-family: Georgia, serif;
    font-size: 1.6rem;
    font-weight: normal;
    margin-bottom: 1.2rem;
    line-height: 1.3;
}

.card-back .card-title {
    color: #e8b84b;
}

.card-text {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #1a1a2e;
    opacity: 0.85;
}

.card-back .card-text {
    color: rgba(245, 240, 232, 0.8);
}

.card-prompt {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6c757d;
    margin-top: auto;
    padding-top: 1.5rem;
    transition: color 0.3s ease;
}

.card-flip:hover .card-prompt {
    color: #4a90d9;
}

.card-back .card-prompt {
    color: rgba(245, 240, 232, 0.4);
}

.card-flip:hover .card-back .card-prompt {
    color: #4a90d9;
}

/* Archive Section */
.section-archive {
    background: #1a1a2e;
    color: #f5f0e8;
}

.section-archive .section-label {
    color: rgba(245, 240, 232, 0.5);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.archive-entry {
    cursor: pointer;
    transition: transform 0.3s ease;
}

.archive-entry:hover {
    transform: translateY(-4px);
}

.archive-photo {
    overflow: hidden;
    margin-bottom: 1rem;
    border: 1px solid rgba(245, 240, 232, 0.06);
}

.archive-photo svg {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease;
}

.archive-entry:hover .archive-photo svg {
    opacity: 0.8;
}

.archive-date {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #6c757d;
    display: block;
    margin-bottom: 0.4rem;
}

.archive-title {
    font-family: Georgia, serif;
    font-size: 1rem;
    font-weight: normal;
    color: #f5f0e8;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.archive-entry:hover .archive-title {
    color: #e8b84b;
}

/* About Section */
.section-about {
    background: #f5f0e8;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 3rem;
    align-items: center;
}

.about-photo {
    overflow: hidden;
    border: 1px solid rgba(26, 26, 46, 0.08);
}

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

.about-text p {
    font-family: Georgia, serif;
    font-size: 1.05rem;
    line-height: 1.8;
    margin-bottom: 1.2rem;
    color: #1a1a2e;
    opacity: 0.85;
}

.about-lead {
    font-size: 1.15rem;
    opacity: 1 !important;
    color: #1a1a2e;
}

.about-lead em {
    font-style: italic;
    color: #4a90d9;
}

.about-signature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(26, 26, 46, 0.08);
}

.signature-diamond {
    color: #e8b84b;
    font-size: 0.6rem;
}

.signature-text {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #6c757d;
}

/* Footer */
#site-footer {
    background: #1a1a2e;
    color: #f5f0e8;
    padding: 4rem 2rem;
    text-align: center;
}

.footer-inner {
    max-width: 740px;
    margin: 0 auto;
}

.footer-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    margin-bottom: 0.8rem;
}

.footer-diamond {
    color: #e8b84b;
    font-size: 0.6rem;
}

.footer-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 1rem;
    letter-spacing: 0.5px;
}

.footer-tagline {
    font-family: Georgia, serif;
    font-style: italic;
    font-size: 0.95rem;
    color: rgba(245, 240, 232, 0.5);
    margin-bottom: 2rem;
}

.footer-divider .divider-line {
    display: block;
    width: 40px;
    height: 1px;
    background: rgba(232, 184, 75, 0.3);
    margin: 0 auto 2rem;
}

.footer-copy {
    font-family: 'Inter', sans-serif;
    font-size: 0.7rem;
    letter-spacing: 1.5px;
    color: #6c757d;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

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

/* Responsive */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.2rem;
    }

    .card-flip {
        height: auto;
        min-height: 320px;
    }

    .card-front,
    .card-back {
        padding: 2rem;
    }

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

    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .header-inner {
        padding: 1rem 1.5rem;
    }

    #main-nav {
        gap: 1.2rem;
    }

    .nav-link {
        font-size: 0.7rem;
    }

    .section-today,
    .section-archive,
    .section-about {
        padding: 4rem 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 1.8rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .card-title {
        font-size: 1.3rem;
    }

    .card-text {
        font-size: 0.95rem;
    }
}
