:root {
  color-scheme: light;
  --red-900: #4c0d12;
  --red-800: #76151c;
  --red-700: #a91e2a;
  --gold-600: #c78c2c;
  --gold-100: #fff2d1;
  --ink: #201819;
  --muted: #685f5b;
  --paper: #fffaf0;
  --ivory: #f7efe3;
  --stone: #e4dbce;
  --green: #4d6a57;
  --white: #ffffff;
  --shadow: 0 18px 50px rgba(45, 14, 16, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family:
    "Microsoft YaHei",
    "PingFang SC",
    "Noto Sans SC",
    Arial,
    sans-serif;
  line-height: 1.6;
}

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

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 18px clamp(18px, 4vw, 56px);
  color: var(--white);
  background: linear-gradient(180deg, rgba(35, 9, 11, 0.78), rgba(35, 9, 11, 0));
}

.brand,
.site-nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  width: 18px;
  height: 18px;
  background: var(--gold-600);
  clip-path: polygon(50% 0, 62% 34%, 98% 34%, 69% 55%, 80% 90%, 50% 68%, 20% 90%, 31% 55%, 2% 34%, 38% 34%);
}

.site-nav {
  gap: clamp(14px, 3vw, 34px);
  font-size: 15px;
}

.site-nav a {
  position: relative;
  padding: 6px 0;
}

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

.site-nav a:hover::after,
.site-nav a:focus-visible::after {
  transform: scaleX(1);
}

.hero {
  position: relative;
  display: grid;
  min-height: 76vh;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(58, 10, 13, 0.84), rgba(78, 13, 17, 0.58) 44%, rgba(42, 12, 12, 0.15)),
    url("assets/hero-history.png") center / cover no-repeat;
}

.hero-overlay {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, rgba(255, 250, 240, 0), var(--paper));
  z-index: -1;
}

.hero-content {
  width: min(760px, calc(100% - 36px));
  margin: auto 0 8vh;
  padding-left: clamp(18px, 7vw, 96px);
  color: var(--white);
}

.eyebrow,
.section-kicker {
  margin: 0 0 12px;
  color: var(--gold-100);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0;
}

.section-kicker {
  color: var(--red-700);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  font-size: clamp(42px, 7vw, 82px);
  line-height: 1.05;
  letter-spacing: 0;
}

h1 span {
  display: block;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 2vw, 22px);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.primary-link,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 6px;
  font-weight: 700;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease;
}

.primary-link {
  color: var(--red-900);
  background: var(--gold-100);
  box-shadow: 0 12px 30px rgba(31, 7, 9, 0.2);
}

.secondary-link {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
}

.primary-link:hover,
.secondary-link:hover,
.primary-link:focus-visible,
.secondary-link:focus-visible {
  transform: translateY(-2px);
}

.section-inner {
  width: min(1120px, calc(100% - 36px));
  margin: 0 auto;
}

.band {
  background:
    linear-gradient(90deg, rgba(255, 242, 209, 0.54), rgba(247, 239, 227, 0.2)),
    var(--ivory);
}

.intro {
  padding: clamp(44px, 7vw, 76px) 0;
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(260px, 1.2fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: start;
}

h2 {
  margin-bottom: 16px;
  color: var(--red-900);
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

.intro-grid p:last-child,
.practice-layout > .section-heading p {
  color: var(--muted);
  font-size: 18px;
}

.stats {
  padding: 0 0 clamp(50px, 7vw, 90px);
}

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

.stats article,
.feature-card,
.practice-list article {
  border: 1px solid rgba(118, 21, 28, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.stats article {
  min-height: 130px;
  padding: 24px;
}

.stats strong {
  display: block;
  margin-bottom: 10px;
  color: var(--red-800);
  font-size: 22px;
}

.stats span {
  color: var(--muted);
}

.timeline-section,
.practice-section {
  padding: clamp(56px, 8vw, 96px) 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: clamp(30px, 5vw, 52px);
}

.timeline {
  position: relative;
  display: grid;
  gap: 18px;
  padding-left: 24px;
}

.timeline::before {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 4px;
  width: 2px;
  content: "";
  background: linear-gradient(var(--red-700), var(--gold-600), var(--green));
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 98px minmax(0, 1fr);
  gap: clamp(18px, 4vw, 36px);
  align-items: start;
  padding: 22px 0 22px 26px;
}

.timeline-item::before {
  position: absolute;
  top: 30px;
  left: -27px;
  width: 14px;
  height: 14px;
  border: 3px solid var(--paper);
  border-radius: 999px;
  content: "";
  background: var(--red-700);
  box-shadow: 0 0 0 5px rgba(169, 30, 42, 0.14);
}

.timeline-item time {
  color: var(--red-700);
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.timeline-item h3,
.feature-card h3,
.practice-list h3 {
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.3;
}

.timeline-item p,
.feature-card p,
.practice-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.spirit-section {
  padding: clamp(56px, 8vw, 96px) 0;
  background:
    linear-gradient(180deg, rgba(255, 250, 240, 0), var(--paper)),
    radial-gradient(circle at 12% 16%, rgba(199, 140, 44, 0.18), rgba(199, 140, 44, 0) 24%),
    var(--paper);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.feature-card {
  min-height: 230px;
  padding: 24px;
}

.card-number {
  display: inline-block;
  margin-bottom: 32px;
  color: var(--gold-600);
  font-size: 14px;
  font-weight: 800;
}

.practice-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.85fr) minmax(320px, 1.15fr);
  gap: clamp(30px, 6vw, 86px);
  align-items: start;
}

.practice-list {
  display: grid;
  gap: 14px;
}

.practice-list article {
  padding: 22px 24px;
  border-left: 5px solid var(--green);
}

.site-footer {
  padding: 30px 18px;
  color: rgba(255, 255, 255, 0.78);
  text-align: center;
  background: var(--red-900);
}

.site-footer p {
  margin: 0;
}

@media (max-width: 860px) {
  .site-header {
    align-items: flex-start;
    gap: 14px;
    padding: 14px 18px;
  }

  .site-nav {
    gap: 12px;
    max-width: 58%;
    justify-content: flex-end;
    flex-wrap: wrap;
    font-size: 13px;
  }

  .hero {
    min-height: 72vh;
    background-position: 58% center;
  }

  .hero-content {
    margin-bottom: 7vh;
    padding-left: 18px;
  }

  .intro-grid,
  .practice-layout,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 560px) {
  .site-header {
    position: absolute;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .brand span:last-child {
    white-space: nowrap;
  }

  .site-nav {
    width: 100%;
    max-width: none;
    justify-content: flex-start;
    gap: 18px;
    padding-left: 28px;
  }

  h1 {
    font-size: 38px;
  }

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

  .primary-link,
  .secondary-link {
    width: 100%;
  }

  .timeline {
    padding-left: 16px;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding-left: 22px;
  }

  .timeline-item::before {
    left: -23px;
  }

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