:root {
  color-scheme: light;
  --page: #f9faf6;
  --paper: #eff5ef;
  --ink: #203e34;
  --secondary: #4d675d;
  --quiet: #6a7d72;
  --accent: #458268;
  --accent-soft: #dcebe1;
  --line: #d9e2d9;
  --frame: #fffefa;
  --glow: #e3ecdb;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--page); color: var(--ink); -webkit-font-smoothing: antialiased; }
body.theme-trae { --paper: #f2f3e9; --ink: #28392b; --secondary: #53654e; --quiet: #707d67; --accent: #4b693c; --accent-soft: #e4eacd; --line: #dfe3d3; --glow: #e5edc8; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
button:disabled { cursor: wait; }
svg { display: block; width: 22px; height: 22px; flex: 0 0 auto; }
img { display: block; max-width: 100%; }
::selection { background: var(--accent-soft); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 24px; top: 12px; z-index: 50; padding: 12px 18px; border-radius: 8px; background: var(--ink); color: white; transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.site-bar { width: min(1376px, calc(100% - 96px)); height: 90px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.identity { display: inline-flex; align-items: center; gap: 18px; }
.identity-mark { font: 800 30px/1 Georgia, serif; letter-spacing: -.07em; }
.identity-mark > span { color: var(--accent); }
.identity-label { font-size: 11px; font-weight: 600; letter-spacing: .1em; }
.identity-label > span { margin: 0 8px; color: var(--quiet); }
.back-link { display: inline-flex; align-items: center; gap: 12px; font-size: 12px; color: var(--secondary); }
.back-link svg { width: 17px; height: 17px; transform: rotate(180deg); transition: transform 200ms ease; }
.back-link:hover svg { transform: rotate(180deg) translateX(4px); }
main { width: min(1376px, calc(100% - 64px)); margin: 0 auto; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 36px 16px 25px; }
.eyebrow { margin: 0 0 10px; font: 600 10px/1.6 sans-serif; letter-spacing: .18em; color: var(--quiet); }
h1 { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.5; font-weight: 600; letter-spacing: -.04em; margin: 0; }
.archive-label { margin-bottom: 6px; color: var(--secondary); font-size: 11px; white-space: nowrap; }
.archive-label > span { margin-left: 12px; color: var(--quiet); font-size: 9px; letter-spacing: .06em; }
.story-shell { position: relative; isolation: isolate; padding: 28px clamp(28px, 4.2vw, 64px) 32px; border: 1px solid rgba(100,130,90,.06); border-radius: 28px; background: linear-gradient(112deg, var(--paper) 0%, var(--paper) 44%, #f8f6ea 100%); overflow: hidden; animation: shell-entrance 750ms cubic-bezier(.16,1,.3,1) both; }
.story-shell::after { content: ""; position: absolute; right: -90px; top: 17%; width: 460px; height: 460px; border: 1px solid rgba(98,132,89,.07); border-radius: 50%; z-index: -1; box-shadow: 0 0 0 80px rgba(98,132,89,.025), 0 0 0 160px rgba(98,132,89,.018); }
.story-meta { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 28px; color: var(--secondary); font-size: 11px; letter-spacing: .03em; }
.meta-origin { display: flex; align-items: center; gap: 9px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(80,130,95,.06); }
.award-badge { padding: 7px 13px; border: 1px solid rgba(78,115,68,.16); border-radius: 50px; background: rgba(255,255,255,.52); color: var(--accent); font-size: 11px; }
.story-grid { display: grid; grid-template-columns: minmax(0, .86fr) minmax(0, 1.14fr); gap: clamp(26px, 4.4vw, 66px); align-items: center; }
.story-column { min-width: 0; padding: 12px 0 10px; }
.story-panel { min-height: 280px; }
.moment-eyebrow { display: flex; align-items: center; gap: 11px; margin: 0 0 25px; font-size: 10px; font-weight: 700; letter-spacing: .13em; color: var(--quiet); }
#moment-number { font: 400 16px/1 Georgia, serif; }
.eyebrow-divider { width: 18px; height: 1px; background: var(--quiet); opacity: .5; }
#moment-title { margin: 0 0 23px; font-size: clamp(28px, 3.2vw, 48px); font-weight: 700; line-height: 1.32; letter-spacing: -.05em; }
#moment-title > span { display: block; }
.moment-description { max-width: 415px; margin: 0; font-size: clamp(13px, 1.05vw, 15px); line-height: 1.95; color: var(--secondary); text-wrap: pretty; }
.moment-tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 27px; }
.moment-tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 11px 13px; min-height: 44px; border: 1px solid rgba(79,122,86,.13); border-radius: 11px; background: rgba(255,255,255,.63); color: var(--secondary); font-size: 11px; transition: color 200ms ease, background 200ms ease, box-shadow 250ms ease; }
.moment-tabs button > span { font-size: 9px; opacity: .6; }
.moment-tabs button[aria-selected="true"] { color: #fff; background: var(--accent); border-color: var(--accent); box-shadow: 0 8px 17px rgba(55,99,67,.17); }
.moment-tabs button:hover:not([aria-selected="true"]) { background: #fff; color: var(--accent); }
.story-footnote { display: flex; align-items: flex-start; gap: 12px; margin-top: 39px; }
.footnote-line { width: 22px; height: 1px; background: var(--accent); margin-top: 10px; }
.story-footnote p { margin: 0; color: var(--secondary); font-size: 11px; line-height: 1.9; }
.story-footnote p > span { font: 9px/2 sans-serif; color: var(--quiet); letter-spacing: .06em; }
.visual-column { min-width: 0; padding-top: 12px; }
.photo-stack { position: relative; padding: 5px 12px 12px 0; }
.frame-backdrop { position: absolute; inset: 13% -3px -3px 12%; display: flex; justify-content: space-between; padding: 23px; overflow: hidden; transform: rotate(4deg); border: 1px solid rgba(99,120,79,.15); border-radius: 19px; background: var(--glow); box-shadow: 0 12px 28px rgba(54,70,43,.07); }
.frame-backdrop > span { font-size: 10px; line-height: 1.8; letter-spacing: .12em; font-weight: 700; }
.frame-backdrop b { align-self: flex-end; font: italic 70px/1 Georgia, serif; opacity: .2; }
.photo-frame { position: relative; margin: 0; padding: 14px 14px 0; border: 1px solid rgba(108,126,97,.15); border-radius: 20px; background: var(--frame); box-shadow: 0 24px 50px -20px rgba(45,68,43,.25), 0 3px 9px rgba(45,68,43,.03); }
.frame-topline { display: flex; align-items: center; gap: 7px; padding: 0 2px 12px; font: 8px/1.5 sans-serif; letter-spacing: .07em; color: var(--quiet); }
.frame-topline > span:last-child { margin-left: auto; font-size: 9px; }
.frame-dot { width: 4px; height: 4px; background: var(--accent); border-radius: 50%; }
.photo-open { display: block; position: relative; width: 100%; height: clamp(290px, 30vw, 444px); overflow: hidden; padding: 0; border: 0; border-radius: 12px; background: #e9eee5; cursor: zoom-in; touch-action: pan-y; }
.gallery-image { position: absolute; inset: 0; width: 100%; height: 100%; padding: 10px; object-fit: contain; user-select: none; -webkit-user-drag: none; }
.zoom-label { position: absolute; display: flex; align-items: center; gap: 6px; right: 12px; bottom: 12px; padding: 8px 9px; border-radius: 7px; background: rgba(255,255,255,.9); color: var(--ink); opacity: 0; transform: translateY(4px); transition: opacity 200ms ease, transform 200ms ease; font-size: 10px; }
.zoom-label svg { width: 13px; height: 13px; }
.photo-open:hover .zoom-label, .photo-open:focus-visible .zoom-label { opacity: 1; transform: none; }
.photo-frame figcaption { display: flex; align-items: center; min-height: 49px; padding: 10px 4px; font-size: 10px; line-height: 1.6; color: var(--secondary); }
.gallery-controls { display: flex; justify-content: space-between; align-items: center; padding-top: 23px; padding-right: 10px; gap: 24px; }
.gallery-position { display: flex; align-items: center; gap: 11px; width: min(190px, 50%); font: 11px/1 Georgia, serif; color: var(--quiet); }
#current-position { color: var(--ink); }
.position-track { height: 2px; flex: 1; background: var(--line); overflow: hidden; }
#position-fill { display: block; height: 100%; width: 20%; background: var(--accent); transition: width 400ms cubic-bezier(.16,1,.3,1); }
.arrow-controls { display: flex; align-items: center; gap: 8px; }
.arrow-button { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 50%; border: 1px solid rgba(92,119,78,.2); background: rgba(255,255,255,.65); transition: color 200ms ease, background 200ms ease, transform 200ms ease; }
.previous svg { transform: rotate(180deg); }
.arrow-button:hover { color: #fff; background: var(--accent); transform: translateY(-2px); }
.arrow-button:active { transform: scale(.94); }
.arrow-button svg { width: 20px; height: 20px; }
.gesture-hint { margin: 13px 0 0; color: var(--quiet); font-size: 10px; letter-spacing: .02em; }
.context-section { display: grid; grid-template-columns: .6fr 1fr; gap: 60px; padding: 61px 40px 50px; }
.context-section h2 { font-size: 22px; font-weight: 500; margin: 0; letter-spacing: -.03em; }
.context-copy p { margin: 0 0 14px; color: var(--secondary); font-size: 13px; line-height: 1.95; }
.text-link { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--accent); font-size: 12px; }
.text-link svg { width: 16px; height: 16px; transition: transform 200ms ease; }
.text-link:hover svg { transform: translateX(3px); }
.next-story { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 29px 36px; border: 1px solid var(--line); border-radius: 18px; transition: background 250ms ease; }
.next-story h2 { margin: 0 0 8px; font-size: clamp(18px, 2vw, 25px); font-weight: 500; letter-spacing: -.04em; }
.next-story p { margin: 0; color: var(--secondary); font-size: 11px; }
.next-story:hover { background: var(--paper); }
.next-story-arrow { display: grid; place-items: center; flex: 0 0 auto; width: 48px; height: 48px; border: 1px solid var(--line); border-radius: 50%; transition: transform 250ms ease; }
.next-story:hover .next-story-arrow { transform: translateX(4px); }
.site-footer { width: min(1300px, calc(100% - 96px)); margin: 0 auto; padding: 32px 0 38px; display: flex; justify-content: space-between; gap: 20px; font-size: 10px; color: var(--quiet); }
.site-footer a { display: inline-flex; align-items: center; gap: 5px; }
.site-footer svg { width: 13px; height: 13px; }
.image-viewer { inset: 0; max-width: none; max-height: none; width: 100%; height: 100%; height: 100dvh; margin: 0; padding: 0; border: 0; background: #141a17; color: #f1f4ed; }
.image-viewer::backdrop { background: rgba(8,15,10,.85); }
.image-viewer[open] { display: grid; grid-template-rows: 68px minmax(0, 1fr) auto; animation: viewer-entrance 200ms ease both; }
.viewer-toolbar { display: flex; align-items: center; justify-content: space-between; padding: 12px 28px; font-size: 10px; letter-spacing: .15em; color: #b1bcb4; }
.viewer-toolbar button, .viewer-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 1px solid #4b564d; border-radius: 50%; color: #e5ebdf; background: #29322b; transition: background 200ms ease; }
.viewer-toolbar button:hover, .viewer-arrow:hover { background: #465443; }
.viewer-stage { position: relative; display: grid; place-items: center; overflow: hidden; padding: 0 90px; touch-action: pan-y; }
#viewer-image { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-arrow { position: absolute; z-index: 2; top: calc(50% - 22px); right: 24px; }
.viewer-arrow.previous { left: 24px; right: auto; }
.viewer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 18px 28px 24px; }
.viewer-bottom p { font-size: 12px; line-height: 1.7; margin: 0; color: #ced7c9; }
.viewer-bottom a { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; min-height: 44px; font-size: 11px; color: #d4e6c5; }
.viewer-bottom svg { width: 15px; height: 15px; }
body.viewer-open { overflow: hidden; }
.fallback-gallery { margin: 40px 0; display: grid; gap: 20px; }
.fallback-gallery img { width: 100%; height: auto; }
.legacy-menu { padding: 80px 20px; max-width: 900px; }
.legacy-menu .next-story { margin-top: 24px; }
@keyframes shell-entrance { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
@keyframes viewer-entrance { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 1600px) { .story-shell { padding-top: 36px; padding-bottom: 42px; } .story-panel { min-height: 305px; } }
@media (max-width: 1000px) {
  .site-bar { width: calc(100% - 48px); height: 76px; }
  main { width: calc(100% - 32px); }
  .story-shell { padding: 24px 28px 28px; }
  .story-grid { gap: 28px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
  .story-panel { min-height: 282px; }
  #moment-title { font-size: 32px; }
  .moment-description { font-size: 13px; }
  .photo-open { height: 330px; }
  .moment-tabs button { padding-inline: 10px; }
  .story-footnote { margin-top: 26px; }
  .context-section { gap: 30px; padding: 46px 28px; }
}
@media (max-width: 740px) {
  .identity-label { font-size: 10px; }
  .site-bar { width: calc(100% - 36px); height: 70px; }
  .identity { gap: 12px; }
  .back-link { font-size: 11px; gap: 6px; }
  .back-link svg { width: 15px; height: 15px; }
  .page-heading { padding: 27px 8px 20px; }
  .archive-label { display: none; }
  .story-shell { padding: 22px 20px 24px; border-radius: 22px; }
  .story-meta { gap: 10px; padding-bottom: 25px; font-size: 10px; }
  .award-badge { padding: 6px 10px; font-size: 10px; }
  .story-grid { grid-template-columns: 1fr; gap: 24px; }
  .story-column { padding: 0; }
  .story-panel { min-height: 220px; }
  .moment-eyebrow { margin-bottom: 18px; }
  #moment-title { font-size: clamp(27px, 6.5vw, 38px); margin-bottom: 17px; }
  .moment-description { max-width: none; font-size: 13px; line-height: 1.9; }
  .moment-tabs { margin-top: 16px; gap: 7px; }
  .moment-tabs button { font-size: 10px; padding: 10px 11px; }
  .story-footnote { display: none; }
  .visual-column { padding-top: 0; }
  .photo-open { height: clamp(280px, 75vw, 440px); }
  .photo-stack { padding-right: 9px; }
  .photo-frame { padding: 10px 10px 0; border-radius: 15px; }
  .frame-topline { font-size: 7px; padding-bottom: 9px; letter-spacing: .03em; }
  .photo-frame figcaption { min-height: 45px; font-size: 10px; }
  .zoom-label { opacity: 1; transform: none; padding: 7px; }
  .zoom-label > span { display: none; }
  .gallery-controls { padding-top: 19px; }
  .gesture-hint { margin-top: 10px; }
  .context-section { grid-template-columns: 1fr; gap: 22px; padding: 38px 12px; }
  .context-section h2 { font-size: 21px; }
  .next-story { padding: 24px 22px; gap: 12px; }
  .next-story-arrow { width: 42px; height: 42px; }
  .site-footer { width: calc(100% - 48px); padding-bottom: 28px; font-size: 9px; }
  .viewer-stage { padding: 0 12px; }
  .viewer-arrow { right: 12px; top: auto; bottom: 8px; }
  .viewer-arrow.previous { left: 12px; }
  .viewer-toolbar { padding: 12px 16px; }
  .viewer-bottom { padding: 16px; gap: 12px; }
  .viewer-bottom p { font-size: 10px; }
  .viewer-bottom a { font-size: 10px; }
}
@media (max-width: 380px) {
  main { width: calc(100% - 20px); }
  .story-shell { padding-inline: 16px; }
  .identity-label { display: none; }
  .story-panel { min-height: 248px; }
  .site-footer { flex-direction: column; gap: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}