@font-face {
  font-family: "Noto Sans SC";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/noto-sans-sc-400.woff2") format("woff2");
}

@font-face {
  font-family: "Noto Serif SC";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/noto-serif-sc-500.woff2") format("woff2");
}

:root {
  --bg: #f6f4ef;
  --card: #fcfbf8;
  --ink: #1c1b17;
  --ink-soft: #3a3834;
  --muted: #5a554c;
  --line: #b7ab9b;
  --line-strong: #a89886;
  --pine: #1c3830;
  --bronze: #7a5228;
  --header: 4.25rem;
  --max: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --serif: "Noto Serif SC", "Songti SC", "STSong", "PMingLiU", "SimSun", serif;
  --sans: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", "WenQuanYi Micro Hei", sans-serif;
  color-scheme: light;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  font-weight: 400;
  line-height: 1.8;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
p {
  margin: 0;
}

a {
  color: inherit;
}

::selection {
  background: #d5e3db;
  color: var(--ink);
}

:focus {
  outline: none;
}

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

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 50;
  padding: 0.45rem 0.75rem;
  background: var(--ink);
  color: var(--bg);
  text-decoration: none;
}

.skip:focus {
  top: 0.75rem;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  box-sizing: border-box;
  min-height: calc(var(--header) + 3px);
  padding-top: env(safe-area-inset-top);
  background: rgba(246, 244, 239, 0.92);
  border-top: 3px solid var(--pine);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(var(--max), calc(100% - var(--gutter) * 2));
  min-height: var(--header);
  margin-inline: auto;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: inherit;
  font-family: var(--serif);
  font-size: 1.125rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  white-space: nowrap;
}

.brand svg {
  width: 1.85rem;
  height: auto;
  color: var(--pine);
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav a {
  color: var(--ink-soft);
  font-size: 0.9375rem;
  text-decoration: none;
  white-space: nowrap;
}

.nav a:hover,
.nav a.is-active {
  color: var(--pine);
}

.menu-toggle {
  display: none;
  place-items: center;
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--line);
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.bars,
.bars::before,
.bars::after {
  display: block;
  width: 1rem;
  height: 1px;
  background: currentColor;
}

.bars {
  position: relative;
}

.bars::before,
.bars::after {
  content: "";
  position: absolute;
  left: 0;
}

.bars::before {
  top: -6px;
}

.bars::after {
  top: 6px;
}

.menu-toggle[aria-expanded="true"] .bars {
  background: transparent;
}

.menu-toggle[aria-expanded="true"] .bars::before {
  top: 0;
  transform: rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .bars::after {
  top: 0;
  transform: rotate(-45deg);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: calc(100svh - var(--header) - 3px);
  padding-top: clamp(3.5rem, 9vh, 6.5rem);
  padding-bottom: 1.5rem;
}

.kicker {
  margin-bottom: 1.15rem;
  color: var(--pine);
  font-size: 0.8125rem;
  letter-spacing: 0.16em;
}

h1 {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 8vw, 6.25rem);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: 0.03em;
}

.pulse {
  display: block;
  width: min(34rem, 100%);
  height: auto;
  margin: 1.35rem 0 1.4rem;
  color: var(--pine);
}

.tagline {
  max-width: 14em;
  font-family: var(--serif);
  font-size: clamp(1.35rem, 2.2vw, 1.85rem);
  font-weight: 500;
  line-height: 1.55;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.75rem;
  margin-top: 2.4rem;
}

.text-link {
  font-size: 0.9375rem;
  letter-spacing: 0.04em;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
  padding-bottom: 0.12em;
  white-space: nowrap;
}

.text-link::after {
  content: " →";
}

.text-link:hover {
  color: var(--pine);
}

.hero-meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
}

.section {
  padding: clamp(4.25rem, 8vw, 7rem) 0;
  border-top: 1px solid var(--line);
}

.hero + .section {
  border-top: 0;
}

section[id] {
  scroll-margin-top: calc(var(--header) + 1rem);
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.5rem 2.5rem;
  align-items: end;
  margin-bottom: clamp(2rem, 4vw, 3.25rem);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.7rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

.eyebrow span,
.idx {
  color: var(--bronze);
  font-family: var(--serif);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}

h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 500;
  line-height: 1.2;
}

.section-note {
  max-width: 26rem;
  margin: 0;
  justify-self: end;
  color: var(--muted);
  font-size: 0.975rem;
  line-height: 1.75;
}

.prose-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: start;
}

.lead {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.6rem);
  font-weight: 500;
  line-height: 1.65;
}

.prose-split p:last-child {
  color: var(--ink-soft);
}

.strategy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.strategy-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.5rem 1.35rem 1.45rem;
  border: 1px solid var(--line);
  background: var(--card);
}

.strategy-card:hover {
  border-color: #8f8474;
}

.strategy-card .idx {
  display: block;
  margin-bottom: 2.75rem;
  font-size: 0.95rem;
}

.strategy-card h3,
.principles h3 {
  margin-bottom: 0.75rem;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 500;
  line-height: 1.35;
}

.strategy-card p {
  color: var(--ink-soft);
  font-size: 0.975rem;
  line-height: 1.85;
}

.principles {
  margin: 0;
  padding: 0;
  list-style: none;
  border-bottom: 1px solid var(--line);
}

.principles li {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr);
  gap: 0.5rem 1.25rem;
  padding: 1.55rem 0;
  border-top: 1px solid var(--line);
}

.principles .idx {
  padding-top: 0.28rem;
  font-size: 1rem;
}

.principles p {
  max-width: 40rem;
  color: var(--ink-soft);
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem 3.5rem;
  align-items: start;
  padding: clamp(1.4rem, 3vw, 2.25rem);
  border: 1px solid var(--line);
  background: var(--card);
}

.contact-fields {
  display: grid;
  gap: 1.85rem;
}

.field-label {
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
}

.field-value {
  font-family: var(--serif);
  font-size: clamp(1.3rem, 2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.45;
  overflow-wrap: anywhere;
  text-decoration: none;
}

a.field-value {
  border-bottom: 1px solid var(--line);
}

a.field-value:hover {
  border-bottom-color: var(--ink);
}

.qr {
  display: grid;
  place-items: center;
  width: 10.5rem;
  height: 10.5rem;
  border: 1px dashed var(--line-strong);
  color: var(--muted);
  font-size: 0.8125rem;
  line-height: 1.65;
  text-align: center;
}

.qr.has-image {
  padding: 0.45rem;
  border-style: solid;
  background: #fff;
}

.qr img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.site-footer {
  padding: 0 0 2rem;
  color: var(--muted);
  font-size: 0.875rem;
  line-height: 1.75;
}

.disclaimer {
  max-width: 44rem;
  margin: 0;
  padding-top: 0.25rem;
}

.disclaimer-label {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-size: 0.8125rem;
  letter-spacing: 0.12em;
}

.footer-bar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

@media (max-width: 960px) {
  .strategy-grid {
    grid-template-columns: 1fr;
  }

  .strategy-card .idx {
    margin-bottom: 1.25rem;
  }
}

@media (max-width: 800px) {
  .section-head,
  .prose-split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .section-note {
    justify-self: start;
  }

  .hero-meta {
    flex-direction: column;
    gap: 0.25rem;
  }
}

@media (max-width: 760px) {
  .menu-toggle {
    display: grid;
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.15rem var(--gutter) 0.85rem;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
  }

  .site-header:has(.nav.is-open) {
    background: var(--bg);
    border-bottom-color: transparent;
  }

  body.nav-open {
    overflow: hidden;
  }

  .nav.is-open {
    display: flex;
  }

  .nav a {
    padding: 0.9rem 0;
    border-top: 1px solid var(--line);
  }

  .hero-inner {
    min-height: calc(100svh - var(--header) - 3px);
    padding-top: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .bars,
  .bars::before,
  .bars::after {
    transition: none;
  }
}

@media print {
  .site-header {
    position: static;
  }

  .menu-toggle {
    display: none;
  }

  .nav {
    display: flex;
    position: static;
  }

  .hero-inner {
    min-height: 0;
  }
}
