/* New Zealand Chinese Medicine Development Trust — site styles */
:root {
  --ink: #1c2623;
  --ink-2: #33423d;
  --muted: #4a5a54;
  --muted-2: #5a6a64;
  --green: #1f3b33;
  --green-deep: #13261f;
  --green-mid: #2c5246;
  --chalk: #a9c7bb;
  --chalk-text: #d7e3dd;
  --mist: #eef3f0;
  --line: #d9e3de;
  --accent: #a8321f;
  --accent-ink: #9e2f1d;
  --white: #ffffff;
  --body: 'IBM Plex Sans', 'Noto Sans SC', 'Helvetica Neue', Arial, sans-serif;
  --head: 'Source Serif 4', Georgia, 'Noto Serif SC', serif;
}
html[lang="zh-Hans"] {
  --body: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', 'IBM Plex Sans', sans-serif;
  --head: 'Noto Serif SC', 'Songti SC', 'SimSun', serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); }
a:hover { color: var(--accent-ink); }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0; line-height: 1.2; }
p { margin: 0; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.eyebrow {
  font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); font-weight: 600;
}
html[lang="zh-Hans"] .eyebrow { letter-spacing: 0.08em; }
.section-title { font-size: clamp(30px, 4vw, 38px); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

/* Top bar */
.topbar { background: var(--green-deep); color: var(--chalk-text); font-size: 14px; }
.topbar .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 8px; padding-bottom: 8px; }
.lang { display: flex; gap: 4px; }
.lang a {
  font-size: 14px; padding: 4px 12px; border-radius: 4px; border: 1px solid #3f6a5c;
  color: var(--chalk-text); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center;
}
.lang a[aria-current="true"] { background: var(--white); color: var(--green-deep); font-weight: 600; }
.lang a:hover { color: var(--white); }
.lang a[aria-current="true"]:hover { color: var(--green-deep); }

/* Header */
.site-header { border-bottom: 1px solid #e3e8e5; background: var(--white); }
.site-header .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding-top: 18px; padding-bottom: 18px; }
.brand { display: flex; flex-direction: column; line-height: 1.3; text-decoration: none; color: var(--ink); }
.brand-en { font-family: 'Source Serif 4', Georgia, serif; font-size: 19px; font-weight: 600; }
.brand-zh { font-family: 'Noto Serif SC', serif; font-size: 15px; color: var(--muted); letter-spacing: 0.04em; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; font-size: 16px; font-weight: 500; }
.nav a { text-decoration: none; padding: 6px 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px;
  padding: 12px 24px; border-radius: 4px; text-decoration: none; font-weight: 600;
}
.nav .btn { min-height: 44px; padding: 10px 22px; background: var(--accent); color: var(--white); }
.nav .btn:hover { background: var(--accent-ink); color: var(--white); }

/* Hero */
.hero { background: var(--green); color: var(--white); }
.hero .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 96px; }
.hero-text { flex: 1 1 520px; display: flex; flex-direction: column; gap: 22px; }
.hero .eyebrow { color: var(--chalk); }
.hero h1 { font-size: clamp(34px, 5vw, 56px); line-height: 1.15; }
.hero-sub { font-size: 21px; color: #dbe8e2; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.btn-light { background: var(--white); color: var(--green); }
.btn-light:hover { background: var(--mist); color: var(--green); }
.btn-ghost { border: 1.5px solid var(--chalk); color: var(--white); }
.btn-ghost:hover { background: var(--green-mid); color: var(--white); }
.hero-art { flex: 1 1 340px; display: flex; justify-content: center; }
.hero-art img { width: 100%; max-width: 340px; height: auto; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.about-head { flex: 1 1 340px; display: flex; flex-direction: column; gap: 12px; }
.about-body { flex: 1 1 520px; display: flex; flex-direction: column; gap: 18px; color: var(--ink-2); }
.stats { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }
.stat { flex: 1 1 160px; border-top: 3px solid var(--green); padding-top: 12px; }
.stat strong { display: block; font-family: var(--head); font-size: 22px; font-weight: 600; color: var(--ink); }
.stat span { font-size: 15px; color: var(--muted); }

/* Purposes */
.band { background: var(--mist); }
.band > .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.section-head { display: flex; flex-direction: column; gap: 10px; max-width: 720px; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 28px 24px; display: flex; flex-direction: column; gap: 10px; }
.glyph {
  width: 48px; height: 48px; border-radius: 50%; background: var(--green); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-family: 'Noto Serif SC', serif; font-size: 22px;
}
.card h3 { font-size: 22px; font-weight: 600; }
.card p { font-size: 15px; color: var(--ink-2); }

/* Silver Needles */
.needles { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 96px; padding-bottom: 96px; }
.needles figure { flex: 1 1 380px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.needles figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; }
.needles figcaption { font-size: 14px; color: var(--muted-2); }
.needles-text { flex: 1 1 480px; display: flex; flex-direction: column; gap: 16px; }
.needles-sub { font-family: 'Noto Serif SC', serif; font-size: 22px; color: var(--accent); }
html[lang="zh-Hans"] .needles-sub { font-family: 'Source Serif 4', Georgia, serif; }
.needles-text > p { color: var(--ink-2); }
.give {
  margin-top: 8px; border: 1.5px solid #c9d6d0; border-radius: 8px; padding: 22px 24px;
  display: flex; flex-wrap: wrap; gap: 14px 32px; background: #f7faf8;
}
.give h3 { flex: 1 1 100%; font-size: 20px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 2px; }
.field .label { font-size: 14px; color: var(--muted); }
.field .value { font-weight: 600; }
.acct { font-size: 22px; letter-spacing: 0.04em; font-variant-numeric: tabular-nums; }
.give .note { flex: 1 1 100%; font-size: 14px; color: var(--muted); }

/* Quote */
.quote { background: var(--mist); }
.quote .wrap { max-width: 1000px; padding-top: 88px; padding-bottom: 88px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.quote .zh { font-family: 'Noto Serif SC', serif; font-size: 34px; color: var(--green); letter-spacing: 0.08em; }
.quote blockquote { margin: 0; font-family: var(--head); font-size: 24px; color: var(--ink-2); line-height: 1.5; }
html[lang="en"] .quote blockquote { font-style: italic; }
.quote cite { font-size: 15px; color: var(--muted-2); font-style: normal; }

/* Trustees */
.people { padding-top: 96px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 40px; }
.chair { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; background: var(--mist); border-radius: 10px; padding: 32px; }
.chair img { flex: 0 1 280px; width: 280px; aspect-ratio: 4 / 5; object-fit: cover; object-position: center 30%; border-radius: 8px; }
.chair-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 12px; }
.chair-text h3 { font-size: 30px; font-weight: 600; }
.role { font-size: 16px; font-weight: 600; color: var(--accent); }
.chair-text p { color: var(--ink-2); }
.trustees { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 32px; }
.trustee { display: flex; flex-direction: column; gap: 10px; }
.trustee img { width: 100%; max-width: 360px; aspect-ratio: 1 / 1; object-fit: cover; object-position: center 25%; border-radius: 8px; }
.trustee h3 { font-size: 22px; font-weight: 600; }
.trustee p { font-size: 15px; color: var(--ink-2); }

/* News */
.news { border-top: 1px solid #e3e8e5; }
.news .wrap { padding-top: 88px; padding-bottom: 88px; display: flex; flex-direction: column; gap: 32px; }
.timeline { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; list-style: none; margin: 0; padding: 0; }
.timeline li { border-top: 3px solid var(--green); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.timeline time { font-size: 14px; font-weight: 600; color: var(--accent-ink); }
.timeline h3 { font-size: 19px; font-weight: 600; line-height: 1.35; }

/* Donate */
.donate { background: var(--green-deep); color: var(--white); }
.donate .wrap { padding-top: 96px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 48px; }
.donate-text { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.donate .eyebrow { color: var(--chalk); }
.donate-text p { color: var(--chalk-text); }
.bank { flex: 1 1 420px; background: var(--green); border-radius: 8px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px; }
.bank h3 { font-size: 24px; font-weight: 600; }
.bank .label { color: var(--chalk); }
.bank .acct { font-size: 24px; }
.bank .receipt { font-size: 15px; color: var(--chalk-text); }
.bank a { color: var(--white); }

/* Footer */
.site-footer { background: var(--mist); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 56px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 36px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 36px; }
.footer-cols > div { flex: 1 1 200px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.footer-cols .first { flex: 2 1 300px; }
.footer-cols strong { font-size: 15px; }
.footer-legal { border-top: 1px solid #c9d6d0; padding-top: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--muted); }

/* Policy page */
.policy { max-width: 760px; padding-top: 72px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 18px; }
.policy h1 { font-size: clamp(32px, 4vw, 42px); }
.policy h2 { font-size: 24px; margin-top: 18px; font-weight: 600; }
.policy p, .policy li { color: var(--ink-2); }
.policy ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.updated { font-size: 15px; color: var(--muted-2); }

@media (max-width: 640px) {
  body { font-size: 16px; }
  .hero .wrap, .about, .band > .wrap, .needles, .people, .donate .wrap { padding-top: 64px; padding-bottom: 64px; }
  .chair { padding: 20px; }
  .chair img { width: 100%; flex-basis: 100%; }
  .nav { gap: 4px 18px; }
  .acct, .bank .acct { font-size: 20px; }
}

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 48px; padding-top: 88px; padding-bottom: 88px; }
.contact-head { flex: 1 1 440px; display: flex; flex-direction: column; gap: 14px; }
.contact-head > p { color: var(--ink-2); }
.contact-card { margin-top: 8px; border: 1.5px solid #c9d6d0; border-radius: 8px; padding: 24px; background: #f7faf8; display: flex; flex-wrap: wrap; align-items: flex-end; gap: 18px 36px; }
.contact-email { font-size: 20px; }
.btn-accent { background: var(--accent); color: var(--white); }
.btn-accent:hover { background: var(--accent-ink); color: var(--white); }
.topics { flex: 1 1 420px; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; align-content: start; }
.topics li { border-top: 3px solid var(--green); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.topics strong { font-family: var(--head); font-size: 19px; font-weight: 600; }
.topics span { font-size: 15px; color: var(--muted); }
@media (max-width: 640px) { .contact { padding-top: 64px; padding-bottom: 64px; } }
