/* AFOLI brand palette (AFOLI Official Color Reference) */
:root {
  --gold: #AD8F54;        /* Antique Gold: lines, star, accents */
  --gold-text: #806835;   /* darker gold for small text on ivory (WCAG AA) */
  --charcoal: #2B2B2A;    /* Charcoal: AFOLI lettering, dark sections */
  --ivory: #FEFCF6;       /* Warm Ivory: background */
  --black: #111111;       /* Soft Black: body text, footer */
  --stone: #F5F0E4;       /* tinted ivory for alternate sections */
  --line: #E6DECC;
  --muted: #5E5B54;
  --serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  color: var(--black);
  background: var(--ivory);
}
img { max-width: 100%; display: block; }
a { color: var(--charcoal); text-decoration-color: var(--gold); text-underline-offset: 3px; }
a:hover { color: var(--gold-text); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--charcoal); }
h1 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.center { text-align: center; }
.narrow { max-width: 640px; margin-left: auto; margin-right: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 100; }

.eyebrow {
  font-size: .78rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold-text); margin-bottom: 1rem;
}
.section-dark .eyebrow, .hero .eyebrow { color: var(--gold); }

/* Gold rule and star divider, echoing the logo */
.rule { width: 72px; height: 1px; background: var(--gold); margin: 8px 0 28px; }
.divider { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 4px auto 8px; max-width: 360px; }
.divider span { flex: 1; height: 1px; background: var(--gold); }
.divider svg { width: 18px; height: 18px; fill: var(--gold); flex: none; }

/* Buttons */
.btn {
  display: inline-block; padding: 14px 28px; border-radius: 2px;
  background: var(--gold); color: var(--black); text-decoration: none;
  font-family: var(--sans); font-weight: 600; font-size: .95rem; letter-spacing: .02em;
  border: 1px solid var(--gold); cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.btn:hover { background: #C2A56B; border-color: #C2A56B; color: var(--black); }
.btn-ghost { background: transparent; color: var(--ivory); border-color: rgba(254,252,246,.6); }
.btn-ghost:hover { background: rgba(254,252,246,.08); color: #fff; border-color: #fff; }
.btn-dark { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.btn-dark:hover { background: var(--black); border-color: var(--black); color: #fff; }
.btn-small { padding: 9px 18px; font-size: .85rem; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(254,252,246,.96); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img { height: 34px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { text-decoration: none; font-size: .92rem; font-weight: 500; color: var(--charcoal); }
.nav-links a:not(.btn):hover { color: var(--gold-text); }
.nav-links a.btn-small { background: var(--charcoal); color: var(--ivory); border-color: var(--charcoal); }
.nav-links a.btn-small:hover { background: var(--black); color: #fff; }
.lang { display: flex; gap: 2px; margin-left: -8px; }
.nav-links .lang a { font-size: .82rem; padding: 4px 6px; color: var(--muted); }
.nav-links .lang a[aria-current="true"] { color: var(--charcoal); font-weight: 600; text-decoration: underline; text-decoration-color: var(--gold); }

/* Chinese pages */
html[lang="zh-Hans"] { --serif: "Cormorant Garamond", "Noto Serif SC", "Songti SC", serif; --sans: "Inter", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif; }
html[lang="zh-Hant"] { --serif: "Cormorant Garamond", "Noto Serif TC", "Songti TC", serif; --sans: "Inter", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif; }
html[lang^="zh"] body { line-height: 1.85; }
html[lang^="zh"] h1, html[lang^="zh"] h2, html[lang^="zh"] h3 { line-height: 1.35; letter-spacing: .02em; }
html[lang^="zh"] .eyebrow { letter-spacing: .3em; }

.menu-toggle { display: none; background: none; border: 1px solid var(--charcoal); color: var(--charcoal); padding: 6px 14px; font: inherit; font-size: .85rem; cursor: pointer; }

/* Hero */
.hero {
  background:
    radial-gradient(circle at 85% 15%, rgba(173,143,84,.16), transparent 45%),
    linear-gradient(165deg, var(--charcoal) 0%, var(--black) 100%);
  color: var(--ivory);
  padding: 110px 0 120px;
}
.hero-inner { text-align: center; }
.hero-logo { width: 100%; max-width: 640px; height: auto; margin: 0 auto 56px; }
.hero h1 { color: var(--ivory); max-width: 760px; margin-left: auto; margin-right: auto; }
.hero .lede { font-size: 1.15rem; max-width: 640px; margin-left: auto; margin-right: auto; color: rgba(254,252,246,.82); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 2rem; }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--stone); }
.section-dark { background: var(--charcoal); color: rgba(254,252,246,.85); }
.section-dark h2, .section-dark h3 { color: var(--ivory); }
.two-col { display: grid; grid-template-columns: 1fr 1.2fr; gap: 64px; align-items: start; }
.prose { color: var(--muted); font-size: 1.05rem; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; }
.card { background: var(--ivory); padding: 32px 26px; border-top: 2px solid var(--gold); }
.card-num { font-family: var(--serif); font-size: 1.15rem; color: var(--gold-text); font-weight: 700; }
.card h3 { margin-top: .4em; }
.card p { color: var(--muted); font-size: .97rem; margin: 0; }

/* Programs */
.programs .btn { margin-top: .5rem; }

/* Board */
.board { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; margin: 48px auto 0; max-width: 860px; }
.person { text-align: center; }
.avatar {
  width: 112px; height: 112px; border-radius: 50%; margin: 0 auto 18px;
  display: grid; place-items: center;
  background: var(--charcoal); color: var(--ivory);
  font-family: var(--serif); font-size: 2rem; font-weight: 600; letter-spacing: .05em;
  box-shadow: 0 0 0 3px var(--stone), 0 0 0 4px var(--gold);
}
.avatar-photo { object-fit: cover; padding: 0; }
.person > p { color: var(--muted); margin: 0; font-size: .95rem; }
.bio { margin-top: 12px; text-align: left; }
.bio summary {
  cursor: pointer; text-align: center; list-style: none;
  font-size: .82rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-text);
}
.bio summary::-webkit-details-marker { display: none; }
.bio summary::after { content: " +"; }
.bio[open] summary::after { content: " \2013"; }
.bio p { font-size: .92rem; color: var(--muted); margin: 12px 0 0; }

/* Involve */
.involve { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin: 48px 0 8px; }
.involve > div { border-left: 1px solid var(--gold); padding-left: 22px; }

/* Contact */
.contact-panel { background: #fff; border: 1px solid var(--line); padding: 36px; }
.contact-card { font-style: normal; }
.contact-card p { margin-bottom: .6em; }
.contact-panel .btn { margin-top: 8px; }
.topics-lead { font-size: .85rem; color: var(--muted); margin: 24px 0 8px; }
.topics { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.topics li { border-bottom: 1px solid var(--line); }
.topics a { display: flex; align-items: center; gap: 12px; padding: 12px 2px; text-decoration: none; color: var(--charcoal); font-weight: 500; }
.topics a:hover { color: var(--gold-text); }
.topics svg { width: 12px; height: 12px; fill: var(--gold); flex: none; }

/* Simple content pages (privacy, thanks) */
.page { padding: 80px 0 96px; }
.page .wrap { max-width: 760px; }
.page h2 { font-size: 1.6rem; margin-top: 1.6em; }
.page p, .page li { color: var(--muted); }

/* Footer */
.site-footer { background: var(--black); color: rgba(254,252,246,.7); padding: 40px 0; font-size: .9rem; }
.site-footer a { color: rgba(254,252,246,.85); }
.site-footer a:hover { color: var(--gold); }
.footer-inner p { margin: 0 0 .4em; }
.footer-logo { width: 240px; height: auto; margin-bottom: 20px; }
.small { font-size: .8rem; opacity: .8; }

/* Responsive */
@media (max-width: 960px) {
  .cards { grid-template-columns: repeat(2, 1fr); }
  .two-col { grid-template-columns: 1fr; gap: 32px; }
}
@media (max-width: 720px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .menu-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: flex-start; gap: 0;
    background: var(--ivory); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; width: 100%; }
  .nav-links .btn-small { width: auto; margin-top: 8px; padding: 9px 18px; }
  .nav-links .lang { margin: 12px 0 0; }
  .nav-links .lang a { width: auto; padding: 4px 10px 4px 0; }
  .hero { padding: 72px 0 84px; }
  .hero-logo { margin-bottom: 40px; }
  .section { padding: 68px 0; }
  .cards, .board, .involve { grid-template-columns: 1fr; }
  .contact-panel { padding: 24px; }
}
