:root {
  --forest: #163f36;
  --deep: #102e27;
  --paper: #f8f5ec;
  --amber: #edd0a0;
  --ink: #20332c;
  --muted: #53635a;
  --line: #d4d6c8;
  --serif: "Songti TC", "Noto Serif CJK TC", "PMingLiU", serif;
  font-family: "PingFang TC", "Microsoft JhengHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, select, input { font: inherit; }
a { color: inherit; }
a, button, select { cursor: pointer; }
:focus-visible { outline: 3px solid #986011; outline-offset: 4px; }
.wrap { width: min(1160px, calc(100% - 80px)); margin-inline: auto; }
.sr-only, .skip:not(:focus) { position: absolute; overflow: hidden; width: 1px; height: 1px; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; z-index: 10; margin: 12px; padding: 12px; background: white; }
.site-header { background: #fffdf7; }
.header-inner { min-height: 80px; display: flex; gap: 32px; align-items: center; justify-content: space-between; }
.brand { display: flex; gap: 12px; align-items: center; color: var(--forest); text-decoration: none; font-size: 1.1875rem; font-weight: 750; letter-spacing: .05em; line-height: 1.25; }
.brand small { display: block; font-size: 0.5rem; font-weight: 650; letter-spacing: .13em; margin-block-start: 4px; }
.brand-mark { width: 37px; height: 35px; flex: 0 0 37px; border: 1px solid #876f4d; border-radius: 50% 50% 0 0; position: relative; }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; inset: 5px 5px 0; border: 1px solid var(--forest); border-bottom: 0; border-radius: 50% 50% 0 0; }
.brand-mark::after { inset: 10px 10px 0; }
.main-nav { display: flex; gap: clamp(16px, 3vw, 40px); margin-inline-start: auto; }
.main-nav a, .member-link { text-decoration: none; font-weight: 650; font-size: 0.875rem; white-space: nowrap; }
.main-nav a:hover, .footer-inner a:hover { text-decoration: underline; text-underline-offset: .25em; }
.member-link { display: inline-flex; gap: 10px; padding: 11px 15px; border: 1px solid #8b9b91; border-radius: 3px; color: var(--forest); }
.member-link:hover { background: #e9efe8; }
.hero { background: var(--deep); color: #fff8e7; }
.hero-inner { min-height: 410px; display: grid; grid-template-columns: 1.02fr 1fr; align-items: stretch; }
.hero-content { position: relative; z-index: 1; padding: 45px 20px 44px 0; }
.eyebrow { display: flex; align-items: center; gap: 12px; color: #efd4a8; letter-spacing: .12em; font-weight: 650; font-size: 0.8125rem; margin: 0 0 18px; }
.eyebrow span { height: 1px; width: 26px; background: currentColor; }
h1, h2, h3 { font-family: var(--serif); margin: 0; }
h1 { font-size: clamp(3.125rem, calc(1rem + 3.5vw), 4.875rem); line-height: 1.08; letter-spacing: .065em; }
h1 span { color: var(--amber); }
.hero-intro { color: #e2e5d7; margin: 21px 0 24px; line-height: 1.65; }
.stage { min-width: 0; position: relative; isolation: isolate; overflow: hidden; background: radial-gradient(ellipse at 49% 0%, #e4ae67 -25%, #5a654ad0 26%, transparent 63%), linear-gradient(115deg, #102e27 4%, #254c3f 53%, #16382d 100%); }
.stage-proscenium { position: absolute; inset: 4% 8% 0; border: 1px solid #bd9c6c9c; border-bottom: 0; border-radius: 48% 48% 0 0; background: radial-gradient(ellipse at 52% -12%, #f3c880a0, transparent 38%), repeating-linear-gradient(97deg, #718c6419 0 3px, transparent 6px 19px), linear-gradient(90deg, #315e4b 0%, #223f32ad 49%, #4a694d 100%); box-shadow: 0 0 36px #101d17a0; }
.stage-proscenium::before, .stage-proscenium::after { content: ""; position: absolute; inset: 6% 7% 0; border: 1px solid #efd0a08c; border-bottom: 0; border-radius: 49% 49% 0 0; }
.stage-proscenium::after { inset: 13% 14% 0; background: radial-gradient(ellipse at 50% 12%, #dfb57463, transparent 65%); }
.stage-light { position: absolute; top: -12%; bottom: 8%; width: 55%; clip-path: polygon(48% 0, 56% 0, 100% 100%, 0 100%); background: linear-gradient(#f7d5a0, #edc47f85 58%, #d6a15b05); filter: blur(9px); mix-blend-mode: screen; opacity: .66; transform-origin: 50% 4%; }
.stage-light-left { left: 4%; transform: rotate(-16deg); }
.stage-light-right { right: 8%; transform: rotate(17deg); opacity: .45; }
.stage-ground { position: absolute; inset: 78% -20% -23%; border-radius: 48%; background: radial-gradient(ellipse at 53% 4%, #f6d38c, #b38957a8 22%, #142f28 50%); box-shadow: 0 0 55px #ebc18742; }
.search-form { background: #fffdf6; border-radius: 4px; display: flex; align-items: center; max-width: 460px; padding: 5px; color: var(--ink); }
.search-icon { width: 14px; height: 14px; border: 1.5px solid currentColor; border-radius: 100%; margin-inline: 13px 5px; flex: 0 0 14px; position: relative; }
.search-icon::after { content: ""; position: absolute; right: -5px; bottom: -2px; width: 6px; border-bottom: 1.5px solid; transform: rotate(47deg); }
.search-form input { width: 100%; min-width: 0; padding: 9px 12px; background: transparent; border: 0; }
.search-form button { background: var(--amber); color: var(--deep); border: 0; border-radius: 3px; padding: 10px 21px; font-weight: 700; white-space: nowrap; }
.search-form button:hover, .button-primary:hover { background: #f5deb6; }
.section-block { padding: 43px 0; scroll-margin-top: 20px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 17px; gap: 14px; }
.section-head > p { margin: 0 0 4px; color: var(--muted); font-size: 0.875rem; }
.label { margin: 0 0 5px; font-size: 0.6875rem; font-weight: 750; letter-spacing: .18em; color: #735124; }
h2 { color: var(--forest); font-size: clamp(1.9375rem, calc(1.3rem + 1vw), 2.4375rem); letter-spacing: .08em; }
.featured { border: 1px solid #244a39; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 24px 30px; border-radius: 4px; color: #fff7e6; background: linear-gradient(116deg, #163f36 55%, #2f5747); }
.featured-kicker { color: var(--amber); font-size: 0.8125rem; font-weight: 650; letter-spacing: .12em; margin: 0 0 6px; }
.featured h3 { font-size: clamp(1.5625rem, calc(1.05rem + 1vw), 2.0625rem); margin-bottom: 8px; }
.featured h3 + p { margin: 0; line-height: 1.65; color: #e8e7d7; }
.featured-actions { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 9px; flex: 0 0 auto; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; border: 1px solid transparent; border-radius: 3px; padding: 10px 15px; font-size: 0.875rem; }
.button-primary { background: var(--amber); color: var(--deep); }
.button-outline { border-color: #a3b1a0; color: #fff7e6; }
.button-outline:hover { background: #ffffff21; }
.service-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-block: 12px 0; }
.service-tiles a { display: flex; align-items: center; justify-content: space-between; gap: 9px; padding: 18px 16px; min-height: 65px; background: #fffdf7; border: 1px solid var(--line); border-radius: 4px; text-decoration: none; font-weight: 700; }
.service-tiles a:hover { background: #eef0e6; }
.service-details article { margin-top: 15px; border: 1px solid var(--line); background: #fffdf7; padding: 20px 24px; }
.service-details h3 { font-size: 1.5625rem; }
.service-details dl { display: grid; grid-template-columns: auto 1fr; gap: 8px 20px; line-height: 1.55; }
.service-details dt { font-weight: 750; }
.service-details dd { margin: 0; }
.service-details summary { cursor: pointer; }
.service-details details { margin: 0 0 12px; }
.directory { border-top: 1px solid var(--line); }
.catalog-buttons { display: flex; gap: 8px; }
.catalog-buttons button { padding: 9px 15px; color: var(--deep); background: #fffcf4; border: 1px solid var(--line); border-radius: 3px; }
.catalog-buttons [aria-pressed=true] { color: #fff8e7; background: var(--forest); border-color: var(--forest); }
.catalog-filters { display: flex; align-items: flex-end; gap: 14px; margin-block: 17px; }
.catalog-filters label { display: grid; gap: 6px; font-size: 0.875rem; font-weight: 700; flex: 1; }
.catalog-filters input, .catalog-filters select { min-width: 0; width: 100%; padding: 9px; background: #fffdf7; color: var(--ink); border: 1px solid #a5ad9f; border-radius: 3px; }
.catalog-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.catalog-list article { background: #fffdf7; border: 1px solid var(--line); border-radius: 4px; padding: 16px; }
.catalog-list h3 { font-size: 1.375rem; }
.catalog-list p { margin: 7px 0 0; line-height: 1.6; }
.catalog-meta, .catalog-count { color: var(--muted); font-size: 0.875rem; }
.site-footer { color: #e8e6d8; background: var(--deep); padding: 24px 0; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: 13px 22px; }
.footer-inner p { color: #cfdbc9; margin: 6px 0 0; font-size: 0.875rem; }
.footer-inner a { text-decoration: none; font-size: 0.875rem; }
.search-items { padding-left: 22px; line-height: 1.9; }
@media (max-width: 950px) {
  .wrap { width: calc(100% - 48px); }
  .featured { align-items: flex-start; }
  .featured-actions { flex-direction: column; }
}
@media (max-width: 680px) {
  .wrap { width: calc(100% - 32px); }
  .header-inner { min-height: 0; padding-block: 13px 11px; display: grid; grid-template-columns: 1fr auto; gap: 12px; }
  .brand { font-size: 0.9375rem; gap: 7px; }
  .brand small { font-size: 0.375rem; }
  .brand-mark { width: 27px; height: 27px; flex-basis: 27px; }
  .main-nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; margin: 0; }

  .hero-inner { min-height: 0; display: block; }
  .hero-content { padding: 32px 0 25px; }
  h1 { font-size: clamp(2.9375rem, calc(1.6rem + 5.8vw), 4.125rem); }
  .hero-intro { margin: 13px 0 18px; }
  .stage { min-height: 155px; }
  .section-block { padding: 32px 0; }
  .featured { display: block; padding: 19px; }
  .featured-actions { margin-top: 14px; flex-direction: row; }
  .button { padding-inline: 10px; }
  .service-tiles { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .service-tiles a { padding: 12px 9px; font-size: 0.875rem; }
  .catalog-filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .catalog-filters label:first-child, .catalog-filters button { grid-column: 1 / -1; }
  .catalog-list { grid-template-columns: 1fr; }
  .footer-inner { align-items: flex-start; flex-direction: column; }
}

:root[data-text-size="small"] { font-size: 90%; }
:root[data-text-size="large"] { font-size: 112.5%; }
.header-controls { display: flex; align-items: center; gap: 12px; }
.font-controls { display: inline-flex; border: 1px solid #8b9b91; border-radius: 3px; }
.font-controls button { min-width: 30px; min-height: 36px; border: 0; color: var(--forest); background: transparent; font-size: .8125rem; }
.font-controls button + button { border-left: 1px solid #8b9b91; }
.font-controls [aria-pressed=true] { background: #e9efe8; font-weight: 750; }
.mobile-grant { display: none; }
@media (max-width: 850px) {
  .header-inner { gap: 13px; }
  .header-controls { gap: 8px; }
}
@media (max-width: 730px) {
  .header-inner { min-height: 0; padding-block: 13px 11px; display: grid; grid-template-columns: 1fr auto; gap: 9px; }
  .header-controls { display: contents; }
  .member-link { grid-column: 2; grid-row: 1; padding: 8px; font-size: .75rem; }
  .main-nav { grid-row: 2; grid-column: 1; margin-left: 0; gap: 10px; }
  .main-nav a { font-size: .75rem; }
  .font-controls { grid-column: 2; grid-row: 2; justify-self: end; }
  .font-controls button { min-height: 28px; min-width: 23px; }
  .mobile-grant { display: inline-flex; margin-top: 10px; padding: 9px 13px; background: var(--amber); color: var(--deep); border-radius: 3px; text-decoration: none; font-weight: 750; }
}
