
:root {
    --bg: #f4efe6;
    --paper: rgba(255, 251, 245, 0.84);
    --text: #2d2926;
    --muted: #6f675f;
    --soft: #8d8378;
    --ink: #1f2430;
    --gold: #9b7f4d;
    --shadow: 0 24px 60px rgba(45, 41, 38, 0.12);
    --radius-lg: 28px;
    --serif: "Noto Serif SC", "Source Han Serif SC", serif;
    --display: "Cormorant Garamond", "Noto Serif SC", serif;
    --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(200, 211, 223, 0.9), transparent 26%),
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.72), transparent 18%),
        linear-gradient(180deg, #f7f2ea 0%, #efe6d7 52%, #e7dccb 100%);
    font-family: var(--sans);
    line-height: 1.78;
    min-height: 100vh;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.16) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px);
    background-size: 100% 100%, 44px 44px;
    opacity: 0.18;
    mix-blend-mode: soft-light;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.page-shell { position: relative; max-width: 1180px; width: calc(100% - 32px); margin: 0 auto; }
.moon-orb { position: absolute; border-radius: 999px; filter: blur(1px); pointer-events: none; }
.moon-orb.one {
    width: 188px; height: 188px; top: 96px; right: 28px;
    background: radial-gradient(circle at 35% 35%, rgba(255,255,255,0.96), rgba(200, 211, 223, 0.82) 58%, rgba(200, 211, 223, 0.18) 72%, transparent 76%);
    box-shadow: 0 0 50px rgba(200, 211, 223, 0.4);
}
.moon-orb.two {
    width: 96px; height: 96px; top: 420px; left: -26px;
    background: radial-gradient(circle at 30% 30%, rgba(255,255,255,0.7), rgba(215, 223, 231, 0.18) 68%, transparent 72%);
}
.site-header {
    position: sticky; top: 0; z-index: 20;
    background: rgba(247, 242, 234, 0.92); border-bottom: 1px solid rgba(58, 49, 42, 0.08);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px 0; }
.brand-mark { display: flex; align-items: center; gap: 14px; }
.brand-seal {
    width: 44px; height: 44px; border-radius: 14px; border: 1px solid rgba(155, 127, 77, 0.28);
    background: linear-gradient(180deg, rgba(255,250,242,0.96), rgba(242,232,217,0.96)); display: grid; place-items: center;
    font-family: var(--display); font-size: 28px; color: var(--gold);
}
.brand-copy { display: flex; flex-direction: column; gap: 2px; }
.brand-title { font-family: var(--display); font-size: 2rem; letter-spacing: 0.08em; }
.brand-note { color: var(--muted); font-size: 0.88rem; letter-spacing: 0.16em; text-transform: uppercase; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.site-nav a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 0.96rem; transition: all 180ms ease; }
.site-nav a:hover, .site-nav a.current { color: var(--ink); background: rgba(255, 251, 245, 0.9); box-shadow: 0 10px 30px rgba(45, 41, 38, 0.08); }
main { padding: 36px 0 72px; }
.panel {
    position: relative; background: var(--paper); border: 1px solid rgba(58, 49, 42, 0.08);
    border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden;
}
.panel::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, rgba(255,255,255,0.34), transparent 28%); pointer-events: none; }
.hero {
    padding: 76px 68px; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 40px; align-items: center;
}
.eyebrow { color: var(--gold); text-transform: uppercase; letter-spacing: 0.22em; font-size: 0.82rem; margin-bottom: 18px; }
.hero h1, .section-hero h1, .about-copy h1 {
    margin: 0; font-family: var(--serif); font-weight: 500; font-size: 4.2rem; line-height: 1.06; letter-spacing: 0.04em;
}
.hero p, .section-hero p, .about-copy p, .entry-body, .entry-excerpt, .archive-note, .footer-copy { font-family: var(--serif); }
.hero-intro { margin-top: 22px; font-size: 1.16rem; color: var(--muted); max-width: 640px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button-link {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-width: 152px;
    padding: 12px 18px; border-radius: 999px; font-size: 0.95rem; transition: transform 180ms ease;
}
.button-link.primary { background: var(--ink); color: #f8f4ed; box-shadow: 0 20px 30px rgba(31, 36, 48, 0.16); }
.button-link.secondary { background: rgba(255, 251, 245, 0.88); color: var(--ink); border: 1px solid rgba(58, 49, 42, 0.1); }
.button-link:hover { transform: translateY(-2px); }
.hero-aside {
    padding: 28px; border-radius: 24px; background: linear-gradient(180deg, rgba(34, 40, 52, 0.95), rgba(52, 60, 79, 0.86));
    color: rgba(247, 242, 234, 0.92); position: relative; overflow: hidden;
}
.hero-portrait {
    width: 100%; max-width: 300px; margin: 0 auto 18px; border-radius: 20px; overflow: hidden;
    border: 1px solid rgba(255,255,255,0.12); background: rgba(255,255,255,0.06);
}
.hero-note { margin: 0; color: rgba(247, 242, 234, 0.76); font-size: 0.98rem; }
.section { margin-top: 28px; padding: 34px; }
.section-head { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 26px; }
.section-title { margin: 0; font-family: var(--serif); font-size: 2.6rem; font-weight: 500; }
.section-caption { margin: 10px 0 0; color: var(--muted); max-width: 720px; }
.category-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.category-card {
    min-height: 248px; padding: 24px; border-radius: 24px; border: 1px solid rgba(58, 49, 42, 0.08);
    background: linear-gradient(180deg, rgba(255,251,245,0.96), rgba(244,236,225,0.88)); display: flex; flex-direction: column; justify-content: space-between;
    transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}
.category-card:hover { transform: translateY(-4px); box-shadow: 0 26px 50px rgba(45, 41, 38, 0.1); border-color: rgba(155, 127, 77, 0.22); }
.category-card header { display: flex; justify-content: space-between; align-items: start; gap: 14px; }
.category-glyph { font-family: var(--display); font-size: 2.3rem; color: var(--gold); }
.category-card h3 { margin: 0; font-family: var(--serif); font-size: 1.5rem; font-weight: 500; }
.category-card p { margin: 20px 0 0; color: var(--muted); }
.category-card footer { margin-top: 26px; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 0.94rem; }
.quote-block { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 24px; align-items: stretch; }
.quote-card, .archive-card, .about-card, .entry-card { border-radius: 24px; border: 1px solid rgba(58, 49, 42, 0.08); background: rgba(255, 251, 245, 0.88); }
.quote-card { padding: 30px; }
.quote-card blockquote { margin: 0; font-family: var(--serif); font-size: 1.3rem; line-height: 1.9; }
.quote-card cite { display: block; margin-top: 18px; color: var(--soft); font-style: normal; }
.archive-card { padding: 28px; background: linear-gradient(180deg, rgba(34, 40, 52, 0.95), rgba(49, 56, 69, 0.92)); color: #f6f2ea; }
.archive-card .archive-title { margin: 0 0 12px; font-family: var(--serif); font-size: 1.7rem; font-weight: 500; }
.archive-note { color: rgba(246, 242, 234, 0.74); }
.section-hero { padding: 42px 42px 30px; }
.section-hero .lede { margin-top: 18px; max-width: 780px; color: var(--muted); font-size: 1.06rem; }
.entries { display: grid; gap: 18px; padding: 0 34px 34px; }
.entry-card { padding: 28px 30px; position: relative; overflow: hidden; }
.entry-card::after { content: ""; position: absolute; top: 0; right: 0; width: 120px; height: 120px; background: radial-gradient(circle, rgba(200,211,223,0.26), transparent 70%); pointer-events: none; }
.entry-meta { color: var(--gold); letter-spacing: 0.16em; font-size: 0.78rem; text-transform: uppercase; }
.entry-card h2 { margin: 10px 0 16px; font-family: var(--serif); font-size: 2rem; font-weight: 500; }
.entry-excerpt { color: var(--muted); margin-bottom: 18px; font-size: 1.02rem; }
.entry-body { color: var(--text); font-size: 1.04rem; }
.entry-body.poetry { line-height: 2.08; font-size: 1.08rem; }
.about-layout { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(260px, 0.95fr); gap: 24px; align-items: stretch; }
.about-copy, .about-card { padding: 34px; }
.about-copy p + p { margin-top: 18px; }
.about-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 12px; }
.about-list li { padding: 14px 16px; border-radius: 14px; background: rgba(250, 245, 236, 0.94); border: 1px solid rgba(58, 49, 42, 0.08); }
.footer { padding: 20px 0 64px; }
.footer-card { padding: 24px 28px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.footer-copy { color: var(--muted); }
.footer-link { color: var(--ink); }
@media (max-width: 960px) {
    .hero, .quote-block, .about-layout { grid-template-columns: 1fr; }
    .hero { padding: 44px 28px; }
    .section, .section-hero, .entries, .about-copy, .about-card, .quote-card, .archive-card, .footer-card { padding-left: 22px; padding-right: 22px; }
}
@media (max-width: 720px) {
    .nav-inner { flex-direction: column; align-items: flex-start; }
    .site-nav { justify-content: flex-start; }
    .page-shell { width: min(100% - 20px, 1180px); }
    main { padding-top: 20px; }
    .hero h1, .section-hero h1, .about-copy h1 { font-size: 2.35rem; }
    .section-head, .footer-card { flex-direction: column; align-items: flex-start; }
    .entry-card { padding: 22px 20px; }
}


/* volume toc */
.volume-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: 22px;
    padding: 0 34px 34px;
}

.volume-controls {
    display: flex;
    justify-content: flex-start;
}

.toc-toggle {
    appearance: none;
    border: 1px solid rgba(155, 127, 77, 0.26);
    background: linear-gradient(180deg, rgba(255,250,242,0.98), rgba(243,234,221,0.96));
    color: var(--ink);
    border-radius: 999px;
    padding: 11px 18px;
    font: inherit;
    letter-spacing: 0.08em;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    box-shadow: 0 16px 30px rgba(45, 41, 38, 0.08);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.toc-toggle:hover {
    transform: translateY(-1px);
    box-shadow: 0 20px 34px rgba(45, 41, 38, 0.11);
}

.toc-toggle-badge {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    display: inline-grid;
    place-items: center;
    background: rgba(31, 36, 48, 0.92);
    color: #f6f1e7;
    font-size: 0.84rem;
}

.toc-toggle-label {
    font-family: var(--serif);
    font-size: 1rem;
}

.toc-toggle-state-icon {
    font-size: 1.05rem;
    color: var(--gold);
    min-width: 1.2rem;
    text-align: center;
    transition: transform 180ms ease, color 180ms ease;
}

.toc-toggle[aria-expanded="true"] .toc-toggle-state-icon {
    transform: rotate(180deg);
    color: var(--ink);
}

.toc-toggle-state {
    color: var(--soft);
    font-size: 0.88rem;
    letter-spacing: 0.08em;
}

.volume-toc {
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 360ms ease, opacity 220ms ease, transform 220ms ease;
}

.volume-toc.is-open {
    max-height: 2400px;
    opacity: 1;
    transform: translateY(0);
}

.volume-toc-card {
    position: relative;
    border-radius: 28px;
    border: 1px solid rgba(155, 127, 77, 0.18);
    background: linear-gradient(180deg, rgba(249,244,236,0.98), rgba(238,228,214,0.96));
    box-shadow: 0 26px 50px rgba(45, 41, 38, 0.09);
    padding: 28px 26px 26px 86px;
}

.volume-toc-card::before {
    content: '';
    position: absolute;
    left: 28px;
    top: 22px;
    bottom: 22px;
    width: 1px;
    background: linear-gradient(180deg, rgba(155, 127, 77, 0.06), rgba(155, 127, 77, 0.34), rgba(155, 127, 77, 0.08));
}

.volume-toc-card::after {
    content: '卷目';
    position: absolute;
    left: 10px;
    top: 34px;
    writing-mode: vertical-rl;
    letter-spacing: 0.3em;
    color: rgba(155, 127, 77, 0.82);
    font-family: var(--serif);
    font-size: 0.92rem;
}

.volume-toc-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
    margin-bottom: 16px;
}

.volume-toc-title {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.45rem;
    font-weight: 500;
}

.volume-toc-note {
    color: var(--muted);
    margin: 8px 0 0;
    font-size: 0.98rem;
}

.volume-toc-count {
    color: var(--gold);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    font-size: 0.78rem;
    white-space: nowrap;
}

.volume-toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 16px;
}

.volume-toc-list li {
    margin: 0;
}

.volume-toc-list a {
    display: flex;
    gap: 12px;
    align-items: baseline;
    padding: 10px 12px;
    border-radius: 14px;
    transition: background 180ms ease, transform 180ms ease;
}

.volume-toc-list a:hover {
    background: rgba(255, 250, 242, 0.92);
    transform: translateX(2px);
}

.toc-index {
    color: var(--gold);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    min-width: 2.2rem;
}

.toc-title {
    color: var(--text);
    font-family: var(--serif);
    line-height: 1.55;
}

.entries {
    padding: 0;
}

@media (max-width: 720px) {
    .volume-layout {
        padding-left: 22px;
        padding-right: 22px;
        padding-bottom: 22px;
    }

    .volume-toc-card {
        padding: 22px 18px 18px 62px;
    }

    .volume-toc-head {
        flex-direction: column;
        align-items: flex-start;
    }

    .volume-toc-list {
        grid-template-columns: 1fr;
    }
}
