:root {
  color-scheme: light;
  --paper: #f7f3eb;
  --paper-deep: #eee6d8;
  --ink: #29261f;
  --muted: #746c5e;
  --accent: #8f5b32;
  --accent-soft: #dec3a6;
  --line: rgba(70, 55, 38, .16);
  --card: rgba(255, 253, 248, .78);
  --shadow: 0 20px 60px rgba(62, 44, 25, .10);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 5%, rgba(195, 151, 103, .13), transparent 30rem),
    var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", "Noto Sans SC", sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: 4px; }
.wrap { width: min(1120px, calc(100% - 40px)); margin: 0 auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(247, 243, 235, .88);
  backdrop-filter: blur(18px);
}
.nav {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 5px 16px rgba(60,40,20,.14); }
.nav-links, .footer-links { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; }
.nav-links a, .footer-links a { color: var(--muted); font-size: 14px; text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current="page"], .footer-links a:hover { color: var(--accent); }
.lang-link { padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; }

.page-hero { padding: 94px 0 76px; border-bottom: 1px solid var(--line); }
.eyebrow { margin-bottom: 18px; color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .18em; }
h1 { margin: 0; max-width: 800px; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: clamp(42px, 7vw, 80px); font-weight: 500; line-height: 1.08; letter-spacing: -.045em; }
.lead { max-width: 700px; margin: 25px 0 0; color: var(--muted); font-size: 18px; }

.content-layout { display: grid; grid-template-columns: 220px minmax(0, 720px); gap: 72px; justify-content: center; padding-top: 72px; padding-bottom: 110px; }
.side-note { align-self: start; position: sticky; top: 110px; padding: 20px; border-left: 2px solid var(--accent-soft); color: var(--muted); font-size: 13px; }
.side-note strong { display: block; margin-bottom: 8px; color: var(--ink); font-size: 14px; }
.prose h2 { margin: 54px 0 16px; font-family: "Songti SC", "Noto Serif SC", Georgia, serif; font-size: 27px; line-height: 1.3; }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { color: #4f493f; }
.prose ul { padding-left: 1.35em; }
.prose li + li { margin-top: 7px; }
.prose a { color: var(--accent); }

.faq { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; padding: 22px 0; font-weight: 650; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; float: right; color: var(--accent); font-size: 20px; font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { margin: -5px 0 23px; }
.contact-card { margin-top: 58px; padding: 30px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow); }
.contact-card h2 { margin-top: 0; }

.home-hero { min-height: calc(100vh - 72px); display: grid; place-items: center; padding: 80px 0; }
.home-card { text-align: center; }
.home-icon { width: 96px; height: 96px; border-radius: 24px; box-shadow: var(--shadow); }
.home-card h1 { margin: 28px auto 0; }
.home-card .lead { margin-left: auto; margin-right: auto; }
.home-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }
.button { display: inline-flex; padding: 12px 19px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.62); text-decoration: none; }
.button.primary { color: white; background: var(--accent); border-color: var(--accent); }

.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }

@media (max-width: 760px) {
  .wrap, .nav { width: min(100% - 28px, 1120px); }
  .nav { min-height: 64px; }
  .nav-links { gap: 12px; }
  .nav-links a:first-child { display: none; }
  .page-hero { padding: 66px 0 52px; }
  h1 { font-size: clamp(40px, 13vw, 60px); }
  .lead { font-size: 16px; }
  .content-layout { display: block; padding-top: 42px; padding-bottom: 72px; }
  .side-note { position: static; margin-bottom: 48px; }
  .prose h2 { font-size: 24px; }
  .contact-card { padding: 22px; }
  .footer-inner { padding: 26px 0; align-items: flex-start; flex-direction: column; }
}
