:root {
  --paper: #fcf8ef;
  --cream: #fffdf7;
  --ink: #213d2c;
  --muted: #4d604f;
  --line: #e2ddce;
  --green: #285a3e;
  --gold: #f2cb65;
  --radius: 24px;
  font-family: "Nunito", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
img { display: block; width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
p, h1, h2, figure, dl, dd { margin: 0; }
:focus-visible { outline: 3px solid #135ca7; outline-offset: 5px; }
[tabindex="-1"]:focus { outline: none; }
.wrap { width: min(100% - 72px, 1264px); margin-inline: auto; }
.skip { position: fixed; z-index: 10; top: 12px; left: 12px; padding: 12px 18px; border-radius: 10px; background: white; transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { border-bottom: 1px solid var(--line); background: var(--cream); }
.header-inner, .footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.header-inner { min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 50%; background: #f6d77f; color: #355033; font-size: 25px; line-height: 1; }
.site-nav { display: flex; align-items: center; gap: 8px; }
.site-nav a { display: inline-grid; place-items: center; min-height: 44px; padding: 8px 14px; border-radius: 100px; font-weight: 700; font-size: 14px; color: var(--muted); }
.site-nav a:hover, .site-nav a[aria-current="page"] { background: #e9efdf; color: var(--ink); }

.hero { display: grid; grid-template-columns: minmax(290px, 0.77fr) minmax(0, 1.55fr); align-items: center; gap: clamp(26px, 4vw, 64px); padding-block: 40px 52px; }
.hero-copy { padding-left: clamp(0px, 1vw, 16px); }
.english { font-family: "Nunito", system-ui, sans-serif; color: #526b48; font-weight: 800; letter-spacing: .035em; font-size: 16px; }
.home-subtitle { color: #526b48; font-weight: 750; letter-spacing: .035em; font-size: 17px; }
.hero h1 { margin: 15px 0 23px; font-size: clamp(53px, 7.15vw, 105px); line-height: 1.16; letter-spacing: -.055em; font-weight: 900; white-space: nowrap; }
.hero-hi { display: inline-block; font-family: "Nunito", "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.085em; transform: rotate(-7deg); transform-origin: 50% 85%; }
.hero-exclamation { color: #a74f2b; }
.hero-name { position: relative; isolation: isolate; display: inline-block; letter-spacing: -.06em; }
.hero-name::after { content: ""; position: absolute; left: -.035em; right: -.08em; bottom: .095em; height: .18em; background: var(--gold); z-index: -1; border-radius: 55% 40% 50% 35%; transform: rotate(-5deg); }
.hero-intro { color: var(--muted); font-size: clamp(16px, 1.4vw, 19px); line-height: 1.8; margin-bottom: 25px; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 16px; border: 1px solid transparent; padding: 10px 19px; border-radius: 100px; font-weight: 750; font-size: 15px; transition: background-color .18s ease, transform .18s ease; }
.button span { font-size: 19px; }
.button-primary { background: var(--green); color: white; }
.button-primary:hover { background: #1f4632; transform: translateY(-2px); }
.button-outline { border-color: #a6b09e; background: var(--cream); }
.button-outline:hover { background: #edf0e2; }
.button:disabled { cursor: default; opacity: .5; }

.map { position: relative; border-radius: 30px; box-shadow: 0 14px 40px #495c281a; background: #d9e6a8; }
.map img { border-radius: inherit; aspect-ratio: 3 / 2; object-fit: cover; }
.pin { position: absolute; min-height: 44px; display: inline-flex; align-items: center; gap: 8px; padding: 5px 13px; border: 2px solid #fffaf0; border-radius: 100px; box-shadow: 0 3px 12px #1b32264d; background: var(--cream); font-weight: 800; font-size: clamp(12px, 1.12vw, 16px); white-space: nowrap; transform: translate(-50%, -50%); transition: background-color .18s ease, scale .18s ease; }
.pin:hover { background: #ffe9a9; scale: 1.06; }
.pin span { color: #356346; }
.pin-studio { left: 19%; top: 40%; }
.pin-trail { left: 21%; top: 82%; }
.pin-stories { left: 83%; top: 28%; }
.pin-workshop { left: 82%; top: 77%; }

.places { scroll-margin-top: 24px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; margin-bottom: 18px; }
.section-heading h2, .featured h2 { font-size: clamp(28px, 3.2vw, 42px); line-height: 1.2; font-weight: 850; letter-spacing: -.035em; }
.section-heading p { color: var(--muted); font-size: 15px; }
.place-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.studio { --card-color: #faedc6; --image-position: 0% 8%; }
.trail { --card-color: #e8eed5; --image-position: 0% 85%; }
.stories { --card-color: #e9e2f2; --image-position: 100% 1%; }
.workshop { --card-color: #dcece7; --image-position: 100% 76%; }
.place-card, .field-note { background: var(--card-color); border: 1px solid #182d1a12; border-radius: var(--radius); overflow: hidden; }
.place-card { display: block; transition: transform .2s ease, box-shadow .2s ease; }
.place-card:hover { transform: translateY(-5px); box-shadow: 0 10px 24px #3745271c; }
.place-art, .story-picture { display: block; background-image: url("assets/world-map.webp"); background-repeat: no-repeat; background-size: 220% auto; background-position: var(--image-position); }
.place-card .place-art { aspect-ratio: 2 / 1; }
.place-copy, .gallery-caption { display: grid; gap: 4px; position: relative; padding: 16px 54px 17px 16px; min-height: 86px; }
.place-copy strong, .gallery-caption strong { font-size: clamp(17px, 1.8vw, 23px); font-weight: 850; }
.place-copy > span:not(.card-arrow), .gallery-caption > span:not(.card-arrow) { font-size: 13px; color: var(--muted); }
.card-arrow { display: grid; place-items: center; position: absolute; top: 50%; right: 12px; transform: translateY(-50%); width: 37px; height: 37px; border: 1px solid #253e2d31; border-radius: 50%; background: #fffdf7a0; font-size: 20px; }

.featured { display: grid; grid-template-columns: 1.25fr 1fr; align-items: center; gap: clamp(24px, 4vw, 60px); padding: clamp(18px, 3vw, 40px); margin: 48px 0 58px; background: #f4eedf; border: 1px solid var(--line); border-radius: 29px; }
.featured-art { border-radius: 16px; overflow: hidden; }
.featured-art img { aspect-ratio: 1.8; object-fit: cover; }
.featured-art:hover { box-shadow: 0 7px 20px #52482a27; }
.eyebrow { color: #536448; font-size: 14px; font-weight: 800; letter-spacing: .045em; }
.featured-copy h2 { margin: 8px 0 12px; }
.featured-copy > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }
.featured-copy .button { margin-top: 18px; }
.featured-copy .sample-note { margin-top: 11px; font-size: 12px; }

.site-footer { border-top: 1px solid var(--line); background: var(--cream); }
.footer-inner { min-height: 90px; }
.footer-inner p { color: var(--muted); font-size: 13px; }

.detail-screen { min-height: 70vh; }
.destination { padding: 35px 0 64px; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: #356346; font-size: 15px; font-weight: 800; }
.back-link:hover, .text-link:hover { text-decoration: underline; }
.destination-heading { margin: 22px 0 27px; }
.destination-heading h1 { margin: 9px 0 13px; font-weight: 900; font-size: clamp(41px, 5vw, 72px); line-height: 1.12; letter-spacing: -.045em; }
.destination-heading > p:not(.english), .field-copy > p:not(.eyebrow), .story-copy [data-story-line] { color: var(--muted); font-size: 18px; line-height: 1.85; }
.gallery-card { display: block; max-width: 580px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); }
.gallery-card img { aspect-ratio: 1.7; object-fit: cover; }
.gallery-card:hover { box-shadow: 0 10px 26px #3745271c; }
.gallery-caption { padding-left: 21px; }
.exhibit-layout { display: grid; grid-template-columns: 1.38fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: center; margin-top: 26px; }
.art-enlarge { position: relative; display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--cream); }
.art-enlarge span { position: absolute; right: 12px; bottom: 12px; padding: 10px 15px; border-radius: 100px; background: var(--cream); border: 1px solid var(--line); font-weight: 800; }
.exhibit figcaption { color: var(--muted); font-size: 13px; padding: 9px 2px; }
.art-facts { margin-block: 20px; padding-block: 9px; border-block: 1px solid var(--line); }
.art-facts div { display: grid; grid-template-columns: 62px 1fr; gap: 10px; padding: 7px 0; }
.art-facts dt { font-weight: 800; }
.art-facts dd { color: var(--muted); }

.field-note, .story-book { display: grid; grid-template-columns: 1fr 1.07fr; align-items: stretch; max-width: 1080px; }
.field-note .place-art, .story-picture { min-height: 300px; }
.field-copy, .story-copy { padding: clamp(24px, 4vw, 48px); align-self: center; }
.field-copy h2, .story-copy h2 { margin: 8px 0 12px; font-size: clamp(24px, 3.1vw, 38px); line-height: 1.22; font-weight: 850; }
.text-link { display: inline-block; margin-top: 17px; font-weight: 800; color: var(--green); }
.story-book { overflow: hidden; border: 1px solid #ded4e7; border-radius: var(--radius); background: #f2ebf6; }
.story-picture { --image-position: 100% 0%; background-size: 235% auto; }
.story-top, .story-controls { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.story-top { margin-bottom: 12px; }
.language-control { display: flex; gap: 4px; background: var(--cream); border: 1px solid var(--line); border-radius: 100px; padding: 3px; }
.language-control button { border: 0; min-width: 44px; min-height: 44px; border-radius: 100px; background: transparent; font-size: 13px; font-weight: 800; }
.language-control button[aria-pressed="true"] { color: white; background: var(--green); }
.story-copy [data-story-line] { min-height: 5.6em; }
.story-controls { margin-top: 15px; }
.page-counter { font-size: 14px; font-weight: 800; color: var(--muted); }

dialog { width: min(92vw, 910px); max-height: 94vh; padding: 15px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--cream); color: var(--ink); }
dialog::backdrop { background: #14261bd2; }
dialog img { border-radius: 15px; max-height: 76vh; object-fit: contain; }
.zoom-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.zoom-bar h2 { font-size: 17px; }

@media (max-width: 920px) {
  .wrap { width: calc(100% - 48px); }
  .hero { grid-template-columns: .85fr 1.4fr; gap: 22px; }
  .hero h1 { font-size: clamp(48px, 7.3vw, 73px); }
  .place-grid { gap: 12px; }
  .place-copy { padding-left: 12px; padding-right: 43px; }
  .card-arrow { right: 9px; width: 29px; height: 29px; font-size: 16px; }
}

@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { flex-wrap: wrap; justify-content: center; row-gap: 3px; padding-block: 9px 5px; }
  .header-inner .brand { flex-basis: 100%; justify-content: center; }
  .site-nav { gap: 4px; }
  .site-nav a { padding-inline: 12px; }
  .hero { display: flex; flex-direction: column; align-items: stretch; padding-block: 29px 37px; gap: 25px; }
  .hero-copy { text-align: center; }
  .hero h1 { font-size: clamp(54px, 14vw, 78px); margin: 10px 0 16px; }
  .hero-intro { font-size: 16px; margin-bottom: 16px; }
  .map { border-radius: 19px; }
  .pin { padding-inline: 7px; gap: 3px; min-height: 44px; font-size: 12px; border-width: 1px; }
  .pin-stories, .pin-workshop { left: 80%; }
  .section-heading { display: block; margin-bottom: 13px; }
  .section-heading p { margin-top: 7px; }
  .place-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  .place-card { border-radius: 17px; }
  .place-copy { min-height: 75px; padding: 11px 40px 13px 11px; }
  .place-copy strong { font-size: 17px; }
  .place-copy > span:not(.card-arrow) { font-size: 12px; }
  .featured { grid-template-columns: 1fr; margin-block: 32px 38px; }
  .footer-inner { flex-direction: column; justify-content: center; gap: 7px; padding: 14px 0; }
  .destination { padding-block: 20px 42px; }
  .destination-heading { margin-block: 15px 20px; }
  .exhibit-layout, .field-note, .story-book { grid-template-columns: 1fr; gap: 0; }
  .field-note .place-art, .story-picture { min-height: 205px; }
}

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