/* ============================================================
   rironbusou.com - Styles
   ============================================================ */

:root {
    --color-primary: #E07A4F;
    --color-secondary: #C85A30;
    --color-accent-warm: #F5C882;
    --color-accent-light: #F0DCC0;
    --color-dark-bg: #2A1C10;
    --color-black: #1A1008;
    --color-brown: #8B5E3C;
    --color-teal: #3D6B5A;

    --font-display: 'Libre Baskerville', serif;
    --font-body: 'Nunito Sans', sans-serif;
    --font-mono: 'Space Mono', monospace;
    --font-annotation: 'Gochi Hand', cursive;
}

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

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

html {
    overflow: hidden;
    width: 100%;
    height: 100%;
}

body {
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: var(--font-body);
    color: #fff;
    background: var(--color-black);
    overflow: hidden;
    position: relative;
}

/* ============================================================
   Canvas Setup
   ============================================================ */

#generative-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    z-index: 0;
}

/* ============================================================
   Content Overlay Container
   ============================================================ */

body > * {
    position: relative;
    z-index: 1;
}

/* ============================================================
   Header
   ============================================================ */

.header {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 10;
    pointer-events: none;
    animation: fadeInTitle 1.5s ease-out 1.5s both;
}

.site-title {
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 5vw, 3.5rem);
    font-weight: 700;
    color: var(--color-accent-light);
    margin: 0;
    letter-spacing: -0.02em;
    line-height: 1.1;
}

.tagline {
    font-family: var(--font-mono);
    font-size: clamp(0.75rem, 2vw, 1rem);
    color: var(--color-primary);
    margin: 0.5rem 0 0 0;
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ============================================================
   Hero Section
   ============================================================ */

.hero {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    pointer-events: none;
    z-index: 5;
    max-width: 80%;
    opacity: 0;
    animation: fadeInHero 1s ease-out 2s both;
}

.hero-content {
    padding: 2rem;
}

.hero-text {
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 4vw, 2.5rem);
    color: var(--color-accent-warm);
    font-weight: 400;
    line-height: 1.4;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

/* ============================================================
   Scrollable Content
   ============================================================ */

.content {
    position: relative;
    z-index: 1;
    margin-top: 100vh;
    padding: 4rem 2rem;
    pointer-events: auto;
}

.content-inner {
    max-width: 900px;
    margin: 0 auto;
}

.article {
    margin-bottom: 4rem;
    padding: 2rem;
    background: rgba(26, 16, 8, 0.7);
    border-left: 3px solid var(--color-primary);
    backdrop-filter: blur(2px);
    animation: slideInArticle 0.8s ease-out forwards;
}

.article:nth-of-type(1) {
    animation-delay: 0s;
}

.article:nth-of-type(2) {
    animation-delay: 0.2s;
}

.article:nth-of-type(3) {
    animation-delay: 0.4s;
}

.article h2 {
    font-family: var(--font-display);
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-accent-warm);
    margin: 0 0 1rem 0;
    font-weight: 700;
}

.article p {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(240, 220, 192, 0.9);
    margin: 0;
}

/* ============================================================
   Footer
   ============================================================ */

.footer {
    position: relative;
    padding: 4rem 2rem;
    text-align: center;
    background: rgba(26, 16, 8, 0.9);
    border-top: 1px solid rgba(224, 122, 79, 0.2);
    z-index: 1;
    margin-top: 2rem;
}

.footer-text {
    font-family: var(--font-mono);
    font-size: 0.9rem;
    color: var(--color-primary);
    margin: 0;
    letter-spacing: 0.05em;
}

/* ============================================================
   Info Panel
   ============================================================ */

.info-panel {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: rgba(26, 16, 8, 0.95);
    border: 1px solid var(--color-primary);
    border-radius: 4px;
    padding: 1.5rem;
    max-width: 300px;
    z-index: 20;
    pointer-events: auto;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.info-panel.hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

.info-content h3 {
    font-family: var(--font-display);
    font-size: 1.2rem;
    color: var(--color-accent-warm);
    margin: 0 0 0.75rem 0;
    font-weight: 700;
}

.info-content p {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: rgba(240, 220, 192, 0.85);
    line-height: 1.5;
    margin: 0;
}

.close-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    background: none;
    border: none;
    color: var(--color-primary);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.close-btn:hover {
    color: var(--color-accent-warm);
}

/* ============================================================
   Annotations (Hand-Drawn Style)
   ============================================================ */

.annotations {
    position: fixed;
    top: 20%;
    right: 5%;
    z-index: 8;
    pointer-events: none;
}

.annotation {
    position: relative;
    margin-bottom: 4rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    opacity: 0;
    animation: slideInAnnotation 0.8s ease-out forwards;
}

.annotation:nth-of-type(1) {
    animation-delay: 3s;
}

.annotation:nth-of-type(2) {
    animation-delay: 3.3s;
}

.annotation svg {
    display: block;
}

.annotation-label {
    font-family: var(--font-annotation);
    font-size: 0.85rem;
    color: var(--color-accent-warm);
    font-weight: 400;
    letter-spacing: 0.02em;
}

/* ============================================================
   Info Toggle Button
   ============================================================ */

.info-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
    background: var(--color-primary);
    color: var(--color-black);
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    z-index: 15;
    pointer-events: auto;
    transition: background 0.3s ease, transform 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-toggle:hover {
    background: var(--color-accent-warm);
    transform: scale(1.1);
}

.info-toggle.hidden {
    display: none;
}

/* ============================================================
   Animations
   ============================================================ */

@keyframes fadeInTitle {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInHero {
    from {
        opacity: 0;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes slideInArticle {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInAnnotation {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

@media (max-width: 768px) {
    .header {
        top: 1.5rem;
        left: 1.5rem;
    }

    .content {
        padding: 2rem 1.5rem;
    }

    .article {
        padding: 1.5rem;
    }

    .info-panel {
        bottom: 1rem;
        right: 1rem;
        max-width: 280px;
        padding: 1rem;
    }

    .info-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 2.5rem;
        height: 2.5rem;
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .header {
        top: 1rem;
        left: 1rem;
    }

    .site-title {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 0.65rem;
    }

    .hero-text {
        font-size: 1.2rem;
    }

    .content {
        padding: 1.5rem 1rem;
        margin-top: 80vh;
    }

    .article {
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .article h2 {
        font-size: 1.3rem;
    }

    .article p {
        font-size: 0.9rem;
    }

    .info-panel {
        bottom: 0.5rem;
        right: 0.5rem;
        max-width: 250px;
        padding: 0.75rem;
    }

    .info-toggle {
        bottom: 0.5rem;
        right: 0.5rem;
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1rem;
    }
}
