:root {
  color-scheme: light;
  --paper: #fbf7ee;
  --surface: #fffdf8;
  --sand: #f0e9da;
  --ink: #27221e;
  --muted: #645950;
  --plum: #65283a;
  --plum-dark: #451b28;
  --plum-soft: #f2e3e6;
  --gold: #a66b36;
  --line: #e2d8c6;
  --display: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", STSong, SimSun, Georgia, serif;
  --body: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 1rem/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input { color: inherit; font: inherit; }
button { cursor: pointer; }
section[id] { scroll-margin-top: 24px; }
:focus-visible { outline: 2px solid #9b4663; outline-offset: 4px; }

.wrap { width: min(1220px, calc(100% - 96px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--surface);
  border-radius: 8px;
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); }
.header-inner {
  min-height: 79px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  flex-shrink: 0;
}
.brand strong, .brand small { display: block; line-height: 1.25; }
.brand strong { font-size: 1.06rem; font-weight: 750; letter-spacing: .06em; }
.brand small {
  margin-top: 3px;
  font: 600 .8rem/1.15 Georgia, serif;
  letter-spacing: .08em;
  color: var(--plum);
}
.main-nav, .footer-nav { display: flex; flex-wrap: wrap; column-gap: 32px; }
.main-nav a, .footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: .94rem;
  font-weight: 600;
}
.main-nav a:hover { color: var(--plum); text-decoration: underline; text-underline-offset: 5px; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(35px, 5vw, 76px);
  padding-block: 52px 64px;
}
.hero-copy { padding-block-end: 37px; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--plum);
  font-size: .875rem;
  font-weight: 700;
  letter-spacing: .12em;
}
.eyebrow > span {
  flex: none;
  width: 7px;
  height: 7px;
  background: var(--gold);
  transform: rotate(45deg);
}
h1, h2 { font-family: var(--display); font-weight: 800; }
.hero h1 {
  margin-top: 19px;
  font-size: clamp(3.1rem, 5.8vw, 5.4rem);
  line-height: 1.12;
  letter-spacing: -.05em;
}
.hero h1 em { color: var(--plum); font-style: normal; }
.hero-description {
  margin-top: 25px;
  color: var(--muted);
  font-size: clamp(1rem, 1.45vw, 1.15rem);
  line-height: 1.9;
}
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 25px; margin-top: 29px; }
.button {
  min-height: 49px;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 10px 23px;
  border: 1px solid transparent;
  border-radius: 8px;
  font-weight: 650;
  transition: background-color .18s, color .18s;
}
.primary { background: var(--plum); color: #fffaf3; }
.primary:hover { background: var(--plum-dark); }
.secondary { background: var(--surface); color: var(--plum); border-color: var(--line); }
.secondary:hover { background: var(--plum-soft); }
.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--plum);
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: #a66c7e;
  text-underline-offset: 5px;
}
.text-link:hover { color: var(--plum-dark); text-decoration-thickness: 2px; }

.hero-gallery { min-width: 0; }
.hero-frame {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  aspect-ratio: 1.43;
  border-radius: 19px;
  background: var(--sand);
  box-shadow: 0 13px 27px #53332216;
}
.hero-frame img, .how-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-frame::after {
  position: absolute;
  z-index: 0;
  inset: 48% 0 0;
  background: linear-gradient(transparent, #19130f 115%);
  pointer-events: none;
  content: "";
}
.hero-caption {
  position: absolute;
  z-index: 1;
  inset: auto 24px 21px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  color: #fff9ef;
}
.hero-caption strong {
  display: block;
  font: 800 clamp(1.7rem, 3vw, 2.65rem)/1.2 var(--display);
}
.hero-caption #hero-place { display: block; margin-top: 3px; font-size: .875rem; }
.art-label {
  padding: 4px 10px;
  border: 1px solid #fff9ef65;
  border-radius: 5px;
  background: #22191163;
  font-size: .8125rem;
}
.gallery-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 11px;
}
.gallery-label { font-size: .875rem; color: var(--muted); }
.city-picker, .story-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.city-picker button, .story-filters button {
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 99px;
  background: transparent;
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color .18s, color .18s, border-color .18s;
}
.city-picker button { min-width: 59px; padding: 6px 13px; }
.city-picker button:hover, .story-filters button:hover { border-color: var(--plum); }
.city-picker button[aria-pressed="true"] { color: var(--plum); background: var(--plum-soft); border-color: var(--plum-soft); }

.story-section {
  background: #f5efe3;
  border-block: 1px solid var(--line);
  padding-block: 66px 75px;
}
.section-heading h2 {
  font-size: clamp(2.15rem, 4.15vw, 3.6rem);
  line-height: 1.2;
  letter-spacing: -.035em;
}
.section-heading .eyebrow + h2 { margin-top: 10px; }
.section-heading h2 + p { margin-top: 12px; color: var(--muted); }
.story-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(100%, 305px);
  flex-shrink: 0;
  min-height: 49px;
  padding: 0 12px;
  border: 1px solid #cec0ac;
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface);
}
.search-box:focus-within { outline: 2px solid #9b4663; outline-offset: 2px; }
.search-box svg { width: 21px; height: 21px; flex: none; }
.search-box input {
  min-width: 0;
  width: 100%;
  padding: 9px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}
.search-box input::placeholder { color: var(--muted); opacity: 1; }
.filter-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-block: 25px 16px;
}
.story-filters button {
  padding: 7px 17px;
  background: var(--surface);
  border-color: #dacdbb;
}
.story-filters button[aria-pressed="true"] { color: white; background: var(--plum); border-color: var(--plum); }
.result-count { color: var(--muted); font-size: .875rem; white-space: nowrap; }
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story-grid[hidden] { display: none; }
.story-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: 0 5px 10px #50361708;
  transition: box-shadow .2s, border-color .2s;
}
.story-card:hover { border-color: #b9918e; box-shadow: 0 8px 18px #50361714; }
.card-button {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: inherit;
  background: transparent;
  text-align: left;
}
.card-cover {
  position: relative;
  overflow: hidden;
  display: block;
  width: 100%;
  aspect-ratio: 1.85;
  border-radius: 13px 13px 0 0;
  background: var(--sand);
}
.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease-out;
}
.card-button:hover img { transform: scale(1.035); }
.card-city {
  position: absolute;
  top: 11px;
  left: 11px;
  padding: 3px 10px;
  border-radius: 5px;
  background: var(--surface);
  color: var(--plum);
  font-size: .875rem;
  font-weight: 700;
}
.card-body { display: flex; flex: 1; flex-direction: column; width: 100%; padding: 15px 16px 17px; }
.card-title {
  display: block;
  margin-bottom: 9px;
  font-size: 1.18rem;
  font-weight: 730;
  line-height: 1.4;
}
.card-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 5px 12px; margin-top: auto; }
.story-meta { color: var(--muted); font-size: .875rem; }
.card-action { color: var(--plum); font-size: .875rem; font-weight: 650; }
.card-button:hover .card-action { text-decoration: underline; text-underline-offset: 3px; }
.empty-state {
  padding: 39px 16px;
  border: 1px dashed #c6ae97;
  border-radius: 13px;
  text-align: center;
}
.empty-state p { margin-top: 5px; color: var(--muted); }
.empty-state button { margin-top: 16px; }

.how-section {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  gap: clamp(35px, 7vw, 105px);
  padding-block: 79px;
}
.how-art {
  overflow: hidden;
  aspect-ratio: 1.44;
  border-radius: 17px;
  background: var(--sand);
}
.steps { display: grid; gap: 16px; margin: 24px 0 0; padding: 0; list-style: none; counter-reset: step; }
.steps li {
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr);
  gap: 13px;
  counter-increment: step;
}
.steps li::before {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #dbbfab;
  border-radius: 50%;
  color: var(--plum);
  font: 700 1rem/1 Georgia, serif;
  content: counter(step);
}
.steps h3 { font-size: 1.04rem; line-height: 1.5; }
.steps p { margin-top: 4px; color: var(--muted); }

.faq-section { padding-block: 64px 74px; background: #f5efe3; border-top: 1px solid var(--line); }
.faq-inner { display: grid; grid-template-columns: minmax(0, .62fr) minmax(0, 1.38fr); gap: 28px 55px; }
.faq-list { border-top: 1px solid #d7c8b5; }
.faq-list details { border-bottom: 1px solid #d7c8b5; }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding-block: 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 680;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--plum);
  background:
    linear-gradient(currentColor, currentColor) center / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) center / 2px 14px no-repeat;
  content: "";
}
.faq-list details[open] summary::after { background-size: 14px 2px, 0 0; }
.faq-list summary:hover { color: var(--plum); }
.faq-list details p { padding-bottom: 18px; color: var(--muted); }

.site-footer { background: #3f2328; color: #fcf3e7; }
.footer-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 18px 30px;
  padding-block: 35px;
}
.footer-brand small, .site-operator, .site-filings { color: #ebcfc4; }
.site-footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.site-footer a:focus-visible { outline-color: #f1cf9b; }
.footer-legal {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 24px;
  border-top: 1px solid #78555c;
}
.legal-links, .site-operator, .site-filings {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  column-gap: 20px;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.legal-links a, .site-operator a, .site-filings a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
}
.site-filings {
  grid-column: 1 / -1;
  justify-content: center;
  margin-top: -9px;
  text-align: center;
}
.site-footer a[hidden] { display: none; }

.policy-page { max-width: 760px; padding-block: clamp(32px, 7vw, 78px); }
.policy-page h1 { font-size: clamp(2.2rem, 6vw, 3.75rem); line-height: 1.2; }
.policy-date { margin-top: 12px; color: var(--muted); font-size: .875rem; }
.policy-intro { margin-top: 21px; }
.policy-contents {
  margin-top: 24px;
  padding: 15px 19px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface);
}
.policy-contents ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 185px), 1fr));
  gap: 5px 18px;
  margin: 6px 0 0;
  padding: 0;
  list-style: none;
}
.policy-contents a { display: inline-flex; align-items: center; min-height: 36px; }
.policy-page section {
  margin-top: 24px;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}
.policy-page h2 { margin-bottom: 6px; font-size: 1.35rem; }
.policy-page h3 { margin-top: 15px; margin-bottom: 3px; font-size: 1rem; }
.policy-page section p + p { margin-top: 8px; }
.policy-page a { color: var(--plum); text-decoration: underline; text-underline-offset: 4px; overflow-wrap: anywhere; }
.policy-list { margin: 0 0 8px; padding-inline-start: 1.4em; }
.policy-list li + li { margin-top: 4px; }
.policy-nav { display: flex; flex-wrap: wrap; gap: 0 20px; margin-top: 20px; }
.policy-nav a { display: inline-flex; align-items: center; min-height: 44px; }

.story-dialog {
  width: min(560px, calc(100% - 34px));
  max-height: min(88vh, 720px);
  padding: 0;
  border: 1px solid #d9c6ae;
  border-radius: 16px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 18px 60px #1f12136b;
}
.story-dialog::backdrop { background: #22151bcc; }
body:has(.story-dialog[open]) { overflow: hidden; }
.story-dialog > img { width: 100%; height: auto; aspect-ratio: 1.95; object-fit: cover; }
.dialog-close-form { position: sticky; top: 0; z-index: 1; height: 0; text-align: right; }
.dialog-close {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin: 11px;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--plum);
}
.dialog-close:hover { background: var(--plum-soft); }
.dialog-close svg { width: 22px; height: 22px; }
.dialog-content { padding: 22px 24px 25px; }
.dialog-content h2 { margin-top: 5px; font-size: clamp(1.85rem, 5vw, 2.55rem); line-height: 1.3; }
.dialog-content .story-meta { margin-top: 6px; }
#dialog-description { margin-top: 15px; }

@media (max-width: 980px) {
  .wrap { width: calc(100% - 56px); }
  .hero { gap: 28px; }
  .desktop-break { display: none; }
  .hero h1 { font-size: clamp(2.6rem, 6.4vw, 4.3rem); }
  .story-heading { align-items: start; }
  .story-heading .search-box { margin-top: 35px; width: 230px; }
  .story-grid { gap: 14px; }
  .card-body { padding-inline: 13px; }
  .how-section { gap: 30px; }
}

@media (max-width: 720px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 0; align-items: flex-start; flex-direction: column; gap: 0; padding-top: 13px; }
  .policy-header { min-height: 64px; align-items: center; flex-direction: row; gap: 12px; padding-block: 8px; }
  .main-nav { gap: 22px; }
  .brand img { width: 38px; height: 38px; }
  .hero { grid-template-columns: 1fr; gap: 24px; padding-block: 32px 34px; }
  .hero-copy { padding: 0; }
  .hero h1 { margin-top: 11px; font-size: clamp(2.75rem, 10vw, 4.5rem); }
  .hero-description { margin-top: 14px; }
  .hero-actions { margin-top: 17px; }
  .hero-frame { border-radius: 13px; }
  .hero-caption { inset: auto 14px 13px; }
  .story-section, .faq-section { padding-block: 39px 43px; }
  .story-heading { flex-direction: column; gap: 15px; }
  .story-heading .search-box { width: 100%; margin-top: 0; }
  .filter-row { align-items: flex-start; flex-direction: column; gap: 8px; margin-block: 16px 12px; }
  .story-filters button { padding-inline: 13px; }
  .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how-section { grid-template-columns: 1fr; gap: 21px; padding-block: 40px; }
  .how-copy { grid-row: 1; }
  .how-art { border-radius: 12px; }
  .steps { margin-top: 18px; }
  .faq-inner { grid-template-columns: 1fr; gap: 19px; }
  .footer-inner { grid-template-columns: 1fr; gap: 12px; padding-block: 26px; }
  .footer-nav { gap: 17px; }
  .site-filings { margin-top: 0; }
}

@media (max-width: 440px) {
  .story-grid { grid-template-columns: 1fr; }
  .card-cover { aspect-ratio: 1.95; }
  .city-picker { gap: 5px; }
}

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