:root {
  --bg: #f3efe6;
  --bg-raised: #fffcf8;
  --ink: #1c1914;
  --muted: #5c564c;
  --faint: #8a8176;
  --line: #e3dbcf;
  --deep: #1e3a34;
  --deep-2: #16302b;
  --accent: #9a4312;
  --glow: rgba(196, 122, 46, 0.18);
  --shadow: 0 18px 50px rgba(48, 36, 18, 0.08);
  --sans: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Songti SC", "SimSun", serif;
  --max: 1080px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 100% -10%, var(--glow), transparent 60%),
    var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.7;
}
a { color: inherit; }
img { max-width: 100%; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--deep);
  color: #fff;
  padding: 8px 12px;
  z-index: 10;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(16px);
  background: rgba(243, 239, 230, 0.9);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.header-inner {
  display: flex;
  align-items: center;
  gap: 28px;
  min-height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: -0.03em;
  font-size: 1.15rem;
}
.mark {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, #f3d7a1, #c47a2e 42%, #1e3a34 43%);
  box-shadow: 0 0 0 4px rgba(196, 122, 46, 0.15);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
  margin-left: auto;
}
.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}
.site-nav a[aria-current="page"] { color: var(--ink); }
.nav-toggle {
  display: none;
  margin-left: auto;
  border: 1px solid var(--line);
  background: var(--bg-raised);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  cursor: pointer;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 20px;
  font-weight: 600;
  border: 1px solid transparent;
}
.btn-primary { background: var(--deep); color: #f7f3ea; }
.btn-primary:hover { background: var(--deep-2); }
.btn-ghost {
  background: transparent;
  border-color: var(--line);
  color: var(--ink);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.6); }
.site-nav .btn { padding: 8px 14px; font-size: 0.92rem; }

.hero { padding: 72px 0 28px; }
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}
.kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #c47a2e;
}
h1 {
  font-family: var(--serif);
  font-weight: 560;
  font-size: clamp(2.5rem, 6vw, 4.4rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  margin: 14px 0 18px;
}
.lede {
  max-width: 38rem;
  font-size: 1.15rem;
  color: var(--muted);
  margin: 0 0 28px;
}
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 48px;
  align-items: end;
}
.aside-card {
  background: var(--deep);
  color: #f4efe6;
  border-radius: 22px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow);
}
.aside-card p { margin: 0 0 14px; color: rgba(244, 239, 230, 0.78); }
.aside-card strong { color: #fff; font-weight: 640; }
.aside-card ol {
  margin: 0;
  padding-left: 1.1rem;
}
.aside-card li { margin: 8px 0; }

.section { padding: 28px 0 10px; }
.section h2 {
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 560;
  letter-spacing: -0.03em;
  margin: 0 0 8px;
}
.section-lead { color: var(--muted); margin: 0 0 22px; max-width: 40rem; }

.trio {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 22px 18px;
}
.card h3 { margin: 0 0 8px; font-size: 1.12rem; }
.card p { margin: 0; color: var(--muted); }

.scenes { display: grid; gap: 0; border-top: 1px solid var(--line); }
.scene {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.scene span {
  color: var(--accent);
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.scene h3 { margin: 0 0 6px; font-size: 1.08rem; }
.scene p { margin: 0; color: var(--muted); }

.vision {
  margin: 36px 0 10px;
  padding: 36px 0;
  border-top: 1px solid var(--line);
}
.vision blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.vision figcaption { margin-top: 14px; color: var(--faint); }

.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2rem; }
.prose p { color: var(--muted); }
.prose strong { color: var(--ink); font-weight: 650; }

.stack { display: grid; gap: 14px; }
.block {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px 24px;
}
.block h2 { margin: 0 0 8px; font-size: 1.25rem; font-family: var(--serif); font-weight: 560; }
.block p { margin: 0; color: var(--muted); }
.block p + p { margin-top: 8px; }

.spec {
  display: grid;
  gap: 0;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
}
.spec div {
  display: grid;
  grid-template-columns: 120px 1fr 1fr;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--line);
}
.spec div:first-child { border-top: 0; background: #f7f1e6; }
.spec dt { font-weight: 700; }
.spec dd { margin: 0; color: var(--muted); }
.spec .head dd { color: var(--ink); font-weight: 700; }
.spec .tag { display: none; }

.note {
  margin-top: 18px;
  padding: 16px 18px;
  border-left: 3px solid #c47a2e;
  background: rgba(255, 252, 248, 0.7);
  color: var(--muted);
}
.download-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: var(--deep);
  color: #f4efe6;
  border-radius: 22px;
  padding: 26px;
  margin: 8px 0 28px;
}
.download-panel p { margin: 6px 0 0; color: rgba(244, 239, 230, 0.75); }
.download-panel .btn-primary { background: #f4efe6; color: var(--deep); }
.download-panel .btn-primary:hover { background: #fff; }

.site-footer {
  margin-top: 48px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--faint);
  font-size: 0.92rem;
}
.site-footer a { color: var(--accent); }
.site-footer p { margin: 6px 0; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 860px) {
  .hero-grid, .trio { grid-template-columns: 1fr; }
  .scene { grid-template-columns: 1fr; gap: 4px; }
  .spec div { grid-template-columns: 1fr; gap: 4px; }
  .spec .head { display: none; }
  .spec .tag {
    display: inline-block;
    margin-right: 8px;
    color: var(--faint);
    font-size: 0.78rem;
    letter-spacing: 0.04em;
  }
  .nav-toggle { display: inline-flex; }
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 72px;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 20px 20px;
    background: rgba(243, 239, 230, 0.98);
    border-bottom: 1px solid var(--line);
  }
  .site-nav.is-open { display: flex; }
}
