:root {
  color-scheme: light;
  --ink: #111111;
  --muted: #6f6a63;
  --line: #e8e6e2;
  --paper: #ffffff;
  --soft: #f4f2ee;
  --panel: #f8f5ef;
  --shadow: rgba(18, 17, 15, 0.18);
  --radius: 0px;
  font-family: "Noto Serif TC", "Songti TC", "PingFang TC", "PingFang HK", "Hiragino Mincho ProN", serif;
}

* { box-sizing: border-box; }

html { text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--paper);
}

button,
input { font: inherit; }

button { color: inherit; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  justify-items: center;
  gap: 16px;
  padding: 16px min(48px, 5vw) 18px;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 28px;
}

.lang-switch {
  position: absolute;
  top: 50%;
  right: 0;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transform: translateY(-50%);
  font-family: "Noto Sans TC", "PingFang TC", "PingFang HK", Inter, system-ui, sans-serif;
}

.lang-button {
  appearance: none;
  border: 0;
  padding: 0;
  margin: 0;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  line-height: 1;
}

.lang-button.is-active {
  color: var(--ink);
}

.lang-button:hover {
  color: var(--ink);
}

.lang-sep {
  color: var(--line);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1;
  user-select: none;
}

.wordmark {
  color: var(--ink);
  text-decoration: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.85rem, 2.5vw, 2.6rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0.02em;
}

.nav-tabs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 2.4vw, 36px);
  width: 100%;
  padding: 0 64px;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav-tabs::-webkit-scrollbar { display: none; }

.nav-tab {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 0 0 5px;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
  font-family: "Noto Sans TC", "PingFang TC", "PingFang HK", system-ui, sans-serif;
  font-size: clamp(0.92rem, 1.05vw, 1.06rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.nav-tab.is-active {
  border-bottom-color: var(--ink);
}

main {
  padding: clamp(20px, 3vw, 40px) 0 0;
}

.hero-carousel {
  grid-template-columns: minmax(104px, 0.56fr) minmax(500px, 3.1fr) minmax(104px, 0.56fr);
  gap: clamp(18px, 2.4vw, 36px);
  align-items: stretch;
  width: 100%;
  min-height: 390px;
  height: clamp(390px, calc(100vh - 250px), 560px);
  overflow: hidden;
}

body[data-active-tab="books"] .hero-carousel,
html[data-active-tab="books"] .hero-carousel {
  display: grid;
}

/* Only the Books tab shows the featured carousel + shelf. */
body:not([data-active-tab="books"]) .hero-carousel,
html:not([data-active-tab="books"]) .hero-carousel,
body:not([data-active-tab="books"]) .shelf-section,
html:not([data-active-tab="books"]) .shelf-section {
  display: none !important;
}

body:not([data-active-tab="maps"]) .travel-section,
html:not([data-active-tab="maps"]) .travel-section {
  display: none !important;
}

body:not([data-active-tab="design"]) .page-section[data-page="design"],
body:not([data-active-tab="life"]) .page-section[data-page="life"],
body:not([data-active-tab="art"]) .page-section[data-page="art"],
body:not([data-active-tab="magazine"]) .page-section[data-page="magazine"],
body:not([data-active-tab="app"]) .page-section[data-page="app"],
body:not([data-active-tab="about"]) .page-section[data-page="about"] {
  display: none !important;
}

[hidden] {
  display: none !important;
}

.feature-card,
.side-panel {
  position: relative;
  min-height: inherit;
  overflow: hidden;
  background: var(--panel);
}

.feature-card {
  isolation: isolate;
}

.feature-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-position: center;
  background-size: cover;
  filter: blur(26px) saturate(0.82);
  transform: scale(1.09);
  opacity: 0.42;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0.03), rgba(0, 0, 0, 0.46)),
    rgba(246, 242, 235, 0.38);
}

.feature-content {
  display: grid;
  grid-template-columns: minmax(210px, 0.5fr) minmax(280px, 0.9fr);
  gap: clamp(28px, 4vw, 62px);
  align-items: center;
  height: 100%;
  padding: clamp(28px, 3.8vw, 50px);
}

.cover-frame {
  justify-self: end;
  width: min(280px, 23vw);
  background: #ebe5d8;
  box-shadow: 0 22px 48px var(--shadow);
}

.cover-frame img,
.side-panel img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-frame img {
  aspect-ratio: 2 / 3;
}

.feature-copy {
  align-self: center;
  color: #ffffff;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.42);
  max-width: 780px;
  padding-bottom: 0;
}

.feature-kicker,
.feature-date {
  margin: 0 0 12px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.feature-copy h1 {
  margin: 0 0 12px;
  font-size: clamp(1.85rem, 2.7vw, 3.55rem);
  font-weight: 650;
  line-height: 1.18;
  letter-spacing: 0.01em;
}

.feature-copy p {
  margin: 0;
  font-size: clamp(1rem, 1.25vw, 1.3rem);
  line-height: 1.65;
}

.feature-controls {
  position: absolute;
  right: clamp(26px, 3.4vw, 52px);
  bottom: clamp(20px, 2.4vw, 34px);
  display: flex;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.slide-button {
  appearance: none;
  width: 56px;
  height: 50px;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  cursor: pointer;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 2.4rem;
  line-height: 1;
}

.slide-button + .slide-button {
  border-left: 2px solid rgba(255, 255, 255, 0.9);
}

.side-panel {
  opacity: 0.48;
}

.side-panel-left { transform: translateX(-18%); }
.side-panel-right { transform: translateX(18%); }

.side-panel::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.5);
}


.page-section {
  padding: clamp(48px, 7vw, 96px) min(48px, 5vw) clamp(72px, 10vw, 140px);
}

.page-shell {
  width: min(720px, 100%);
  margin: 0 auto;
  text-align: center;
}

.page-title {
  margin: 0 0 18px;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.page-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--ink);
}

.page-lead {
  margin: 0;
  color: var(--muted);
  font-family: "Noto Sans TC", "PingFang TC", "PingFang HK", system-ui, sans-serif;
  font-size: clamp(0.98rem, 1.2vw, 1.12rem);
  line-height: 1.85;
}

.about-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.about-hero-head {
  display: grid;
  justify-items: center;
  margin-bottom: clamp(28px, 4vw, 42px);
}

.about-title {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: clamp(1.55rem, 2.4vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.about-title::after {
  content: "";
  display: block;
  width: 42px;
  height: 1px;
  margin: 18px auto 0;
  background: var(--ink);
}

.about-blocks {
  display: grid;
  gap: 0;
}

.about-block {
  padding: clamp(28px, 4vw, 40px) 0;
  border-top: 1px solid var(--line);
}

.about-block:last-child {
  border-bottom: 1px solid var(--line);
}

.about-block h2 {
  margin: 0 0 14px;
  font-family: "Noto Sans TC", "PingFang TC", "PingFang HK", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.about-block p {
  margin: 0;
  max-width: 68ch;
  color: var(--ink);
  font-family: "Noto Sans TC", "PingFang TC", "PingFang HK", system-ui, sans-serif;
  font-size: clamp(0.96rem, 1.15vw, 1.08rem);
  line-height: 1.9;
}

.shelf-section {
  padding: clamp(74px, 9vw, 132px) 0 clamp(86px, 11vw, 150px);
  background: #ffffff;
}

.shelf-heading {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin: 0 auto clamp(34px, 5vw, 64px);
  padding: 0 24px;
  text-align: center;
}

.shelf-heading p {
  margin: 0;
  color: #8a867f;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.shelf-heading h2 {
  margin: 0;
  font-size: clamp(2rem, 3.5vw, 4.1rem);
  font-weight: 560;
  line-height: 1.1;
  letter-spacing: 0.03em;
}

.book-stage {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  align-items: end;
  gap: clamp(42px, 5.2vw, 82px) clamp(28px, 3.8vw, 62px);
  width: min(1180px, calc(100% - 56px));
  min-height: clamp(560px, 54vw, 780px);
  margin: 0 auto;
  padding: clamp(72px, 8vw, 112px) clamp(48px, 6vw, 86px) clamp(64px, 7vw, 104px);
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 76%, rgba(38, 35, 31, 0.2), transparent 38%),
    radial-gradient(circle at 48% 16%, rgba(255, 255, 255, 0.78), transparent 42%),
    linear-gradient(108deg, #f2f1ed 0%, #dedcd6 54%, #cac8c2 100%);
}

.book-stage::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.28), transparent 24%, transparent 76%, rgba(40, 38, 35, 0.08)),
    radial-gradient(circle at 50% 0%, rgba(255, 255, 255, 0.54), transparent 52%);
  pointer-events: none;
}

.stage-loading {
  grid-column: 1 / -1;
  margin: 0;
  color: #6c6861;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-align: center;
}

.shelf-book {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  align-items: end;
  color: var(--ink);
  text-decoration: none;
  transform: translateY(var(--lift)) rotate(var(--tilt));
  transform-origin: 50% 100%;
  transition: transform 220ms ease, filter 220ms ease;
}

.shelf-book::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 0;
  bottom: 70px;
  height: 34px;
  background: rgba(18, 16, 14, 0.46);
  filter: blur(20px);
  transform: skewX(-10deg) translate(18px, 15px);
  z-index: -1;
}

.shelf-book:hover,
.shelf-book:focus-visible {
  filter: saturate(1.04);
  transform: translateY(calc(var(--lift) - 12px)) rotate(var(--tilt));
}

.book-object {
  position: relative;
  display: block;
  width: min(158px, 100%);
  margin: 0 auto;
  aspect-ratio: 2 / 3;
  background: #e8e3d7;
  box-shadow:
    12px 14px 0 rgba(35, 33, 30, 0.12),
    30px 32px 44px rgba(21, 18, 16, 0.36);
}

.book-object::before {
  content: "";
  position: absolute;
  top: 2.5%;
  bottom: 2.5%;
  right: -13px;
  width: 13px;
  background: linear-gradient(90deg, #c9c3b6, #eee9dc 34%, #aaa398 100%);
  transform: skewY(24deg);
  transform-origin: left center;
}

.book-object::after {
  content: "";
  position: absolute;
  inset: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.58);
  border-right: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: inset 10px 0 18px rgba(255, 255, 255, 0.18), inset -10px 0 18px rgba(0, 0, 0, 0.09);
  pointer-events: none;
}

.book-pages {
  position: absolute;
  top: 3%;
  right: -18px;
  bottom: 3%;
  width: 12px;
  background: repeating-linear-gradient(90deg, #f8f4e9 0 1px, #d8d0c3 1px 2px);
  transform: skewY(24deg);
  opacity: 0.7;
}

.book-object img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.book-caption {
  display: grid;
  gap: 4px;
  min-height: 64px;
  color: #2c2a27;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  text-align: center;
  transform: rotate(calc(var(--tilt) * -1));
}

.book-caption strong {
  overflow: hidden;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.28;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.book-caption span {
  overflow: hidden;
  color: #716d66;
  font-size: 0.76rem;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.travel-section {
  padding: clamp(42px, 5vw, 76px) 0 clamp(58px, 7vw, 104px);
  background: #ffffff;
}

.travel-heading {
  margin-bottom: clamp(28px, 3.2vw, 46px);
}

.map-stage {
  min-height: clamp(480px, 48vw, 680px);
}

.map-manual {
  appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  font: inherit;
  text-align: center;
}

.map-manual.is-soon {
  cursor: default;
  opacity: 0.88;
}

.map-manual.is-soon:hover,
.map-manual.is-soon:focus-visible {
  filter: none;
  transform: translateY(var(--lift)) rotate(var(--tilt));
}

.map-cover {
  overflow: hidden;
  color: #f7f3ea;
}

.map-cover-inner {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  gap: 10px;
  width: 100%;
  height: 100%;
  padding: 22px 18px;
  text-align: left;
}

.map-cover-scotland {
  background:
    linear-gradient(180deg, rgba(18, 17, 15, 0.1), rgba(18, 17, 15, 0.62)),
    radial-gradient(circle at 26% 18%, rgba(244, 240, 226, 0.26), transparent 34%),
    linear-gradient(142deg, #54645a 0%, #273b36 48%, #171f1e 100%);
}

.map-cover-soon {
  color: #5f5a53;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0.08)),
    linear-gradient(145deg, #eceae4 0%, #d8d4cb 52%, #c7c2b8 100%);
}

.map-cover-kicker,
.map-cover-meta,
.map-cover-badge {
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.map-cover-title {
  max-width: 8em;
  font-size: clamp(1.05rem, 1.5vw, 1.35rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.03em;
}

.map-cover-badge {
  width: fit-content;
  margin-top: 4px;
  padding: 5px 8px;
  border: 1px solid rgba(70, 66, 60, 0.28);
  color: #4d4943;
  background: rgba(255, 255, 255, 0.42);
}

.map-cover-scotland .map-cover-kicker,
.map-cover-scotland .map-cover-meta {
  color: rgba(247, 243, 234, 0.82);
}

body[data-travel-view="detail"] .travel-heading,
body[data-travel-view="detail"] .map-stage,
html[data-initial-route="maps-detail"] .travel-heading,
html[data-initial-route="maps-detail"] .map-stage {
  display: none !important;
}

body[data-travel-view="detail"] .travel-section {
  padding: clamp(12px, 1.6vw, 20px) 0 clamp(18px, 2.4vw, 30px);
}

.travel-detail {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
}

.open-map-book {
  appearance: none;
  border: 1px solid var(--ink);
  border-radius: 0;
  min-height: 40px;
  padding: 0 16px;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  font-size: 0.86rem;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.open-map-book {
  width: fit-content;
  margin-top: 4px;
  color: #ffffff;
  background: var(--ink);
}

.map-book-teaser {
  display: grid;
  gap: 16px;
  max-width: 520px;
}

.map-book-teaser h3 {
  margin: 0;
  font-size: clamp(2rem, 3.6vw, 4.2rem);
  font-weight: 560;
  line-height: 1.08;
  letter-spacing: 0.03em;
}

.map-book-teaser p:not(.feature-date) {
  margin: 0;
  color: #4f4b45;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  font-size: clamp(0.98rem, 1.2vw, 1.1rem);
  font-weight: 650;
  line-height: 1.9;
}

.map-book-rail {
  display: grid;
  align-content: start;
  gap: 22px;
  padding-top: clamp(18px, 2.6vw, 34px);
}

.map-book-card {
  appearance: none;
  border: 0;
  display: grid;
  gap: 18px;
  width: 100%;
  padding: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}

.map-book-object {
  position: relative;
  display: grid;
  align-content: end;
  gap: 10px;
  width: min(220px, 100%);
  aspect-ratio: 2 / 3;
  padding: 28px 22px;
  color: #f8f4ea;
  background:
    linear-gradient(180deg, rgba(18, 17, 15, 0.12), rgba(18, 17, 15, 0.58)),
    radial-gradient(circle at 26% 18%, rgba(244, 240, 226, 0.26), transparent 34%),
    linear-gradient(142deg, #54645a 0%, #273b36 48%, #171f1e 100%);
  box-shadow:
    12px 14px 0 rgba(35, 33, 30, 0.12),
    28px 34px 50px rgba(21, 18, 16, 0.28);
  transform: perspective(720px) rotateY(-8deg) rotateZ(-1.4deg);
}

.map-book-object::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 26px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(255, 255, 255, 0.08));
}

.map-book-object::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(248, 244, 234, 0.34);
  pointer-events: none;
}

.map-book-cover-kicker,
.map-book-cover-meta {
  position: relative;
  z-index: 1;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.map-book-cover-title {
  position: relative;
  z-index: 1;
  max-width: 7em;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  font-weight: 580;
  line-height: 1.18;
  letter-spacing: 0.04em;
}

.map-book-cover-meta {
  opacity: 0.8;
}

.map-book-caption {
  display: grid;
  gap: 6px;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
}

.map-book-caption strong {
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.3;
}

.map-book-caption span {
  color: #716d66;
  font-size: 0.82rem;
  font-weight: 650;
  line-height: 1.45;
}

.map-book-spread {
  position: relative;
  display: grid;
  grid-template-columns: minmax(420px, 1.12fr) minmax(350px, 0.88fr);
  height: min(720px, calc(100vh - 222px));
  min-height: 520px;
  background:
    linear-gradient(90deg, transparent calc(50% - 1px), rgba(28, 26, 23, 0.16) 50%, transparent calc(50% + 1px)),
    #f6f1e8;
  box-shadow: 0 34px 80px rgba(24, 21, 18, 0.16);
}

.map-book-spread::before,
.map-book-spread::after {
  content: "";
  position: absolute;
  top: 18px;
  bottom: 18px;
  width: 18px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.1), transparent);
  pointer-events: none;
  z-index: 2;
}

.map-book-spread::before { left: 0; }
.map-book-spread::after {
  right: 0;
  transform: scaleX(-1);
}

.map-page,
.map-notes-page {
  min-width: 0;
  min-height: 0;
  padding: clamp(18px, 2.4vw, 30px);
}

.map-page {
  display: grid;
  height: 100%;
  overflow: hidden;
}

.travel-map {
  min-height: 0;
  height: 100%;
  max-height: 100%;
  background:
    radial-gradient(circle at 42% 28%, rgba(255, 255, 255, 0.72), transparent 34%),
    linear-gradient(135deg, #d9ded7, #aebdaf);
  overflow: hidden;
}

.map-notes-page {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border-left: 1px solid rgba(34, 31, 27, 0.1);
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.46), rgba(255, 255, 255, 0.18)),
    repeating-linear-gradient(180deg, rgba(34, 31, 27, 0.035) 0 1px, transparent 1px 34px);
}

.map-notes-head {
  flex: 0 0 auto;
}

.map-notes-page h3 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.35vw, 2.72rem);
  font-weight: 560;
  line-height: 1.15;
  letter-spacing: 0.03em;
}

.travel-lead {
  margin: 0 0 18px;
  color: #4f4b45;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
  font-size: clamp(0.9rem, 1vw, 1rem);
  font-weight: 560;
  line-height: 1.68;
}

.region-list {
  display: grid;
  gap: 8px;
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
  scrollbar-width: thin;
}

.region-card {
  appearance: none;
  border: 1px solid rgba(28, 26, 23, 0.12);
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px 11px;
  background: rgba(255, 255, 255, 0.46);
  cursor: pointer;
  text-align: left;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.region-card:hover,
.region-card:focus-visible,
.region-card.is-active {
  border-color: rgba(17, 17, 17, 0.52);
  background: rgba(255, 255, 255, 0.82);
  transform: translateX(4px);
}

.overview-card {
  background: rgba(17, 17, 17, 0.06);
}

.overview-card .region-index {
  color: var(--ink);
}

.region-index {
  color: #8b877f;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.76rem;
  font-weight: 850;
  letter-spacing: 0.12em;
}

.region-copy {
  display: grid;
  gap: 3px;
  font-family: "Noto Sans TC", "PingFang TC", system-ui, sans-serif;
}

.region-copy strong {
  font-size: 0.94rem;
  font-weight: 850;
  line-height: 1.3;
}

.region-copy span {
  color: #716d66;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.35;
}

.region-copy em {
  color: #55504a;
  display: -webkit-box;
  overflow: hidden;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 560;
  line-height: 1.52;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.region-card.is-active .region-copy em {
  -webkit-line-clamp: 3;
}

.map-marker {
  appearance: none;
  position: relative;
  width: 28px;
  height: 34px;
  border: 0;
  background: transparent;
  cursor: pointer;
  filter: drop-shadow(0 3px 4px rgba(24, 28, 24, 0.24));
  transform: translateY(1px) scale(0.96);
  transform-origin: 50% 100%;
  transition: filter 180ms ease, transform 180ms ease;
}

.marker-pin {
  position: absolute;
  left: 50%;
  top: 1px;
  width: 22px;
  height: 22px;
  border: 3px solid #ffffff;
  border-radius: 50% 50% 50% 0;
  background: #263f38;
  box-shadow: 0 0 0 1px rgba(15, 38, 32, 0.42), 0 3px 7px rgba(20, 28, 24, 0.22);
  transform: translateX(-50%) rotate(-45deg);
}

.marker-pin::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.map-marker::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -1px;
  width: 12px;
  height: 4px;
  border-radius: 50%;
  background: rgba(20, 28, 24, 0.22);
  transform: translateX(-50%);
}

.map-marker.is-active {
  filter: drop-shadow(0 4px 5px rgba(24, 28, 24, 0.3));
  transform: translateY(0) scale(1.08);
}

.map-marker.is-active .marker-pin {
  background: #0f3028;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72), 0 0 0 4px rgba(15, 48, 40, 0.3), 0 4px 8px rgba(20, 28, 24, 0.24);
}

.mapboxgl-ctrl-group,
.maplibregl-ctrl-group {
  border-radius: 0;
  box-shadow: 0 6px 18px rgba(18, 17, 15, 0.12);
}

@media (max-width: 980px) {
  .site-header {
    gap: 14px;
    padding-top: 14px;
    padding-bottom: 16px;
  }


  .hero-carousel {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 0 16px;
  }

  .side-panel { display: none; }

  .feature-card { min-height: 610px; }

  .feature-content {
    grid-template-columns: 1fr;
    justify-items: center;
    align-content: center;
    gap: 28px;
    padding: 32px 24px 118px;
  }

  .cover-frame {
    justify-self: center;
    width: min(260px, 58vw);
  }

  .feature-copy {
    text-align: center;
  }

  .feature-controls {
    right: 50%;
    transform: translateX(50%);
  }

  .shelf-section {
    padding-top: 66px;
  }

  .book-stage {
    display: flex;
    gap: 34px;
    width: 100%;
    min-height: 430px;
    padding: 58px 34px 52px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .book-stage::-webkit-scrollbar { display: none; }

  .shelf-book {
    flex: 0 0 205px;
    scroll-snap-align: center;
  }

  .book-object {
    width: 180px;
  }

  .map-stage {
    width: 100%;
  }

  .map-book-spread {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
  }

  .map-book-spread::before,
  .map-book-spread::after { display: none; }

  .map-notes-page {
    border-left: 0;
    border-top: 1px solid rgba(34, 31, 27, 0.1);
  }

  .travel-map {
    height: min(420px, 52vh);
    min-height: 340px;
  }
}

@media (max-width: 560px) {
  .wordmark { font-size: 1.75rem; }

  .lang-switch {
    gap: 6px;
  }

  .lang-button,
  .lang-sep {
    font-size: 0.72rem;
  }

  .nav-tabs {
    justify-content: flex-start;
    gap: 18px;
    padding: 0 56px 0 0;
  }

  main { padding-top: 20px; }

  .feature-card { min-height: 570px; }

  .feature-copy h1 { font-size: 1.8rem; }

  .feature-copy p { font-size: 0.98rem; }

  .shelf-heading h2 { font-size: 2rem; }

  .book-stage {
    min-height: 390px;
    padding: 48px 24px 46px;
  }

  .shelf-book { flex-basis: 166px; }

  .book-object { width: 144px; }

  .travel-section {
    padding-top: 34px;
  }

  .map-book-object {
    width: 168px;
    padding: 22px 18px;
  }

  .map-book-cover-title {
    font-size: 1.32rem;
  }

  .map-page,
  .map-notes-page {
    padding: 16px;
  }

  .travel-map {
    height: 330px;
    min-height: 330px;
  }

  .region-card {
    grid-template-columns: 34px 1fr;
    padding: 11px;
  }
}
