:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: #233a46;
  background: #f8f5ee;
  line-height: 1.65;
  --ink: #233a46;
  --muted: #4b5d61;
  --line: #d8d6cb;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
a:focus-visible { outline: 3px solid #976000; outline-offset: 4px; }
p, h1, h2, h3, figure { margin: 0; }
img { display: block; max-width: 100%; }
section[id] { scroll-margin-top: 24px; }
.wrap { width: min(1120px, calc(100% - 56px)); margin-inline: auto; }

.skip {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  padding: 8px 14px;
  color: white;
  background: var(--ink);
  transform: translateY(-150%);
}
.skip:focus { transform: translateY(0); }

.masthead, .footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-block: 22px;
}
.masthead { border-bottom: 1px solid var(--line); }
.wordmark { font-size: 1.14rem; font-weight: 800; letter-spacing: .09em; text-decoration: none; }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: 24px; }
nav a, .footer a { font-size: .9rem; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }
.profile-link { border: 1px solid var(--line); border-radius: 50px; padding: 6px 14px; }

.hero {
  display: grid;
  grid-template-columns: 1.08fr .92fr;
  align-items: center;
  gap: clamp(32px, 7vw, 100px);
  padding-block: 52px 60px;
}
.hero-copy { min-width: 0; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: .95rem;
  letter-spacing: .06em;
}
.eyebrow span { width: 24px; height: 2px; background: #a16d15; flex: 0 0 auto; }
h1 {
  margin-top: 10px;
  font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  font-size: clamp(3.5rem, 7.6vw, 6.25rem);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -.075em;
}
.hero-line {
  margin-top: 14px;
  font-size: clamp(1.55rem, 3.15vw, 2.55rem);
  line-height: 1.34;
  font-weight: 600;
  letter-spacing: -.035em;
}
.intro { max-width: 27em; margin-top: 22px; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 22px; margin-top: 24px; }
.button {
  display: inline-block;
  padding: 10px 20px;
  color: #fff;
  background: var(--ink);
  border-radius: 3px;
  text-decoration: none;
  font-size: .95rem;
  font-weight: 700;
}
.button:hover { background: #365667; }
.quiet-link { font-size: .95rem; font-weight: 700; text-underline-offset: 5px; }
.quiet-link:hover { color: #875909; }
.hero-image { padding: 10px; background: #fffdf7; border: 1px solid #e1dccc; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 4 / 4.6; object-fit: cover; }
.hero-image figcaption { padding: 8px 4px 2px; text-align: right; color: var(--muted); font-size: .8rem; }

.about {
  display: grid;
  grid-template-columns: .7fr 1.3fr;
  gap: 16px 36px;
  align-items: baseline;
  padding: 28px 0;
  border-block: 1px solid var(--line);
}
h2 { font-size: clamp(1.55rem, 3vw, 2.35rem); line-height: 1.25; letter-spacing: -.035em; }
.about p, .notes-header p { color: var(--muted); }
.notes { padding-block: 52px 58px; }
.notes-header { margin-bottom: 21px; }
.notes-header p { margin-top: 8px; }
.note-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.note { padding: 20px; border-top: 3px solid var(--ink); }
.note-yellow { background: #f5e8be; border-color: #9a7225; }
.note-blue { background: #e2edf0; border-color: #567886; }
.note-cream { background: #efe7dd; border-color: #947257; }
.topic { color: var(--muted); font-size: .875rem; font-weight: 700; }
.note h3 { margin-top: 8px; font-size: 1.14rem; line-height: 1.4; overflow-wrap: anywhere; }
.note h3 + p { margin-top: 10px; color: var(--muted); }
.notes-link { display: inline-block; margin-top: 20px; }
.footer { border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .wrap { width: min(100% - 32px, 560px); }
  .masthead { align-items: baseline; flex-wrap: wrap; padding-block: 15px; }
  nav { gap: 8px 18px; }
  .profile-link { padding: 0; border: 0; }
  .hero { grid-template-columns: 1fr; gap: 27px; padding-block: 32px 39px; }
  .hero-image img { aspect-ratio: 4 / 3; object-position: 50% 63%; }
  .about, .note-grid { grid-template-columns: 1fr; }
  .notes { padding-block: 36px 39px; }
}

.archive { max-width: 760px; padding-block: 50px 64px; }
.archive-intro h1 { font-size: clamp(2.45rem, 7vw, 4rem); letter-spacing: -.045em; }
.archive-intro h1 + p { max-width: 38em; margin-top: 17px; color: var(--muted); }
.archive-facts {
  margin: 29px 0 0;
  padding: 9px 18px;
  background: #fffdf7;
  border: 1px solid var(--line);
}
.archive-facts div, .archive-topics div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 8px 16px;
  padding-block: 9px;
}
.archive dt { font-weight: 700; }
.archive dd { margin: 0; color: var(--muted); overflow-wrap: anywhere; }
.archive-section { margin-top: 34px; }
.archive-section h2 { font-size: clamp(1.4rem, 4vw, 1.95rem); }
.archive-section p { margin-block: 12px 8px; color: var(--muted); }
.archive-topics { margin: 12px 0 0; }
.archive-topics div + div { border-top: 1px solid var(--line); }
.archive-works { margin: 10px 0 0; padding-left: 1.4em; }
.archive-works li { padding-block: 3px; }

@media (max-width: 480px) {
  .archive { padding-block: 32px 45px; }
  .archive-topics div { grid-template-columns: 1fr; gap: 2px; }
  .archive-facts div { grid-template-columns: 5.5rem minmax(0, 1fr); }
}
