/* ==========================================================
   matchumnews.com — japanese-minimal / zen contemplative
   Palette:
     #fafaf8  Shoji White (background)
     #2a2a2a  Sumi Black (primary text)
     #8a8a8a  Stone Gray (metadata)
     #c8c4bc  Tatami Tan (dividers, en-dash)
     #2a5f4a  Matcha Green (accent, links)
     #f0ede8  Paper Warm (secondary surface)
     #b8b0a4  Weathered Wood (borders)
   ========================================================== */

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

html {
    background: #fafaf8;
    color: #2a2a2a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    background: #fafaf8;
    color: #2a2a2a;
    font-family: "Zen Old Mincho", "Hiragino Mincho ProN", "Yu Mincho", Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 2.0;
    min-height: 100vh;
    overflow-x: hidden;
}

/* ----------------------------------------------------------
   Vessel — the narrow column
   ---------------------------------------------------------- */
.vessel {
    max-width: 520px;
    margin: 0 auto;
    padding: clamp(4rem, 12vh, 9rem) clamp(1.5rem, 4vw, 2rem) clamp(2rem, 6vh, 4rem);
    position: relative;
}

/* ----------------------------------------------------------
   Hero
   ---------------------------------------------------------- */
.hero {
    margin-bottom: clamp(4rem, 9vh, 6.5rem);
    text-align: left;
}

.hero__mark {
    font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
    font-weight: 300;
    font-size: 1.25rem;
    letter-spacing: 0.18em;
    color: #c8c4bc;
    line-height: 1;
    margin-bottom: 1.4rem;
}

.hero__title {
    font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 3vw, 2rem);
    letter-spacing: 0.01em;
    color: #2a2a2a;
    line-height: 1.4;
    margin-bottom: 0.6rem;
}

.hero__caption {
    font-family: "Zen Old Mincho", Georgia, serif;
    font-weight: 400;
    font-style: italic;
    color: #8a8a8a;
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 2.4rem;
}

.hero__rule {
    border: 0;
    height: 1px;
    background: #b8b0a4;
    width: 60px;
    margin: 0 0 1.6rem 0;
    opacity: 0.7;
}

.hero__date {
    font-family: "Zen Maru Gothic", "Hiragino Maru Gothic ProN", sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #8a8a8a;
    letter-spacing: 0.04em;
    line-height: 1.6;
}

/* ----------------------------------------------------------
   Feed
   ---------------------------------------------------------- */
.feed {
    display: block;
}

/* Article entries */
.entry {
    padding: clamp(3rem, 6vh, 5rem) 0;
    cursor: pointer;
    transition: opacity 600ms ease;
    will-change: opacity, transform;
    opacity: 0;
    transform: translateY(8px);
}

.entry.is-visible {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 900ms ease, transform 900ms ease;
}

.entry__kicker {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-size: 0.72rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #8a8a8a;
    line-height: 1.4;
    margin-bottom: 1.2rem;
}

.entry__title {
    font-family: "Zen Kaku Gothic New", "Hiragino Sans", sans-serif;
    font-weight: 500;
    font-size: clamp(1.3rem, 3vw, 2rem);
    line-height: 1.55;
    letter-spacing: 0.005em;
    color: #2a2a2a;
    margin-bottom: 1.4rem;
    transition: color 500ms ease;
}

/* Reading-time proportion line. JS sets --reading-w (a width in px). */
.entry__line {
    display: block;
    height: 1px;
    width: var(--reading-w, 60px);
    max-width: 120px;
    background: #2a5f4a;
    margin-bottom: 1.6rem;
    transform-origin: left center;
    transition: transform 700ms ease, background 500ms ease;
    opacity: 0.85;
}

.entry__excerpt {
    font-family: "Zen Old Mincho", Georgia, serif;
    font-weight: 400;
    font-size: 1rem;
    line-height: 2.0;
    color: #2a2a2a;
    margin-bottom: 1.6rem;
}

.entry__meta {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #8a8a8a;
    line-height: 1.8;
    letter-spacing: 0.02em;
}

.entry__sep {
    margin: 0 0.5em;
    color: #c8c4bc;
}

/* Hover — entire block is the click target. The only change is text color. */
.entry:hover .entry__title {
    color: #2a5f4a;
}

.entry:hover .entry__line {
    transform: scaleX(1.05);
}

.entry.is-active .entry__title {
    color: #2a5f4a;
}

/* ----------------------------------------------------------
   Dividers — single en-dash centered
   ---------------------------------------------------------- */
.divider {
    text-align: center;
    color: #c8c4bc;
    font-family: "Zen Old Mincho", Georgia, serif;
    font-size: 1rem;
    line-height: 1;
    user-select: none;
    letter-spacing: 0.4em;
}

/* Progressively expanding article spacing.
   Each successive entry sits in deeper silence. */
.entry:nth-of-type(1) { margin-bottom: 0; }

.divider:nth-of-type(1) { margin: 4rem 0; }
.divider:nth-of-type(2) { margin: 5rem 0; }
.divider:nth-of-type(3) { margin: 6rem 0; }
.divider:nth-of-type(4) { margin: 7rem 0; }
.divider:nth-of-type(5) { margin: 8rem 0; }
.divider:nth-of-type(n+6) { margin: 9rem 0; }

/* ----------------------------------------------------------
   Footer / enso
   ---------------------------------------------------------- */
.end {
    text-align: center;
    padding: clamp(2rem, 6vh, 4rem) 0 0 0;
}

.enso {
    margin: clamp(4rem, 10vh, 8rem) auto 2rem auto;
    width: 60px;
    height: 60px;
    border: 1px solid #c8c4bc;
    border-radius: 50%;
    transition: border-color 800ms ease, transform 1200ms ease;
}

.enso.is-drawn {
    animation: ensoBreath 9s ease-in-out infinite;
}

@keyframes ensoBreath {
    0%, 100% {
        border-color: #c8c4bc;
        transform: scale(1);
    }
    50% {
        border-color: #b8b0a4;
        transform: scale(1.04);
    }
}

.end__words {
    font-family: "Zen Maru Gothic", sans-serif;
    font-weight: 400;
    font-size: 0.8rem;
    color: #8a8a8a;
    letter-spacing: 0.18em;
    line-height: 1.8;
}

.end__sub {
    font-family: "Zen Old Mincho", Georgia, serif;
    font-style: italic;
    font-size: 0.85rem;
    color: #8a8a8a;
    line-height: 2.0;
    margin-top: 0.4rem;
}

/* ----------------------------------------------------------
   Selection
   ---------------------------------------------------------- */
::selection {
    background: #f0ede8;
    color: #2a5f4a;
}

::-moz-selection {
    background: #f0ede8;
    color: #2a5f4a;
}

/* ----------------------------------------------------------
   Reduced motion respect
   ---------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    .entry,
    .entry.is-visible,
    .enso,
    .enso.is-drawn,
    .entry__line {
        animation: none !important;
        transition: none !important;
        transform: none !important;
        opacity: 1 !important;
    }
}

/* ----------------------------------------------------------
   Narrow viewport
   ---------------------------------------------------------- */
@media (max-width: 520px) {
    .vessel {
        padding-left: 1.4rem;
        padding-right: 1.4rem;
    }

    .divider:nth-of-type(1) { margin: 3rem 0; }
    .divider:nth-of-type(2) { margin: 3.5rem 0; }
    .divider:nth-of-type(3) { margin: 4rem 0; }
    .divider:nth-of-type(4) { margin: 4.5rem 0; }
    .divider:nth-of-type(5) { margin: 5rem 0; }
    .divider:nth-of-type(n+6) { margin: 5.5rem 0; }
}
