:root {
  --paper: #faf8f6;
  --surface: #f2eeea;
  --ink: #302218;
  --muted: #625448;
  --accent: #865534;
  --line: #d5c9bd;
  --serif: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", "SimSun", "STSong", serif;
  --content: min(88.5%, 1440px);
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1rem;
  line-height: 1.65;
  overflow-wrap: break-word;
}

h1, h2, h3, p, ul, figure { margin: 0; }
h1, h2, h3 { font-weight: 600; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
main:focus { outline: none; }
.container { width: var(--content); margin-inline: auto; }
.sr-only, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link:focus {
  position: absolute;
  z-index: 5;
  top: .6rem;
  left: .6rem;
  padding: .6rem 1rem;
  color: white;
  background: var(--ink);
}
.wordmark {
  display: inline-flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: center;
  width: fit-content;
  text-decoration: none;
  color: var(--ink);
  white-space: nowrap;
}
.wordmark-cn {
  font-size: clamp(1.45rem, 2.5vw, 2.2rem);
  font-weight: 700;
  letter-spacing: .13em;
  line-height: 1.04;
  padding-left: .13em;
}
.wordmark-en {
  font-family: Georgia, serif;
  font-size: clamp(.63rem, 1.15vw, .91rem);
  line-height: 1.25;
  letter-spacing: .37em;
  padding-left: .37em;
  margin-top: .19rem;
}

.site-header {
  background: linear-gradient(108deg, #faf6f3 12%, #f0ebe6 52%, #e0d6ce);
  border-bottom: 1px solid #fff7;
}
.header-inner {
  min-height: clamp(65px, 6.05vw, 96px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}
.menu-toggle { display: none; }
.site-nav, .footer-nav {
  display: flex;
  align-items: center;
}
.site-nav { gap: clamp(1.25rem, 5.35vw, 5.3rem); }
.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
  white-space: nowrap;
  font-size: clamp(.95rem, 1.45vw, 1.3rem);
  font-weight: 600;
}
.site-nav a::after {
  position: absolute;
  inset: auto 0 .18rem;
  height: 2px;
  background: var(--accent);
  content: "";
  opacity: 0;
}
.site-nav a:hover::after, .site-nav a[aria-current]::after { opacity: 1; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .65em;
  min-height: 44px;
  padding: .4em 1.8em;
  border: 1px solid var(--accent);
  color: #663c25;
  background-color: transparent;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}
.button:hover { background-color: #86553412; }
.chevron {
  display: inline-block;
  width: .47em;
  height: .47em;
  flex: 0 0 auto;
  border-right: 1px solid currentColor;
  border-top: 1px solid currentColor;
  transform: rotate(45deg);
}
.eyebrow {
  color: var(--accent);
  font-family: Georgia, serif;
  font-size: .77rem;
  letter-spacing: .29em;
  text-transform: uppercase;
}
.rule { display: block; width: 2.4rem; height: 1.5px; background: #a46c46; }

.site-footer { background-color: #f3f0ed; }
.footer-inner {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
  min-height: 56px;
  padding-block: .6rem;
}
.site-footer .wordmark-cn { font-size: 1.1rem; }
.site-footer .wordmark-en { font-size: .54rem; }
.footer-nav {
  gap: clamp(.9rem, 3vw, 3rem);
  border-left: 1px solid #c6b9ae;
  padding-left: clamp(1rem, 4vw, 4rem);
}
.footer-nav a { color: var(--muted); font-size: .83rem; text-decoration: none; white-space: nowrap; }
.footer-nav a:hover { text-decoration: underline; text-underline-offset: .25em; }
.site-note { margin-left: auto; color: var(--muted); font-size: .75rem; text-align: right; }

@media (max-width: 700px) {
  :root { --content: calc(100% - 2.5rem); }
  .site-header { background: #f8f4f0; }
  .header-inner {
    min-height: 70px;
    flex-wrap: wrap;
    align-content: center;
    gap: 0 1rem;
  }
  .header-inner > .wordmark {
    justify-content: center;
    min-height: 44px;
    margin-block: .75rem;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    min-height: 44px;
    padding-inline: .65rem;
    margin-inline-end: -.65rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    cursor: pointer;
    font-size: .95rem;
    letter-spacing: .045em;
  }
  .menu-icon {
    position: relative;
    width: 1rem;
    height: .7rem;
  }
  .menu-icon::before,
  .menu-icon::after {
    position: absolute;
    inset-inline: 0;
    height: 1px;
    background: currentColor;
    content: "";
  }
  .menu-icon::before { top: .15rem; }
  .menu-icon::after { bottom: .15rem; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before,
  .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 50%; bottom: auto; }
  .menu-toggle[aria-expanded="true"] .menu-icon::before { transform: rotate(45deg); }
  .menu-toggle[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
  .menu-toggle + .site-nav {
    flex-direction: column;
    align-items: stretch;
    padding-block: .25rem .75rem;
    border-top: 1px solid var(--line);
  }
  .site-nav { width: 100%; justify-content: space-between; gap: 0; }
  .site-nav a { justify-content: center; padding-inline: .32rem; min-height: 44px; font-size: .93rem; }
  .site-nav a::after { inset-inline: .32rem; }
  .menu-toggle[aria-expanded="false"] + .site-nav { display: none; }
  .menu-toggle + .site-nav a { justify-content: flex-start; padding-inline: 0; font-size: 1.05rem; }
  .menu-toggle + .site-nav a::after { inset-inline: 0 auto; width: 1.3rem; }
  .footer-inner { flex-wrap: wrap; row-gap: .9rem; padding-block: 1.3rem; }
  .footer-nav { width: 100%; flex-wrap: wrap; justify-content: space-between; border-left: 0; padding-left: 0; }
  .footer-nav a { display: flex; align-items: center; min-height: 44px; }
  .site-note { text-align: left; margin-left: 0; }
}

@media (max-width: 360px) {
  :root { --content: calc(100% - 1.75rem); }
  .site-nav a { font-size: .875rem; }
}
