/* WanderLens Hong Kong — mobile-first, single-column, 480px max-width, system fonts only */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: #fafaf7;
  color: #1a1a1a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; height: auto; display: block; }
a { color: #c0392b; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
hr { border: 0; border-top: 1px solid #e5e3dd; margin: 2em 0; }
code, pre {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  background: #f3f1ec;
  padding: 0.1em 0.35em;
  border-radius: 3px;
}
pre { padding: 1em; overflow-x: auto; line-height: 1.5; }

/* Layout — single 480px column on all viewports */
.container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 16px;
  background: #ffffff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
main { flex: 1 0 auto; }

/* Header */
.site-header {
  padding: 20px 0 14px;
  border-bottom: 1px solid #e5e3dd;
  margin-bottom: 20px;
}
.site-name {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.site-name a { color: #1a1a1a; }
.site-tagline {
  margin: 4px 0 12px;
  font-size: 14px;
  color: #6b6b6b;
  line-height: 1.4;
}
.site-nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
}
.site-nav a { color: #6b6b6b; }
.site-nav a:hover, .site-nav a:focus { color: #c0392b; text-decoration: none; }

/* Footer */
.site-footer {
  margin-top: 40px;
  padding: 20px 0 28px;
  border-top: 1px solid #e5e3dd;
  font-size: 13px;
  color: #6b6b6b;
}
.site-footer p { margin: 0 0 6px; }
.site-footer a { color: #6b6b6b; }
.site-footer a:hover, .site-footer a:focus { color: #c0392b; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; margin: 6px 0 10px; }

/* Typography — articles & legal */
h1 {
  font-size: 28px;
  line-height: 1.25;
  font-weight: 700;
  margin: 0 0 0.4em;
  letter-spacing: -0.01em;
}
h2 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 700;
  margin: 2em 0 0.6em;
  letter-spacing: -0.005em;
}
h3 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  margin: 1.6em 0 0.5em;
}
p { margin: 0 0 1.2em; }
ul, ol { margin: 0 0 1.2em; padding-left: 1.4em; }
li { margin: 0 0 0.3em; }
strong { font-weight: 600; }
em { font-style: italic; }
figure { margin: 1.5em 0; }
figcaption { font-style: italic; font-size: 14px; color: #6b6b6b; margin-top: 0.4em; }
blockquote {
  margin: 1.4em 0;
  padding-left: 1em;
  border-left: 3px solid #c0392b;
  color: #6b6b6b;
  font-style: italic;
}

/* Home — article cards */
.intro { margin: 0 0 20px; color: #1a1a1a; }
.intro p { font-size: 17px; line-height: 1.6; margin: 0 0 0.6em; }
.intro .lead { color: #1a1a1a; }
.intro .meta { color: #6b6b6b; font-size: 14px; }
.card-list { display: flex; flex-direction: column; gap: 18px; list-style: none; padding: 0; margin: 0; }
.card {
  border: 1px solid #e5e3dd;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}
.card a.card-link {
  color: inherit;
  text-decoration: none;
  display: block;
}
.card a.card-link:hover .card-title,
.card a.card-link:focus .card-title { color: #c0392b; text-decoration: underline; }
.card-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #f3f1ec;
  object-fit: cover;
  display: block;
}
.card-body { padding: 12px 14px 14px; }
.card-title { font-size: 18px; line-height: 1.3; font-weight: 700; margin: 0 0 6px; color: #1a1a1a; }
.card-excerpt { font-size: 14px; color: #6b6b6b; margin: 0 0 8px; line-height: 1.55; }
.card-meta { font-size: 12px; color: #6b6b6b; display: flex; gap: 10px; flex-wrap: wrap; }
.card-cta { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; color: #c0392b; }

/* Article */
.article-header { margin-bottom: 18px; }
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 13px;
  color: #6b6b6b;
  margin: 0 0 14px;
}
.article-meta span::before { content: "·"; margin-right: 8px; color: #c0392b; }
.article-meta span:first-child::before { content: ""; margin: 0; }
.article-cover {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #f3f1ec;
  border-radius: 6px;
  margin: 0 0 18px;
}
.article-content p:first-of-type { font-size: 17px; }
.breadcrumb {
  font-size: 13px;
  color: #6b6b6b;
  margin: 0 0 14px;
}
.breadcrumb a { color: #6b6b6b; }
.breadcrumb a:hover, .breadcrumb a:focus { color: #c0392b; }
.breadcrumb span.sep { margin: 0 6px; color: #c0392b; }

/* FAQ */
.faq { margin: 32px 0 0; }
.faq h2 { margin-top: 0; }
.faq-item { border-top: 1px solid #e5e3dd; padding: 14px 0 16px; }
.faq-item:last-child { border-bottom: 1px solid #e5e3dd; }
.faq-q { font-weight: 600; font-size: 16px; margin: 0 0 6px; color: #1a1a1a; }
.faq-a { margin: 0; color: #1a1a1a; }

/* Related */
.related { margin: 36px 0 0; }
.related h2 { margin-top: 0; }
.related-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.related-list li { margin: 0; padding: 12px 14px; border: 1px solid #e5e3dd; border-radius: 6px; }
.related-list a { color: #1a1a1a; font-weight: 600; }
.related-list a:hover, .related-list a:focus { color: #c0392b; text-decoration: underline; }
.related-list small { display: block; color: #6b6b6b; font-weight: 400; font-size: 13px; margin-top: 2px; }

/* Author / disclosure */
.author-box {
  margin: 36px 0 0;
  padding: 14px 16px;
  background: #f3f1ec;
  border-radius: 6px;
  font-size: 14px;
  color: #1a1a1a;
}
.author-box p { margin: 0 0 6px; }
.author-box p:last-child { margin-bottom: 0; }
.author-box strong { color: #1a1a1a; }

/* Ad slots — full-width blocks, no sidebar, on all viewports */
.ad-slot {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
  background: #f3f1ec;
  border: 1px dashed #e5e3dd;
  border-radius: 6px;
  color: #6b6b6b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  text-align: center;
  min-height: 90px;
  position: relative;
  overflow: hidden;
}
.ad-slot::before {
  content: "Advertisement";
  font-size: 11px;
  letter-spacing: 0.1em;
  color: #6b6b6b;
}
.ad-slot.ad-top, .ad-slot.ad-mid, .ad-slot.ad-footer { min-height: 90px; }
.ad-slot.ad-in-article { min-height: 250px; }
.ad-slot ins.adsbygoogle { display: block; min-height: inherit; }
.ad-slot[data-ad-status="filled"] { background: transparent; border-color: transparent; }
.ad-slot[data-ad-status="filled"]::before { display: none; }

/* Static banner ads (index.html) — 300x250 centered inside the 480px container */
.ad-banner-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 24px 0;
  min-height: 250px;
  overflow: hidden;
}
.ad-banner-wrap ins.adsbygoogle { display: inline-block; }

/* Cookie consent banner */
.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 9999;
  background: #1a1a1a;
  color: #fafaf7;
  padding: 16px;
  font-size: 14px;
  line-height: 1.5;
}
.cookie-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cookie-banner p { margin: 0; }
.cookie-banner a { color: #fafaf7; text-decoration: underline; }
.cookie-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.cookie-btn {
  flex: 1 0 auto;
  min-width: 110px;
  border: 0;
  border-radius: 4px;
  padding: 10px 14px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.cookie-btn-accept { background: #c0392b; color: #ffffff; }
.cookie-btn-accept:hover, .cookie-btn-accept:focus { background: #a32d22; }
.cookie-btn-decline { background: transparent; color: #fafaf7; border: 1px solid #fafaf7; }
.cookie-btn-decline:hover, .cookie-btn-decline:focus { background: #2a2a2a; }
.cookie-banner[hidden] { display: none; }

/* Legal / static pages */
.legal-content h1 { margin-top: 0; }
.legal-meta { color: #6b6b6b; font-size: 14px; margin: 0 0 20px; }

/* 404 */
.notfound { text-align: center; padding: 40px 0 60px; }
.notfound h1 { font-size: 64px; margin: 0 0 0.1em; color: #c0392b; }
.notfound p { color: #6b6b6b; }
.notfound .btn { display: inline-block; margin-top: 12px; padding: 10px 18px; background: #c0392b; color: #fff; border-radius: 4px; font-weight: 600; }
.notfound .btn:hover, .notfound .btn:focus { background: #a32d22; text-decoration: none; }

/* Accessibility */
:focus-visible { outline: 2px solid #c0392b; outline-offset: 2px; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* No responsive switching — single column on every viewport. Confirm 320px works. */
@media (max-width: 360px) {
  .container { padding: 0 12px; }
  h1 { font-size: 26px; }
  h2 { font-size: 20px; }
  .site-name { font-size: 20px; }
}
