@font-face {
  font-family: "Source Sans 3";
  src: url("assets/source-sans-3.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 500;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("assets/instrument-serif-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Landscape Song";
  src: url("assets/landscape-song.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}

:root {
  --paper: #f7f6f2;
  --ink: #26332c;
  --muted: #667067;
  --line: #dcded6;
  --accent: #667750;
  --footer: #e8ebdf;
  --focus: #596b42;
  --page-gutter: clamp(22px, 5.2vw, 88px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; scrollbar-color: #a9b19e var(--paper); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: "Source Sans 3", "PingFang SC", "Microsoft YaHei", sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
body.modal-open { overflow: hidden; }
::selection { color: var(--paper); background: var(--accent); }
a { color: inherit; text-decoration: none; text-underline-offset: 5px; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { -webkit-tap-highlight-color: transparent; }
button { padding: 0; border: 0; background: none; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--focus); outline-offset: 6px; }
img { display: block; width: 100%; }
svg { display: block; flex: none; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { font-weight: 500; text-wrap: balance; }
[hidden] { display: none !important; }
.page-width { width: calc(100% - var(--page-gutter) * 2); max-width: 1600px; margin-inline: auto; }
.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; top: 12px; left: 12px; z-index: 10; padding: 12px 20px; background: var(--ink); color: var(--paper); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; justify-content: space-between; min-height: 104px; width: calc(100% - var(--page-gutter) * 2); max-width: 1600px; margin: auto; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-family: "Landscape Song", serif; font-size: 24px; letter-spacing: .1em; }
.brand-mark { width: 38px; height: 38px; }
.site-header nav { display: flex; align-items: center; gap: 36px; }
.nav-link { font-size: 13px; }
.nav-link:hover { text-decoration: underline; }
.wander-button { display: inline-flex; align-items: center; gap: 22px; padding: 12px 18px; border: 1px solid #9ea891; border-radius: 2px; font-size: 12px; transition: background-color 200ms, color 200ms; }
.wander-button svg { width: 15px; height: 15px; }
.wander-button:hover { background: var(--ink); color: var(--paper); }

.intro { display: flex; align-items: center; justify-content: space-between; padding-block: 63px 47px; }
.intro-title-group { display: flex; align-items: flex-end; gap: clamp(35px, 5vw, 90px); }
h1 { font-family: "Landscape Song", serif; font-size: clamp(44px, 4.7vw, 76px); line-height: 1.3; letter-spacing: -.025em; }
.english-title { padding-bottom: 8px; color: var(--accent); font-family: "Instrument Serif", serif; font-style: italic; font-size: clamp(28px, 2.65vw, 43px); line-height: 1; white-space: nowrap; }
.intro-note { padding-top: 16px; padding-left: 30px; }
.intro-note > p { color: var(--muted); font-size: 14px; line-height: 2.1; }
.text-link { display: inline-flex; align-items: center; gap: 23px; font-size: 13px; line-height: 1.6; }
.text-link svg { width: 18px; height: 18px; transition: transform 250ms var(--ease-out); }
.text-link:hover svg { transform: translate(2px, -2px); }
.intro-note .text-link { margin-top: 25px; }
.intro-note .text-link:hover svg { transform: translateY(3px); }

.hero-open { position: relative; display: block; width: 100%; height: clamp(330px, 35.2vw, 570px); overflow: hidden; text-align: left; border-radius: 3px; }
.hero-open > img { height: 100%; object-fit: cover; object-position: center 53%; transition: transform 1s var(--ease-out); }
.hero-open:hover > img { transform: scale(1.025); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 52%, rgb(16 32 34 / 52%) 100%); }
.hero-caption { position: absolute; bottom: 33px; left: 35px; display: grid; gap: 9px; color: #fff; }
.hero-photo-title { font-family: "Landscape Song", serif; font-size: 27px; letter-spacing: .04em; }
.hero-photo-location { font-size: 11px; letter-spacing: .12em; }
.expand-icon { position: absolute; right: 32px; bottom: 31px; display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid rgb(255 255 255 / 70%); border-radius: 50%; color: #fff; transition: background-color 200ms; }
.expand-icon svg { width: 21px; height: 21px; }
.hero-open:hover .expand-icon { background: rgb(255 255 255 / 16%); }
.hero-credit { display: flex; justify-content: space-between; gap: 20px; margin-top: 15px; font-size: 11px; line-height: 1.8; color: var(--muted); }
.hero-credit a { display: inline-flex; gap: 6px; align-items: center; }
.hero-credit svg { width: 12px; height: 12px; }
.hero-credit a:hover { text-decoration: underline; }

.gallery-section { padding-top: 116px; }
.gallery-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin-bottom: 49px; }
.gallery-heading h2 { display: flex; align-items: center; gap: 13px; font-family: "Landscape Song", serif; font-size: 36px; letter-spacing: -.02em; }
.gallery-total { align-self: flex-start; margin-top: 4px; color: var(--muted); font-family: "Source Sans 3", sans-serif; font-size: 12px; font-variant-numeric: tabular-nums; }
.section-note { margin-top: 14px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.filters { display: flex; gap: 25px; padding-bottom: 3px; }
.filter { min-height: 36px; padding-inline: 2px; border-bottom: 1px solid transparent; color: var(--muted); font-size: 12px; }
.filter:hover { color: var(--ink); }
.filter.active { color: var(--ink); border-bottom-color: var(--ink); }
.photo-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(25px, 4.2vw, 70px); row-gap: 63px; align-items: start; }
.photo-card { grid-column: span 7; }
.photo-card:nth-child(4n + 2), .photo-card:nth-child(4n + 3) { grid-column: span 5; }
.photo-card:nth-child(4n + 2) { margin-top: 100px; }
.photo-card:nth-child(4n + 4) { margin-top: 75px; }
.photo-button { display: block; width: 100%; text-align: left; }
.photo-image { position: relative; overflow: hidden; border-radius: 2px; background: #e3e7de; }
.photo-image img { height: 100%; aspect-ratio: 1.5; object-fit: cover; transition: transform 800ms var(--ease-out), filter 500ms; }
.photo-card:nth-child(4n + 2) .photo-image img, .photo-card:nth-child(4n + 3) .photo-image img { aspect-ratio: 1.08; }
.photo-button:hover img { transform: scale(1.035); filter: saturate(1.06); }
.photo-view { position: absolute; bottom: 18px; right: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--paper); color: var(--ink); opacity: 0; transform: translateY(5px); transition: opacity 250ms, transform 350ms var(--ease-out); }
.photo-view svg { width: 16px; height: 16px; }
.photo-button:hover .photo-view, .photo-button:focus-visible .photo-view { opacity: 1; transform: translateY(0); }
.photo-caption { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding-top: 19px; }
.photo-title { font-family: "Landscape Song", serif; font-size: 21px; line-height: 1.5; }
.photo-description { margin-top: 5px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.photo-category { padding-top: 4px; color: var(--muted); font-size: 11px; white-space: nowrap; }
.photo-credit { display: inline-block; margin-top: 10px; color: var(--muted); font-size: 11px; line-height: 1.8; }
.photo-credit:hover { text-decoration: underline; }
.photo-card:last-child:nth-child(odd) { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr; margin-top: 10px; }
.photo-card:last-child:nth-child(odd) .photo-image img { max-height: 460px; aspect-ratio: 2.6; }
.noscript-note { padding: 50px 0; }

.about-section { display: grid; grid-template-columns: 1fr 1fr; gap: 12%; padding-block: 96px 105px; margin-top: 115px; border-top: 1px solid var(--line); }
.about-heading h2 { font-family: "Landscape Song", serif; font-size: clamp(32px, 3.2vw, 49px); letter-spacing: -.02em; line-height: 1.5; }
.about-english { margin-top: 25px; color: var(--accent); font-family: "Instrument Serif", serif; font-style: italic; font-size: 32px; }
.about-copy { padding-top: 8px; }
.about-copy > p { max-width: 60ch; color: var(--muted); font-size: 14px; line-height: 2.1; }
.about-copy > p + p { margin-top: 22px; }
.about-copy .source-note { font-size: 12px; }
.about-copy .text-link { margin-top: 26px; }

.site-footer { background: var(--footer); }
.footer-main { display: flex; justify-content: space-between; align-items: flex-end; padding-block: 63px 64px; }
.footer-main > p { font-family: "Landscape Song", serif; font-size: clamp(33px, 3.6vw, 55px); letter-spacing: -.02em; line-height: 1.5; }
.footer-main > p span { color: var(--accent); }
.back-top { display: flex; align-items: center; gap: 15px; font-size: 11px; padding-block: 12px; }
.back-top svg { width: 39px; height: 39px; padding: 10px; border: 1px solid #a9b19d; border-radius: 50%; transition: transform 250ms var(--ease-out); }
.back-top:hover svg { transform: translateY(-4px); }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 24px 0; border-top: 1px solid #cbd2c1; color: #5f6d54; font-size: 11px; }
.footer-brand { display: flex; align-items: center; gap: 16px; font-family: "Landscape Song", serif; font-size: 17px; color: var(--ink); }
.footer-brand span { font-family: "Source Sans 3", sans-serif; font-size: 11px; letter-spacing: .12em; }

dialog { padding: 0; border: none; }
dialog::backdrop { background: rgb(15 23 19 / 87%); }
.lightbox { position: fixed; inset: 0; width: 100%; max-width: none; height: 100%; max-height: none; background: #17201b; color: #f7f6f2; overflow: auto; }
.lightbox[open] { display: grid; grid-template-rows: 70px minmax(0, 1fr) auto; }
.lightbox-top { display: flex; justify-content: space-between; align-items: center; padding-inline: 31px; }
.lightbox-counter { font-size: 12px; font-variant-numeric: tabular-nums; color: #c8d0c6; letter-spacing: .08em; }
.icon-button { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; transition: background-color 200ms; }
.icon-button svg { width: 22px; height: 22px; }
.icon-button:hover { background: rgb(255 255 255 / 12%); }
.lightbox-stage { display: grid; grid-template-columns: 80px minmax(0, 1fr) 80px; align-items: center; min-height: 0; }
.lightbox-stage > button { justify-self: center; }
.lightbox-image-wrap { display: grid; place-items: center; min-height: 100px; height: 100%; position: relative; }
#lightbox-image { width: 100%; height: 100%; max-height: calc(100dvh - 190px); object-fit: contain; }
.image-error { position: absolute; padding: 24px; font-size: 14px; text-align: center; }
.lightbox-info { display: flex; align-items: center; justify-content: space-between; gap: 25px; padding: 27px 80px 35px; }
.lightbox-info h2 { font-family: "Landscape Song", serif; font-size: 24px; line-height: 1.5; }
.lightbox-info p { margin-top: 6px; color: #bec9bb; font-size: 12px; line-height: 1.8; }
.lightbox-info a { display: flex; align-items: center; gap: 12px; font-size: 11px; white-space: nowrap; }
.lightbox-info a:hover { text-decoration: underline; }
.lightbox-info a svg { width: 14px; height: 14px; }
.lightbox :focus-visible { outline-color: #d6e3bd; }
.credits-dialog { width: min(620px, calc(100% - 36px)); max-height: calc(100dvh - 64px); padding: 30px 34px; background: var(--paper); color: var(--ink); border-radius: 4px; }
.credits-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.credits-heading h2 { font-family: "Landscape Song", serif; font-size: 27px; }
.credits-heading .icon-button:hover { background: var(--footer); }
.credits-dialog > p { margin-top: 12px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.credits-dialog ul { margin: 27px 0 20px; padding: 0; list-style: none; }
.credits-dialog li { border-top: 1px solid var(--line); }
.credits-dialog li a { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-block: 15px; font-size: 13px; line-height: 1.7; }
.credits-dialog li a:hover { text-decoration: underline; }
.credits-dialog li span:last-child { color: var(--muted); font-size: 11px; text-align: right; }
.license-link { display: inline-block; color: var(--muted); font-size: 11px; text-decoration: underline; }

@media (min-width: 1800px) { .intro-title-group { gap: 110px; } }
@media (max-width: 1100px) {
  .site-header { min-height: 90px; }
  .intro { padding-block: 48px 38px; }
  .intro-title-group { display: block; }
  .english-title { margin-top: 23px; padding-bottom: 0; font-size: 35px; }
  .intro-note { padding-top: 20px; }
  .hero-open { height: 440px; }
  .gallery-section { padding-top: 90px; }
  .photo-grid { row-gap: 48px; }
  .photo-card:nth-child(4n + 2) { margin-top: 65px; }
  .photo-card:nth-child(4n + 4) { margin-top: 50px; }
}

@media (max-width: 700px) {
  .site-header { min-height: 80px; }
  .brand { gap: 7px; font-size: 21px; }
  .brand-mark { width: 30px; height: 30px; }
  .site-header nav { gap: 22px; }
  .nav-link { font-size: 11px; }
  .wander-button { display: none; }
  .intro { align-items: flex-start; padding-block: 43px 33px; }
  h1 { font-size: 44px; line-height: 1.35; }
  .english-title { margin-top: 18px; font-size: 29px; }
  .intro-note { padding-left: 12px; padding-top: 8px; }
  .intro-note > p { display: none; }
  .intro-note .text-link { margin-top: 0; gap: 13px; writing-mode: vertical-rl; font-size: 11px; }
  .intro-note .text-link svg { width: 15px; height: 15px; }
  .hero-open { height: 400px; }
  .hero-open > img { object-position: 48% center; }
  .hero-caption { bottom: 23px; left: 22px; gap: 7px; }
  .hero-photo-title { font-size: 24px; }
  .hero-photo-location { font-size: 11px; letter-spacing: .03em; }
  .expand-icon { right: 20px; bottom: 22px; width: 39px; height: 39px; }
  .hero-credit { margin-top: 12px; align-items: flex-start; gap: 12px; font-size: 11px; }
  .hero-credit > span { max-width: 48%; }
  .hero-credit a { max-width: 48%; justify-content: flex-end; text-align: right; }
  .gallery-section { padding-top: 74px; }
  .gallery-heading { display: block; margin-bottom: 29px; }
  .gallery-heading h2 { font-size: 29px; }
  .section-note { margin-top: 11px; font-size: 11px; }
  .filters { gap: 27px; margin-top: 25px; }
  .filter { font-size: 12px; min-height: 40px; }
  .photo-grid { display: block; }
  .photo-card { margin-top: 0 !important; margin-bottom: 35px; }
  .photo-card:last-child { margin-bottom: 0; }
  .photo-card:nth-child(n) .photo-image img { aspect-ratio: 1.25; max-height: none; }
  .photo-card:nth-child(3n + 2) .photo-image img { aspect-ratio: .97; }
  .photo-card:last-child:nth-child(odd) .photo-image img { aspect-ratio: 1.25; }
  .photo-caption { padding-top: 14px; }
  .photo-title { font-size: 20px; }
  .photo-credit { margin-top: 7px; }
  .photo-view { opacity: 1; transform: none; width: 31px; height: 31px; right: 13px; bottom: 13px; }
  .about-section { grid-template-columns: 1fr; gap: 32px; margin-top: 70px; padding-block: 52px 60px; }
  .about-heading h2 { font-size: 34px; }
  .about-english { margin-top: 14px; font-size: 29px; }
  .about-copy > p { font-size: 14px; }
  .about-copy .source-note { font-size: 12px; }
  .footer-main { padding-block: 46px 44px; align-items: flex-end; gap: 12px; }
  .footer-main > p { font-size: 33px; }
  .back-top { flex-direction: column; gap: 8px; padding-bottom: 2px; font-size: 11px; }
  .footer-bottom { flex-wrap: wrap; padding-block: 22px; gap: 17px; font-size: 11px; }
  .footer-bottom > p { display: none; }
  .footer-brand { font-size: 16px; gap: 9px; }
  .footer-brand span { font-size: 11px; }
  .lightbox[open] { grid-template-rows: 64px minmax(0, 1fr) auto; }
  .lightbox-top { padding-inline: 14px; }
  .lightbox-stage { grid-template-columns: 42px minmax(0, 1fr) 42px; }
  .lightbox-stage .icon-button { width: 38px; height: 44px; }
  #lightbox-image { max-height: calc(100dvh - 230px); }
  .lightbox-info { display: block; padding: 25px 23px 31px; }
  .lightbox-info h2 { font-size: 23px; }
  .lightbox-info p { font-size: 11px; }
  .lightbox-info a { margin-top: 17px; font-size: 11px; }
  .credits-dialog { padding: 23px; }
  .credits-heading h2 { font-size: 24px; }
  .credits-dialog li a { gap: 15px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
