:root {
  color-scheme: light;
  --emerald-900: #0b231b;
  --emerald-800: #0f2e24;
  --emerald-700: #143d30;
  --emerald-600: #1b4e3e;
  --gold: #d9b25a;
  --gold-soft: #ecd59a;
  --ink: #f3efe4;
  --ink-muted: #c4cdc5;
  --line: rgba(217, 178, 90, 0.28);
  --serif: "Cinzel", Georgia, serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 72px; }

body {
  margin: 0;
  background: var(--emerald-800);
  color: var(--ink);
  font: 400 1rem/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

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

a { color: var(--gold-soft); }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 var(--gutter); }

h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.2; color: var(--gold-soft); margin: 0 0 0.6em; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 35, 27, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 40px; height: 40px; flex: none; }
.brand-name { display: none; font-family: var(--serif); font-weight: 600; font-size: 1.05rem; color: var(--gold-soft); letter-spacing: 0.04em; white-space: nowrap; }
.brand-name span { display: none; }
nav { display: flex; gap: 4px; }
nav a {
  color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 500;
  padding: 10px 10px; border-radius: 6px; white-space: nowrap;
}
nav a:hover, nav a:focus-visible { background: var(--emerald-600); }

/* Hero */
.hero { background: radial-gradient(120% 90% at 85% 10%, var(--emerald-600) 0%, var(--emerald-800) 55%, var(--emerald-900) 100%); border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; gap: 28px; padding-top: 40px; padding-bottom: 48px; align-items: center; }
.hero-logo { width: min(100%, 300px); margin: 0 auto; order: -1; }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin-bottom: 0.8em; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.6vw, 3.1rem); color: var(--ink); }
.lede { font-size: 1.05rem; color: var(--ink-muted); max-width: 36em; }

.button {
  display: inline-block; margin-top: 8px;
  background: var(--gold); color: var(--emerald-900);
  font-weight: 600; text-decoration: none;
  padding: 12px 22px; border-radius: 6px; border: 1px solid var(--gold);
}
.button:hover, .button:focus-visible { background: var(--gold-soft); border-color: var(--gold-soft); }
.button-outline { background: transparent; color: var(--gold-soft); }
.button-outline:hover, .button-outline:focus-visible { color: var(--emerald-900); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: var(--emerald-900); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

/* Category cards: cut corners, like a faceted stone */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.card {
  background: var(--emerald-700);
  clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%, 0 18px);
  border-bottom: 2px solid var(--gold);
}
.card img { aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.card-body { padding: 16px 18px 18px; }
.card-body p { color: var(--ink-muted); margin: 0; }

/* About + glance */
.about-grid { display: grid; gap: 32px; }
.about-grid p { color: var(--ink-muted); max-width: 38em; }
.glance { border: 1px solid var(--line); padding: 20px; background: var(--emerald-800); }
.glance dl { margin: 0; display: grid; gap: 14px; }
.glance dt { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.glance dd { margin: 2px 0 0; color: var(--ink); }
.num { font-variant-numeric: tabular-nums; }

/* Contact */
.contact address { font-style: normal; margin-bottom: 8px; }
.addr-zh { font-size: 1.15rem; color: var(--ink); margin-bottom: 0.6em; }
.addr-en { color: var(--ink-muted); }
.label { display: block; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); margin-bottom: 2px; }

.site-footer { border-top: 1px solid var(--line); background: var(--emerald-900); padding: 24px 0; font-size: 0.85rem; color: var(--ink-muted); }
.site-footer p { margin: 0; }

/* Ticker */
.ticker { border-top: 1px solid var(--line); background: var(--emerald-900); }
.ticker iframe { display: block; width: 100%; height: 46px; border: 0; }
.ticker-note { font-size: 0.75rem; color: var(--ink-muted); padding-top: 0; padding-bottom: 16px; margin: 0 auto; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.kicker { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); margin: 0 0 0.4em; }
.section-intro { color: var(--ink-muted); max-width: 40em; margin-bottom: 28px; }

.card ul { margin: 12px 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.card li { padding: 7px 0 7px 18px; border-bottom: 1px solid rgba(217, 178, 90, 0.12); color: var(--ink); font-size: 0.92rem; position: relative; }
.card li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 7px; height: 7px; background: var(--gold); transform: rotate(45deg); }
.card-body > p { margin-bottom: 0; }

/* Guide panels */
.guide { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.panel { border: 1px solid var(--line); background: var(--emerald-800); padding: 22px 20px; }
.panel table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.95rem; }
.panel th { text-align: left; font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); padding: 0 8px 8px 0; }
.panel td { padding: 8px 8px 8px 0; border-top: 1px solid var(--line); }
.panel td:first-child { font-family: var(--serif); color: var(--gold-soft); }
.panel .note { color: var(--ink-muted); font-size: 0.88rem; margin: 14px 0 0; }
.measures, .fourc { margin: 0; display: grid; gap: 10px; }
.measures div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2px 12px; border-bottom: 1px solid rgba(217, 178, 90, 0.12); padding-bottom: 8px; }
.measures dt { color: var(--ink); }
.measures dd { margin: 0; color: var(--gold-soft); font-variant-numeric: tabular-nums; }
.fourc dt { font-family: var(--serif); color: var(--gold-soft); }
.fourc dd { margin: 0; color: var(--ink-muted); font-size: 0.92rem; }

/* Hong Kong facts */
.facts { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.fact { border-left: 2px solid var(--gold); padding: 4px 0 4px 16px; }
.fact p { color: var(--ink-muted); margin: 0; }

.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 24px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.nav-wide { display: none; }
@media (min-width: 560px) { .nav-wide { display: inline-block; } }

@media (min-width: 480px) {
  .brand-name { display: inline; }
}

@media (min-width: 640px) {
  .brand-name span { display: inline; font-weight: 500; color: var(--ink-muted); }
}

@media (min-width: 860px) {
  .hero-grid { grid-template-columns: 1.3fr 1fr; padding-top: 72px; padding-bottom: 80px; }
  .hero-logo { order: 0; width: min(100%, 380px); }
  .about-grid { grid-template-columns: 1.2fr 1fr; align-items: start; }
  .section { padding: 80px 0; }
}
