:root {
  --ink: #173b6c;
  --gold: #ba8121;
  --brown: #573411;
  --cream: #f4edda;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--brown);
  background: #f8f4e9;
  font-family: "Noto Serif TC", "PingFang TC", "Microsoft JhengHei", serif;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 42px;
  padding: 0 3vw;
  color: #fff;
  background: #543213;
  border-bottom: 1px solid rgb(255 225 160 / 24%);
  box-shadow: 0 8px 24px rgb(47 25 5 / 18%);
}
.wordmark { display: block; flex: 0 1 auto; overflow: hidden; max-width: 42vw; white-space: nowrap; text-overflow: ellipsis; font-size: 12px; letter-spacing: .06em; }
.wordmark strong { font-weight: 800; }
.site-header nav { display: flex; flex: 0 1 auto; min-width: 0; justify-content: flex-end; gap: clamp(10px, 1.6vw, 26px); margin-left: auto; overflow-x: auto; font-size: 13px; white-space: nowrap; scrollbar-width: none; }
.site-header nav::-webkit-scrollbar { display: none; }
.site-header nav a { padding-block: 9px; border-bottom: 1px solid transparent; }
.site-header nav a:hover { border-color: currentColor; }

.hero {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e9dfc5;
}
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.scroll-hint {
  position: absolute;
  z-index: 3;
  right: 3vw;
  bottom: 32px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  border: 1px solid rgb(255 255 255 / 60%);
  border-radius: 50%;
}

.section-label { width: min(1180px, 88vw); margin: 0 auto 32px; }
.section-label p, .gallery-heading p { margin: 0 0 12px; color: var(--gold); font: 700 12px/1 sans-serif; letter-spacing: .2em; }
.section-label h1, .section-label h2, .gallery-heading h2 { margin: 0; font-size: clamp(30px, 4.6vw, 72px); font-weight: 600; letter-spacing: .04em; }

.poster-section { padding: clamp(80px, 11vw, 170px) 0; }
.poster-section > img {
  width: 100%;
  height: auto;
  margin: 0;
}

.booklet-section { padding: clamp(80px, 10vw, 150px) 0 0; overflow: hidden; background: #8b5b21; }
.section-label.light { color: #fff8e7; }
.section-label.light p { color: #f6cf73; }
.booklet-section > img { width: min(1500px, 94vw); margin: 48px auto 0; }
.booklet-section > .route-map { width: 100%; margin: 0; }

.gallery-section { padding: clamp(80px, 10vw, 150px) 4vw; background: #eee4ce; }
.gallery-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: min(1500px, 100%);
  margin: 0 auto 48px;
}
.gallery-heading > span { padding-bottom: 8px; color: #8e6d3c; font-size: 13px; letter-spacing: .08em; }
.poster-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(18px, 3vw, 52px);
  width: min(1500px, 100%);
  margin: 0 auto;
}
.poster-item { display: grid; gap: 10px; align-content: start; }
.poster-place-link {
  display: inline-flex;
  justify-self: end;
  align-items: center;
  gap: 9px;
  max-width: 100%;
  padding: 10px 14px;
  color: #5b3913;
  background: #f3ead5;
  border: 1px solid #dfcfad;
  box-shadow: 0 8px 20px rgb(80 47 8 / 16%);
  font: 600 14px/1.35 sans-serif;
}
.poster-place-link b { flex: 0 0 auto; color: #f5c65e; }
.poster-place-link::after { content: "↗"; flex: 0 0 auto; color: #7a5120; }
.poster-place-link:hover { background: #eadcbf; }
.poster-card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #fff;
  border: 0;
  box-shadow: 0 16px 46px rgb(88 56 12 / 12%);
  cursor: zoom-in;
}
.poster-card img { width: 100%; transition: transform .45s ease; }
.poster-card:hover img { transform: scale(1.012); }
.poster-card > span {
  position: absolute;
  inset: auto 18px 18px auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 13px;
  color: #fff;
  background: rgb(80 47 8 / 86%);
  backdrop-filter: blur(6px);
  font: 500 13px/1.2 sans-serif;
}
.poster-card > span b { color: #f5c65e; }

#booklet, #visual, #gallery, #visit { scroll-margin-top: 44px; }
.visit-section { padding: clamp(80px, 9vw, 140px) 4vw; background: #f8f3e6; }
.visit-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  width: min(1500px, 100%);
  margin: 0 auto 48px;
}
.visit-heading p { margin: 0 0 12px; color: var(--gold); font: 700 12px/1 sans-serif; letter-spacing: .2em; }
.visit-heading h2 { margin: 0; font-size: clamp(36px, 5vw, 76px); font-weight: 600; letter-spacing: .06em; }
.visit-heading > a { padding-bottom: 8px; color: #79511d; font: 600 14px/1.5 sans-serif; }
.visit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 30px);
  width: min(1500px, 100%);
  margin: 0 auto;
}
.visit-grid article {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 390px;
  padding: clamp(28px, 3vw, 48px);
  background: #fffdf7;
  border-top: 4px solid #b9852d;
  box-shadow: 0 18px 48px rgb(79 48 8 / 10%);
}
.visit-grid article > span { position: absolute; top: 22px; right: 24px; color: #c29a5d; font: 700 12px/1 sans-serif; letter-spacing: .15em; }
.visit-kicker { margin: 0 0 18px !important; color: #9a6a21 !important; font: 700 13px/1.2 sans-serif; letter-spacing: .14em; }
.visit-grid h3 { margin: 0 0 24px; color: #51300f; font-size: clamp(22px, 2vw, 31px); line-height: 1.45; }
.visit-grid p { margin: 0 0 18px; color: #705a3d; font: 500 15px/1.85 sans-serif; }
.visit-time { display: block; margin: 2px 0 8px; color: var(--ink); font: 700 clamp(26px, 2.4vw, 38px)/1.2 Georgia, serif; }
.weekend-label { margin: 6px 0 8px !important; color: #51300f !important; font-weight: 700 !important; }
.weekend-hours { display: grid; gap: 7px; margin: 0 0 16px; }
.weekend-hours span { display: flex; justify-content: space-between; gap: 16px; color: #705a3d; font: 600 14px/1.5 sans-serif; }
.weekend-hours b { color: #51300f; }
.closed-note { margin-bottom: 20px !important; color: #9a5b22 !important; font-weight: 700 !important; }
.dining-info { margin: 0 0 10px; }
.dining-list { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; counter-reset: dining; }
.dining-list li { counter-increment: dining; }
.dining-list a { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; color: #654b2b; font: 600 13px/1.4 sans-serif; }
.dining-list a::before { content: counter(dining); display: grid; place-items: center; width: 21px; height: 21px; color: #fff8e7; background: #9a6a21; border-radius: 50%; font-size: 11px; line-height: 1; }
.dining-list a > span { display: grid; gap: 0; }
.dining-list a b { color: #51300f; font-weight: 700; }
.dining-list a small { color: #7f6a4b; font: 500 12px/1.35 sans-serif; }
.dining-list a:hover b { color: #b07820; }
.visit-overview { margin-bottom: 28px; padding-bottom: 26px; border-bottom: 1px solid #e7d8bb; }
.visit-transport strong { color: #51300f; font-weight: 700; }
.visit-sub-link { display: inline-block; color: #875a19; font: 700 14px/1.6 sans-serif; }
.visit-sub-link:hover { color: #b07820; }
.visit-link { margin-top: auto; padding-top: 22px; color: #875a19; border-top: 1px solid #e7d8bb; font: 700 14px/1.6 sans-serif; }
.visit-link:hover { color: #b07820; }

footer {
  display: flex;
  justify-content: space-between;
  padding: 38px 4vw;
  color: #f8ecd1;
  background: #4c2d0f;
  font-size: 13px;
  letter-spacing: .1em;
}
footer p { margin: 0; }

.modal-open { overflow: hidden; }
.lightbox[hidden] { display: none; }
.lightbox {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(20 12 4 / 92%);
  cursor: zoom-out;
}
.lightbox img {
  max-width: min(920px, 92vw);
  max-height: 92vh;
  object-fit: contain;
  box-shadow: 0 20px 80px #000;
  cursor: default;
}
.lightbox-close {
  position: fixed;
  z-index: 2;
  top: 18px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: #fff;
  background: transparent;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 50%;
  font-size: 30px;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .wordmark { display: block; max-width: 43vw; font-size: 11px; }
  .site-header nav { width: auto; }
}

@media (max-width: 700px) {
  .site-header { height: 42px; padding-inline: 14px; }
  .wordmark { max-width: 46vw; font-size: 10px; }
  .site-header nav { justify-content: flex-start; gap: 18px; font-size: 12px; }
  .section-label { width: 86vw; }
  .gallery-section { padding-inline: 14px; }
  .gallery-heading { display: block; padding-inline: 10px; }
  .gallery-heading > span { display: block; margin-top: 18px; }
  .poster-grid { grid-template-columns: 1fr; gap: 18px; }
  .poster-card > span { right: 10px; bottom: 10px; }
  .visit-section { padding-inline: 14px; }
  .visit-heading { display: block; padding-inline: 10px; }
  .visit-heading > a { display: inline-block; margin-top: 18px; }
  .visit-grid { grid-template-columns: 1fr; }
  .visit-grid article { min-height: 340px; }
  footer { gap: 20px; padding-inline: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
