:root {
  --brand: #7d2018;
  --brand-deep: #4f1713;
  --accent: #d6a64a;
  --background: #f7f7f5;
  --surface: #ffffff;
  --ink: #251f1c;
  --muted: #665d58;
  --border: #ded9d4;
  --focus: #145d86;
  --shell: 1120px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--background);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", "Microsoft YaHei UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 0.22em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
[hidden] { display: none !important; }

.shell { width: min(calc(100% - 40px), var(--shell)); margin-inline: auto; }
.skip-link { position: fixed; top: 10px; left: 10px; z-index: 20; transform: translateY(-160%); background: #fff; padding: 10px 14px; }
.skip-link:focus { transform: none; }

.site-header { background: var(--surface); border-bottom: 1px solid var(--border); }
.header-inner { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.brand { display: inline-flex; flex: none; text-decoration: none; }
.brand img { width: 158px; height: auto; }
.main-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: clamp(18px, 3vw, 34px); font-size: 15px; font-weight: 650; }
.main-nav a { padding-block: 9px; color: #493d38; text-decoration: none; }
.main-nav a:hover { color: var(--brand); text-decoration: underline; }

.neutral-hero { background: var(--brand); color: #fff; }
.neutral-hero-layout { min-height: 400px; display: flex; align-items: center; padding-block: clamp(64px, 9vw, 104px); }
.brand-note { margin: 0 0 16px; color: #f1d28e; font-weight: 760; }
.neutral-hero h1 { margin: 0; max-width: 12ch; font-family: "Songti SC", SimSun, serif; font-size: clamp(46px, 7vw, 78px); line-height: 1.12; letter-spacing: -0.03em; text-wrap: balance; }
.hero-summary { max-width: 58ch; margin: 28px 0 0; color: #f5e8e4; font-size: 17px; line-height: 1.9; text-wrap: pretty; }

.information-section, .contact-section { padding-block: clamp(68px, 9vw, 108px); }
.contact-section { background: var(--surface); border-top: 1px solid var(--border); }
.information-layout, .contact-layout { display: grid; grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.3fr); gap: clamp(48px, 8vw, 100px); align-items: start; }
.section-intro h2 { margin: 0; font-size: clamp(30px, 4vw, 42px); line-height: 1.25; text-wrap: balance; }
.section-intro p { max-width: 34ch; margin: 18px 0 0; color: var(--muted); }
.information-list, .contact-details { margin: 0; border-top: 1px solid var(--border); }
.information-list > div, .contact-details > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--border); }
dt { color: var(--muted); }
dd { margin: 0; font-weight: 670; overflow-wrap: anywhere; }

.site-footer { padding-block: 34px; background: #2b211e; color: #f7f1ed; }
.footer-layout { display: grid; grid-template-columns: 1.2fr auto auto 1fr; gap: 28px; align-items: center; }
.footer-layout strong { font-family: "Songti SC", SimSun, serif; font-size: 20px; }
.footer-layout p { margin: 4px 0 0; color: #d1c3bd; font-size: 13px; }
.legal-nav, .record-links { display: flex; flex-wrap: wrap; gap: 10px 18px; font-size: 13px; }
.legal-nav a, .record-links a, .staff-entry a { color: #eadfd9; }
.staff-entry { display: grid; gap: 2px; padding-left: 20px; border-left: 1px solid rgba(234, 223, 217, 0.22); font-size: 12px; }
.staff-entry span { color: #ad9e97; white-space: nowrap; }
.record-links { justify-content: flex-end; }

.legal-main, .contact-main { min-height: calc(100vh - 78px); padding-block: clamp(48px, 8vw, 90px); }
.legal-document, .contact-main .contact-layout { max-width: 880px; }
.legal-document > header { padding-bottom: 28px; border-bottom: 2px solid var(--brand); }
.legal-document > header p, .contact-intro > p { margin: 0 0 12px; color: var(--brand); font-weight: 760; }
.legal-document h1, .contact-intro h1 { margin: 0; font-size: clamp(34px, 5vw, 44px); line-height: 1.25; text-wrap: balance; }
.legal-document > header span, .contact-intro > span { display: block; margin-top: 12px; color: var(--muted); }
.legal-document section { padding-block: 26px; border-bottom: 1px solid var(--border); }
.legal-document h2 { margin: 0 0 10px; font-size: 21px; }
.legal-document p { max-width: 72ch; margin: 0; color: #463c37; text-wrap: pretty; }
.legal-notice, .contact-boundary { margin-top: 32px; padding: 20px 22px; border: 1px solid #cbb99d; background: #fff; color: #4b3d35; }
.contact-main .contact-layout { display: block; }
.contact-intro { max-width: 680px; }
.contact-main .contact-details { margin-top: 38px; padding-inline: 24px; background: #fff; border: 1px solid var(--border); }
.contact-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; padding: 0 20px; border: 1px solid var(--brand); text-decoration: none; font-weight: 700; }
.button-primary { background: var(--brand); color: #fff; }
.button-secondary { color: var(--brand); }
.button.is-disabled { opacity: 0.55; cursor: not-allowed; }
.contact-boundary p { margin: 6px 0 0; }

@media (max-width: 760px) {
  .header-inner { align-items: flex-start; flex-direction: column; gap: 4px; padding-block: 14px; }
  .main-nav { width: 100%; justify-content: flex-start; gap: 14px 22px; }
  .neutral-hero-layout { min-height: 340px; }
  .information-layout, .contact-layout { grid-template-columns: 1fr; gap: 38px; }
  .section-intro p { max-width: 60ch; }
  .footer-layout { grid-template-columns: 1fr 1fr; }
  .staff-entry { grid-column: 1 / -1; padding: 14px 0 0; border-top: 1px solid rgba(234, 223, 217, 0.16); border-left: 0; }
  .record-links { grid-column: 1 / -1; justify-content: flex-start; }
}

@media (max-width: 480px) {
  .shell { width: min(calc(100% - 28px), var(--shell)); }
  .neutral-hero-layout { padding-block: 54px 64px; }
  .neutral-hero h1 { font-size: 44px; }
  .information-list > div, .contact-details > div { grid-template-columns: 1fr; gap: 4px; }
  .footer-layout { grid-template-columns: 1fr; }
  .record-links { grid-column: auto; }
  .staff-entry { grid-column: auto; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
