:root {
  --paper: #f6f3ec;
  --paper-deep: #ebe6db;
  --ink: #1a1814;
  --muted: #3f3a33;
  --rule: #ddd6c8;
  --pine: #1e4636;
  --pine-deep: #16362a;
  --focus: #9a3412;
  color-scheme: light;
  --sans: "Avenir Next", "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Noto Sans CJK SC", "Microsoft YaHei", sans-serif;
  --serif: "Iowan Old Style", Palatino, "Palatino Linotype", "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  padding: 0.5rem 0.75rem;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-160%);
  z-index: 2;
}

.skip:focus {
  transform: none;
}

a {
  color: var(--pine);
}

a:hover {
  color: var(--pine-deep);
}

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

.site-header,
.site-footer,
.hero,
.measure {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 1.5rem;
  flex-wrap: wrap;
  padding: 1rem 0;
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
}

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

.mark {
  display: block;
  color: var(--pine);
}

.nav-primary,
.nav-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1.25rem;
}

.nav-primary a,
.nav-footer a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.28em;
}

.nav-primary a {
  text-decoration: none;
}

.nav-primary a:hover,
.nav-primary a[aria-current="page"] {
  text-decoration: underline;
}

.nav-primary a[aria-current="page"] {
  font-weight: 600;
}

.hero {
  padding: 4.5rem 0 4rem;
}

.eyebrow,
.en-label {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 0.95;
}

.hero-en {
  display: block;
  margin-bottom: 0.35rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-zh {
  display: block;
  font-size: clamp(4.75rem, 16vw, 9.5rem);
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.lede {
  margin: 1.25rem 0 0.35rem;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  line-height: 1.35;
}

.lede-en {
  margin: 0.15rem 0 0.85rem;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.0625rem;
  line-height: 1.45;
}

.one-liner {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
}

.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin: 1.75rem 0 0;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 1.25rem;
  background: var(--pine);
  color: #f6f3ec;
  border-radius: 4px;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  background: var(--pine-deep);
  color: #f6f3ec;
}

.cta-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.7rem 0.15rem;
  color: var(--ink);
  font-weight: 600;
}

.cta-disabled,
.cta-disabled:hover {
  background: var(--rule);
  color: #6f685f;
  cursor: default;
  pointer-events: none;
}

.panel {
  background: var(--paper-deep);
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 4rem 0 4.5rem;
}

.strip {
  width: min(72rem, calc(100% - 2.5rem));
  margin-inline: auto;
  border-top: 1px solid var(--rule);
  padding: 2rem 0 2.5rem;
}

.strip p {
  margin: 0;
  color: var(--muted);
}

.measure {
  width: min(40rem, calc(100% - 2.5rem));
}

h2 {
  margin: 0 0 0.75rem;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

h3 {
  margin: 1.5rem 0 0.5rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.35;
}

#desk,
#en,
#zh,
#contact {
  scroll-margin-top: 1.25rem;
}

.prose h2 {
  margin-top: 2rem;
}

p {
  text-wrap: pretty;
}

.prose p,
.prose ul {
  margin: 0.75rem 0 0;
}

.prose ul {
  padding-left: 1.15rem;
}

.prose li + li {
  margin-top: 0.35rem;
}

.page {
  padding: 3rem 0 4rem;
}

.page h1 {
  font-size: clamp(2.4rem, 5vw, 3.6rem);
  line-height: 1.1;
}

.lang-switch {
  display: flex;
  gap: 1rem;
  margin: 1rem 0 0;
}

.credit-line {
  margin-top: 1.5rem;
  font-weight: 600;
}

.disclosure {
  margin: 1.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.zh-block {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rule);
}

.site-footer {
  padding: 2rem 0 3rem;
}

.credit {
  margin: 0;
  font-weight: 600;
}

.legal {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

@media (max-width: 40rem) {
  .hero {
    padding-top: 3rem;
  }

  .panel,
  .page {
    padding-top: 2.5rem;
  }
}

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