:root {
  color-scheme: dark;
  --bg: #111315;
  --panel: #1c1f21;
  --ivory: #eee8dc;
  --muted: #b7b3ab;
  --accent: #b8a48a;
  --line: #393b3b;
  --font-body: "Noto Sans TC", "Noto Sans CJK TC", "Microsoft JhengHei", system-ui, sans-serif;
  --font-heading: Georgia, "Noto Serif TC", "Noto Serif CJK TC", serif;
  --size-hero: clamp(2.125rem, 1.8rem + 1.8vw, 3.375rem);
  --size-page: clamp(1.75rem, 1.42rem + 1.2vw, 2.625rem);
  --size-h2: clamp(1.375rem, 1.13rem + .62vw, 2rem);
  --size-h3: clamp(1.125rem, 1.02rem + .28vw, 1.5rem);
  --size-subtitle: clamp(1.375rem, 1.15rem + .95vw, 2rem);
  --size-body: clamp(1rem, .96rem + .17vw, 1.125rem);
  --size-nav: .9375rem;
  --size-button: .9375rem;
  --size-small: .875rem;
  --size-caption: .75rem;
  --section-space: clamp(2.75rem, 1.8rem + 3vw, 5.375rem);
  --panel-space: clamp(1rem, .7rem + 1vw, 1.8125rem);
  --text-measure: 42rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font: var(--size-body)/1.75 var(--font-body);
  overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
h1, h2, h3 { margin: 0 0 .65em; line-height: 1.35; }
h1, h2 { font-family: var(--font-heading); font-weight: 500; }
h1 { font-size: var(--size-page); letter-spacing: .035em; }
h2 { font-size: var(--size-h2); }
h3 { font-size: var(--size-h3); font-weight: 500; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
.container { width: min(1180px, calc(100% - 44px)); margin-inline: auto; }

.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: #111315f2;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid #ffffff1b;
}
.nav {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px clamp(12px, 1.6vw, 22px);
  padding-block: 10px;
}
.logo { display: block; width: 180px; height: auto; max-width: 100%; }
.links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 6px clamp(12px, 1.25vw, 24px);
  min-width: 0;
  font-size: var(--size-nav);
  font-weight: 500;
  line-height: 1.45;
}
.links a { max-width: 100%; }
.links a[aria-current="page"], .links a:hover, .footlinks a:hover { color: var(--accent); }
.navbtn, .primary, .secondary, .menu {
  display: inline-block;
  max-width: 100%;
  padding: 10px clamp(10px, 1.2vw, 17px);
  border: 1px solid var(--ivory);
  font-size: var(--size-button);
  line-height: 1.45;
  text-align: center;
}
.navbtn, .primary { background: var(--ivory); color: #17191b; font-weight: 650; }
.navbtn { max-inline-size: 12rem; }
.secondary, .menu { background: transparent; color: var(--ivory); border-color: #858079; }
.menu { display: none; }

.eyebrow, .tag, .card .num, .post-list time { font-size: var(--size-caption); }
.eyebrow, .tag, .card .num { color: var(--accent); letter-spacing: .14em; }
.eyebrow { margin-bottom: .75rem; }
.hero {
  background:
    radial-gradient(ellipse clamp(12px, 2.4vw, 38px) 46% at right 48%,
      #b58a5e94, #7d563145 46%, transparent 100%),
    radial-gradient(ellipse clamp(64px, 13vw, 195px) 61% at right 48%,
      #76523543, transparent 100%),
    var(--bg);
  padding-block: clamp(3.25rem, 2.1rem + 4vw, 6rem);
}
.hero > .container > .managed-image { margin-bottom: clamp(1.5rem, 3vw, 3rem); }
.hero-copy { max-width: 68rem; }
.hero h1 {
  font-family: "Home Noto Serif TC", "Noto Serif TC", "Noto Serif CJK TC", "Songti TC", "PMingLiU", serif;
  font-weight: 400;
  font-size: var(--size-hero);
  line-height: 1.3;
  margin-bottom: 1rem;
  line-break: strict;
}
.hero-title {
  display: block;
  text-wrap: balance;
}
.hero-subtitle {
  display: block;
  margin-top: .5rem;
  font-size: var(--size-subtitle);
  line-height: 1.5;
  letter-spacing: .025em;
}
.lead { color: #c8c3b9; max-width: var(--text-measure); }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 1.5rem; }
.actions > a { min-width: 0; }
.section { padding-block: var(--section-space); }
.section.alt { background: #181b1d; }
.section-action { margin-top: 1rem; }
.center { text-align: center; }
.section-intro, .muted, .pagehero p, .panel p, .faq p { color: var(--muted); }
.section-intro, .pagehero h1, .pagehero p, .faq p, .article-body { max-width: var(--text-measure); }
.pagehero {
  padding-block: var(--section-space);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 80% 15%, #2a2925, var(--bg) 60%);
}

.cards, .post-list, .twocol, .gallery { display: grid; }
.cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card {
  border: 1px solid #45423e;
  background: linear-gradient(150deg, #292b2b, #191b1d 75%);
  padding: var(--panel-space);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card:hover { border-color: var(--accent); }
.card .mark {
  display: grid;
  place-items: center;
  min-height: 6.5rem;
  font: 4rem/1 var(--font-heading);
  color: #a8957738;
}
.card > :last-child { margin-top: auto; }
.item-title { font: 500 var(--size-h3)/1.35 var(--font-body); }
.card .item-title { margin-bottom: .35em; }
.card small { display: block; color: var(--muted); font-size: var(--size-small); letter-spacing: .07em; }
.twocol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1.25rem, 3vw, 2.375rem); }
.panel { padding: var(--panel-space); border: 1px solid var(--line); background: var(--panel); }
.panel time { display: block; margin-bottom: .65rem; color: var(--muted); }
.twocol + h2 { margin-top: 1.75rem; }
.notice { padding: 1rem var(--panel-space); border-left: 2px solid var(--accent); background: #242421; color: #d8d0c3; }
.faq { border-bottom: 1px solid var(--line); padding-block: 1.1rem; }
.faq summary { cursor: pointer; font-weight: 500; }
.faq p { margin-top: .75rem; }

.managed-image { display: block; width: 100%; height: auto; max-height: 620px; object-fit: cover; margin-bottom: 1.25rem; }
.card .managed-image { aspect-ratio: 4 / 5; object-fit: contain; background: var(--bg); margin: 0; }
.post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.post-list .managed-image { max-height: 280px; }
.detail { max-width: 1000px; }
.detail .managed-image { max-height: none; object-fit: contain; }
.gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-block: 1.75rem; }
.theme-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 25px; }
.theme-facts dd { margin: 0; }
.contact-list { list-style: none; padding: 0; }
.contact-list a { display: inline-block; max-width: 100%; padding-block: 8px; text-decoration: underline; }
.preline { white-space: pre-line; }
.small { font-size: var(--size-small); }
.footer { padding-block: 2.5rem; border-top: 1px solid var(--line); color: var(--muted); font-size: var(--size-small); }
.footrow, .footlinks { display: flex; flex-wrap: wrap; }
.footrow { justify-content: space-between; gap: 20px; }
.footlinks { align-content: start; gap: 8px 18px; }
.footrow > *, .footlinks a { max-width: 100%; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.sr:focus { position: fixed; top: 8px; left: 8px; z-index: 100; width: auto; height: auto; clip-path: none; padding: 12px; background: var(--ivory); color: var(--bg); }
.preview-banner { padding: 12px; background: #5b302c; color: #fff; text-align: center; }
.preview-link { display: inline-block; margin-inline: 8px; text-decoration: underline; }

.site-notice { min-height: 100vh; display: grid; place-items: center; }
.site-notice main { width: min(100%, var(--text-measure)); padding: var(--section-space) var(--panel-space); text-align: center; }
.site-notice-brand { color: var(--accent); letter-spacing: .12em; }
.site-notice-text { white-space: pre-wrap; }
.site-notice img { display: block; max-width: 100%; max-height: 65vh; object-fit: contain; margin: 1.5rem auto; }
.site-notice a { text-decoration: underline; }

@media (min-width: 1024px) {
  .hero {
    background:
      linear-gradient(90deg, var(--bg) 24%, #111315ed 40%, #1113159c 64%, #11131538 100%),
      url("/assets/hero-corridor-rc43.webp") right 54% / auto 110% no-repeat,
      var(--bg);
  }
}
@media (max-width: 1023px) {
  .hero-phrase { display: block; }
}

@media (max-width: 1120px) {
  .nav { grid-template-columns: minmax(0, 1fr) auto minmax(0, auto); }
  .logo { width: 155px; }
  .menu { display: inline-block; }
  .links {
    display: none;
    position: absolute;
    inset: 100% 0 auto;
    max-height: calc(100dvh - 86px);
    overflow-y: auto;
    padding: 10px max(22px, calc((100% - 1180px) / 2));
    background: #17191b;
    border-bottom: 1px solid var(--line);
  }
  .links.open { display: block; }
  .links a { display: block; padding: 11px 4px; border-bottom: 1px solid #ffffff12; }
  .no-js .links { display: block; position: static; grid-column: 1 / -1; grid-row: 2; }
  .no-js .menu { display: none; }
  .navbtn { grid-column: 3; max-inline-size: min(33vw, 12rem); }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .container { width: min(1180px, calc(100% - 32px)); }
  .hero h1 { font-size: clamp(1.625rem, 8vw, 2.125rem); }
  .nav { min-height: 74px; gap: 8px; }
  .logo { width: 150px; }
  .links { max-height: calc(100dvh - 74px); padding-inline: 16px; }
  .cards, .twocol, .post-list, .gallery { grid-template-columns: minmax(0, 1fr); }
  .card .managed-image { max-height: 22rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
