/* =============================================================
   One City One Book Hong Kong — custom stylesheet
   Palette extracted from live Wix site:
     Blue:       #116DFF  (primary / links)
     Cyan:       #0EA4DA  (accent)
     Pale teal:  #B6E8E3  (section backgrounds)
     Yellow:     #FFF86B  (highlight)
     Mid blue:   #79ADDB
     Light grey: #EFF1F2  (neutral)
   ============================================================= */

:root {
  --c-blue:       #116DFF;
  --c-cyan:       #0EA4DA;
  --c-teal-light: #B6E8E3;
  --c-yellow:     #FFF86B;
  --c-mid-blue:   #79ADDB;
  --c-grey:       #EFF1F2;
  --c-dark:       #1A1A2E;
  --c-white:      #ffffff;

  --header-height: 4rem;
  --font-sans: 'Noto Sans', 'Noto Sans TC', system-ui, sans-serif;
}

/* ── Reset / base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

/* Splash page logo container + light-on animation */
.splash-hero {
  min-height: calc(100svh - 8.5rem); /* subtract sticky header + nav */
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 0;
}

.logo-mobile  { display: none; }
.logo-desktop { display: block; }

@media (max-width: 600px) {
  .logo-mobile  { display: block; }
  .logo-desktop { display: none; }
}

.logo-container {
  position: relative;
  display: inline-block;
  width: 80%;
  max-width: 80%;
}

#logo-anim {
  transition: opacity 0.05s ease-out;
}

/* Splash page intro text */
.splash-intro {
  font-size: 1.5rem;
  line-height: 1.75;
  margin-bottom: 2rem;
}

@media (max-width: 600px) {
  .splash-intro {
    font-size: 1rem;
  }
}

body {
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--c-dark);
  background: var(--c-white);
  margin: 0;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--c-blue); }
a:hover { color: var(--c-cyan); }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--c-cyan);
  color: var(--c-white);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0,0,0,.20);
}

.site-brand { color: var(--c-white) !important; }

.site-logo {
  height: 38px;
  width: auto;
}

.site-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--c-white);
  line-height: 1.2;
}

.site-subtitle {
  font-size: 0.75rem;
  color: rgba(255,255,255,.75);
  letter-spacing: .04em;
}

/* ── Navigation ───────────────────────────────────────────── */
.site-nav {
  background: var(--c-dark);
  border-top: 3px solid var(--c-teal-light);
}

.nav-list { padding: 0; }

.nav-link {
  display: block;
  color: rgba(255,255,255,.85) !important;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: .03em;
  padding: .55rem 1rem !important;
  border-radius: 4px;
  transition: background .15s, color .15s;
  text-decoration: none;
  white-space: nowrap;
}

.nav-link:hover,
.nav-link.active {
  background: var(--c-blue);
  color: var(--c-white) !important;
}

.nav-link.active {
  background: var(--c-yellow) !important;
  color: var(--c-dark) !important;
  font-weight: 700;
}

/* Language switcher pill — in header */
.lang-switch-header {
  display: inline-block;
  width: 7.5rem;
  padding: .35rem 0;
  text-align: center;
  border-radius: 999px;
  background: var(--c-dark);
  color: var(--c-white) !important;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}

.lang-switch-header:hover {
  background: var(--c-yellow);
  color: var(--c-dark) !important;
  transform: scale(1.05);
}

/* Nav menu pill — hamburger dropdown in nav bar */
.nav-menu-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 7.5rem;
  padding: .35rem 0;
  border-radius: 999px;
  background: var(--c-cyan);
  color: var(--c-dark) !important;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: .04em;
  border: none;
  cursor: pointer;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}
.nav-menu-pill:hover,
.nav-menu-pill:focus {
  background: var(--c-teal-light);
  color: var(--c-dark) !important;
  transform: scale(1.05);
  outline: none;
  box-shadow: none;
}
.nav-menu-pill::after {
  display: none; /* hide Bootstrap caret */
}
  display: inline-block;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--c-dark);
  color: var(--c-white) !important;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}

.lang-switch-header:hover {
  background: var(--c-yellow);
  color: var(--c-dark) !important;
  transform: scale(1.05);
}

/* Language switcher pill — in nav (legacy, kept for mobile) */
.lang-switch {
  display: inline-block;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--c-cyan);
  color: var(--c-white) !important;
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-decoration: none;
  transition: background .15s, transform .1s;
  white-space: nowrap;
}

.lang-switch:hover {
  background: var(--c-yellow);
  color: var(--c-dark) !important;
  transform: scale(1.05);
}

/* Mobile nav toggle */
.navbar-toggler {
  background: transparent;
  border: none;
  color: var(--c-white);
  padding: .25rem;
}
.navbar-toggler:focus { box-shadow: none; }

/* ── Page content ─────────────────────────────────────────── */
.site-main { min-height: 0; }

.page-content h1,
.page-content h2 {
  color: var(--c-blue);
  font-weight: 700;
  margin-top: 2.5rem;
  margin-bottom: .75rem;
  padding-bottom: .35rem;
  border-bottom: 3px solid var(--c-teal-light);
}

.page-content h3 {
  color: var(--c-dark);
  font-weight: 600;
  margin-top: 1.75rem;
}

.page-content h4 {
  color: var(--c-cyan);
  font-weight: 600;
  text-transform: uppercase;
  font-size: .85rem;
  letter-spacing: .08em;
  margin-top: 1.5rem;
}

.page-content p { margin-bottom: 1rem; }

.page-content a {
  color: var(--c-blue);
  text-underline-offset: 3px;
}

/* Images in content */
.page-content img {
  border-radius: 6px;
  margin: 1.25rem auto;
  box-shadow: 0 4px 16px rgba(0,0,0,.10);
}

/* Highlight callout box (for the 2025/26 banner) */
.page-content .callout {
  background: var(--c-yellow);
  border-left: 5px solid var(--c-blue);
  border-radius: 6px;
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  font-weight: 500;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--c-dark);
  color: rgba(255,255,255,.80);
  font-size: .875rem;
  border-top: 4px solid var(--c-cyan);
}

.footer-copyright { color: rgba(255,255,255,.65); }

.footer-follow {
  color: #ffd700 !important;
  font-size: 1.1rem !important;
  font-weight: 700;
  align-self: center;
}

.social-links a {
  color: rgba(255,255,255,.75);
  transition: color .15s, transform .1s;
  text-decoration: none;
}

.social-links a:hover {
  color: var(--c-yellow);
  transform: scale(1.2);
}

/* ── Responsive tweaks ────────────────────────────────────── */
@media (max-width: 991.98px) {
  .site-nav .collapse { display: none; }
  .site-nav .collapse.show,
  .site-nav .collapse.navbar-collapse { display: block !important; }

  .nav-list { flex-direction: column !important; padding: .5rem 0; }
  .nav-link { padding: .65rem 1rem !important; }
  .lang-switch { margin: .5rem 1rem; }
}

@media (min-width: 992px) {
  .site-nav .collapse { display: flex !important; }
}

/* ── Archive page template ────────────────────────────────── */

/* Year hero */
.arc-hero {
  font-size: clamp(5rem, 18vw, 10rem);
  font-weight: 900;
  color: var(--c-blue);
  line-height: 1;
  letter-spacing: -.03em;
  margin: 1.5rem 0 2.5rem;
  padding-bottom: .5rem;
  border-bottom: 5px solid var(--c-teal-light);
}

/* Section block */
.arc-block {
  margin-bottom: 2.5rem;
  padding: 2rem;
  background: var(--c-white);
  border-left: 5px solid var(--c-cyan);
  border-radius: 0 8px 8px 0;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.arc-block--accent {
  background: var(--c-teal-light);
  border-left-color: var(--c-blue);
}

/* Section title */
.arc-block-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--c-blue);
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 1.25rem;
  padding-bottom: .5rem;
  border-bottom: 2px solid var(--c-teal-light);
}

.arc-block--accent .arc-block-title {
  border-bottom-color: rgba(0,0,0,.15);
}

/* Text + image side-by-side */
.arc-block-body {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
}

.arc-text {
  flex: 1 1 0;
}

.arc-text p { margin-bottom: .85rem; }
.arc-text p:last-child { margin-bottom: 0; }

.arc-image {
  flex: 0 0 200px;
  width: 200px;
}

.arc-image img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(0,0,0,.12);
  margin: 0;
}

.arc-caption {
  font-size: .78rem;
  color: #666;
  margin-top: .5rem;
  line-height: 1.4;
}

/* Highlights block */
.arc-highlights {
  background: var(--c-teal-light);
  border-left-color: var(--c-blue);
}

.arc-highlights .arc-block-title {
  border-bottom-color: #fff;
}

.arc-highlights .arc-highlights-list li {
  font-size: 1.5rem;
}

/* Poster thumbnail — sits inside arc-image, fills it naturally */
.arc-poster-thumb {
  display: block;
  width: 100%;
  cursor: pointer;
  border: none;
  padding: 0;
  background: none;
  border-radius: 6px;
  overflow: hidden;
  position: relative;
}
.arc-poster-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 6px;
  transition: filter .2s ease;
}
.arc-poster-thumb:hover img {
  filter: brightness(0.72);
}
.arc-poster-expand {
  position: absolute;
  top: .4rem;
  right: .4rem;
  width: 26px;
  height: 26px;
  background: rgba(0,0,0,.55);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: .75rem;
  transition: transform .2s ease, background .2s ease;
  pointer-events: none;
}
.arc-poster-thumb:hover .arc-poster-expand {
  transform: scale(1.2);
  background: rgba(0,0,0,.8);
}

/* Lightbox overlay */
#lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.88);
  cursor: zoom-out;
  align-items: center;
  justify-content: center;
}
#lightbox.is-open {
  display: flex;
}
#lightbox img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0,0,0,.6);
  cursor: default;
}
#lightbox-close {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  color: #fff;
  font-size: 2.25rem;
  background: none;
  border: none;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  opacity: .75;
  transition: opacity .15s;
}
#lightbox-close:hover {
  opacity: 1;
}

/* Media block */
.arc-media {
  background: var(--c-dark);
  border-left-color: var(--c-cyan);
}
.arc-media .arc-block-title {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}

/* Audiobook block */
.arc-audiobook {
  background: var(--c-dark);
  border-left-color: var(--c-cyan);
}
.arc-audiobook .arc-block-title {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}
.arc-audiobook p {
  color: rgba(255,255,255,.80);
}
.audiobook-player {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.audiobook-controls {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.audiobook-controls audio {
  width: 100%;
}
.audiobook-now-playing {
  color: var(--c-cyan);
  font-size: 0.9rem;
  font-style: italic;
  margin: 0;
}
.audiobook-tracklist {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 420px;
  overflow-y: auto;
}
.audiobook-track {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid rgba(255,255,255,.1);
  cursor: pointer;
  color: rgba(255,255,255,.75);
  transition: background .15s;
}
.audiobook-track:hover {
  background: rgba(255,255,255,.07);
  color: #fff;
}
.audiobook-track.active {
  background: rgba(255,255,255,.12);
  color: #fff;
}
.audiobook-chapter {
  font-weight: 600;
  font-size: 0.95rem;
}
.audiobook-reader {
  font-size: 0.85rem;
  color: rgba(255,255,255,.55);
  text-align: right;
}
.audiobook-track.active .audiobook-reader {
  color: rgba(255,255,255,.75);
}

.arc-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.arc-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}
.arc-highlights-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.arc-highlights-list li {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--c-dark);
  padding: .6rem 0 .6rem 1.75rem;
  position: relative;
  border-bottom: 1px solid rgba(0,0,0,.08);
}
.arc-highlights-list li:last-child {
  border-bottom: none;
}
.arc-highlights-list li::before {
  content: "\2192";
  position: absolute;
  left: 0;
  color: var(--c-yellow);
  font-weight: 900;
}
.highlight-link {
  color: var(--c-cyan);
  font-size: 0.8em;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  margin-left: 0.3em;
}
.highlight-link:hover {
  text-decoration: underline;
  color: var(--c-cyan);
}

/* Media block */
.arc-media {
  background: var(--c-dark);
  border-left-color: var(--c-cyan);
}
.arc-media .arc-block-title {
  color: var(--c-cyan);
  border-bottom-color: var(--c-cyan);
}
.arc-video-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
}
.arc-video-wrap iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 4px;
}

/* Gallery block */
.arc-gallery {
  background: var(--c-dark);
  border-left-color: var(--c-mid-blue);
}
.arc-gallery .arc-block-title {
  color: var(--c-teal-light);
  border-bottom-color: var(--c-mid-blue);
}
.arc-gallery .carousel-item img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  border-radius: 4px;
}
.arc-gallery .carousel-caption {
  background: rgba(26, 26, 46, .72);
  border-radius: 4px;
  padding: .4rem .9rem;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  text-align: left;
}
.arc-gallery .carousel-caption p {
  margin: 0;
  font-size: .92rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: .01em;
}
.arc-gallery .carousel-control-prev,
.arc-gallery .carousel-control-next {
  width: 2.5rem;
}
.arc-gallery .carousel-indicators [data-bs-target] {
  background-color: var(--c-teal-light);
}

/* Archive year next-arrow navigation */
.has-arc-nav {
  position: relative;
}
.archive-year-arrow {
  position: absolute;
  top: 1.5rem;
  height: clamp(5rem, 18vw, 10rem);
  right: 0;
  display: flex;
  align-items: center;
  color: var(--c-blue);
  font-size: 3rem;
  line-height: 1;
  text-decoration: none;
  transition: color .2s, transform .2s;
  z-index: 1;
}
.archive-year-arrow:hover {
  color: var(--c-cyan);
  transform: translateX(6px);
}

/* Standalone paragraphs inside arc-block (no arc-block-body) */
.arc-block > p {
  margin-bottom: .75rem;
}
.arc-block > p:last-child { margin-bottom: 0; }

/* Mobile: stack image below text */
@media (max-width: 600px) {
  .arc-block-body {
    flex-direction: column;
  }
  .arc-image {
    flex: none;
    width: 100%;
    max-width: 260px;
  }
}

/* ── Archive tiles section ────────────────────────────────── */
.archive-section {
  margin-top: 3rem;
  padding: 2.5rem 0;
  background: var(--c-grey);
  /* bleed full width outside the container */
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  padding-left: calc(50vw - 50%);
  padding-right: calc(50vw - 50%);
}

.archive-section-header {
  font-size: 3rem;
  font-weight: 700;
  color: var(--c-cyan);
  text-transform: none;
  letter-spacing: .08em;
  margin-bottom: 1.25rem;
  padding-left: 1rem;
  text-align: center;
}

.archive-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: .75rem;
  padding: 0 1rem;
  justify-items: center;
}

.archive-section .splash-intro {
  text-align: center;
  padding: 0 1rem;
}

.archive-tile {
  position: relative;
  display: block;
  overflow: hidden;
  border-radius: 8px;
  text-decoration: none;
  aspect-ratio: 5 / 7;
}

.archive-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 8px;
  box-shadow: none;
  margin: 0;
  transition: transform .3s ease;
  filter: brightness(0.6);
}

.archive-tile:hover img {
  transform: scale(1.05);
}

.archive-tile-year {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4%;
  font-size: clamp(1.25rem, 2.75vw, 2.5rem);
  font-weight: 800;
  color: #FFE44D;
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 4px rgba(0,0,0,.6);
  background: none;
  border-radius: 8px;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .archive-tiles {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) and (max-width: 991.98px) {
  .archive-tiles {
    grid-template-columns: repeat(3, 1fr);
  }
}


.bg-teal  { background: var(--c-teal-light); }
.bg-grey  { background: var(--c-grey); }
.bg-yellow{ background: var(--c-yellow); }
