
    :root {
      color-scheme: dark;
      --bg: #0a0d14;
      --surface: #131824;
      --surface-raised: #1b2230;
      --ink: #eef1f6;
      --muted: #a7afbd;
      --accent: #78aaff;
      --accent-ink: #08101d;
      --line: #303848; /* reserved for actual content boundaries */
      --surface-rule: #1b2230;
      --sans: "Libre Franklin", "Noto Sans TC", sans-serif;
      --serif: "Noto Serif TC", "Songti TC", serif;
      --text-xs: 13px;
      --text-sm: 14px;
      --text-md: 16px;
      --text-lead: clamp(17px, 1.5vw, 20px);
      --text-title: clamp(28px, 3.2vw, 46px);
      --display: clamp(48px, 6.4vw, 92px);
      --page-pad: clamp(16px, 2vw, 30px);
      --gap: 10px;
      --radius: 2px;
    }
    *, *::before, *::after { box-sizing: border-box; }
    html { background: var(--bg); scroll-behavior: smooth; }
    body { margin: 0; min-height: 100svh; background: var(--bg); color: var(--ink); font: 400 var(--text-md)/1.6 var(--serif); }
    a { color: inherit; text-decoration: none; }
    button { font: inherit; }
    :focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
    .page-shell { width: 100%; padding: var(--page-pad); }
    .hero-board { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--gap); height: min(660px, calc(100svh - 2 * var(--page-pad))); overflow: hidden; }
    .photo-column { display: flex; min-width: 0; flex-direction: column; gap: var(--gap); }
    .photo-column:nth-child(1) { transform: translateY(-52px); }
    .photo-column:nth-child(2) { transform: translateY(34px); }
    .photo-column:nth-child(3) { transform: translateY(-24px); }
    .photo-column:nth-child(4) { transform: translateY(60px); }
    .photo-column:nth-child(5) { transform: translateY(-38px); }
    .photo-column:nth-child(6) { transform: translateY(18px); }
    .print { position: relative; display: block; overflow: hidden; background: var(--surface); isolation: isolate; min-height: 210px; flex: 1 1 0; }
    .print img { width: 100%; height: 100%; min-height: inherit; display: block; object-fit: cover; filter: saturate(.84); transition: transform 650ms cubic-bezier(.2,.65,.3,1), filter 350ms ease; }
    .print:hover img, .print:focus-visible img { transform: scale(1.045); filter: saturate(1.08); }
    .print figcaption { position: absolute; inset: auto 0 0; min-height: 34px; display: flex; align-items: center; padding: 4px 9px; background: var(--surface-raised); color: var(--ink); font: 500 var(--text-xs)/1.4 var(--sans); }
    .intro-cell { grid-column: 2 / span 4; grid-row: 1; z-index: 2; align-self: center; min-height: 390px; margin-block: 110px; padding: clamp(30px, 4vw, 56px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; background: var(--surface); }
    .wordmark { max-width: 11ch; margin: 0; font: 700 var(--display)/.98 var(--sans); letter-spacing: -.065em; text-wrap: balance; }
    .intro-text { max-width: 26ch; margin: 22px 0 0; color: var(--ink); font: 400 var(--text-lead)/1.7 var(--serif); text-wrap: pretty; }
    .primary-action { min-height: 48px; margin-top: 24px; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: var(--radius); font: 600 var(--text-sm)/1 var(--sans); transition: transform 180ms ease, background 180ms ease; }
    .primary-action:hover { background: #a5c6ff; transform: translateY(-2px); }
    .section-links { display: flex; flex-wrap: wrap; gap: 12px 20px; margin-top: auto; padding-top: 26px; color: var(--muted); font: 500 var(--text-sm)/1.4 var(--sans); }
    .section-links a:hover, .section-links a:focus-visible { color: var(--ink); }
    .archive { margin-top: clamp(78px, 10vw, 140px); }
    .archive-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
    .archive-title { margin: 0; font: 600 var(--text-title)/1.1 var(--sans); letter-spacing: -.04em; }
    .archive-count { margin: 0; color: var(--muted); font: 500 var(--text-sm)/1.4 var(--sans); }
    .archive-count span { color: var(--ink); font-size: 1.25em; }
    .year-nav { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
    .year-button { min-height: 42px; min-width: 56px; padding: 8px 13px; border: 0; border-radius: var(--radius); background: var(--surface); color: var(--muted); cursor: pointer; font: 500 var(--text-sm)/1 var(--sans); transition: color 160ms ease, background 160ms ease, transform 160ms ease; }
    .year-button:hover { color: var(--ink); transform: translateY(-2px); }
    .year-button[aria-pressed="true"] { color: var(--accent-ink); background: var(--accent); }
    .archive-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px 18px; }
    .archive-item { min-width: 0; }
    .archive-item[hidden] { display: none; }
    .archive-item a { display: block; }
    .archive-item img { display: block; width: 100%; aspect-ratio: 1.35 / 1; object-fit: cover; background: var(--surface); filter: saturate(.9); transition: filter 300ms ease, transform 450ms ease; }
    .archive-item a:hover img, .archive-item a:focus-visible img { filter: saturate(1.08); transform: translateY(-3px); }
    .archive-item h3 { margin: 10px 0 0; font: 500 17px/1.45 var(--serif); }
    .archive-item p { margin: 4px 0 0; color: var(--muted); font: 400 var(--text-sm)/1.5 var(--serif); }
    .archive-item time { display: block; margin-top: 7px; color: var(--muted); font: 500 var(--text-xs)/1.4 var(--sans); }
    .empty-state { display: none; grid-column: 1 / -1; margin: 24px 0; color: var(--muted); font-size: var(--text-md); }
    .empty-state.is-visible { display: block; }
    .story { margin-top: clamp(88px, 10vw, 140px); padding: clamp(32px, 5vw, 64px); display: grid; grid-template-columns: 1fr 1.1fr; gap: 6vw; align-items: start; background: var(--surface-rule); }
    footer { padding-top: 34px; background: var(--surface-rule); }
    .story h2 { margin: 0; max-width: 9ch; font: 600 clamp(34px, 5vw, 68px)/1.04 var(--sans); letter-spacing: -.05em; }
    .story-copy { max-width: 55ch; margin: 0; font: 400 var(--text-lead)/1.85 var(--serif); }
    .story-copy strong { color: var(--ink); font-weight: 600; }
    footer { margin-top: clamp(80px, 10vw, 140px); padding: 26px; display: flex; align-items: baseline; justify-content: space-between; gap: 24px; color: var(--muted); font: 400 var(--text-sm)/1.6 var(--serif); }
    footer strong { color: var(--ink); font: 600 18px/1 var(--sans); letter-spacing: -.03em; }
    .motion-ready .animate-in { opacity: 0; transform: translateY(18px); transition: opacity 650ms ease, transform 650ms cubic-bezier(.2,.65,.3,1); }
    .motion-ready .animate-in.is-in { opacity: 1; transform: none; }
    .motion-ready .hero-board .print { clip-path: inset(100% 0 0); animation: print-open 850ms cubic-bezier(.2,.7,.2,1) forwards; }
    .motion-ready .archive-item { opacity: 0; transform: translateY(14px); animation: item-arrive 600ms ease forwards; }
    .motion-ready .archive-item:nth-child(2) { animation-delay: 60ms; }
    .motion-ready .archive-item:nth-child(3) { animation-delay: 120ms; }
    .motion-ready .archive-item:nth-child(4) { animation-delay: 180ms; }
    .motion-ready .archive-item:nth-child(n+5) { animation-delay: 240ms; }
    @keyframes item-arrive { to { opacity: 1; transform: none; } }
    .motion-ready .hero-board .photo-column:nth-child(2) .print { animation-delay: 70ms; }
    .motion-ready .hero-board .photo-column:nth-child(3) .print { animation-delay: 130ms; }
    .motion-ready .hero-board .photo-column:nth-child(4) .print { animation-delay: 190ms; }
    .motion-ready .hero-board .photo-column:nth-child(5) .print { animation-delay: 250ms; }
    .motion-ready .hero-board .photo-column:nth-child(6) .print { animation-delay: 310ms; }
    .motion-ready .hero-board .intro-cell { opacity: 0; transform: translateY(20px); animation: card-arrive 700ms 280ms cubic-bezier(.2,.65,.3,1) forwards; }
    @keyframes print-open { to { clip-path: inset(0); } }
    @keyframes card-arrive { to { opacity: 1; transform: none; } }
    @media (max-width: 950px) {
      .hero-board { grid-template-columns: repeat(4, minmax(0, 1fr)); height: 680px; }
      .photo-column:nth-child(n+5) { display: none; }
      .intro-cell { grid-column: 2 / span 2; min-height: 350px; }
      .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .story { gap: 5vw; }
    }
    @media (max-width: 600px) {
      :root { --page-pad: 16px; --gap: 8px; --text-lead: 17px; }
      .hero-board { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; height: auto; min-height: 0; overflow: hidden; }
      .photo-column { display: contents; }
      .photo-column:nth-child(n+3) { display: none; }
      .photo-column:nth-child(2) { display: contents; }
      .intro-cell { grid-column: 1 / -1; grid-row: 1; min-height: 0; margin: 0; padding: 25px 22px 22px; }
      .wordmark { max-width: 14ch; font-size: clamp(36px, 10vw, 48px); }
      .intro-text { max-width: 32ch; margin-top: 15px; line-height: 1.65; }
      .primary-action { width: 100%; margin-top: 18px; }
      .section-links { width: 100%; justify-content: space-between; gap: 12px; padding-top: 22px; }
      .print { min-height: 178px; }
      .photo-column:nth-child(1), .photo-column:nth-child(2) { display: contents; }
      .photo-column:nth-child(1) .print:first-child { grid-column: 1; grid-row: 2; }
      .photo-column:nth-child(2) .print:first-child { grid-column: 2; grid-row: 2; transform: translateY(38px); }
      .photo-column:nth-child(1) .print:nth-child(n+2), .photo-column:nth-child(2) .print:nth-child(n+2) { display: none; }
      .hero-board { padding-bottom: 42px; }
      .archive { margin-top: 76px; }
      .archive-head { align-items: start; flex-direction: column; gap: 8px; margin-bottom: 18px; }
      .archive-title { font-size: 30px; }
      .year-nav { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-bottom: 22px; }
      .year-button { min-width: 0; padding-inline: 4px; }
      .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 26px 10px; }
      .archive-item h3 { margin-top: 8px; font-size: 16px; }
      .archive-item p { font-size: 13px; }
      .story { margin-top: 92px; grid-template-columns: 1fr; gap: 22px; padding: 32px 0; }
      .story h2 { max-width: 12ch; font-size: 40px; }
      .story-copy { font-size: 17px; }
      footer { margin-top: 82px; align-items: flex-start; flex-direction: column; gap: 10px; }
    }
    @media (prefers-reduced-motion: reduce) {
      html { scroll-behavior: auto; }
      *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
      .motion-ready .animate-in { opacity: 1; transform: none; }
    }
  

    /* ---------- archive, index ---------- */
    .archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .year-nav { position: sticky; top: 0; z-index: 5; padding: 10px 0 12px; background: var(--bg); }
    .load-note { margin: 26px 0 0; color: var(--muted); font: 400 var(--text-sm)/1.6 var(--serif); }
    /* 495 cards: reveal at section level, not per card */
    .motion-ready .archive-item { opacity: 1; transform: none; animation: none; }
    /* sections stay readable before the reveal fires (no invisible content) */
    .motion-ready .animate-in { opacity: 1; }
    /* ---------- interior pages ---------- */
    .top-bar { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding-bottom: 22px; }
    .top-bar a { color: var(--muted); font: 500 var(--text-sm)/1.4 var(--sans); }
    .top-bar a:hover { color: var(--ink); }
    .brand { color: var(--ink); font: 700 20px/1 var(--sans); letter-spacing: -.04em; }
    .poem-hero { position: relative; overflow: hidden; background: var(--surface); }
    .poem-hero img { display: block; width: 100%; height: clamp(300px, 46vw, 560px); object-fit: cover; }
    .poem-title { margin: 40px 0 0; font: 700 clamp(34px, 4.4vw, 62px)/1.05 var(--sans); letter-spacing: -.05em; text-wrap: balance; }
    .poem-meta { display: flex; flex-wrap: wrap; gap: 8px 26px; margin: 16px 0 0; color: var(--muted); font: 500 var(--text-sm)/1.5 var(--sans); }
    .poem-text { max-width: 34em; margin: 40px 0 0; font: 400 clamp(18px, 1.7vw, 21px)/2.05 var(--serif); white-space: pre-line; }
    .poem-note { max-width: 42em; margin: 34px 0 0; padding: 18px 22px; background: var(--surface); color: var(--muted); font: 400 var(--text-md)/1.85 var(--serif); white-space: pre-line; }
    .poem-nav { display: flex; justify-content: space-between; gap: 18px; margin-top: 56px; padding-top: 26px; border-top: 0; background: var(--surface); padding: 22px; }
    .poem-nav a { max-width: 46%; font: 500 var(--text-sm)/1.5 var(--sans); color: var(--ink); }
    .poem-nav a span { display: block; color: var(--muted); font-weight: 400; }
    /* ---------- book ---------- */
    .book-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 26px; }
    .book-item { display: block; padding: 16px 18px; background: var(--surface); }
    .book-item:hover { background: var(--surface-raised); }
    .book-item small { display: block; color: var(--muted); font: 500 var(--text-xs)/1.4 var(--sans); }
    .book-item span { display: block; margin-top: 4px; font: 500 17px/1.45 var(--serif); }
    .reader { max-width: 40em; margin-top: 34px; font: 400 clamp(17px, 1.6vw, 20px)/2.1 var(--serif); white-space: pre-line; }
    .reader figure { margin: 30px 0; }
    .reader img { display: block; width: 100%; height: auto; background: var(--surface); }
    .reader figcaption { margin-top: 8px; color: var(--muted); font: 400 var(--text-sm)/1.5 var(--serif); }
    /* ---------- paintings ---------- */
    .art-nav { display: flex; flex-wrap: wrap; gap: 8px; margin: 26px 0 28px; }
    .art-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; align-items: start; }
    .art-card { display: block; padding: 0; border: 0; background: var(--surface); cursor: zoom-in; }
    .art-card img { display: block; width: 100%; height: auto; }
    .lightbox { position: fixed; inset: 0; z-index: 50; display: none; place-items: center; padding: 4vh 4vw; background: rgba(10, 13, 20, .94); }
    .lightbox.is-open { display: grid; }
    .lightbox img { max-width: 100%; max-height: 86vh; object-fit: contain; }
    .lightbox button { position: absolute; top: 18px; right: 18px; min-height: 44px; padding: 0 16px; border: 0; background: var(--surface-raised); color: var(--ink); font: 500 var(--text-sm)/1 var(--sans); cursor: pointer; }
    @media (max-width: 950px) {
      .archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
      .book-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .year-nav { position: static; }
    }
    @media (max-width: 600px) {
      .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .book-list { grid-template-columns: 1fr; }
      .year-nav { grid-template-columns: repeat(4, minmax(0, 1fr)); }
      .year-button { min-height: 38px; padding: 6px 4px; font-size: 13px; }
      .poem-hero img { height: 58vw; }
      .poem-nav { flex-direction: column; }
      .poem-nav a { max-width: 100%; }
    }
