/* reiwa.bar v2 — evolved-minimal, diagonal-sections, earth-tones */

:root {
    --warm-sand: #E8DFD0;
    --clay: #C8B8A0;
    --dark-earth: #4A3828;
    --moss: #6B7B5E;
    --warm-amber: #C8955A;
    --stone-gray: #8B8178;
    --paper-white: #F5F0E8;
    --mx: 50vw;
    --my: 50vh;
}

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

html, body { width: 100%; }

body {
    font-family: 'Noto Serif JP', serif;
    font-weight: 400;
    font-size: clamp(16px, 1.5vw, 18px);
    line-height: 1.8;
    color: var(--dark-earth);
    background: var(--warm-sand);
    overflow-x: hidden;
    position: relative;
}

/* Cursor-follow warm glow (DESIGN.md spec) */
#cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 149, 90, 0.06), transparent 70%);
    transform: translate(calc(var(--mx) - 100px), calc(var(--my) - 100px));
    pointer-events: none;
    z-index: 1;
    transition: transform 0.12s ease-out;
    will-change: transform;
}

/* Typography helpers */
h1, h2, h3, h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    letter-spacing: -0.01em;
    line-height: 1.2;
}

.mono {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    letter-spacing: 0.04em;
}

/* ENTRANCE */
#entrance {
    min-height: 100vh;
    background: var(--warm-sand);
    position: relative;
    padding: clamp(28px, 4vw, 64px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--stone-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.brand-mark { color: var(--dark-earth); }

.entrance-grid {
    flex: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr);
    gap: clamp(24px, 4vw, 80px);
    align-items: center;
    padding-top: 6vh;
    padding-bottom: 8vh;
    position: relative;
    z-index: 2;
}

.entrance-eyebrow {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--warm-amber);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 18px;
}

.wordmark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(64px, 12vw, 200px);
    line-height: 0.95;
    letter-spacing: -0.03em;
    color: var(--dark-earth);
    display: inline-flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0;
}

.wordmark-line { display: inline-block; }

.wordmark-dot {
    color: var(--warm-amber);
    display: inline-block;
    transform: translateY(-0.05em);
}

.wordmark-jp {
    font-family: 'Noto Serif JP', serif;
    font-size: clamp(15px, 1.6vw, 20px);
    color: var(--dark-earth);
    margin-top: 22px;
    letter-spacing: 0.08em;
}

.wordmark-tagline {
    max-width: 460px;
    margin-top: 18px;
    color: var(--stone-gray);
    font-size: clamp(14px, 1.3vw, 17px);
    line-height: 1.7;
}

.entrance-botanical {
    display: flex;
    justify-content: center;
    align-items: stretch;
    height: 100%;
    min-height: 360px;
}

.botanical-svg {
    width: 100%;
    max-width: 320px;
    height: auto;
    max-height: 70vh;
}

.botanical-stroke {
    stroke-dasharray: 1200;
    stroke-dashoffset: 1200;
    animation: draw-stroke 2.4s ease-out forwards;
}

@keyframes draw-stroke {
    to { stroke-dashoffset: 0; }
}

/* Wave dividers */
.wave-divider {
    position: absolute;
    left: 0;
    width: 100%;
    height: 80px;
    overflow: hidden;
    pointer-events: none;
    z-index: 1;
}

.wave-divider-bottom {
    bottom: -1px;
}

.wave-divider svg {
    width: 100%;
    height: 100%;
    display: block;
}

/* Diagonal section base — 3-degree clip-path */
.diagonal-section {
    position: relative;
    padding: clamp(72px, 10vw, 140px) clamp(28px, 4vw, 64px);
    overflow: hidden;
    clip-path: polygon(0 3vw, 100% 0, 100% calc(100% - 3vw), 0 100%);
    margin-top: -3vw;
    z-index: 2;
}

.section-clay   { background: var(--clay); }
.section-sand   { background: var(--warm-sand); }
.section-paper  { background: var(--paper-white); }

.section-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
}

.section-head {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: end;
    gap: 24px;
    margin-bottom: clamp(40px, 6vw, 72px);
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(74, 56, 40, 0.18);
}

.section-num {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    color: var(--warm-amber);
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-title {
    font-size: clamp(28px, 4vw, 52px);
    color: var(--dark-earth);
    letter-spacing: -0.02em;
}

.section-title-jp {
    font-family: 'Noto Serif JP', serif;
    color: var(--stone-gray);
    font-size: clamp(13px, 1.2vw, 16px);
    text-align: right;
    letter-spacing: 0.12em;
}

/* PHILOSOPHY GRID */
.philosophy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: clamp(20px, 2.4vw, 40px);
}

.philosophy-card {
    padding: 32px 28px;
    background: rgba(245, 240, 232, 0.55);
    border-left: 1px solid var(--moss);
    transition: transform 0.4s ease, background 0.4s ease;
    position: relative;
}

.philosophy-card:hover {
    transform: translateY(-4px);
    background: rgba(245, 240, 232, 0.85);
}

.philosophy-card h3 {
    font-size: 22px;
    color: var(--dark-earth);
    margin-bottom: 4px;
}

.card-jp {
    font-size: 14px;
    color: var(--moss);
    letter-spacing: 0.14em;
    margin-bottom: 18px;
}

.philosophy-card p:last-child {
    color: var(--dark-earth);
    font-size: 15px;
    line-height: 1.75;
}

/* SIGNATURES */
.signature-list {
    list-style: none;
    display: grid;
    gap: clamp(18px, 2vw, 28px);
}

.signature-item {
    display: grid;
    grid-template-columns: minmax(220px, 1.2fr) minmax(0, 2fr) auto;
    gap: clamp(16px, 2.4vw, 40px);
    align-items: baseline;
    padding: 22px 0;
    border-bottom: 1px dotted rgba(74, 56, 40, 0.25);
    transition: background 0.4s ease, padding 0.4s ease;
}

.signature-item:hover {
    background: rgba(200, 184, 160, 0.18);
    padding-left: 18px;
    padding-right: 18px;
}

.signature-meta { display: flex; flex-direction: column; gap: 4px; }

.signature-name {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(18px, 1.8vw, 24px);
    color: var(--dark-earth);
    letter-spacing: -0.01em;
}

.signature-jp {
    font-family: 'Noto Serif JP', serif;
    font-size: 13px;
    color: var(--moss);
    letter-spacing: 0.08em;
}

.signature-detail {
    color: var(--stone-gray);
    font-size: 15px;
    line-height: 1.7;
}

.signature-price {
    font-family: 'DM Mono', monospace;
    font-size: 14px;
    color: var(--warm-amber);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

/* CRAFT */
.craft-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
    gap: clamp(28px, 4vw, 64px);
    align-items: start;
}

.craft-illustration {
    background: var(--warm-sand);
    padding: 28px;
    border-radius: 4px;
    position: relative;
}

.craft-svg { width: 100%; height: auto; max-width: 460px; }

.craft-lede {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(20px, 2.4vw, 30px);
    line-height: 1.4;
    color: var(--dark-earth);
    letter-spacing: -0.01em;
    margin-bottom: 32px;
}

.craft-sources dt {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    color: var(--dark-earth);
    margin-top: 22px;
    font-size: 17px;
}

.craft-sources dt:first-of-type { margin-top: 0; }

.craft-sources dd {
    color: var(--stone-gray);
    font-size: 15px;
    line-height: 1.75;
    margin-top: 4px;
    padding-left: 14px;
    border-left: 1px solid rgba(107, 123, 94, 0.5);
}

/* HOURS */
.hours-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: clamp(24px, 3vw, 48px);
}

.hours-card {
    background: rgba(245, 240, 232, 0.5);
    padding: 30px 28px;
    border-top: 2px solid var(--warm-amber);
}

.hours-card h3 {
    font-size: 20px;
    margin-bottom: 18px;
    color: var(--dark-earth);
}

.hours-table { width: 100%; border-collapse: collapse; }

.hours-table th, .hours-table td {
    text-align: left;
    padding: 6px 0;
    border-bottom: 1px dotted rgba(74, 56, 40, 0.2);
    font-size: 14px;
}

.hours-table th {
    font-family: 'DM Mono', monospace;
    font-weight: 400;
    color: var(--stone-gray);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hours-table td {
    font-family: 'DM Mono', monospace;
    color: var(--dark-earth);
    text-align: right;
}

.seats-list {
    list-style: none;
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.seats-list li {
    display: flex;
    align-items: baseline;
    gap: 14px;
    padding-bottom: 8px;
    border-bottom: 1px dotted rgba(74, 56, 40, 0.2);
}

.seats-count {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: 26px;
    color: var(--warm-amber);
    min-width: 36px;
}

.seats-label {
    font-size: 14px;
    color: var(--stone-gray);
}

.seats-note {
    font-size: 13px;
    color: var(--stone-gray);
    line-height: 1.6;
}

.address {
    font-family: 'Noto Serif JP', serif;
    font-size: 15px;
    color: var(--dark-earth);
    line-height: 1.8;
}

.address-line {
    margin-top: 16px;
    font-size: 13px;
    color: var(--stone-gray);
    line-height: 1.7;
}

/* EVENING FOOTER */
#evening {
    background: var(--dark-earth);
    color: var(--warm-sand);
    padding: clamp(72px, 9vw, 120px) clamp(28px, 4vw, 64px) 40px;
    position: relative;
    overflow: hidden;
}

.evening-silhouette {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 200px;
    pointer-events: none;
}

.evening-silhouette svg { width: 100%; height: 100%; display: block; }

.evening-inner {
    max-width: 1180px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

.evening-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding-bottom: 32px;
    margin-bottom: 36px;
    border-bottom: 1px solid rgba(232, 223, 208, 0.18);
}

.evening-mark {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 500;
    font-size: clamp(24px, 3vw, 36px);
    color: var(--warm-sand);
    letter-spacing: -0.01em;
}

.evening-jp {
    font-family: 'Noto Serif JP', serif;
    color: var(--clay);
    letter-spacing: 0.12em;
    font-size: 14px;
}

.evening-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: clamp(24px, 3vw, 48px);
    margin-bottom: 56px;
}

.evening-col h4 {
    font-family: 'DM Mono', monospace;
    font-size: 12px;
    font-weight: 400;
    color: var(--warm-amber);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    margin-bottom: 12px;
}

.evening-col p {
    color: var(--clay);
    font-size: 14px;
    line-height: 1.8;
}

.evening-col p.mono { color: var(--warm-sand); font-size: 13px; }

.evening-fine {
    font-family: 'DM Mono', monospace;
    font-size: 11px;
    color: var(--stone-gray);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    border-top: 1px solid rgba(232, 223, 208, 0.12);
    padding-top: 24px;
}

/* RESPONSIVE */
@media (max-width: 880px) {
    .entrance-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .entrance-botanical { display: none; }

    .section-head {
        grid-template-columns: 1fr;
        align-items: start;
        gap: 8px;
    }

    .section-title-jp { text-align: left; }

    .signature-item {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .signature-price { justify-self: start; }

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

    .evening-top { flex-direction: column; gap: 8px; align-items: flex-start; }
}

@media (max-width: 560px) {
    .top-bar { flex-direction: column; gap: 6px; align-items: flex-start; }

    .wordmark { font-size: 64px; }

    .diagonal-section { clip-path: polygon(0 1.5vw, 100% 0, 100% calc(100% - 1.5vw), 0 100%); }
}

@media (prefers-reduced-motion: reduce) {
    .botanical-stroke { animation: none; stroke-dashoffset: 0; }
    #cursor-glow { transition: none; }
    .philosophy-card, .signature-item { transition: none; }
}
