/* YYC HK Outdoor — Hong Kong minibus placard meets Rockies trail marker. */
:root {
  --paper: #f6f1e6;
  --paper-2: #ece4d2;
  --card: #fffdf7;
  --ink: #15221d;
  --muted: #5a675f;
  --line: #d9cfba;
  --green: #0f4a3a;      /* HK green minibus */
  --green-2: #1d6a53;
  --red: #c8321f;        /* HK red minibus band */
  --gold: #d99a1c;       /* larch in fall */
  --glacier: #7fb8b5;
  --r1: #2e5a4c; --r2: #1d4639; --r3: #0f3329;
  --snow: #f6f1e6;
  --radius: 14px;
  --display: "Bricolage Grotesque", "Noto Sans TC", system-ui, sans-serif;
  --body: "Bricolage Grotesque", "Noto Sans TC", system-ui, sans-serif;
  --zh-display: "Noto Serif TC", "Noto Sans TC", serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 400 17px/1.6 var(--body);
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
body.zh { font-family: "Noto Sans TC", var(--body); line-height: 1.75; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
.zh h1, .zh h2 { font-family: var(--zh-display); letter-spacing: .02em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.6rem); font-weight: 800; }
h2 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.kicker { font: 500 .78rem/1 var(--mono); text-transform: uppercase; letter-spacing: .14em; color: var(--red); margin-bottom: 1rem; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 780px; }
section.wrap { padding-top: 72px; padding-bottom: 8px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--ink); color: var(--paper); padding: 8px 12px; z-index: 99; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

/* ---------- header */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px; background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.mark { color: var(--green); }
.mark-svg { width: 84px; height: 31px; display: block; }
.bname { display: flex; flex-direction: column; line-height: 1.1; }
.bname b { font: 800 1rem var(--display); letter-spacing: -.01em; }
.bname i { font: 700 .8rem "Noto Sans TC", sans-serif; font-style: normal; color: var(--green-2); letter-spacing: .12em; }
.nav { display: flex; gap: 4px; margin-left: auto; }
.nav a { text-decoration: none; padding: 8px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.nav a:hover { background: var(--paper-2); }
.nav a[aria-current] { background: var(--green); color: var(--paper); }
.tools { display: flex; align-items: center; gap: 10px; }
.lang {
  font: 700 .85rem var(--mono); text-decoration: none; width: 38px; height: 38px;
  display: grid; place-items: center; border: 1.5px solid var(--ink); border-radius: 50%;
}
.lang:hover { background: var(--ink); color: var(--paper); }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--red); color: #fff; text-decoration: none; font-weight: 700;
  padding: 13px 22px; border-radius: 999px; border: 2px solid var(--red);
  transition: transform .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); background: #a92614; border-color: #a92614; }
.btn.ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.ghost:hover { background: var(--ink); color: var(--paper); }
.btn.light { background: var(--paper); color: var(--green); border-color: var(--paper); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.ic.big { width: 34px; height: 34px; color: var(--green); }
.more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--green); }
.more:hover { gap: 10px; }

/* ---------- hero */
.hero { position: relative; background: var(--green); color: var(--paper); overflow: hidden; padding-bottom: 150px; }
.hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(15,74,58,.97) 0%, rgba(15,74,58,.88) 42%, rgba(15,74,58,.55) 75%, rgba(15,74,58,.35) 100%),
    url("/assets/photos/hero.jpg") center 35% / cover no-repeat;
}
.hero-in {
  position: relative; max-width: 1180px; margin: 0 auto; padding: 88px 24px 40px;
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: center;
}
.hero .kicker { color: var(--gold); }
.hero h1 { max-width: 14ch; }
.zh .hero h1 { max-width: 11em; }
.lede { font-size: 1.2rem; max-width: 36em; opacity: .92; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero .btn.ghost { color: var(--paper); border-color: var(--paper); }
.hero .btn.ghost:hover { background: var(--paper); color: var(--green); }
.ridge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 190px; }
.ridge .r1 { fill: var(--r1); } .ridge .r2 { fill: var(--r2); } .ridge .r3 { fill: var(--paper); }
.ridge .snow { fill: var(--snow); opacity: .9; }

/* HK minibus placard */
.placard {
  display: block; text-decoration: none; color: var(--ink);
  background: var(--card); border-radius: 12px; overflow: hidden;
  border: 4px solid var(--card); box-shadow: 0 0 0 3px var(--ink), 0 30px 60px -20px rgba(0,0,0,.5);
  transform: rotate(1.5deg); transition: transform .25s;
  max-width: 400px; justify-self: end; width: 100%;
}
.placard:hover { transform: rotate(0) translateY(-4px); }
.pl-band { background: var(--red); color: #fff; font: 700 .8rem var(--mono); letter-spacing: .14em; text-transform: uppercase; padding: 8px 16px; }
.pl-body { padding: 20px 20px 14px; text-align: center; border-bottom: 2px dashed var(--line); }
.pl-to { font: 900 1rem "Noto Serif TC", serif; color: var(--muted); }
.pl-dest { font: 900 clamp(1.5rem, 3vw, 2.1rem)/1.15 "Noto Serif TC", var(--display); color: var(--green); margin: 4px 0 8px; }
.pl-sub { font-weight: 600; color: var(--muted); font-size: .95rem; }
.pl-foot { display: flex; justify-content: space-between; gap: 12px; padding: 12px 18px; font: 500 .82rem var(--mono); }

/* ---------- story teaser */
.story-teaser { display: grid; grid-template-columns: 200px 1fr; gap: 48px; align-items: start; }
.st-mark {
  font: 900 150px/1 "Noto Serif TC", serif; color: var(--gold);
  text-shadow: 6px 6px 0 var(--paper-2);
}
.story-teaser p { font-size: 1.1rem; max-width: 46em; }

/* ---------- section heads */
.sh { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.sh h2 { margin: 0; }
.sh .kicker { margin-bottom: .5rem; }
.sub { margin-top: -12px; }

/* ---------- values */
.vals { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.val { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.val h3 { margin-top: 14px; }
.val p { color: var(--muted); margin: 0; font-size: .97rem; }

/* ---------- highlights band */
.band { background: var(--ink); color: var(--paper); margin-top: 80px; padding: 8px 0 72px; }
.band .sh { border-color: var(--paper); }
.band .kicker { color: var(--gold); }
.hls { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.hl { padding: 8px 24px 8px 0; border-right: 1px solid rgba(246,241,230,.2); margin-right: 24px; }
.hl:last-child { border: 0; margin: 0; }
.hl-num { font: 800 clamp(3.5rem, 7vw, 5.5rem)/1 var(--display); color: var(--gold); display: flex; align-items: baseline; gap: 8px; }
.hl-num span { font: 600 1rem var(--mono); color: var(--paper); opacity: .8; }
.hl h3 { margin-top: 12px; }
.hl p { opacity: .75; font-size: .95rem; margin: 0 0 10px; }
.band .more { color: var(--gold); }

/* ---------- events */
.evs { display: grid; gap: 16px; }
.evs.grid3 { grid-template-columns: repeat(3, 1fr); }
.ev { display: grid; grid-template-columns: 96px 1fr; gap: 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; scroll-margin-top: 90px; }
.ev:target { box-shadow: 0 0 0 3px var(--gold); }
.ev.past { grid-template-columns: 1fr; align-content: start; padding: 0; overflow: hidden; }
.ev.past .ev-body { padding: 0 22px 22px; }
.ev h3 { margin: 8px 0 4px; font-size: 1.3rem; }
.ev-meta { font: 500 .85rem var(--mono); color: var(--muted); }
.ev-body > p:last-of-type { margin-bottom: 0; }
.ev-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.dblock {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border: 2px solid var(--ink); border-radius: 10px; overflow: hidden; height: 104px; text-align: center;
}
.dm { background: var(--green); color: var(--paper); width: 100%; font: 700 .8rem var(--mono); padding: 4px 0; letter-spacing: .1em; }
.dd { font: 800 2.4rem/1.1 var(--display); flex: 1; display: grid; place-items: center; }
.dy { font: 500 .72rem var(--mono); color: var(--muted); padding-bottom: 6px; }
.ev-photo { aspect-ratio: 16/9; object-fit: cover; width: 100%; margin-bottom: 18px; }
.ev-ph { position: relative; background: linear-gradient(180deg, #a9cfcb, #e8dcc0); overflow: hidden; }
.ev-ph.kind-ski, .ev-ph.kind-avalanche { background: linear-gradient(180deg, #bcd7e6, #f3efe6); }
.ev-ph.kind-run { background: linear-gradient(180deg, #f2c27a, #f3e6cc); }
.ridge.mini { height: 70%; }
.ev-tags { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tag { font: 600 .72rem var(--mono); text-transform: uppercase; letter-spacing: .08em; padding: 4px 10px; border-radius: 999px; background: var(--paper-2); }
.tag.kind-hike { background: #dbe9df; color: var(--green); }
.tag.kind-ski, .tag.kind-avalanche { background: #dce8ef; color: #1f4b66; }
.tag.kind-run { background: #f6e2c0; color: #7a4b05; }
.tag.kind-climb, .tag.kind-backpack { background: #ece0d0; color: #6b3d1c; }
.tag.kind-bike { background: #e6e0f0; color: #4a3577; }
.tag.sample { background: transparent; border: 1.5px dashed var(--red); color: var(--red); }
.lvl { display: inline-flex; align-items: center; gap: 6px; font: 500 .78rem var(--mono); color: var(--muted); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 9px; height: 9px; transform: rotate(45deg); border: 1.5px solid var(--ink); display: block; }
.dots i.on { background: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: .9rem; }

/* ---------- community wall */
.sps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sp { display: block; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: transform .15s; }
.sp:hover { transform: translateY(-3px); }
.sp-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.sp-head b { color: var(--ink); }
.sp-head .ic { width: 22px; height: 22px; color: var(--red); }
.sp-telegram .sp-head .ic { color: #2a8bc9; }
.sp img { border-radius: 8px; margin-bottom: 12px; aspect-ratio: 1; object-fit: cover; }
.sp p { margin: 0; font-size: 1.05rem; font-weight: 500; }

/* ---------- posts */
.posts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post { display: flex; flex-direction: column; text-decoration: none; background: var(--card); border: 1px solid var(--line); border-top: 6px solid var(--green); border-radius: var(--radius); padding: 24px; }
.post:hover { border-top-color: var(--red); }
.post-date { font: 500 .8rem var(--mono); color: var(--muted); margin-bottom: 10px; }
.post p { color: var(--muted); flex: 1; }
.post .more { color: var(--green); }

/* ---------- join band */
.join-band { background: var(--red); color: #fff; margin-top: 96px; }
.jb { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 48px; padding-bottom: 48px; }
.jb h2 { margin: 0; max-width: 22em; font-size: clamp(1.4rem, 2.6vw, 2rem); }

/* ---------- inner pages */
.page-head { padding-top: 64px !important; }
.page-head h1 { max-width: 18ch; }
.zh .page-head h1 { max-width: 14em; }
.prose-wrap { max-width: 760px; }
.prose { font-size: 1.1rem; }
.prose h2 { font-size: 1.6rem; margin-top: 1.8em; }
.prose a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .5em; }
.prose em { font-style: italic; }
.zh .prose em { font-style: normal; color: var(--green); }
.prose.big p { font-size: 1.2rem; }
.back { margin-bottom: 32px; }
.note { background: var(--paper-2); padding: 10px 14px; border-radius: 8px; }
.about { display: grid; grid-template-columns: 1.5fr 1fr; gap: 64px; align-items: start; }
.about-side { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; position: sticky; top: 90px; }
.about-side h2 { font-size: 1.4rem; }
.vlist { list-style: none; padding: 0; margin: 0; display: grid; gap: 18px; }
.vlist li { display: flex; gap: 14px; }
.vlist .ic { width: 26px; height: 26px; color: var(--green); margin-top: 2px; }
.vlist b { display: block; }
.vlist span { color: var(--muted); font-size: .95rem; }
.join { display: grid; grid-template-columns: 1.4fr 1fr; gap: 56px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.steps li { display: flex; gap: 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.steps .n { flex: none; width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--paper); display: grid; place-items: center; font: 800 1.3rem var(--display); }
.steps h3 { margin: 4px 0 4px; }
.steps p { margin: 0; color: var(--muted); }
.chans { display: grid; gap: 10px; }
.chan { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; }
.chan span { flex: 1; overflow-wrap: anywhere; }
.chan:hover { border-color: var(--green); }
.chan .ic:first-child { color: var(--red); width: 24px; height: 24px; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 1.1rem; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: "+"; font: 500 1.4rem/1 var(--mono); color: var(--red); }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--muted); }

/* ---------- footer */
.foot { position: relative; background: var(--r3); color: var(--paper); margin-top: 0; padding-top: 120px; }
.join-band + .foot, main + .foot { margin-top: 0; }
.foot-ridge { top: -1px; bottom: auto; height: 120px; transform: scaleY(-1); }
.foot-ridge .r3 { fill: var(--paper); }
.foot-ridge .r1, .foot-ridge .r2, .foot-ridge .snow { display: none; }
.foot-in { max-width: 1180px; margin: 0 auto; padding: 24px 24px 48px; display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: end; }
.foot-tag { font: 800 1.6rem var(--display); margin-bottom: .3em; }
.foot-logo { color: var(--paper); margin-bottom: 18px; }
.logo-svg { width: 180px; height: auto; display: block; }
.zh .foot-tag { font-family: var(--zh-display); }
.foot .muted { color: rgba(246,241,230,.65); }
.social { display: flex; gap: 8px; justify-content: flex-end; margin-bottom: 8px; }
.social a { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(246,241,230,.3); }
.social a:hover { background: var(--paper); color: var(--r3); }
.foot-links { text-align: right; }

/* ---------- responsive */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; gap: 40px; padding-top: 56px; }
  .placard { justify-self: start; }
  .vals, .hls { grid-template-columns: repeat(2, 1fr); }
  .hl { border: 0; margin: 0 0 24px; }
  .evs.grid3, .sps, .posts { grid-template-columns: 1fr 1fr; }
  .about, .join { grid-template-columns: 1fr; gap: 40px; }
  .about-side { position: static; }
  .story-teaser { grid-template-columns: 1fr; gap: 8px; }
  .st-mark { font-size: 90px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .mark-svg { width: 64px; height: 24px; }
  .hero::before { background:
    linear-gradient(180deg, rgba(15,74,58,.93) 0%, rgba(15,74,58,.85) 60%, rgba(15,74,58,.6) 100%),
    url("/assets/photos/hero.jpg") 30% center / cover no-repeat; }
  .top { padding: 10px 16px; gap: 10px; flex-wrap: wrap; }
  .bname i { display: none; }
  .nav { order: 3; width: 100%; margin: 0 -6px; overflow-x: auto; }
  .tools { margin-left: auto; }
  .wrap, .hero-in, .foot-in { padding-left: 16px; padding-right: 16px; }
  section.wrap { padding-top: 56px; }
  .vals, .hls, .evs.grid3, .sps, .posts { grid-template-columns: 1fr; }
  .ev { grid-template-columns: 72px 1fr; gap: 16px; padding: 16px; }
  .dblock { height: 86px; }
  .dd { font-size: 1.9rem; }
  .jb { flex-direction: column; align-items: flex-start; }
  .foot-links { text-align: left; }
  .social { justify-content: flex-start; }
  .ridge { height: 110px; }
  .hero { padding-bottom: 90px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* empty upcoming state */
.ev-empty { align-items: center; border-style: dashed; border-width: 2px; }
.ev-empty-ic { display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%; background: #dceaf3; }
.ev-empty-ic .ic.big { color: #2a8bc9; width: 44px; height: 44px; }
.ev-empty h3 { margin-top: 0; }
@media (max-width: 720px) { .ev-empty-ic { width: 72px; height: 72px; } }

/* ---------- event page with embedded registration form */
.ev-details p { margin: 0 0 1em; }
.form-embed { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
/* Heights measured from the Google Form at each width (it can't size itself cross-origin). */
.form-embed iframe { display: block; width: 100%; height: 5900px; border: 0; }
@media (max-width: 640px) { .form-embed iframe { height: 8300px; } }
@media (max-width: 370px) { .form-embed iframe { height: 8900px; } }
.ev-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 48px; align-items: center; }
.ev-poster img { display: block; width: 100%; height: auto; border-radius: var(--radius); box-shadow: 0 18px 40px -18px rgba(21, 34, 29, .45); }
@media (max-width: 860px) { .ev-hero { grid-template-columns: 1fr; gap: 28px; } .ev-poster { max-width: 480px; } }
