
:root {
  color-scheme: light;
  --paper: #f4f1eb;
  --surface: #fbf8f2;
  --ink: #292c2c;
  --muted: #555c5c;
  --accent: #79573b;
  --line: #d6cfc5;
  --graphite: #191c20;
  --on-dark: #f4f1eb;
  --dim-dark: #c4c0b9;
  --serif: "Noto Serif SC", "Songti SC", "STSong", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --edge: clamp(1.25rem, 4.6vw, 4rem);
  --section: clamp(3rem, 6.15vw, 5.625rem);
}

* { box-sizing: border-box; }
html { scroll-padding-top: 1.25rem; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1.0625rem/1.72 var(--sans); }
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-underline-offset: .28em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
h1, h2, h3, h4 { line-height: 1.27; overflow-wrap: anywhere; }
h1, h2 { font-family: var(--serif); }
h2 { font-size: clamp(1.75rem, 3.05vw, 2.5rem); }
h3 { font-size: clamp(1.1875rem, 1.7vw, 1.4375rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.625rem); }
ul { padding: 0; margin: 0; list-style: none; }
.wrap { width: min(73.75rem, calc(100% - var(--edge) * 2)); margin-inline: auto; }
.section { padding-block: var(--section); }
.meta, figcaption, .video-source { color: var(--muted); font-size: .875rem; }
.text-link { width: fit-content; color: var(--accent); font-size: .9375rem; font-weight: 600; }
.skip { position: absolute; z-index: 10; top: .625rem; left: .625rem; padding: .55rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: none; }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: fit-content;
  min-height: 2.875rem;
  padding: .55rem 1.125rem;
  border: 1px solid var(--accent);
  border-radius: .25rem;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
}

.site-header { border-bottom: 1px solid var(--line); }
.page-home .site-header { background: var(--graphite); color: var(--on-dark); border-color: #383a3d; }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; min-height: 4.5rem; padding-block: .625rem; }
.wordmark { font-family: var(--serif); font-size: 1.375rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; white-space: nowrap; }
.site-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; column-gap: clamp(.875rem, 3vw, 2.375rem); }
.site-nav a { display: flex; align-items: center; min-height: 2.75rem; font-size: .9375rem; text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current] { text-decoration: underline; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; color: var(--muted); font-size: .875rem; }
.footer-link { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; }

.hero, .media-band, .detail-videos { background: var(--graphite); color: var(--on-dark); }
.hero-inner { display: grid; grid-template-columns: 1fr .88fr; gap: clamp(2rem, 7vw, 6rem); align-items: center; min-height: 31rem; padding-block: clamp(2rem, 4.4vw, 4rem); }
.hero-copy h1 { font-size: clamp(4.5rem, 6.15vw, 5.5rem); letter-spacing: .04em; }
.roman { margin-top: .55rem; color: #d5c3b0; font-size: clamp(.9375rem, 1.5vw, 1.1875rem); letter-spacing: .19em; text-transform: uppercase; }
.hero-title { margin-top: 1.4rem; font-size: clamp(1.125rem, 2vw, 1.375rem); font-weight: 600; }
.hero-focus { margin-top: .4rem; color: var(--dim-dark); }
.hero-actions { margin-top: 1.7rem; }
.hero-link { background: var(--on-dark); border-color: var(--on-dark); color: var(--graphite); }
.hero-link:hover { background: #e4dacd; }
.hero-link:focus-visible { outline-color: var(--on-dark); }
.hero-portrait { justify-self: end; width: min(100%, 27rem); aspect-ratio: 1 / 1.12; overflow: hidden; border-radius: .25rem; background: #25282d; }
.hero-portrait img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 16%; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .35rem 1rem; margin-bottom: 1.35rem; }
.section-more { display: flex; justify-content: flex-end; margin-top: .55rem; }
.section-more a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.project-section { padding-bottom: 0; }
.project-section > .wrap > h2 { margin-bottom: 1.6rem; }
.feature-grid { display: grid; grid-template-columns: 1.36fr 1fr; gap: clamp(1rem, 3vw, 2.5rem); }
.feature-card { min-width: 0; }
.feature-link, .activity-link { text-decoration: none; }
.feature-link:hover h4, .activity-link:hover h3 { text-decoration: underline; text-underline-offset: .22em; }
.feature-image { height: clamp(15rem, 31vw, 25.75rem); background: #e9e2d7; border-radius: .25rem; overflow: hidden; }
.feature-image img { width: 100%; height: 100%; object-fit: cover; object-position: center 53%; }
.feature-poster img { object-fit: contain; }
.feature-link h4 { margin: .88rem 0 .35rem; }
.feature-role { font-size: .9375rem; font-weight: 600; }

.record-list { margin-top: 1.25rem; border-top: 1px solid var(--line); }
.record-list li { border-bottom: 1px solid var(--line); }
.record-list a { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: .4rem 1.25rem; align-items: baseline; padding: 1rem .35rem; text-decoration: none; }
.record-list a:hover { background: var(--surface); }
.record-list strong { font-weight: 650; }
.record-list span { font-size: .9375rem; }
.record-compact { margin-block: 1.85rem 0; }
.media-band { margin-top: var(--section); padding-block: clamp(2.375rem, 5vw, 4.5rem); }
.media-band h3 { margin-bottom: 1.2rem; }
.category-grid, .activity-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.55vw, 2rem); }
.category-grid a { display: block; text-decoration: none; }
.category-grid a:hover h4 { text-decoration: underline; text-underline-offset: .22em; }
.category-image { aspect-ratio: 16 / 9; margin-bottom: .8rem; background: #282c31; overflow: hidden; border-radius: .2rem; }
.category-image img { width: 100%; height: 100%; object-fit: cover; }
.category-grid li:nth-child(2) .category-image img { object-position: 50% 34%; }
.category-grid h4 { font-size: 1.125rem; }
.category-grid p { margin-top: .25rem; color: var(--dim-dark); font-size: .875rem; }

.activity-card { display: flex; flex-direction: column; gap: .45rem; align-items: flex-start; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.activity-image { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: .2rem; background: #e9e2d7; }
.activity-image img { width: 100%; height: 100%; object-fit: cover; }
.activity-card:first-child .activity-image img { object-position: 50% 38%; }
.activity-link { width: 100%; }
.activity-link h3 { margin-top: .8rem; font-size: 1.125rem; }
.activity-card > p:not(.meta) { font-size: .9375rem; }
.activity-card > .text-link { margin-top: auto; padding-top: .25rem; }
.gallery-entry { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1.5rem; padding: .85rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; font-weight: 600; }
.gallery-entry:hover .text-link { text-decoration: underline; }
.gallery-entry small { display: block; color: var(--muted); font-size: .875rem; font-weight: 400; }
.gallery-entry .text-link { flex-shrink: 0; }

.about-section { background: #eae4da; }
.about-grid { display: grid; grid-template-columns: 1fr 2.5fr; gap: 1.375rem 2.5rem; }
.about-copy { max-width: 44rem; }
.about-copy p + p, .reading p + p { margin-top: .75rem; }
.views { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 1.75rem; }
.views > div { padding-top: .85rem; border-top: 1px solid #c9beaf; }
.views h3 { margin-bottom: .4rem; font-size: 1rem; }
.views p { color: var(--muted); font-size: .9375rem; }
.contact-list { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1rem; }
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 15rem);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
  scroll-margin-top: .75rem;
}
.contact-intro { margin-top: .65rem; text-wrap: pretty; }
.contact-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.2rem; margin-top: 1.35rem; }
.contact-phone {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  color: var(--muted);
  font-size: .9375rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.contact-qr {
  width: min(100%, 15rem);
  padding: clamp(.4rem, 1.2vw, 1rem);
  border: 1px solid var(--line);
  border-radius: .25rem;
  background: var(--surface);
  text-align: center;
}
.contact-qr img { width: 100%; background: #fff; }
.contact-qr figcaption { margin-top: .5rem; color: var(--ink); font-weight: 600; }

.detail { padding-top: clamp(1.5rem, 4vw, 3.125rem); }
.detail-header { max-width: 54rem; }
.breadcrumb { margin-bottom: clamp(1.1rem, 2.7vw, 2rem); color: var(--accent); font-size: .9375rem; }
.detail-type { margin-bottom: .6rem; color: var(--accent); font-size: .875rem; font-weight: 650; }
.detail h1 { font-size: clamp(2.125rem, 5vw, 3.875rem); line-height: 1.16; }
.detail-summary { max-width: 44rem; margin-top: 1rem; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); }
.detail-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1.75rem; padding-block: 1rem; margin-top: 1.375rem; border-block: 1px solid var(--line); }
.detail-facts dt { margin-bottom: .15rem; color: var(--muted); font-size: .875rem; font-weight: 600; }
.detail-facts dd { font-size: 1rem; }
.detail-section { margin-block: clamp(2rem, 5vw, 3.75rem); }
.detail-section h2, .detail-videos h2 { margin-bottom: 1rem; font-size: clamp(1.5rem, 2.6vw, 2rem); }
.reading p { max-width: 46rem; }
.detail-end { padding-bottom: clamp(2rem, 5vw, 4rem); }
.detail-end > .detail-section { margin-bottom: 0; }
.photo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: clamp(1.25rem, 3.5vw, 2.5rem); }
.photo-single { grid-template-columns: minmax(0, 53rem); }
.photo { width: fit-content; max-width: 100%; }
.photo-vertical { width: min(100%, 24rem); }
.photo-link { position: relative; display: block; width: fit-content; max-width: 100%; text-decoration: none; cursor: zoom-in; }
.photo-link img { border-radius: .25rem; }
.photo-action { display: block; width: fit-content; margin: .45rem 0 0 auto; color: var(--accent); text-decoration: underline; font-size: .875rem; }
.photo figcaption { position: relative; margin-top: -1.505rem; padding-right: 3rem; pointer-events: none; }
.gallery-lead { margin-top: 1.75rem; width: min(100%, 52rem); }
.gallery-section .photo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.gallery-section .photo-vertical { width: min(100%, 19rem); }

.detail-videos { margin-top: clamp(2rem, 5vw, 3.75rem); padding-block: clamp(1.75rem, 4.2vw, 3.75rem); }
.video-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.5rem, 4vw, 3.125rem); }
.video-single { grid-template-columns: minmax(0, 50rem); }
.video-item { width: 100%; max-width: 100%; }
.video-vertical { max-width: 22rem; }
.video-item figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: .3rem .85rem; margin-bottom: .6rem; color: var(--on-dark); }
.video-item h3 { font-size: 1rem; }
.video-duration { flex-shrink: 0; color: var(--dim-dark); white-space: nowrap; }
.player { position: relative; width: 100%; }
.player video { width: 100%; height: auto; aspect-ratio: var(--player-ratio); object-fit: contain; background: #101214; border-radius: .2rem; }
.play-button { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, -50%); display: flex; align-items: center; gap: .6rem; min-height: 2.75rem; padding: .55rem .85rem; border: 1px solid #f4f1eb; border-radius: .3rem; color: white; background: #191c20ed; font: 600 .9375rem var(--sans); cursor: pointer; }
.play-button::before { content: ""; width: 0; height: 0; border: .4rem solid transparent; border-right: 0; border-left: .65rem solid currentColor; }
.play-button:hover { background: #393e45; }
.video-source { margin-top: .5rem; color: var(--dim-dark); }
.video-error { margin-top: .5rem; font-size: .875rem; }

.sources { max-width: 53rem; }
.sources li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem 1.5rem; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.sources a { color: var(--accent); overflow-wrap: anywhere; }
.index-page, .error-page { padding-bottom: var(--section); }
.jump-links { display: flex; flex-wrap: wrap; gap: .5rem 1.35rem; margin-bottom: 1.5rem; }
.jump-links a { min-height: 2.5rem; display: inline-flex; align-items: center; }
.index-category { margin-top: 1.75rem; }
.index-category h3 { margin-bottom: .7rem; }
.index-category-description { margin-bottom: .8rem; color: var(--muted); font-size: .9375rem; }
.media-links { border-top: 1px solid var(--line); max-width: 54rem; }
.media-links a { display: flex; align-items: center; gap: .9rem; padding-block: .65rem; border-bottom: 1px solid var(--line); text-decoration: none; }
.media-links a:hover strong { text-decoration: underline; text-underline-offset: .23em; }
.index-thumb { flex: 0 0 auto; width: clamp(4.25rem, 14vw, 7.5rem); aspect-ratio: 16 / 10; background: var(--graphite); border-radius: .2rem; overflow: hidden; }
.index-thumb img { width: 100%; height: 100%; object-fit: contain; }
.media-links p { margin-top: .18rem; color: var(--muted); font-size: .875rem; }
.error-page .button { margin-top: 1rem; }

.lightbox { position: fixed; max-width: min(96vw, 80rem); max-height: 96vh; max-height: 96dvh; margin: auto; padding: .75rem; border: 1px solid #6a6a6a; border-radius: .3rem; background: var(--graphite); color: var(--on-dark); }
.lightbox::backdrop { background: #0d1013eb; }
.lightbox-bar { display: flex; justify-content: flex-end; margin-bottom: .5rem; }
.lightbox-close { min-height: 2.75rem; padding: .35rem .85rem; border: 1px solid #a6a3a0; border-radius: .25rem; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.lightbox img { max-width: min(calc(96vw - 2rem), 76rem); max-height: calc(96vh - 8rem); max-height: calc(96dvh - 8rem); width: auto; height: auto; margin-inline: auto; }
.lightbox figcaption { margin-top: .4rem; color: var(--dim-dark); }
body:has(.lightbox[open]) { overflow: hidden; }

@media (max-width: 56rem) {
  .hero-inner { gap: 2rem; min-height: 0; }
  .hero-copy h1 { font-size: clamp(3.5rem, 8vw, 4.5rem); }
  .activity-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-section .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 49rem) {
  .contact-section { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
}

@media (max-width: 40rem) {
  body { font-size: 1rem; }
  .header-inner { min-height: 3.5rem; padding-block: .36rem; }
  .wordmark { font-size: 1.125rem; letter-spacing: .03em; }
  .site-nav { column-gap: clamp(.52rem, 2.5vw, 1rem); }
  .site-nav a { font-size: .875rem; }
  .hero-inner { display: flex; flex-direction: column; align-items: stretch; gap: 1.25rem; padding-block: 1.55rem 1.75rem; }
  .hero-copy h1 { font-size: clamp(2.5rem, 11.5vw, 3rem); }
  .roman { margin-top: .22rem; }
  .hero-title { margin-top: .75rem; font-size: 1.0625rem; }
  .hero-focus { margin-top: .15rem; font-size: .9375rem; }
  .hero-actions { margin-top: .95rem; }
  .hero-portrait { width: 100%; aspect-ratio: 1.12 / 1; }
  .hero-portrait img { object-position: 50% 13%; }
  .section-head { margin-bottom: 1rem; }
  .project-section > .wrap > h2 { margin-bottom: 1rem; }
  .feature-grid, .activity-grid, .photo-grid, .video-grid, .gallery-section .photo-grid { grid-template-columns: minmax(0, 1fr); }
  .feature-grid { gap: 1.5rem; }
  .feature-image { height: auto; aspect-ratio: 1.25 / 1; }
  .feature-poster { aspect-ratio: 1.13 / 1; }
  .record-list a { grid-template-columns: 1fr; gap: .15rem; }
  .category-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .category-grid a { display: grid; grid-template-columns: minmax(5.1rem, 30%) 1fr; grid-template-rows: auto auto; align-items: center; gap: .25rem .75rem; }
  .category-image { grid-row: span 2; align-self: start; margin: 0; }
  .category-grid p { margin: 0; align-self: start; }
  .category-grid h4 { align-self: end; }
  .views { grid-template-columns: 1fr; gap: .8rem; margin-top: 1.35rem; }
  .detail-facts { grid-template-columns: 1fr; gap: .65rem; }
  .photo-vertical, .gallery-section .photo-vertical { width: min(100%, 18.75rem); margin-inline: auto; }
  .video-vertical { width: min(100%, 19rem); }
}
