:root {
  --site-max-width: 1500px;
  --site-gutter: clamp(20px, 4vw, 48px);
  --content-readable: 920px;
  --ink: #18110c;
  --muted: #6a5a48;
  --line: rgba(110, 30, 22, 0.18);
  --paper: #fff8ea;
  --warm: #f4e3c6;
  --red: #b81a2d;
  --red-dark: #551016;
  --red-ink: #7b151e;
  --gold: #c8a044;
  --gold-light: #e9cc79;
  --jade: #176452;
  --blue: #1f4f73;
  --shadow: 0 18px 50px rgba(74, 26, 12, 0.14);
  --font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang TC",
    "PingFang SC", "Microsoft JhengHei", "Microsoft YaHei", "Noto Sans TC",
    "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Songti TC", "STSong", "SimSun", "PMingLiU",
    "Noto Serif TC", "Noto Serif SC", serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(184, 26, 45, 0.06), transparent 28%),
    linear-gradient(90deg, rgba(126, 34, 21, 0.035) 1px, transparent 1px),
    linear-gradient(0deg, rgba(126, 34, 21, 0.026) 1px, transparent 1px),
    var(--paper);
  background-size: auto, 42px 42px, 42px 42px, auto;
  font-family: var(--font);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header { top: 32px; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }

.site-container {
  width: min(calc(100% - var(--site-gutter) * 2), var(--site-max-width));
  margin-inline: auto;
}

.screen-reader-text,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.skip-link:focus {
  z-index: 1000;
  width: auto;
  height: auto;
  clip: auto;
  padding: 12px 16px;
  background: #fff;
  color: #111;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background:
    linear-gradient(180deg, rgba(255, 249, 235, 0.97), rgba(255, 244, 220, 0.94));
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--red-dark), var(--gold), var(--red));
}

.site-header__inner {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 245px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 48px;
  flex: 0 0 68px;
  border: 1px solid rgba(184, 26, 45, 0.16);
  border-radius: 2px;
  background: #fffaf0;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 4px;
}

.brand-lockup strong,
.brand-lockup small {
  display: block;
  line-height: 1.25;
}

.brand-lockup strong {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.01em;
}
.brand-lockup small { color: var(--muted); font-size: 11px; }

.site-nav,
.footer-nav {
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-nav li,
.footer-nav li {
  list-style: none;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: nowrap;
  gap: 3px;
}

.site-nav > li {
  position: relative;
}

.site-nav a {
  display: block;
  padding: 9px 10px;
  border-radius: 2px;
  color: #2f2a25;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
  color: var(--red-dark);
  background: rgba(184, 26, 45, 0.08);
  box-shadow: inset 0 -2px 0 var(--gold);
}

.site-nav .sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 100;
  display: grid;
  gap: 2px;
  min-width: 220px;
  padding: 8px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: rgba(255, 248, 234, 0.99);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.site-nav .menu-item-has-children:hover > .sub-menu,
.site-nav .menu-item-has-children:focus-within > .sub-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.site-nav .sub-menu a {
  border-radius: 2px;
  font-size: 13px;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff8ea;
  padding: 10px;
}

.menu-toggle span:not(.screen-reader-text) {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--ink);
}

.home-hero,
.page-hero {
  position: relative;
  min-height: min(780px, calc(100svh - 76px));
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--red-dark);
  border-bottom: 4px solid var(--gold);
}

.home-hero__slide,
.page-hero::before {
  position: absolute;
  inset: 0;
  background-image: var(--hero-image);
  background-size: cover;
  background-position: center;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 800ms ease, transform 1200ms ease;
}

.home-hero__slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.page-hero::before {
  content: "";
  opacity: 1;
}

.home-hero__overlay,
.page-hero__overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(54, 9, 12, 0.9), rgba(84, 18, 16, 0.58) 45%, rgba(54, 9, 12, 0.18)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.42), transparent 45%);
}

.home-hero__content::before,
.page-hero__inner::before {
  content: "";
  display: block;
  width: 96px;
  height: 5px;
  margin-bottom: 22px;
  background: linear-gradient(90deg, var(--gold), rgba(255, 255, 255, 0));
}

.home-hero__content,
.page-hero__inner {
  position: relative;
  z-index: 2;
  padding: clamp(80px, 13vh, 150px) 0;
}

.home-hero h1,
.page-hero h1 {
  max-width: 920px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(40px, 5.6vw, 76px);
  line-height: 1.12;
  letter-spacing: 0;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.36);
}

.home-hero p,
.page-hero__lede {
  max-width: 760px;
  margin: 20px 0 0;
  font-size: clamp(17px, 2vw, 22px);
  color: rgba(255, 255, 255, 0.88);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold-light);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.button,
.wp-block-button__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 2px;
  border: 1px solid var(--red);
  background: var(--red);
  color: #fff;
  font-weight: 760;
}

.button:hover { color: #fff; background: var(--red-dark); }
.button--gold {
  background: linear-gradient(180deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
  color: #21180b;
}
.button--gold:hover { background: #e1bf61; color: #21180b; }
.button--ghost { background: rgba(255, 255, 255, 0.12); border-color: rgba(255, 255, 255, 0.55); }
.button--dark { background: #1b1a17; border-color: #1b1a17; }

.home-hero__dots {
  position: absolute;
  z-index: 3;
  right: var(--site-gutter);
  bottom: 34px;
  display: flex;
  gap: 8px;
}

.home-hero__dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
}

.home-hero__dots .is-active { background: var(--gold); }

.ticker-band {
  background: #1d100d;
  color: #fff;
  border-top: 3px solid var(--gold);
}

.ticker-band__inner {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 16px;
  overflow: hidden;
}

.ticker-band strong {
  color: var(--gold);
  flex: 0 0 auto;
}

.section {
  padding: clamp(70px, 9vw, 120px) 0;
}

.section--warm { background: var(--warm); }
.section--cta {
  background:
    linear-gradient(135deg, rgba(85, 16, 22, 0.96), rgba(52, 20, 12, 0.86)),
    var(--red-dark);
  color: #fff;
}

.section__heading {
  margin-bottom: 34px;
}

.section__heading h2,
.split-feature h2,
.feature-row h2,
.cta-panel h2 {
  max-width: 920px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 58px);
  line-height: 1.15;
}

.section__heading h2::after,
.split-feature h2::after,
.feature-row h2::after,
.cta-panel h2::after {
  content: "";
  display: block;
  width: 72px;
  height: 3px;
  margin-top: 14px;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.section__heading p,
.split-feature p,
.feature-row p,
.cta-panel p {
  max-width: 800px;
  color: var(--muted);
}

.section--cta p { color: rgba(255, 255, 255, 0.82); }

.pillar-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.pillar-card,
.archive-card,
.person-card,
.honoree-mini,
.cta-panel {
  border: 1px solid var(--line);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255, 252, 244, 0.98), rgba(255, 246, 226, 0.98));
  box-shadow: var(--shadow);
}

.pillar-card {
  min-height: 260px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-top: 4px solid var(--red);
}

.pillar-card__mark { color: var(--gold); font-size: 20px; }
.pillar-card h3 { margin: 14px 0 10px; font-size: 26px; }
.pillar-card p { color: var(--muted); }
.pillar-card a { color: var(--red); font-weight: 760; }

.split-feature,
.feature-row,
.article-layout,
.person-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(28px, 5vw, 70px);
  align-items: start;
}

.honoree-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.honoree-mini {
  padding: 18px;
  min-height: 126px;
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.honoree-mini img,
.honoree-mini em {
  width: 78px;
  height: 78px;
  border-radius: 2px;
}

.honoree-mini img {
  display: block;
  object-fit: cover;
  object-position: top center;
}

.honoree-mini em {
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--red), var(--gold));
  color: #fff;
  font-style: normal;
  font-size: 28px;
  font-weight: 800;
}

.honoree-mini strong {
  display: block;
  font-size: 20px;
  font-weight: 780;
}

.honoree-mini small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.feature-row {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.feature-row article {
  padding: 34px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff8ea;
}

.cta-panel {
  padding: clamp(32px, 6vw, 70px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: none;
}

.content-layout,
.not-found-panel {
  padding: clamp(52px, 8vw, 90px) 0;
}

.content-body {
  max-width: var(--content-readable);
}

.content-body > *:first-child,
.article-main > *:first-child,
.person-main > *:first-child { margin-top: 0; }

.archive-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(54px, 8vw, 90px) 0;
}

.archive-grid--people {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.archive-card,
.person-card {
  overflow: hidden;
}

.archive-card__media,
.person-card__media {
  display: block;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, var(--red), var(--gold));
}

.person-card__media { aspect-ratio: 4 / 3; }
.archive-card__media img,
.person-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.archive-card__mark,
.person-card__media span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 46px;
  font-weight: 800;
}

.archive-card__body,
.person-card__body {
  padding: 22px;
}

.archive-card h2,
.person-card h2 {
  margin: 0 0 10px;
  font-size: 22px;
  line-height: 1.25;
}

.meta { color: var(--muted); font-size: 13px; }

.directory-toolbar {
  margin-top: 34px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff8ea;
}

.directory-toolbar form {
  display: flex;
  gap: 10px;
}

.directory-toolbar label { flex: 1; }
input[type="search"],
input[type="text"],
input[type="email"],
textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 2px;
  padding: 11px 13px;
  font: inherit;
  background: #fff;
}

textarea { min-height: 130px; resize: vertical; }

.article-layout { grid-template-columns: minmax(0, 1fr) 330px; padding: clamp(54px, 8vw, 90px) 0; }
.article-main { max-width: var(--content-readable); }
.article-cover { margin: 0 0 28px; }
.article-sidebar {
  position: sticky;
  top: 110px;
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: #fff8ea;
}

.person-layout { padding: clamp(54px, 8vw, 90px) 0; grid-template-columns: 360px minmax(0, 1fr); }
.person-side { display: grid; gap: 16px; }
.person-side img {
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: top center;
  border-radius: 2px;
  box-shadow: var(--shadow);
}

.site-footer {
  padding: 58px 0 24px;
  background:
    linear-gradient(180deg, #2b0f0d, #160d09);
  color: #fff;
  border-top: 4px solid var(--gold);
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.8fr) minmax(0, 0.8fr);
  gap: 38px;
}

.site-footer p,
.site-footer small,
.site-footer a,
.site-footer__bottom {
  color: rgba(255, 255, 255, 0.72);
}

.site-footer h2 {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--gold);
}

.footer-nav,
.contact-list {
  display: grid;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.site-footer__bottom {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 42px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: 13px;
}

.pagination { grid-column: 1 / -1; }

@media (max-width: 1100px) {
  .archive-grid,
  .archive-grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-header__inner { min-height: 70px; }
  .menu-toggle { display: block; }
  .primary-menu {
    position: fixed;
    top: 70px;
    left: var(--site-gutter);
    right: var(--site-gutter);
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: 180ms ease;
  }
  .primary-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav { display: grid; justify-content: stretch; }
  .site-nav a { border-radius: 8px; }
  .site-nav .sub-menu {
    position: static;
    min-width: 0;
    padding: 2px 0 4px 16px;
    border: 0;
    background: transparent;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
  .site-nav .sub-menu a {
    padding-block: 8px;
    color: var(--muted);
  }
}

@media (max-width: 820px) {
  body.admin-bar .site-header { top: 0; }
  .home-hero,
  .page-hero { min-height: 680px; }
  .pillar-grid,
  .split-feature,
  .feature-row,
  .article-layout,
  .person-layout,
  .site-footer__grid { grid-template-columns: 1fr; }
  .honoree-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-sidebar { position: static; }
  .site-footer__bottom { flex-direction: column; }
}

@media (max-width: 520px) {
  :root { --site-gutter: 20px; }
  .brand-lockup { min-width: 0; }
  .brand-lockup small { display: none; }
  .home-hero h1,
  .page-hero h1 { font-size: 36px; }
  .home-hero__content,
  .page-hero__inner { padding: 86px 0 68px; }
  .button-row,
  .directory-toolbar form { flex-direction: column; }
  .archive-grid,
  .archive-grid--people,
  .honoree-grid { grid-template-columns: 1fr; }
  .pillar-card { min-height: 220px; padding: 24px; }
}
