:root {
  color-scheme: light;
  --paper: #f6f4ed;
  --card: #fdfbf6;
  --ink: #242c22;
  --muted: #566052;
  --green: #374531;
  --rule: #dddcd1;
  --serif: "Noto Serif CJK SC", "Songti SC", "STSong", SimSun, Georgia, serif;
  --sans: "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 86px; }
body { margin: 0; font: 1rem/1.65 var(--sans); background: var(--paper); color: var(--ink); }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 2px solid #a9684d; outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { font-family: var(--serif); }
[hidden] { display: none !important; }
.wrap { width: min(1240px, calc(100% - 104px)); margin-inline: auto; }
.skip-link { position: absolute; left: 12px; top: 12px; z-index: 9; padding: 8px 16px; background: var(--card); transform: translateY(-160%); }
.skip-link:focus { transform: none; }
.masthead { position: sticky; top: 0; z-index: 4; background: var(--paper); border-bottom: 1px solid var(--rule); }
.masthead-inner { min-height: 65px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; gap: 12px; align-items: center; font: 700 1.02rem/1.4 var(--serif); letter-spacing: .06em; }
.seal { display: grid; place-items: center; width: 35px; aspect-ratio: 1; border: 1px solid #834932; border-radius: 4px; background: #92543e; color: #fff5df; font: 700 1.24rem/1 var(--serif); letter-spacing: 0; }
.site-nav { display: flex; gap: 30px; flex-shrink: 0; font-size: .875rem; color: var(--muted); }
.site-nav a { position: relative; padding: 10px 0; }
.site-nav a:hover, .site-nav a[aria-current] { color: var(--ink); }
.site-nav a[aria-current]::after { content: ""; height: 1px; background: #92543e; position: absolute; bottom: 4px; inset-inline: 0; }
.hero {
  position: relative; isolation: isolate; display: flex; align-items: center; min-height: 483px; overflow: hidden; color: #fffaf0;
  background: #394334;
}
.hero-media { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 49%; z-index: -2; }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(20,27,20,.84), rgba(23,31,23,.64) 28%, rgba(23,31,23,.19) 56%, transparent 78%); }
.hero-inner { padding-block: 49px; }
.hero-context { color: #efe3c6; font-size: .875rem; letter-spacing: .16em; display: flex; gap: 11px; align-items: center; }
.hero-context::before { content: ""; display: block; width: 25px; height: 1px; background: #d6b884; }
h1 { font-size: clamp(3.15rem, 6.5vw, 6.25rem); font-weight: 700; line-height: 1.12; letter-spacing: .035em; margin: 13px 0 16px; }
h1 .hero-line { display: block; }
.hero-meta { max-width: 38ch; font-size: 1rem; color: #f2eee0; }
.hero-meta span { display: block; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 25px; }
.action { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 19px; border-radius: 4px; border: 1px solid #f8eed4; font-size: .9rem; font-weight: 650; }
.action-primary { background: #f8eed4; color: #293420; }
.action-primary:hover { background: #fffaf0; }
.action-secondary { border-color: #eee9d4aa; }
.action-secondary:hover { background: #eee9d422; }
.section { padding-block: 42px 48px; }
.section-head { display: flex; justify-content: space-between; gap: 16px 24px; align-items: end; margin-bottom: 21px; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.65rem); font-weight: 700; line-height: 1.25; letter-spacing: .02em; }
.section-note { color: var(--muted); font-size: .91rem; margin-top: 7px; }
.filter-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--rule); padding-bottom: 13px; margin-bottom: 19px; }
.filters { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.pill { padding: 6px 13px; min-height: 40px; background: transparent; border: 1px solid var(--rule); border-radius: 4px; color: var(--green); cursor: pointer; font-size: .875rem; }
.pill[aria-pressed="true"] { background: var(--green); color: #fffaf0; border-color: var(--green); }
.pill[aria-pressed="false"]:hover { background: #e9e9dc; }
.result-count { color: var(--muted); white-space: nowrap; font-size: .875rem; }
.scene-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.scene { border-radius: 7px; border: 1px solid var(--rule); background: var(--card); overflow: clip; min-width: 0; }
.photo-button { display: block; position: relative; width: 100%; padding: 0; border: 0; background: #d9ddce; color: white; cursor: zoom-in; }
.photo-button:focus-visible { outline-offset: -4px; }
.scene-image { width: 100%; aspect-ratio: 1; object-fit: contain; }
.zoom-hint { position: absolute; right: 10px; bottom: 10px; display: grid; place-items: center; width: 36px; aspect-ratio: 1; border-radius: 4px; background: #222b23d9; }
.zoom-hint svg { width: 17px; height: 17px; }
.photo-button:hover .zoom-hint { background: #222b23; }
.scene-body { padding: 15px 16px 16px; }
.scene-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px 10px; flex-wrap: wrap; color: #59604e; font-size: .875rem; }
.focal { color: #74422f; background: #f2ebe0; padding: 2px 7px; border-radius: 3px; font-weight: 700; font-variant-numeric: tabular-nums; }
.scene h3 { font-size: 1.28rem; margin-top: 6px; line-height: 1.4; }
.scene-advice { margin-top: 7px; color: #424d40; }
.direction { margin-top: 11px; padding: 9px 10px; background: #eff0e7; border-left: 2px solid #7d8b6d; color: #344331; font-size: .9375rem; }
.direction-label { display: block; font-size: .875rem; color: #4d6048; font-weight: 700; margin-bottom: 3px; }
.rain-section { background: #e9ede5; border-block: 1px solid #dce1d6; }
.rain-grid, .settings-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.guide-item { background: var(--card); border: 1px solid var(--rule); padding: 18px; border-radius: 5px; }
.guide-item h3 { font-size: 1.2rem; margin-bottom: 6px; line-height: 1.4; }
.guide-item p { color: #444d40; }
.guide-item a { color: #3a5134; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.exposure-note { color: #424d40; margin-top: 15px; padding: 13px 15px; border: 1px solid var(--rule); border-radius: 5px; }
.sources { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: .875rem; color: var(--muted); }
.sources a { text-decoration: underline; text-underline-offset: 3px; }
.site-footer { border-top: 1px solid var(--rule); padding-block: 20px 24px; font-size: .875rem; color: var(--muted); }
.site-footer .wrap { display: flex; justify-content: space-between; align-items: baseline; gap: 10px 20px; flex-wrap: wrap; }
.site-footer a { text-decoration: underline; text-underline-offset: 3px; }
dialog { border: 0; padding: 0; width: min(960px, calc(100vw - 24px)); max-height: calc(100dvh - 20px); border-radius: 8px; overflow: auto; background: #1f2720; color: #fffaf0; }
dialog::backdrop { background: #171d18e9; }
dialog figure { margin: 0; }
dialog img { margin: auto; max-height: calc(100dvh - 78px); max-width: 100%; object-fit: contain; }
dialog figcaption { text-align: center; padding: 10px 48px; font-size: .95rem; }
.dialog-close { position: absolute; right: 8px; top: 8px; border: 1px solid #ffffff66; color: white; background: #212a22de; border-radius: 4px; min-width: 42px; min-height: 42px; padding: 0; line-height: 1; font-size: 1.5rem; cursor: pointer; }
@media (max-width: 1000px) {
  .wrap { width: calc(100% - 64px); }
  .hero { min-height: 423px; }
  .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
}
@media (max-width: 630px) {
  html { scroll-padding-top: 104px; }
  .wrap { width: calc(100% - 32px); }
  .masthead-inner { flex-wrap: wrap; padding-block: 9px 4px; gap: 4px; min-height: 0; }
  .brand { font-size: .94rem; gap: 8px; }
  .seal { width: 28px; font-size: 1.05rem; }
  .site-nav { width: 100%; justify-content: space-between; gap: 10px; }
  .site-nav a { padding: 6px 1px; }
  .site-nav a[aria-current]::after { bottom: 0; }
  .hero { min-height: 390px; align-items: end; }
  .hero-media { object-position: 59% center; }
  .hero::after { background: linear-gradient(0deg, #141b13e8, #17201783 62%, #17201716 100%), linear-gradient(90deg, #141b135c, transparent 94%); }
  .hero-inner { padding-block: 46px 30px; }
  h1 { font-size: clamp(2.85rem, 11vw, 4rem); margin-bottom: 11px; }
  .hero-actions { margin-top: 19px; }
  .section { padding-block: 31px 36px; }
  .section-head { margin-bottom: 15px; }
  .section-note { font-size: .875rem; }
  .scene-grid, .rain-grid, .settings-grid { grid-template-columns: 1fr; gap: 15px; }
  .filter-bar { gap: 6px; }
  .filters { gap: 4px; }
  .pill { padding-inline: 8px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.real-reference { margin-top: 11px; padding-top: 8px; border-top: 1px solid var(--rule); color: #3c5237; font-size: .875rem; }
.real-reference summary { padding: 3px 0; cursor: pointer; font-weight: 700; }
.real-reference img { width: 100%; max-height: 340px; margin-top: 7px; object-fit: contain; background: #eeede5; }
.real-reference p { margin: 8px 0 3px; color: var(--muted); }
.real-reference a { text-decoration: underline; text-underline-offset: 3px; }
