:root {
  --paper: #f6efe1;
  --paper-deep: #ead9bb;
  --ink: #211b16;
  --muted: #6f6254;
  --red: #a72b24;
  --red-dark: #7e1e1a;
  --brass: #b88945;
  --line: rgba(33, 27, 22, 0.16);
  --shadow: 0 24px 70px rgba(46, 31, 17, 0.16);
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: "Noto Serif SC", "Songti SC", "Microsoft YaHei", serif;
  background:
    radial-gradient(circle at 20% 10%, rgba(184, 137, 69, 0.18), transparent 24rem),
    linear-gradient(90deg, rgba(167, 43, 36, 0.05) 1px, transparent 1px),
    linear-gradient(var(--paper), #fff8ea 56%, var(--paper));
  background-size: auto, 32px 32px, auto;
  line-height: 1.7;
}

body.nav-open {
  overflow: hidden;
}

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

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

code {
  padding: 0.08rem 0.32rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 249, 238, 0.72);
  font-family: Consolas, "Microsoft YaHei", monospace;
  font-size: 0.92em;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 18px 0;
  transition: padding 180ms ease, background 180ms ease;
}

.site-header.is-scrolled {
  width: 100%;
  max-width: none;
  padding: 10px max(16px, calc((100vw - var(--max)) / 2));
  background: rgba(246, 239, 225, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

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

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  color: #fff7ea;
  background: var(--red);
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px rgba(255, 250, 238, 0.34);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: 0;
}

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

.brand-text strong {
  font-size: 1.02rem;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  color: var(--muted);
  font-size: 0.96rem;
}

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

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 2px;
  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:focus-visible::after {
  transform: scaleX(1);
}

.nav-toggle {
  display: none;
}

.section-kicker {
  margin: 0 0 16px;
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section h2,
.video-section h2,
.contact h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 4.6rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.btn.primary {
  color: #fff8ea;
  background: var(--red);
  box-shadow: 0 14px 28px rgba(126, 30, 26, 0.24);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  background: var(--red-dark);
}

.btn.secondary {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255, 248, 234, 0.66);
}

.btn.wide {
  width: 100%;
}

.section,
.video-section,
.contact {
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: clamp(72px, 10vw, 128px) 0;
}

.section-grid,
.video-section,
.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.75fr) minmax(0, 1fr);
  gap: clamp(28px, 6vw, 78px);
}

.section-lead,
.video-copy p,
.contact-copy p {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
}

.copy-block {
  max-width: 72ch;
  color: #4d4137;
  font-size: 1.06rem;
  line-height: 1.95;
  text-align: justify;
  text-justify: inter-ideograph;
}

.copy-block p {
  margin: 0 0 1.15em;
  text-indent: 2em;
}

.copy-block p:first-child {
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
  line-height: 1.75;
}

.video-section {
  align-items: center;
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - var(--max)) / 2));
  padding-left: max(16px, calc((100vw - var(--max)) / 2));
  background: #261a15;
  color: #fff5e4;
}

.video-section h2,
.video-section .section-kicker {
  color: #fff5e4;
}

.video-copy p {
  color: #d9c7ac;
}

.video-frame {
  overflow: hidden;
  border: 1px solid rgba(255, 245, 228, 0.18);
  background: #130e0b;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.22);
}

.video-frame video {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.contact {
  align-items: stretch;
  width: 100%;
  max-width: none;
  padding-right: max(16px, calc((100vw - var(--max)) / 2));
  padding-left: max(16px, calc((100vw - var(--max)) / 2));
  background: var(--red);
  color: #fff6e8;
}

.contact h2,
.contact .section-kicker {
  color: #fff6e8;
}

.contact-copy p {
  color: #f2d9c8;
}

.contact-panel {
  padding: clamp(24px, 5vw, 42px);
  background: #fff6e8;
  color: var(--ink);
}

.contact-panel p {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 16px;
  margin: 0;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

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

.contact-panel .btn {
  margin-top: 24px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: min(100% - 32px, var(--max));
  margin: 0 auto;
  padding: 28px 0 82px;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer p {
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 980px) {
  .section-grid,
  .video-section,
  .contact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body {
    background-size: auto, 24px 24px, auto;
  }

  .site-header {
    width: 100%;
    padding: 10px 16px;
    background: rgba(246, 239, 225, 0.94);
    border-bottom: 1px solid var(--line);
    backdrop-filter: blur(12px);
  }

  .brand-mark {
    width: 44px;
    height: 44px;
    font-size: 0.88rem;
  }

  .brand-text strong {
    max-width: 11em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 0.94rem;
  }

  .brand-text small {
    font-size: 0.58rem;
  }

  .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 248, 234, 0.72);
  }

  .nav-toggle span {
    width: 20px;
    height: 2px;
    margin: 2px 0;
    background: var(--ink);
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-open .nav-toggle span:nth-child(1) {
    transform: translateY(6px) rotate(45deg);
  }

  .nav-open .nav-toggle span:nth-child(2) {
    opacity: 0;
  }

  .nav-open .nav-toggle span:nth-child(3) {
    transform: translateY(-6px) rotate(-45deg);
  }

  .site-nav {
    position: fixed;
    inset: 65px 12px auto;
    display: grid;
    gap: 0;
    padding: 10px;
    background: #fff7ea;
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .nav-open .site-nav {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .site-nav a {
    min-height: 48px;
    padding: 12px;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
  }

  .site-nav a:last-child {
    border-bottom: 0;
  }

  .site-nav a::after {
    display: none;
  }

  .section,
  .video-section,
  .contact {
    width: 100%;
    padding: 64px 16px;
  }

  .copy-block {
    max-width: none;
    font-size: 1rem;
    line-height: 1.86;
    text-align: left;
  }

  .copy-block p {
    margin-bottom: 1em;
  }

  .contact-panel p {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .site-footer {
    display: grid;
    width: 100%;
    padding: 24px 16px;
  }
}
