/* ================================================
   chika.review — Stylesheet
   Palette: Creamy Pastel / Scandinavian Editorial
   Typography: Playfair Display + Lora + DM Mono
   ================================================ */

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

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

body {
    background-color: #F5F0E8;
    color: #2C2420;
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    line-height: 1.85;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === CONTENT COLUMN === */
.content-column {
    width: 100%;
    max-width: 680px;
    /* Asymmetric margins: left slightly wider than right (Scandinavian print reference) */
    margin-left: auto;
    margin-right: auto;
    padding-left: 64px;
    padding-right: 48px;
}

/* === NAVIGATION === */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 64px 24px 64px;
    background-color: transparent;
    mix-blend-mode: normal;
}

.nav-logo {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.08em;
    text-transform: lowercase;
    color: #2C2420;
}

.nav-logo-chika {
    color: #2C2420;
}

.nav-logo-dot {
    color: #8B7355;
}

.nav-label {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #A89880;
}

/* === HERO === */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;
    padding-top: 140px;
    overflow: hidden;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding-left: 64px;
    padding-right: 48px;
    max-width: 700px;
}

.hero-wordmark {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.hero-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(80px, 8vw, 120px);
    line-height: 0.9;
    letter-spacing: -0.02em;
    color: #2C2420;
    display: block;
}

.hero-subtitle {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    /* Pushed 2–3 character widths right relative to "chika" */
    font-size: clamp(24px, 2.6vw, 36px);
    line-height: 1.2;
    color: #6B5E52;
    margin-top: 8px;
    margin-left: clamp(48px, 5vw, 96px);
    letter-spacing: 0.01em;
}

.hero-caption {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: 18px;
    line-height: 1.6;
    color: #6B5E52;
    margin-top: 40px;
}

.hero-rule {
    width: 100%;
    height: 1px;
    background-color: #D4C9B5;
    margin-top: 24px;
}

/* Hero glyph: positioned right side, structural counterweight */
.hero-glyph {
    position: absolute;
    right: 0;
    top: 10%;
    width: 320px;
    height: 400px;
    z-index: 1;
    opacity: 0.1;
    pointer-events: none;
}

.circuit-glyph {
    width: 100%;
    height: 100%;
}

/* Draw-on animation: stroke-dashoffset */
.draw-on {
    stroke-dasharray: 1000;
    stroke-dashoffset: 1000;
    /* Animation triggered by .animate class added via JS */
}

body.hero-animated .draw-on {
    animation: drawPath 1.6s ease-out 0.8s forwards;
}

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

/* Topographic lines background */
.hero-topo {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60%;
    z-index: 0;
    opacity: 0.06;
    pointer-events: none;
}

.topo-lines {
    width: 100%;
    height: 100%;
    preserveAspectRatio: none;
}

/* === REVIEWS INDEX === */
.reviews-index {
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: #F5F0E8;
}

.reviews-index .content-column {
    max-width: none;
    width: 100%;
    padding-left: 64px;
    padding-right: 64px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 64px;
    padding-bottom: 16px;
    border-bottom: 1px solid #D4C9B5;
}

.section-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 36px;
    letter-spacing: -0.01em;
    color: #2C2420;
}

.section-label {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 12px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #A89880;
}

/* Review card grid: 3 columns at ≥900px, 1 column on mobile */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}

@media (max-width: 900px) {
    .reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* === REVIEW CARD === */
.review-card {
    position: relative;
    background-color: #EDE6D9;
    padding: 28px 28px 24px;
    cursor: pointer;
    overflow: hidden;
    /* Scale-hover: the defining micro-interaction */
    transform: scale(1.0);
    transition: transform 280ms cubic-bezier(0.34, 1.56, 0.64, 1),
                box-shadow 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
    will-change: transform;
}

.review-card:hover {
    transform: scale(1.026);
    box-shadow: 0 8px 32px rgba(44, 36, 32, 0.08);
}

/* Top rule on cards: 1px warm cream-tan */
.card-top-rule {
    width: 100%;
    height: 1px;
    background-color: #D4C9B5;
    margin-bottom: 20px;
}

/* Hexagonal lattice: hidden by default, revealed on hover */
.card-lattice {
    position: absolute;
    bottom: -8px;
    right: -8px;
    width: 140px;
    height: 112px;
    opacity: 0;
    transition: opacity 280ms cubic-bezier(0.34, 1.56, 0.64, 1);
    pointer-events: none;
}

.review-card:hover .card-lattice {
    opacity: 0.15;
}

.lattice-svg {
    width: 100%;
    height: 100%;
}

/* Card category and date */
.card-category {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
}

.category-tag {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B7355;
}

.card-date {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #A89880;
}

.card-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 20px;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #2C2420;
    margin-bottom: 14px;
}

.card-excerpt {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.75;
    color: #6B5E52;
    margin-bottom: 20px;
}

/* Score line: ring + numeral */
.card-score-line {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.score-ring-wrap {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
}

.score-ring {
    width: 40px;
    height: 40px;
}

.score-arc {
    /* Score arc rendered in accent color */
}

.score-display {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.score-number {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 28px;
    line-height: 1;
    color: #2C2420;
    letter-spacing: -0.02em;
}

.score-denom {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 13px;
    color: #A89880;
    letter-spacing: 0.02em;
}

.card-link {
    display: inline-block;
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #8B7355;
    text-decoration: none;
    border-bottom: 1px solid #D4C9B5;
    padding-bottom: 2px;
    transition: color 200ms ease, border-color 200ms ease;
}

.card-link:hover {
    color: #2C2420;
    border-color: #8B7355;
}

/* === REVIEW FULL === */
.review-full {
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: #EDE6D9;
}

.review-meta {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 32px;
}

.review-category-tag {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8B7355;
}

.review-date {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.08em;
    color: #A89880;
}

/* Circuit-path divider glyph */
.divider-glyph {
    width: 100%;
    margin-bottom: 32px;
    opacity: 0.8;
}

.divider-glyph svg {
    width: 100%;
    height: auto;
}

.review-title {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: -0.02em;
    color: #2C2420;
    margin-bottom: 40px;
}

/* Review score display: large isolated numeral */
.review-score-display {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 56px;
}

.review-score-large {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 72px;
    line-height: 1;
    color: #2C2420;
    letter-spacing: -0.04em;
}

.review-score-ten {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 18px;
    color: #A89880;
    letter-spacing: 0.02em;
    align-self: center;
    padding-bottom: 8px;
}

/* Review body text */
.review-body {
    position: relative;
}

.review-paragraph {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.85;
    color: #2C2420;
    margin-bottom: 32px;
}

/* Drop cap: Playfair Display 900, 3-line, warm gold-brown */
.has-drop-cap::first-letter {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 900;
    font-size: 4.8em;
    line-height: 0.75;
    float: left;
    color: #8B7355;
    margin-right: 0.08em;
    margin-top: 0.06em;
}

/* Pull-quote: Playfair italic, muted, thin left rule */
.pull-quote {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 400;
    font-style: italic;
    font-size: 2.4rem;
    line-height: 1.3;
    color: #A89880;
    border-left: 3px solid #D4C9B5;
    padding-left: 24px;
    margin: 48px 0;
    quotes: none;
}

/* Review divider glyph within body */
.review-divider-glyph {
    width: 100%;
    margin: 40px 0;
    opacity: 0.6;
}

.review-divider-glyph svg {
    width: 100%;
    height: auto;
}

/* === EDITORIAL NOTE === */
.editorial-note {
    padding-top: 120px;
    padding-bottom: 120px;
    background-color: #F5F0E8;
}

.editorial-inner {
    display: flex;
    align-items: flex-start;
    gap: 40px;
}

.editorial-glyph {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    opacity: 0.35;
    /* Positioned at edge: not centered */
    margin-top: 4px;
}

.editorial-glyph svg {
    width: 100%;
    height: 100%;
}

.editorial-heading {
    font-family: 'Playfair Display', Georgia, serif;
    font-weight: 700;
    font-size: 24px;
    letter-spacing: -0.01em;
    color: #2C2420;
    margin-bottom: 16px;
}

.editorial-body {
    font-family: 'Lora', Georgia, serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.85;
    color: #6B5E52;
}

/* === FOOTER === */
.footer {
    padding-top: 64px;
    padding-bottom: 64px;
    background-color: #F5F0E8;
    /* Full palette reference: #000000 text-shadow base, #C4B5A0 mid-tone muted rule */
}

/* Mid-tone rule: used for subtle horizontal section separators at #C4B5A0 */
.section-mid-rule {
    border-top: 1px solid #C4B5A0;
}

/* Darkest reference: nav outline on deepest-scroll state */
.nav.nav--deep {
    border-bottom-color: #000000;
}

.footer-rule {
    width: 100%;
    height: 1px;
    background-color: #D4C9B5;
    margin-bottom: 32px;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-wordmark {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 13px;
    letter-spacing: 0.06em;
    color: #6B5E52;
}

.footer-links {
    display: flex;
    gap: 32px;
}

.footer-link {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 400;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #A89880;
    text-decoration: none;
    transition: color 180ms ease;
}

.footer-link:hover {
    color: #2C2420;
}

.footer-year {
    font-family: 'DM Mono', 'Courier New', monospace;
    font-weight: 300;
    font-size: 11px;
    letter-spacing: 0.06em;
    color: #A89880;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
    .content-column {
        padding-left: 32px;
        padding-right: 32px;
    }

    .nav {
        padding: 20px 32px;
    }

    .hero-inner {
        padding-left: 32px;
        padding-right: 32px;
    }

    .hero-glyph {
        width: 200px;
        height: 260px;
        opacity: 0.08;
    }

    .reviews-index .content-column {
        padding-left: 32px;
        padding-right: 32px;
    }

    .editorial-inner {
        flex-direction: column;
        gap: 24px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .pull-quote {
        font-size: 1.8rem;
    }
}

@media (max-width: 480px) {
    html {
        font-size: 16px;
    }

    .content-column {
        padding-left: 24px;
        padding-right: 24px;
    }

    .nav {
        padding: 18px 24px;
    }

    .hero-inner {
        padding-left: 24px;
        padding-right: 24px;
    }

    .hero-glyph {
        display: none;
    }

    .reviews-index .content-column {
        padding-left: 24px;
        padding-right: 24px;
    }

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