/* =============================================
   rinji.net — Neubrutalist Pastoral Notice Board
   ============================================= */

:root {
    --notice-purple: #7C3AED;
    --signal-orange: #F97316;
    --meadow-green: #22C55E;
    --parchment-cream: #FFF8F0;
    --border-black: #1A1A1A;
    --marble-warm: #E8DDD0;
    --shadow-gray: #D1D5DB;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.7;
    color: var(--border-black);
    background-color: var(--parchment-cream);
}

h1, h2, h3 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

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

@keyframes border-breathe {
    0%, 100% { border-width: 3px; }
    50% { border-width: 4px; }
}

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

@keyframes shadowSlide {
    from {
        box-shadow: 0px 0px 0px var(--border-black);
    }
    to {
        box-shadow: 4px 4px 0px var(--border-black);
    }
}

@keyframes colorBlockStagger {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* =============================================
   Village Board (Hero) — 100vh
   ============================================= */

#village-board {
    min-height: 100vh;
    background-color: var(--parchment-cream);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    overflow: hidden;
}

.hex-frame {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 900px;
    width: 100%;
}

.marble-column {
    width: 60px;
    height: auto;
    flex-shrink: 0;
    opacity: 0;
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
}

.marble-column-left {
    animation-delay: 0.2s;
}

.marble-column-right {
    animation-delay: 0.35s;
}

.hex-frame-inner {
    position: relative;
    border: 3px solid var(--border-black);
    padding: 60px 50px;
    text-align: center;
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    background-color: var(--parchment-cream);
    min-width: 400px;
    min-height: 420px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    animation: border-breathe 2s infinite ease-in-out;
}

.color-block {
    position: absolute;
    width: 80px;
    height: 80px;
    border: 3px solid var(--border-black);
    opacity: 0;
    animation: colorBlockStagger 0.5s ease-out forwards;
    z-index: -1;
}

.color-block-purple {
    background-color: var(--notice-purple);
    top: 15%;
    left: 10%;
    animation-delay: 0.6s;
    box-shadow: 4px 4px 0px var(--border-black);
}

.color-block-orange {
    background-color: var(--signal-orange);
    top: 10%;
    right: 10%;
    animation-delay: 0.75s;
    box-shadow: 4px 4px 0px var(--border-black);
    border-radius: 50%;
}

.color-block-green {
    background-color: var(--meadow-green);
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    animation-delay: 0.9s;
    box-shadow: 4px 4px 0px var(--border-black);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    width: 60px;
    height: 60px;
}

.wordmark {
    font-size: clamp(36px, 5vw, 64px);
    color: var(--border-black);
    position: relative;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.5s forwards;
}

.wordmark::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 4px;
    width: 100%;
    height: 100%;
    background-color: var(--notice-purple);
    z-index: -1;
    opacity: 0.15;
    animation: shadowSlide 0.4s ease-out 0.5s both;
}

.subtitle {
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: clamp(14px, 1.2vw, 18px);
    margin-top: 12px;
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.7s forwards;
}

.label {
    font-family: 'Azeret Mono', monospace;
    font-weight: 400;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-top: 16px;
    color: var(--notice-purple);
    opacity: 0;
    animation: fadeInUp 0.5s ease-out 0.85s forwards;
}

/* =============================================
   Honeycomb Notices Section
   ============================================= */

#honeycomb-notices {
    background-color: var(--parchment-cream);
    padding: 80px 20px;
}

.section-title {
    font-size: clamp(28px, 4.5vw, 56px);
    text-align: center;
    margin-bottom: 60px;
    position: relative;
    display: inline-block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background-color: var(--signal-orange);
    margin: 16px auto 0;
}

.honeycomb-grid {
    max-width: 1000px;
    margin: 0 auto;
}

.hex-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 8px;
}

.hex-row--offset {
    margin-left: calc(100% / 6);
    margin-right: calc(-100% / 6);
}

.hex-cell {
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    aspect-ratio: 1 / 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    cursor: default;
    transition: transform 0.3s ease;
    animation: border-breathe 2s infinite ease-in-out;
    border: 3px solid var(--border-black);
}

.hex-cell--purple {
    background-color: var(--notice-purple);
    color: #ffffff;
}

.hex-cell--orange {
    background-color: var(--signal-orange);
    color: #ffffff;
}

.hex-cell--green {
    background-color: var(--meadow-green);
    color: #ffffff;
}

.hex-cell:hover {
    transform: scale(1.05);
}

.hex-cell-content {
    padding: 20%;
    text-align: center;
}

.hex-cell-content h3 {
    font-size: clamp(14px, 1.8vw, 20px);
    margin-bottom: 8px;
    color: inherit;
}

.hex-cell-content p {
    font-size: clamp(11px, 1vw, 14px);
    line-height: 1.5;
    color: inherit;
    opacity: 0.9;
}

.hex-label {
    font-family: 'Azeret Mono', monospace;
    font-weight: 400;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 8px;
    opacity: 0.7;
}

/* =============================================
   The Arcade Section
   ============================================= */

#the-arcade {
    background-color: var(--marble-warm);
    padding: 80px 20px;
    border-top: 4px solid var(--border-black);
    border-bottom: 4px solid var(--border-black);
}

.arcade-header {
    text-align: center;
    margin-bottom: 60px;
    position: relative;
}

.arcade-arch {
    width: min(600px, 90%);
    height: auto;
    display: block;
    margin: 0 auto;
}

.arcade-title {
    font-size: clamp(28px, 4.5vw, 56px);
    position: relative;
    display: inline-block;
    margin-top: -30px;
    background-color: var(--marble-warm);
    padding: 0 30px;
}

.arcade-passages {
    max-width: 1000px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.passage {
    background-color: var(--parchment-cream);
    border: 3px solid var(--border-black);
    position: relative;
    overflow: hidden;
    transition: box-shadow 0.3s ease;
}

.passage--1 {
    box-shadow: 4px 4px 0px var(--notice-purple);
}

.passage--2 {
    box-shadow: 4px 4px 0px var(--signal-orange);
}

.passage--3 {
    box-shadow: 4px 4px 0px var(--meadow-green);
}

.passage:hover {
    box-shadow: 6px 6px 0px var(--notice-purple);
}

.passage--2:hover {
    box-shadow: 6px 6px 0px var(--signal-orange);
}

.passage--3:hover {
    box-shadow: 6px 6px 0px var(--meadow-green);
}

.passage-arch {
    width: 100%;
    height: auto;
    display: block;
}

.passage-content {
    padding: 24px;
}

.passage-content h3 {
    font-size: clamp(16px, 2vw, 22px);
    margin-bottom: 12px;
}

.passage-content p {
    font-size: clamp(13px, 1.2vw, 16px);
    line-height: 1.7;
    color: var(--border-black);
    opacity: 0.85;
}

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

#pastoral-footer {
    background-color: var(--parchment-cream);
    border-top: 4px solid var(--border-black);
    padding: 60px 20px 30px;
}

.footer-columns {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    max-width: 700px;
    margin: 0 auto;
}

.footer-column-svg {
    width: 40px;
    height: auto;
    flex-shrink: 0;
    opacity: 0.6;
}

.footer-content {
    text-align: center;
}

.footer-wordmark {
    font-size: clamp(24px, 3vw, 36px);
    margin-bottom: 12px;
}

.footer-text {
    font-size: clamp(14px, 1.2vw, 16px);
    margin-bottom: 12px;
    opacity: 0.8;
}

.footer-label {
    font-family: 'Azeret Mono', monospace;
    font-weight: 400;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--notice-purple);
    display: block;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border-black);
}

.footer-bottom .footer-label {
    color: var(--shadow-gray);
}

/* =============================================
   Decorative marble-classical corner pieces
   ============================================= */

.hex-cell::before {
    content: '';
    position: absolute;
    top: 6px;
    left: 6px;
    width: 16px;
    height: 16px;
    border-top: 2px solid rgba(255, 255, 255, 0.4);
    border-left: 2px solid rgba(255, 255, 255, 0.4);
    z-index: 1;
}

.hex-cell::after {
    content: '';
    position: absolute;
    bottom: 6px;
    right: 6px;
    width: 16px;
    height: 16px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.4);
    border-right: 2px solid rgba(255, 255, 255, 0.4);
    z-index: 1;
}

/* =============================================
   Scroll reveal utility
   ============================================= */

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

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

@media (max-width: 768px) {
    .hex-frame {
        flex-direction: column;
        gap: 20px;
    }

    .marble-column {
        width: 40px;
        display: none;
    }

    .hex-frame-inner {
        min-width: 280px;
        min-height: 300px;
        padding: 40px 30px;
    }

    .hex-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .hex-row--offset {
        margin-left: calc(100% / 4);
        margin-right: calc(-100% / 4);
    }

    .arcade-passages {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .footer-columns {
        gap: 20px;
    }

    .footer-column-svg {
        display: none;
    }

    .color-block {
        width: 50px;
        height: 50px;
    }

    .color-block-green {
        width: 40px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .hex-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .hex-row--offset {
        margin-left: 0;
        margin-right: 0;
    }

    .hex-cell {
        aspect-ratio: 1 / 0.9;
    }

    .hex-cell-content {
        padding: 15%;
    }

    #village-board {
        padding: 20px 10px;
    }

    .hex-frame-inner {
        min-width: 240px;
        min-height: 260px;
        padding: 30px 20px;
    }
}
