:root {
  --red: #d7192d;
  --red-dark: #a90f20;
  --ink: #151515;
  --muted: #66625d;
  --paper: #f5f3ef;
  --white: #ffffff;
  --line: #d7d1c9;
  --green: #13875d;
  --blue: #14718b;
  --yellow: #f2bd22;
  --max: 1180px;
  --header-height: 78px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Noto Sans SC", "Source Han Sans SC", "PingFang SC", sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

body.menu-open {
  overflow: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea {
  font: inherit;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 8px 12px;
  color: var(--white);
  background: var(--ink);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(calc(100% - 40px), var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-height);
  border-bottom: 1px solid rgba(21, 21, 21, 0.16);
  background: rgba(245, 243, 239, 0.96);
  backdrop-filter: blur(16px);
}

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

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

.brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 50%;
}

.brand-name {
  display: grid;
  line-height: 1.25;
}

.brand-name strong {
  font-size: 16px;
}

.brand-name span {
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 10px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  color: #3f3c38;
  font-size: 14px;
  font-weight: 650;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: "";
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 180ms ease;
}

.site-nav a:hover::after,
.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--red-dark);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  display: block;
  width: 24px;
  height: 2px;
  margin: 5px auto;
  background: var(--ink);
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-open .menu-button span {
  opacity: 0;
}

.menu-open .menu-button::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-button::after {
  transform: translateY(-7px) rotate(-45deg);
}

.hero {
  position: relative;
  min-height: 82svh;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(21, 21, 21, 0.08) 50%, transparent 50.2%),
    linear-gradient(rgba(21, 21, 21, 0.05) 1px, transparent 1px);
  background-size: 100% 100%, 100% 88px;
}

.hero::before {
  position: absolute;
  top: 9%;
  right: -8%;
  width: 54vw;
  max-width: 720px;
  aspect-ratio: 1;
  border: 2px solid rgba(215, 25, 45, 0.22);
  border-radius: 50%;
  content: "";
}

.hero::after {
  position: absolute;
  top: 19%;
  right: 4%;
  width: 34vw;
  max-width: 460px;
  aspect-ratio: 1;
  border: 1px solid rgba(20, 113, 139, 0.2);
  border-radius: 50%;
  content: "";
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  align-items: center;
  min-height: 82svh;
  padding: 70px 0 58px;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 800;
}

.eyebrow::before {
  width: 40px;
  height: 3px;
  background: var(--red);
  content: "";
}

.hero h1 {
  max-width: 900px;
  margin: 0;
  font-family: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  font-size: 72px;
  font-weight: 800;
  line-height: 1.12;
}

.hero h1 span {
  color: var(--red);
}

.hero-lead {
  max-width: 650px;
  margin: 26px 0 0;
  color: #4c4843;
  font-size: 19px;
}

.hero-actions,
.page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 11px 20px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-weight: 750;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
}

.button-primary {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
}

.button-primary:hover {
  border-color: var(--red-dark);
  background: var(--red-dark);
}

.button-secondary:hover {
  color: var(--white);
  background: var(--ink);
}

.button-arrow {
  font-size: 20px;
  line-height: 1;
}

.hero-mark {
  position: relative;
  z-index: 3;
  align-self: end;
  margin-bottom: 26px;
}

.hero-mark img {
  width: 220px;
  margin-left: auto;
  mix-blend-mode: multiply;
}

.hero-mark p {
  margin: 18px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--ink);
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.quick-links {
  border-bottom: 1px solid var(--line);
  background: var(--ink);
}

.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}

.quick-link {
  min-height: 126px;
  padding: 26px 28px;
  border-right: 1px solid #3a3a3a;
  color: var(--white);
}

.quick-link:last-child {
  border-right: 0;
}

.quick-link small {
  display: block;
  margin-bottom: 10px;
  color: #aaa6a0;
}

.quick-link strong {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 20px;
}

.quick-link strong span {
  color: var(--yellow);
  font-size: 24px;
  transition: transform 180ms ease;
}

.quick-link:hover strong span {
  transform: translateX(5px);
}

.section {
  padding: 92px 0;
  border-bottom: 1px solid var(--line);
}

.section-white {
  background: var(--white);
}

.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 390px);
  gap: 50px;
  align-items: end;
  margin-bottom: 48px;
}

.section-kicker {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.section-head h2,
.page-hero h1 {
  margin: 0;
  font-family: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  font-size: 48px;
  line-height: 1.2;
}

.section-head > p {
  margin: 0;
  color: var(--muted);
}

.section-dark .section-head > p {
  color: #b9b4ad;
}

.event-list {
  border-top: 2px solid var(--ink);
}

.event-row {
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 150px 36px;
  gap: 24px;
  align-items: center;
  min-height: 126px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: padding 180ms ease, background 180ms ease;
}

.event-row:hover {
  padding-right: 14px;
  padding-left: 14px;
  background: rgba(255, 255, 255, 0.7);
}

.event-date {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 29px;
  font-weight: 700;
}

.event-date small {
  display: block;
  color: var(--muted);
  font-family: inherit;
  font-size: 12px;
  font-weight: 400;
}

.event-row h3 {
  margin: 0 0 7px;
  font-size: 20px;
  line-height: 1.4;
}

.event-row p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.tag {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  padding: 3px 10px;
  border: 1px solid currentColor;
  border-radius: 999px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
}

.tag-green {
  color: var(--green);
}

.tag-red {
  color: var(--red);
}

.event-arrow {
  color: var(--red);
  font-size: 25px;
  text-align: right;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #3b3b3b;
  border-left: 1px solid #3b3b3b;
}

.capability {
  min-height: 290px;
  padding: 30px;
  border-right: 1px solid #3b3b3b;
  border-bottom: 1px solid #3b3b3b;
}

.capability-number {
  color: var(--yellow);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 14px;
}

.capability h3 {
  margin: 68px 0 15px;
  font-size: 24px;
}

.capability p {
  margin: 0;
  color: #b9b4ad;
  font-size: 14px;
}

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

.news-card {
  position: relative;
  display: flex;
  min-height: 300px;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  transition: border-color 180ms ease, transform 180ms ease;
}

.news-card:hover {
  border-color: var(--red);
  transform: translateY(-4px);
}

.news-card time {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
}

.news-card h3 {
  margin: 42px 0 12px;
  font-size: 21px;
  line-height: 1.48;
}

.news-card p {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.news-card .read-more {
  margin-top: auto;
  font-weight: 750;
}

.social-band {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(250px, 0.75fr);
  min-height: 460px;
}

.social-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 70px max(40px, calc((100vw - var(--max)) / 2));
  color: var(--white);
  background: var(--red);
}

.social-copy h2 {
  max-width: 700px;
  margin: 0 0 22px;
  font-family: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  font-size: 48px;
  line-height: 1.22;
}

.social-copy p {
  max-width: 620px;
  margin: 0;
}

.qr-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px;
  background:
    linear-gradient(90deg, rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    linear-gradient(rgba(21, 21, 21, 0.06) 1px, transparent 1px),
    var(--yellow);
  background-size: 28px 28px;
}

.qr-panel figure {
  margin: 0;
  text-align: center;
}

.qr-panel img {
  width: 210px;
  border: 10px solid var(--white);
  box-shadow: 10px 10px 0 var(--ink);
}

.qr-panel figcaption {
  margin-top: 22px;
  font-weight: 850;
}

.page-hero {
  position: relative;
  padding: 96px 0 72px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--white);
}

.page-hero::after {
  position: absolute;
  right: 8%;
  bottom: -190px;
  width: 420px;
  height: 420px;
  border: 70px solid rgba(215, 25, 45, 0.08);
  border-radius: 50%;
  content: "";
}

.page-hero .container {
  position: relative;
  z-index: 2;
}

.page-hero h1 {
  max-width: 800px;
  font-size: 58px;
}

.page-hero .lead {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 70px;
}

.prose h2 {
  margin: 0 0 22px;
  font-family: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  font-size: 38px;
  line-height: 1.3;
}

.prose h3 {
  margin-top: 38px;
  font-size: 22px;
}

.prose p {
  color: #494641;
}

.prose .big-copy {
  color: var(--ink);
  font-family: "FZKai-Z03", "STKaiti", "KaiTi", serif;
  font-size: 26px;
  line-height: 1.75;
}

.sidebar {
  align-self: start;
  padding: 26px;
  border-top: 4px solid var(--red);
  background: var(--white);
}

.sidebar h3 {
  margin: 0 0 16px;
}

.sidebar ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.sidebar li {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}

.sidebar li:last-child {
  border-bottom: 0;
}

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

.program-card,
.join-card {
  min-height: 350px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.program-card:nth-child(2) {
  border-top: 6px solid var(--green);
}

.program-card:nth-child(3) {
  border-top: 6px solid var(--blue);
}

.program-card:first-child {
  border-top: 6px solid var(--red);
}

.program-card h2,
.join-card h2 {
  margin: 55px 0 15px;
  font-size: 26px;
}

.program-card ul,
.join-card ul {
  padding-left: 20px;
  color: var(--muted);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr 0.8fr;
  grid-auto-rows: 260px;
  gap: 14px;
}

.gallery-item {
  position: relative;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding: 24px;
  border-radius: 6px;
  color: var(--white);
  background: var(--ink);
}

.gallery-item:first-child {
  grid-row: span 2;
  background: var(--red);
}

.gallery-item:nth-child(2) {
  color: var(--ink);
  background: var(--yellow);
}

.gallery-item:nth-child(3) {
  background: var(--green);
}

.gallery-item:nth-child(4) {
  background: var(--blue);
}

.gallery-item::before {
  position: absolute;
  top: 35px;
  right: 35px;
  width: 110px;
  height: 110px;
  border: 3px solid currentColor;
  border-radius: 50%;
  content: "";
  opacity: 0.24;
}

.gallery-brand {
  justify-content: space-between;
}

.gallery-brand img {
  position: absolute;
  top: 40px;
  left: 50%;
  width: min(68%, 310px);
  border-radius: 50%;
  mix-blend-mode: multiply;
  transform: translateX(-50%);
}

.gallery-item strong {
  position: relative;
  z-index: 2;
  max-width: 250px;
  font-size: 22px;
}

.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 70px;
}

.contact-list {
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.contact-list li {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.contact-list strong {
  color: var(--red);
}

.contact-qr {
  padding: 34px;
  background: var(--white);
}

.contact-qr img {
  width: 250px;
  margin: 0 auto;
}

.contact-qr p {
  margin: 22px 0 0;
  text-align: center;
}

.notice {
  padding: 18px 20px;
  border-left: 4px solid var(--yellow);
  background: #fff8d9;
}

.site-footer {
  color: #c8c3bc;
  background: #101010;
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(150px, 0.6fr));
  gap: 60px;
  padding: 64px 0;
}

.footer-brand {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.footer-brand img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
}

.footer-brand h2 {
  margin: 0 0 8px;
  color: var(--white);
  font-size: 22px;
}

.footer-brand p {
  max-width: 480px;
  margin: 0;
  color: #99948e;
  font-size: 14px;
}

.footer-column h3 {
  margin: 0 0 14px;
  color: var(--white);
  font-size: 14px;
}

.footer-column a {
  display: block;
  padding: 5px 0;
  color: #aaa59f;
  font-size: 14px;
}

.footer-column a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
  border-top: 1px solid #2d2d2d;
  color: #77736e;
  font-size: 12px;
}

.footer-bottom a {
  color: inherit;
  text-decoration: underline;
  text-decoration-color: #55514c;
  text-underline-offset: 3px;
}

.footer-bottom a:hover {
  color: var(--white);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  * {
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 1050px) {
  .site-nav {
    gap: 12px;
  }

  .site-nav a {
    font-size: 13px;
  }

  .brand-name span {
    display: none;
  }

  .hero h1 {
    font-size: 60px;
  }

  .capability-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 68px;
  }

  .container {
    width: min(calc(100% - 28px), var(--max));
  }

  .brand img {
    width: 42px;
    height: 42px;
  }

  .brand-name strong {
    max-width: 210px;
    font-size: 14px;
  }

  .menu-button {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    width: 100vw;
    height: calc(100svh - var(--header-height));
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    padding: 24px;
    background: var(--paper);
    overflow-y: auto;
  }

  .menu-open .site-nav {
    display: flex;
  }

  .site-nav a {
    padding: 16px 4px;
    border-bottom: 1px solid var(--line);
    font-size: 17px;
  }

  .hero,
  .hero-inner {
    min-height: auto;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    padding: 68px 0 38px;
  }

  .hero h1 {
    font-size: 48px;
  }

  .hero-lead {
    font-size: 17px;
  }

  .hero-mark {
    display: flex;
    align-items: end;
    gap: 16px;
    margin: 50px 0 0;
  }

  .hero-mark img {
    width: 130px;
    margin: 0;
  }

  .hero-mark p {
    flex: 1;
  }

  .quick-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-link:nth-child(2) {
    border-right: 0;
  }

  .quick-link:nth-child(-n + 2) {
    border-bottom: 1px solid #3a3a3a;
  }

  .section {
    padding: 68px 0;
  }

  .section-head,
  .content-grid,
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .section-head h2,
  .social-copy h2 {
    font-size: 39px;
  }

  .event-row {
    grid-template-columns: 95px minmax(0, 1fr) 30px;
    gap: 15px;
  }

  .event-row .tag {
    display: none;
  }

  .news-grid,
  .program-grid,
  .join-grid {
    grid-template-columns: 1fr;
  }

  .social-band {
    grid-template-columns: 1fr;
  }

  .social-copy {
    padding: 65px 28px;
  }

  .page-hero {
    padding: 72px 0 56px;
  }

  .page-hero h1 {
    font-size: 46px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-item:first-child {
    grid-row: span 1;
    grid-column: span 2;
  }

  .footer-main {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 520px) {
  .hero h1 {
    font-size: 40px;
  }

  .hero-actions,
  .page-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }

  .quick-grid {
    grid-template-columns: 1fr;
  }

  .quick-link {
    min-height: 100px;
    border-right: 0;
    border-bottom: 1px solid #3a3a3a;
  }

  .quick-link:last-child {
    border-bottom: 0;
  }

  .section-head h2,
  .social-copy h2,
  .prose h2 {
    font-size: 34px;
  }

  .event-row {
    grid-template-columns: 1fr 30px;
    min-height: 0;
    padding: 24px 0;
  }

  .event-date {
    grid-column: 1 / -1;
    font-size: 22px;
  }

  .event-date small {
    display: inline;
    margin-left: 8px;
  }

  .capability-grid {
    grid-template-columns: 1fr;
  }

  .capability {
    min-height: 230px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    grid-auto-rows: 230px;
  }

  .gallery-item:first-child {
    grid-column: span 1;
  }

  .page-hero h1 {
    font-size: 39px;
  }

  .contact-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .footer-main,
  .footer-bottom {
    grid-template-columns: 1fr;
  }

  .footer-main {
    display: grid;
  }

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    display: grid;
  }
}
