/* ============================================================
   honpo.net — styles.css
   Palette: #FAF8F4 #E8D4C0 #6B4A3A #1C1410 #C8591A #8C3A10 #FFFFFF #000000
   Fonts: EB Garamond (display), Noto Sans JP (body/UI)
   ============================================================ */

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

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

body {
    background: #1C1410;
    color: #E8D4C0;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    line-height: 1.7;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Palette reference: #FAF8F4 #E8D4C0 #2E1F16 #6B4A3A #8C3A10 #C8591A #1C1410 #000000 #FFFFFF */

/* === SVG Grain Filter (hidden) === */
.grain-filter {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

/* === Grain Overlay === */
.grain-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    pointer-events: none;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 200px 200px;
}

/* === Split Screen Layout === */
.split-screen {
    display: flex;
    min-height: 100vh;
    position: relative;
}

/* === Left Panel === */
.panel-left {
    position: fixed;
    top: 0;
    left: 0;
    width: 42%;
    height: 100vh;
    background: #FAF8F4;
    z-index: 10;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Paper-noise texture on left panel */
.panel-left::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.02;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 300 300' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='paper'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23paper)'/%3E%3C/svg%3E");
    background-repeat: repeat;
    background-size: 300px 300px;
    z-index: 1;
}

.panel-left__inner {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 48px 40px 48px 48px;
}

/* === Brand Mark === */
.brand-mark {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 72px;
}

.brand-kanji {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-weight: 400;
    font-size: 32px;
    color: #1C1410;
    letter-spacing: -0.015em;
    line-height: 1;
    display: block;
}

.brand-domain {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: #6B4A3A;
    letter-spacing: 0.15em;
    text-transform: lowercase;
    display: block;
}

/* === Navigation === */
.main-nav {
    flex: 1;
}

.nav-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.nav-item {
    position: relative;
}

.nav-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 12px 0;
    position: relative;
    overflow: visible;
}

.nav-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 15px;
    color: #6B4A3A;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    transition: color 0.3s ease;
    position: relative;
    z-index: 1;
}

.nav-link::before {
    content: '';
    position: absolute;
    left: -48px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 1px;
    background: #C8591A;
    transition: width 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.nav-link:hover .nav-label {
    color: #1C1410;
}

.nav-link:hover::before {
    width: 36px;
}

/* Bubble container for nav hover effect */
.bubble-container {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    width: 100%;
    height: 60px;
    overflow: visible;
}

/* Active nav state */
.nav-link.active .nav-label {
    color: #1C1410;
    font-weight: 500;
}

.nav-link.active::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 4px;
    background: #C8591A;
    border-radius: 50%;
}

/* === Year Label === */
.year-label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 24px 0;
}

.year-text {
    font-family: 'EB Garamond', Georgia, serif;
    font-style: italic;
    font-size: 13px;
    color: #6B4A3A;
    letter-spacing: 0.2em;
    writing-mode: vertical-rl;
    text-orientation: mixed;
    opacity: 0.7;
}

/* === Decorative Rule === */
.panel-left__rule {
    width: 32px;
    height: 1px;
    background: #C8591A;
    opacity: 0.4;
    margin-top: auto;
}

/* === Right Panel === */
.panel-right {
    margin-left: 42%;
    width: 58%;
    min-height: 100vh;
    background: #1C1410;
    position: relative;
    overflow: hidden;
}

/* === Bokeh Field === */
.bokeh-field {
    position: fixed;
    top: 0;
    left: 42%;
    width: 58%;
    height: 100vh;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.bokeh-circle {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

/* Bokeh circles — sizes and positions set via CSS custom properties in JS */
.bokeh-circle:nth-child(1)  { width: 120px; height: 120px; left: 15%; top: 8%;  background: radial-gradient(circle, rgba(200,89,26,0.18) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-1 18s ease-in-out infinite; }
.bokeh-circle:nth-child(2)  { width: 80px;  height: 80px;  left: 72%; top: 15%; background: radial-gradient(circle, rgba(200,89,26,0.14) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-2 22s ease-in-out infinite; }
.bokeh-circle:nth-child(3)  { width: 160px; height: 160px; left: 45%; top: 25%; background: radial-gradient(circle, rgba(200,89,26,0.12) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-3 28s ease-in-out infinite; }
.bokeh-circle:nth-child(4)  { width: 60px;  height: 60px;  left: 88%; top: 35%; background: radial-gradient(circle, rgba(200,89,26,0.20) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-4 15s ease-in-out infinite; }
.bokeh-circle:nth-child(5)  { width: 100px; height: 100px; left: 25%; top: 48%; background: radial-gradient(circle, rgba(200,89,26,0.16) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-5 24s ease-in-out infinite; }
.bokeh-circle:nth-child(6)  { width: 140px; height: 140px; left: 60%; top: 55%; background: radial-gradient(circle, rgba(200,89,26,0.10) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-6 20s ease-in-out infinite; }
.bokeh-circle:nth-child(7)  { width: 70px;  height: 70px;  left: 10%; top: 65%; background: radial-gradient(circle, rgba(200,89,26,0.18) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-7 17s ease-in-out infinite; }
.bokeh-circle:nth-child(8)  { width: 180px; height: 180px; left: 80%; top: 70%; background: radial-gradient(circle, rgba(200,89,26,0.09) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-8 32s ease-in-out infinite; }
.bokeh-circle:nth-child(9)  { width: 90px;  height: 90px;  left: 35%; top: 78%; background: radial-gradient(circle, rgba(200,89,26,0.15) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-9 21s ease-in-out infinite; }
.bokeh-circle:nth-child(10) { width: 110px; height: 110px; left: 55%; top: 85%; background: radial-gradient(circle, rgba(200,89,26,0.13) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-10 26s ease-in-out infinite; }
.bokeh-circle:nth-child(11) { width: 65px;  height: 65px;  left: 20%; top: 90%; background: radial-gradient(circle, rgba(200,89,26,0.19) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-11 19s ease-in-out infinite; }
.bokeh-circle:nth-child(12) { width: 150px; height: 150px; left: 90%; top: 10%; background: radial-gradient(circle, rgba(200,89,26,0.11) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-12 29s ease-in-out infinite; }
.bokeh-circle:nth-child(13) { width: 85px;  height: 85px;  left: 5%;  top: 30%; background: radial-gradient(circle, rgba(200,89,26,0.17) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-13 23s ease-in-out infinite; }
.bokeh-circle:nth-child(14) { width: 130px; height: 130px; left: 70%; top: 42%; background: radial-gradient(circle, rgba(200,89,26,0.12) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-14 27s ease-in-out infinite; }
.bokeh-circle:nth-child(15) { width: 75px;  height: 75px;  left: 40%; top: 60%; background: radial-gradient(circle, rgba(200,89,26,0.16) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-15 16s ease-in-out infinite; }
.bokeh-circle:nth-child(16) { width: 95px;  height: 95px;  left: 15%; top: 75%; background: radial-gradient(circle, rgba(200,89,26,0.14) 0%, rgba(200,89,26,0) 70%); animation: bokeh-float-16 25s ease-in-out infinite; }

/* Bokeh float animations — each on a unique path */
@keyframes bokeh-float-1  { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(20px, -30px); } }
@keyframes bokeh-float-2  { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(-25px, 20px); } }
@keyframes bokeh-float-3  { 0%, 100% { transform: translate(0, 0); }    33% { transform: translate(15px, 25px); }   66% { transform: translate(-20px, -15px); } }
@keyframes bokeh-float-4  { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(-30px, -20px); } }
@keyframes bokeh-float-5  { 0%, 100% { transform: translate(0, 0); }    40% { transform: translate(25px, -18px); }  80% { transform: translate(-10px, 22px); } }
@keyframes bokeh-float-6  { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(-18px, -28px); } }
@keyframes bokeh-float-7  { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(22px, 15px); } }
@keyframes bokeh-float-8  { 0%, 100% { transform: translate(0, 0); }    30% { transform: translate(-20px, 10px); }  70% { transform: translate(15px, -25px); } }
@keyframes bokeh-float-9  { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(-28px, -12px); } }
@keyframes bokeh-float-10 { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(18px, 20px); } }
@keyframes bokeh-float-11 { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(-15px, -25px); } }
@keyframes bokeh-float-12 { 0%, 100% { transform: translate(0, 0); }    40% { transform: translate(12px, 18px); }   80% { transform: translate(-22px, -8px); } }
@keyframes bokeh-float-13 { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(28px, -15px); } }
@keyframes bokeh-float-14 { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(-12px, 22px); } }
@keyframes bokeh-float-15 { 0%, 100% { transform: translate(0, 0); }    50% { transform: translate(20px, -28px); } }
@keyframes bokeh-float-16 { 0%, 100% { transform: translate(0, 0); }    33% { transform: translate(-18px, 15px); }  66% { transform: translate(25px, -20px); } }

/* === Acts / Sections === */
.act {
    position: relative;
    z-index: 1;
}

.act__inner {
    padding: 80px 64px 80px 56px;
}

/* === Act I: Presence === */
.act--presence {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.act--presence .act__inner {
    display: flex;
    flex-direction: column;
    gap: 64px;
}

/* === Pull Quote === */
.pull-quote {
    max-width: 520px;
}

.pull-quote__text {
    font-family: 'EB Garamond', Georgia, serif;
    font-size: 28px;
    font-weight: 400;
    color: #E8D4C0;
    line-height: 1.5;
    letter-spacing: -0.01em;
    margin-bottom: 16px;
}

.pull-quote__translation {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #6B4A3A;
    letter-spacing: 0.1em;
    font-style: normal;
}

/* === Scroll Hint === */
.scroll-hint {
    display: flex;
    align-items: flex-start;
}

.scroll-hint__line {
    display: block;
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, #C8591A, transparent);
    animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
    0%, 100% { opacity: 0.3; transform: scaleY(1); }
    50% { opacity: 1; transform: scaleY(1.1); }
}

/* === Act II: Entries === */
.act--entries .act__inner {
    padding-top: 100px;
}

/* Section divider uses #2E1F16 warm dark tone */
.act + .act {
    border-top: 1px solid #2E1F16;
}

.entries-header {
    margin-bottom: 48px;
    border-bottom: 1px solid rgba(200, 89, 26, 0.2);
    padding-bottom: 16px;
}

.entries-label {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #C8591A;
    letter-spacing: 0.25em;
    text-transform: uppercase;
}

/* === Entry === */
.entry {
    padding: 40px 0;
    border-bottom: 1px solid rgba(232, 212, 192, 0.08);
    transition: border-color 0.3s ease;
}

.entry:hover {
    border-bottom-color: rgba(200, 89, 26, 0.25);
}

.entry__meta {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 12px;
}

.entry__date {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #6B4A3A;
    letter-spacing: 0.1em;
}

.entry__tag {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 10px;
    color: #C8591A;
    letter-spacing: 0.2em;
    border: 1px solid rgba(200, 89, 26, 0.35);
    padding: 2px 8px;
    border-radius: 0;
}

.entry__title {
    font-family: 'EB Garamond', Georgia, serif;
    font-weight: 400;
    font-size: 24px;
    color: #FAF8F4;
    letter-spacing: -0.01em;
    line-height: 1.3;
    margin-bottom: 16px;
    transition: color 0.3s ease;
}

.entry:hover .entry__title {
    color: #FFFFFF;
}

.entry__excerpt {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #6B4A3A;
    line-height: 1.8;
    max-width: 480px;
    margin-bottom: 20px;
}

.entry__read-more {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 12px;
    color: #C8591A;
    letter-spacing: 0.1em;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.entry__read-more:hover {
    opacity: 0.7;
}

/* === Act: Fragments === */
.act--fragments .act__inner {
    padding-top: 100px;
}

.fragments-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.fragment {
    padding: 24px 0;
    border-top: 1px solid rgba(232, 212, 192, 0.08);
    transition: border-color 0.3s ease;
}

.fragment:hover {
    border-top-color: rgba(200, 89, 26, 0.3);
}

.fragment__date {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: #C8591A;
    letter-spacing: 0.15em;
    margin-bottom: 10px;
}

.fragment__text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 13px;
    color: #6B4A3A;
    line-height: 1.8;
}

/* === Act III: About === */
.act--about {
    border-top: 1px solid rgba(200, 89, 26, 0.15);
}

.act--about .act__inner {
    padding-top: 100px;
    padding-bottom: 120px;
    display: flex;
    flex-direction: column;
    gap: 64px;
}

.about-block {
    max-width: 500px;
}

.about-label {
    display: block;
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 400;
    font-size: 11px;
    color: #C8591A;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    margin-bottom: 24px;
}

.about-text {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 14px;
    color: #6B4A3A;
    line-height: 1.85;
    margin-bottom: 16px;
}

.about-text--jp {
    font-size: 13px;
    color: rgba(107, 74, 58, 0.7);
    margin-top: 16px;
}

/* === Footer === */
.site-footer {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-top: 40px;
    border-top: 1px solid rgba(200, 89, 26, 0.1);
}

.footer-year,
.footer-sep,
.footer-domain {
    font-family: 'Noto Sans JP', sans-serif;
    font-weight: 300;
    font-size: 11px;
    color: rgba(107, 74, 58, 0.5);
    letter-spacing: 0.1em;
}

/* === Bubble micro-interaction (spawned by JS) === */
.bubble-dot {
    position: absolute;
    border-radius: 50%;
    border: 1px solid rgba(200, 89, 26, 0.6);
    pointer-events: none;
    animation: bubble-radiate 0.6s ease-out forwards;
}

@keyframes bubble-radiate {
    0% {
        width: 4px;
        height: 4px;
        opacity: 0.8;
        transform: translate(-50%, -50%) scale(1);
    }
    100% {
        width: 4px;
        height: 4px;
        opacity: 0;
        transform: translate(-50%, -50%) scale(6);
    }
}

/* === Mobile Responsive === */
@media (max-width: 768px) {
    .split-screen {
        flex-direction: column;
    }

    .panel-left {
        position: relative;
        width: 100%;
        height: auto;
        min-height: 0;
    }

    .panel-left__inner {
        padding: 36px 32px;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 24px;
    }

    .brand-mark {
        margin-bottom: 0;
    }

    .main-nav {
        flex: none;
    }

    .nav-list {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0 24px;
    }

    .nav-link {
        padding: 8px 0;
    }

    .year-label {
        display: none;
    }

    .panel-left__rule {
        display: none;
    }

    .panel-right {
        margin-left: 0;
        width: 100%;
    }

    .bokeh-field {
        left: 0;
        width: 100%;
    }

    .act__inner {
        padding: 60px 32px;
    }

    .pull-quote__text {
        font-size: 22px;
    }

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

/* === Tablet === */
@media (max-width: 1024px) and (min-width: 769px) {
    .panel-left__inner {
        padding: 40px 32px 40px 40px;
    }

    .act__inner {
        padding: 60px 48px 60px 44px;
    }

    .pull-quote__text {
        font-size: 24px;
    }

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

/* === Page entry animation === */
@keyframes fade-in-up {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.brand-mark {
    animation: fade-in-up 0.8s ease-out both;
    animation-delay: 0.1s;
}

.nav-list {
    animation: fade-in-up 0.8s ease-out both;
    animation-delay: 0.25s;
}

.year-label {
    animation: fade-in-up 0.8s ease-out both;
    animation-delay: 0.4s;
}

.pull-quote {
    animation: fade-in-up 0.9s ease-out both;
    animation-delay: 0.5s;
}

.scroll-hint {
    animation: fade-in-up 0.7s ease-out both;
    animation-delay: 0.8s;
}
