:root {
  --ink: #1c1914;
  --muted: #5e584e;
  --navy: #14283d;
  --bronze: #8d6232;
  --paper: #f3efe6;
  --card: #fbf8f2;
  --line: #e2d8c8;
  --teal: #1d5c57;
  --serif: "Songti SC", "Noto Serif SC", "Source Han Serif SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.3; margin: 0; }
p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }

.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }
.narrow { width: min(760px, 100%); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 239, 230, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  min-height: 78px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex-shrink: 0; }
.mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--navy);
  color: #f6f1e7;
  font-family: var(--serif);
  font-size: 22px;
}
.brand-text { display: grid; }
.brand-text strong { font-size: 16px; }
.brand-text small { color: var(--muted); font-size: 12px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; color: var(--navy); padding: 6px 0; }
.nav a.on { box-shadow: inset 0 -2px 0 var(--bronze); }
.nav-toggle {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  opacity: 0;
  pointer-events: none;
}
.nav-burger { display: none; }

.hero {
  background:
    linear-gradient(180deg, rgba(196, 165, 116, 0.18), transparent 32%),
    var(--navy);
  color: #f6f1e7;
  padding: 72px 0 64px;
}
.hero-grid, .split, .contact-grid, .footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: start;
}
.hero-grid > *, .split > *, .contact-grid > *, .footer-grid > * { min-width: 0; }
.eyebrow, .kicker, .panel-kicker, .footer-label {
  color: var(--bronze);
  letter-spacing: 0.16em;
  font-size: 13px;
  margin-bottom: 12px;
}
.hero h1, .page-hero h1 { font-size: clamp(36px, 5vw, 58px); }
.lede { margin-top: 18px; font-size: 18px; max-width: 40rem; }
.lede.dark { color: var(--muted); }
.hero-actions, .cta-inner, .section-head, .filters {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}
.hero-actions { margin-top: 28px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  background: var(--bronze);
  color: #fffaf3;
  text-decoration: none;
  border: 1px solid var(--bronze);
  cursor: pointer;
}
.btn-ghost { background: transparent; color: #f6f1e7; border-color: rgba(246, 241, 231, 0.45); }
.hero-panel {
  border: 1px solid rgba(246, 241, 231, 0.2);
  padding: 22px 22px 8px;
  background: rgba(255, 255, 255, 0.03);
}
.hero-panel ol { list-style: none; margin: 0; padding: 0; }
.hero-panel li { padding: 14px 0; border-top: 1px solid rgba(246, 241, 231, 0.12); display: grid; gap: 4px; }
.hero-panel span { color: #d9d0c3; font-size: 14px; }

.section { padding: 72px 0; }
.section-alt { background: #e9e2d4; }
.section h2 { font-size: clamp(28px, 3vw, 40px); }
.section-head { justify-content: space-between; margin-bottom: 28px; }
.section-more { margin-top: 22px; display: flex; gap: 22px; }
.fact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 22px 28px; margin-top: 40px; }
.fact { border-top: 2px solid var(--navy); padding-top: 14px; }
.fact p { color: var(--ink); margin: 10px 0 0; line-height: 1.7; }
.about-copy { white-space: pre-wrap; font-size: 17px; line-height: 1.9; }
.text-link { color: var(--teal); }
.empty { color: var(--muted); }

.card-grid, .service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.service-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card, .service, .contact-card {
  background: var(--card);
  border: 1px solid var(--line);
}
a.card {
  display: flex;
  flex-direction: column;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
a.card:hover { border-color: var(--navy); }
.card-cover { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: #ddd4c4; }
.card-cover img, .article-cover { width: 100%; height: 100%; object-fit: cover; }
.card-body, .service, .contact-card { padding: 18px; }
.card-body { display: flex; flex-direction: column; flex: 1; }
.card h3 { font-size: 22px; margin: 8px 0; }
.related a { text-decoration: none; }
.card p, .service p { color: var(--muted); }
.meta { display: flex; gap: 12px; color: var(--bronze); font-size: 13px; }
.meta.quiet { color: var(--muted); margin-top: 12px; }
.service h3, .service h2 { margin-bottom: 8px; }
.index { color: var(--bronze); font-family: var(--serif); margin-bottom: 8px; }

.page-hero { padding: 56px 0 8px; }
.filters { margin-top: 22px; }
.filters a { text-decoration: none; border: 1px solid var(--line); background: var(--card); padding: 6px 12px; }
.filters a.on { background: var(--navy); color: #f6f1e7; border-color: var(--navy); }

.article-layout { width: min(760px, calc(100% - 40px)); }
.article-head { margin-bottom: 22px; }
.article-head h1 { font-size: clamp(32px, 4vw, 48px); margin: 8px 0; }
.summary { margin-top: 16px; color: var(--muted); font-size: 18px; }
.article-cover { margin: 8px 0 24px; max-height: 460px; object-fit: cover; }
.prose { font-size: 17px; line-height: 1.95; }
.prose h2, .prose h3 { margin: 1.4em 0 0.4em; }
.prose p, .prose ul, .prose ol, .prose blockquote { margin: 0 0 1em; }
.prose a { color: var(--teal); }
.prose blockquote { border-left: 3px solid var(--bronze); padding-left: 14px; color: var(--muted); }
.related { display: grid; gap: 10px; margin-top: 18px; }
.related a { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.related span { color: var(--muted); font-size: 13px; }

.cta { padding-top: 0; }
.cta-inner {
  background: var(--navy);
  color: #f6f1e7;
  padding: 36px;
  justify-content: space-between;
}
.contact-grid { align-items: stretch; }
.form, .contact-card { display: grid; gap: 14px; align-content: start; }
.form { background: var(--card); border: 1px solid var(--line); padding: 22px; }
label { display: grid; gap: 6px; font-size: 14px; }
input, textarea, select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: #fff;
}
textarea { resize: vertical; }
.form-ok { background: #e5f0ea; padding: 10px 12px; }
.form-error { background: #f8e6e0; padding: 10px 12px; }

.site-footer { background: var(--navy); color: #f6f1e7; padding: 48px 0 20px; }
.footer-name { font-family: var(--serif); font-size: 22px; margin-bottom: 10px; }
.footer-note, .site-footer p { color: #d9d0c3; }
.site-footer a { color: #f6f1e7; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid rgba(246, 241, 231, 0.15);
  color: #d9d0c3;
  font-size: 13px;
}

@media (max-width: 980px) {
  .header-inner { flex-wrap: wrap; }
  .nav-burger {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--line);
    background: var(--card);
  }
  .nav { display: none; width: 100%; margin-left: 0; flex-direction: column; gap: 4px; padding-bottom: 12px; }
  .nav-toggle:checked ~ .nav { display: flex; }
  .hero-grid, .split, .contact-grid, .footer-grid, .card-grid, .service-grid { grid-template-columns: 1fr; }
  .hero, .section { padding: 42px 0; }
  .cta-inner, .footer-bottom { align-items: flex-start; flex-direction: column; }
}
