:root {
  --bg: #f6efe4;
  --bg-alt: #efe4d4;
  --paper: #fffaf3;
  --ink: #2c1c14;
  --muted: #6d5748;
  --line: #e0d0bc;
  --accent: #a24b28;
  --accent-ink: #fffaf3;
  --shadow: 0 18px 40px rgba(44, 28, 20, 0.08);
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --measure: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--ink);
  color: var(--paper);
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(246, 239, 228, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 650;
  letter-spacing: 0.08em;
}
.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--paper);
}

.nav { display: flex; gap: 8px; flex-wrap: wrap; }
.nav a {
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--muted);
}
.nav a:hover, .nav a:focus-visible { color: var(--ink); background: var(--paper); }

.menu-btn {
  font: inherit;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 999px;
  padding: 8px 14px;
  min-height: 40px;
}

.hero { padding: 56px 0 72px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  letter-spacing: 0.16em;
  font-size: 13px;
  font-weight: 650;
}

h1, h2 { font-weight: 650; line-height: 1.2; margin: 0 0 16px; }
h1 { font-size: clamp(48px, 8vw, 80px); letter-spacing: 0.12em; }
h2 { font-size: clamp(28px, 4vw, 40px); }

.lead, .prose { color: var(--muted); max-width: 36em; margin: 0 0 16px; }
.lead { font-size: 19px; }

.cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  border: 1px solid var(--ink);
  background: transparent;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-ink);
}
.btn:hover, .btn:focus-visible { transform: translateY(-1px); }

.hero-mark {
  margin: 0;
  background: var(--paper);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 28px;
}
.hero-mark img { margin: 0 auto; width: min(100%, 420px); }

.block { padding: 72px 0; }
.block.alt { background: var(--bg-alt); }
.note {
  display: inline-block;
  margin: 8px 0 0;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 40px 0 56px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer p { margin: 0 0 8px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 800px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero { padding: 32px 0 48px; }
  .block { padding: 56px 0; }
  .menu-btn[hidden] { display: inline-flex; }
  .nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 0 0 16px;
  }
  .bar { flex-wrap: wrap; }
  .site-header.is-open .nav { display: flex; }
}

@media (min-width: 801px) {
  .menu-btn { display: none !important; }
  .nav { display: flex !important; }
}
