:root {
  color-scheme: light;
  --paper: #f7f5e9;
  --paper-deep: #eeeadd;
  --ink: #354b39;
  --ink-soft: #71806c;
  --green: #526b4f;
  --spring: #8a9c62;
  --ochre: #b07a45;
  --line: #c8c4ae;
  --serif: "Noto Serif SC", "Songti SC", "STSong", serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(ellipse at 18% 6%, rgb(220 225 192 / 28%), transparent 38%),
    repeating-linear-gradient(112deg, rgb(114 125 92 / 2%) 0 1px, transparent 1px 9px),
    var(--paper);
  font-family: var(--serif);
}
button, a { color: inherit; font: inherit; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--ochre); outline-offset: 4px; }
.atlas { width: min(1380px, 100% - 64px); margin: 0 auto; padding: 27px 0 24px; }
.masthead { display: grid; grid-template-columns: 46px 1fr auto; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px dashed var(--line); }
.atlas-mark { display: grid; width: 42px; height: 42px; place-items: center; border: 1px solid var(--line); border-radius: 50%; }
.atlas-mark svg { width: 31px; fill: none; stroke: var(--green); stroke-width: 1.15; stroke-linecap: round; stroke-linejoin: round; }
.eyebrow, .section-index { margin: 0 0 8px; color: var(--ink-soft); font: 10px/1.4 Georgia, serif; letter-spacing: .18em; }
.masthead h1 { margin: 0; font-size: clamp(22px, 3vw, 35px); font-weight: 500; letter-spacing: .12em; }
.english-title { margin: 4px 0 0; color: var(--ink-soft); font: 12px Georgia, serif; letter-spacing: .15em; }
.masthead-note { margin: 0; text-align: right; font-size: 12px; line-height: 1.85; letter-spacing: .09em; }
.opening { position: relative; display: grid; grid-template-columns: minmax(220px, .78fr) minmax(270px, 1.05fr) 110px; gap: clamp(20px, 5vw, 76px); align-items: center; min-height: 450px; padding: clamp(36px, 6vw, 82px) clamp(8px, 4vw, 48px) 58px; }
.opening-copy { position: relative; z-index: 1; max-width: 370px; }
.opening-copy h2 { margin: 0 0 19px; font-size: clamp(30px, 4.5vw, 56px); line-height: 1.5; font-weight: 500; letter-spacing: .08em; }
.opening-copy h2 em, .story-intro h2 em { color: var(--green); font-style: normal; }
.opening-copy > p:not(.section-index) { max-width: 320px; margin: 0; color: #5f6c5c; font-size: 14px; line-height: 2.15; }
.text-link { display: inline-flex; gap: 15px; align-items: center; margin-top: 26px; padding-bottom: 6px; border-bottom: 1px solid var(--green); text-decoration: none; font-size: 13px; letter-spacing: .08em; }
.text-link span { color: var(--ochre); transition: transform 260ms ease; }
.text-link:hover span { transform: translate(3px, 3px); }
.opening-plate { position: relative; width: min(100%, 390px); margin: 0 auto; transform: rotate(1.4deg); }
.opening-plate::before { position: absolute; z-index: -1; inset: 15px -18px -17px 16px; border: 1px solid rgb(138 156 98 / 38%); content: ""; transform: rotate(-3deg); }
.opening-plate img { display: block; width: 100%; max-height: 350px; object-fit: contain; filter: drop-shadow(0 8px 11px rgb(55 63 46 / 11%)); }
.opening-plate figcaption { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 8px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: 10px; letter-spacing: .12em; }
.plate-stamp { position: absolute; z-index: 2; top: -17px; right: -21px; display: grid; width: 55px; height: 55px; place-items: center; border: 1px solid var(--ochre); border-radius: 50%; color: #9b7148; background: var(--paper); text-align: center; font-size: 12px; line-height: 1.3; transform: rotate(8deg); }
.opening-side-note { align-self: end; margin: 0 0 24px; color: #8a927d; font: italic 12px/1.8 Georgia, serif; letter-spacing: .09em; writing-mode: vertical-rl; }
.season-section { position: relative; padding: 28px 0 54px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 23px; }
.section-heading h2, .story-intro h2 { margin: 0; font-size: clamp(25px, 3vw, 36px); font-weight: 500; letter-spacing: .12em; }
.section-heading > p { margin: 0 0 3px; color: var(--ink-soft); font-size: 12px; }
.season-rail { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.season-choice { position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 17px; min-height: 102px; padding: 16px clamp(12px, 3vw, 40px); border: 0; border-right: 1px dashed var(--line); background: transparent; text-align: left; cursor: pointer; transition: background-color 300ms ease; }
.season-choice:last-child { border-right: 0; }
.season-choice::after { position: absolute; right: 18px; bottom: -2px; left: 18px; height: 3px; background: var(--season-color, var(--spring)); content: ""; transform: scaleX(0); transform-origin: left; transition: transform 350ms ease; }
.season-choice:hover, .season-choice.is-active { background: rgb(228 229 207 / 42%); }
.season-choice.is-active::after { transform: scaleX(1); }
.season-choice[data-season="春"] { --season-color: #829660; }
.season-choice[data-season="夏"] { --season-color: #5f8069; }
.season-choice[data-season="秋"] { --season-color: #b07a45; }
.season-choice[data-season="冬"] { --season-color: #798a98; }
.season-number { grid-column: 1 / -1; color: var(--ink-soft); font: 9px Georgia, serif; letter-spacing: .16em; }
.season-name { grid-row: 2; font-size: 36px; line-height: 1; font-weight: 500; }
.season-note { align-self: end; padding-bottom: 2px; color: var(--ink-soft); font-size: 12px; }
.story-section { display: grid; grid-template-columns: minmax(190px, .62fr) minmax(0, 2fr); gap: clamp(22px, 5vw, 70px); padding: 51px 0 64px; border-top: 1px dashed var(--line); }
.story-intro { position: relative; align-self: start; padding-top: 12px; }
.story-intro h2 { line-height: 1.65; }
.story-intro > p:not(.section-index) { margin: 15px 0 0; color: var(--ink-soft); font-size: 13px; line-height: 2; }
.handwritten { display: inline-block; margin-top: 27px; color: #8a805f; font-size: 16px; letter-spacing: .15em; transform: rotate(-4deg); }
.story-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: 17px; }
.story-card { position: relative; display: flex; min-width: 0; min-height: 235px; flex-direction: column; padding: 12px 12px 14px; border: 1px solid #d5d0bd; background: rgb(255 254 247 / 58%); text-align: left; cursor: pointer; transition: transform 320ms ease, box-shadow 320ms ease; }
.story-card:nth-child(3n + 2) { margin-top: 24px; }
.story-card:hover { z-index: 1; transform: translateY(-5px) rotate(-.4deg); box-shadow: 0 12px 27px rgb(56 61 46 / 10%); }
.story-card img { width: 100%; height: 144px; object-fit: contain; background: #f1eedf; }
.story-card .story-card-meta { display: flex; justify-content: space-between; gap: 8px; margin: 11px 0 4px; color: var(--ink-soft); font: 9px Georgia, serif; letter-spacing: .1em; }
.story-card strong { font-size: 13px; line-height: 1.6; font-weight: 500; letter-spacing: .04em; }
.story-card .story-card-link { align-self: end; margin-top: auto; padding-top: 8px; color: var(--ochre); font-size: 11px; }
.atlas-section { padding: 37px 0 56px; border-top: 1px solid var(--line); }
.specimen-heading { margin-bottom: 16px; }
.specimen-heading #specimen-count { color: var(--ink-soft); font-size: 11px; }
.use-filter { display: flex; align-items: center; gap: 0; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.use-choice { display: flex; align-items: baseline; gap: 9px; min-height: 42px; margin-right: 23px; padding: 0 3px 10px; border: 0; border-bottom: 2px solid transparent; color: var(--ink-soft); background: transparent; cursor: pointer; transition: color 220ms ease, border-color 220ms ease; }
.use-choice > span { font: 9px Georgia, serif; letter-spacing: .1em; }
.use-choice:hover, .use-choice.is-active { border-bottom-color: var(--ochre); color: var(--ink); }
.specimen-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.specimen-card { position: relative; min-width: 0; border: 1px solid #d5d0bd; background: rgb(255 254 247 / 47%); cursor: pointer; overflow: hidden; text-align: left; transition: border-color 240ms ease, background-color 240ms ease, transform 240ms ease; }
.specimen-card:hover { z-index: 1; border-color: var(--spring); background: #fffef7; transform: translateY(-3px); }
.specimen-card img { display: block; width: 100%; height: clamp(110px, 15vw, 190px); padding: 7px; object-fit: contain; }
.specimen-card-copy { display: block; padding: 8px 10px 11px; border-top: 1px dashed var(--line); }
.specimen-card-copy small { display: block; margin-bottom: 4px; color: var(--ink-soft); font: 9px Georgia, serif; letter-spacing: .1em; }
.specimen-card-copy strong { display: block; overflow: hidden; font-size: 12px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.specimen-card-copy em { display: block; margin-top: 4px; color: #858a73; font-size: 10px; font-style: normal; }
.empty-note { padding: 40px 0; color: var(--ink-soft); text-align: center; font-size: 13px; }
.atlas-footer { display: grid; grid-template-columns: 1fr 2fr auto; gap: 15px; align-items: center; padding: 19px 0 2px; border-top: 1px dashed var(--line); color: var(--ink-soft); font-size: 10px; }
.atlas-footer p { margin: 0; }
.atlas-footer p:first-child { color: var(--ink); letter-spacing: .08em; }
.atlas-footer a { color: var(--ink); text-decoration: none; }
.specimen-detail { display: grid; grid-template-columns: minmax(280px, 1.15fr) minmax(240px, .85fr); gap: 30px; width: min(950px, 92vw); max-width: 92vw; max-height: 88dvh; padding: 30px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); }
.specimen-detail::backdrop { background: rgb(32 42 32 / 55%); backdrop-filter: blur(2px); }
.detail-close { position: absolute; top: 12px; right: 12px; min-height: 40px; padding: 6px 12px; border: 1px solid var(--line); color: var(--ink); background: var(--paper); cursor: pointer; }
.detail-image-wrap { display: grid; min-height: 300px; max-height: calc(88dvh - 60px); place-items: center; overflow: auto; background: #f0eedf; }
.detail-image-wrap img { display: block; width: 100%; max-height: calc(88dvh - 60px); object-fit: contain; }
.detail-copy { align-self: center; padding: 22px 12px 22px 0; }
.detail-copy h2 { margin: 6px 0; font-size: clamp(24px, 3vw, 34px); line-height: 1.5; font-weight: 500; letter-spacing: .08em; }
.detail-english { margin: 0 0 25px; color: var(--ink-soft); font: 13px Georgia, serif; }
.detail-facts { display: flex; gap: 35px; margin: 0; padding: 17px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }
.detail-facts div { display: grid; gap: 6px; }
.detail-facts dt { color: var(--ink-soft); font-size: 10px; }
.detail-facts dd { margin: 0; font-size: 13px; }
.detail-tags { margin: 16px 0; color: var(--green); font-size: 12px; line-height: 1.8; }
.detail-source { margin: 0; color: var(--ink-soft); font-size: 10px; line-height: 1.8; }
[hidden] { display: none !important; }
@media (max-width: 900px) {
  .atlas { width: min(100% - 38px, 720px); }
  .opening { grid-template-columns: minmax(190px, .9fr) minmax(240px, 1fr); gap: 22px; min-height: 370px; padding-inline: 12px; }
  .opening-side-note { display: none; }
  .story-section { grid-template-columns: 1fr; gap: 20px; }
  .story-intro { max-width: 490px; }
  .story-intro h2 br { display: none; }
  .story-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .specimen-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .specimen-card img { height: clamp(120px, 22vw, 190px); }
}
@media (max-width: 600px) {
  .atlas { width: calc(100% - 28px); padding-top: 15px; }
  .masthead { grid-template-columns: 36px 1fr auto; gap: 9px; padding-bottom: 13px; }
  .atlas-mark { width: 34px; height: 34px; }
  .atlas-mark svg { width: 26px; }
  .eyebrow { margin-bottom: 4px; font-size: 8px; }
  .masthead h1 { font-size: 18px; letter-spacing: .06em; }
  .english-title { font-size: 9px; letter-spacing: .07em; }
  .masthead-note { font-size: 9px; }
  .opening { grid-template-columns: minmax(0, .88fr) minmax(125px, 1fr); min-height: 295px; gap: 10px; padding: 40px 6px 32px; }
  .opening-copy h2 { margin-bottom: 11px; font-size: clamp(25px, 7vw, 36px); line-height: 1.55; }
  .opening-copy > p:not(.section-index) { font-size: 11px; line-height: 1.9; }
  .opening-copy .section-index { font-size: 8px; }
  .text-link { margin-top: 16px; font-size: 11px; }
  .opening-plate { width: 100%; }
  .opening-plate img { max-height: 220px; }
  .plate-stamp { top: -10px; right: -7px; width: 42px; height: 42px; font-size: 10px; }
  .opening-plate figcaption { font-size: 8px; letter-spacing: .04em; }
  .section-heading { align-items: end; gap: 10px; }
  .section-heading h2, .story-intro h2 { font-size: 24px; }
  .section-heading > p { max-width: 145px; font-size: 10px; line-height: 1.7; text-align: right; }
  .season-section { padding: 20px 0 38px; }
  .season-choice { display: flex; min-height: 90px; flex-direction: column; align-items: flex-start; justify-content: center; gap: 6px; padding: 10px 8px; }
  .season-number { font-size: 7px; letter-spacing: .07em; }
  .season-name { font-size: 29px; }
  .season-note { font-size: 9px; white-space: nowrap; }
  .season-choice::after { right: 8px; left: 8px; }
  .story-section { padding: 34px 0 40px; }
  .story-intro > p:not(.section-index) { max-width: 440px; margin-top: 8px; font-size: 11px; }
  .handwritten { margin-top: 11px; font-size: 13px; }
  .story-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .story-card { min-height: 200px; padding: 8px; }
  .story-card:nth-child(3n + 2) { margin-top: 10px; }
  .story-card img { height: 115px; }
  .story-card strong { font-size: 11px; }
  .story-card .story-card-meta { font-size: 8px; }
  .story-card .story-card-link { font-size: 9px; }
  .atlas-section { padding: 27px 0 38px; }
  .specimen-heading { align-items: center; }
  .specimen-heading #specimen-count { font-size: 9px; }
  .use-filter { justify-content: space-between; }
  .use-choice { flex-direction: column; align-items: center; justify-content: center; gap: 1px; min-height: 50px; margin: 0; padding-inline: 5px; font-size: 13px; }
  .use-choice > span { font-size: 7px; }
  .specimen-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .specimen-card img { height: 170px; padding: 6px; }
  .specimen-card-copy { padding: 7px 8px 9px; }
  .specimen-card-copy strong { font-size: 11px; }
  .atlas-footer { grid-template-columns: 1fr auto; gap: 8px; font-size: 9px; }
  .atlas-footer p:nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .specimen-detail { display: block; width: 100vw; max-width: 100vw; max-height: 100dvh; height: 100dvh; margin: 0; padding: 58px 17px 20px; border: 0; overflow: auto; }
  .detail-image-wrap { min-height: 0; height: min(54dvh, 430px); }
  .detail-image-wrap img { width: 100%; height: 100%; max-height: none; }
  .detail-copy { padding: 15px 2px 20px; }
  .detail-copy h2 { font-size: 24px; }
  .detail-english { margin-bottom: 15px; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 1ms !important; animation-duration: 1ms !important; animation-iteration-count: 1 !important; }
}
