:root {
 color-scheme: light;
 --paper: #f7f4ee;
 --ink: #222320;
 --muted: #5b5751;
 --line: #ccc5b9;
 --warm: #ebe4d8;
 --gutter: clamp(16px, 5vw, 80px);
 --display: Georgia, "Noto Serif CJK SC", "Songti SC", SimSun, serif;
 font-family: system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
 color: var(--ink);
 background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
:focus-visible { outline: 2px solid #8b4e33; outline-offset: 4px; }
[tabindex="-1"]:focus { outline: none; }
.skip-link {
 position: fixed;
 inset: 12px auto auto 12px;
 z-index: 2;
 transform: translateY(calc(-100% - 20px));
 background: var(--paper);
 padding: 12px 16px;
}
.skip-link:focus { transform: translateY(0); }
.site-header, .site-footer { padding-inline: var(--gutter); }
.site-header {
 display: grid;
 grid-template-columns: minmax(150px, 1fr) auto minmax(56px, 1fr);
 align-items: center;
 gap: 24px;
 min-height: 74px;
 border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; width: max-content; min-height: 44px; }
.wordmark img { width: clamp(140px, 16vw, 178px); }
.site-header nav { display: flex; justify-content: center; gap: clamp(6px, 2.1vw, 38px); }
.site-header nav a, .language, .site-footer nav a {
 display: inline-flex;
 align-items: center;
 justify-content: center;
 min-height: 44px;
 min-width: 44px;
 text-align: center;
 text-decoration: none;
 font-size: .875rem;
}
.site-header nav a { padding-inline: 4px; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-underline-offset: .38em; }
.language { justify-self: end; min-width: 54px; }
.site-footer {
 display: flex;
 flex-wrap: wrap;
 justify-content: space-between;
 align-items: center;
 gap: 6px 24px;
 padding-block: 22px;
 border-top: 1px solid var(--line);
}
.site-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer a:hover, .site-header a:hover { text-decoration: underline; text-underline-offset: .32em; }

.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.split-copy {
 align-self: center;
 padding: clamp(36px, 7vw, 96px) var(--gutter);
}
.split figure { position: relative; min-height: 400px; background: var(--warm); }
.split figure img { position: absolute; inset: 0; height: 100%; object-fit: cover; }
.home-hero { min-height: min(67svh, 620px); }
.home-hero img { object-position: 54% 50%; }
.intro { max-width: 52rem; padding: clamp(40px, 7vw, 90px) var(--gutter) 26px; }
h1, h2, h3 {
 margin: 0;
 font-family: var(--display);
 font-weight: 400;
 overflow-wrap: break-word;
}
h1 { font-size: clamp(2.35rem, 4.6vw, 5rem); line-height: 1.07; letter-spacing: -.035em; }
h2 { font-size: clamp(1.85rem, 3vw, 3.25rem); line-height: 1.12; letter-spacing: -.028em; }
h3 { font-size: clamp(1.35rem, 2.2vw, 2.15rem); line-height: 1.18; }
:lang(zh) :is(h1,h2,h3) { letter-spacing: -.035em; line-height: 1.2; }
p { margin: 14px 0 0; line-height: 1.65; color: var(--muted); }
.split-copy p, .intro p { font-size: clamp(1rem, 1.55vw, 1.17rem); }
.actions { display: flex; flex-wrap: wrap; gap: 8px 12px; margin-top: 24px; }
.button {
 display: inline-flex;
 align-items: center;
 justify-content: space-between;
 gap: 22px;
 min-height: 48px;
 padding: 9px 16px;
 background: var(--ink);
 border: 1px solid var(--ink);
 color: var(--paper);
 text-decoration: none;
 font-size: .91rem;
}
.button:hover { background: #40392f; }
.button.outline { background: transparent; color: var(--ink); }
.button.outline:hover { background: var(--warm); }

.section { padding: clamp(32px, 5vw, 74px) var(--gutter); }
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(14px, 3vw, 42px); }
.section h2 + .tiles { margin-top: 22px; }
.tile { background: var(--warm); }
.tile figure { aspect-ratio: 1.59; overflow: hidden; }
.tile figure img { height: 100%; object-fit: cover; }
.tile-copy { padding: clamp(16px, 2.75vw, 33px); }
.tile-title {
 display: flex;
 min-height: 44px;
 align-items: center;
 justify-content: space-between;
 gap: 14px;
 text-decoration: none;
}
.tile-title:hover { text-decoration: underline; text-underline-offset: .18em; }
.tile-copy p { margin-top: 5px; }
.tile-copy .actions { margin-top: 18px; }
.bridge { background: var(--warm); }
.bridge p { max-width: 60ch; }
.reference-caption { margin: 0; padding-top: 8px; font-size: .79rem; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.features article { border-top: 1px solid var(--line); padding-top: 14px; }
.features .reference-caption { grid-column: 1 / -1; }
.intro + .section { padding-top: 0; }

@media (max-width: 780px) {
 .site-header {
  grid-template-columns: 1fr auto;
  min-height: 0;
  gap: 0 12px;
  padding-top: 5px;
 }
 .site-header nav { grid-row: 2; grid-column: 1 / -1; justify-content: space-between; }
 .site-header nav a { padding-inline: 4px; }
 .site-header nav a:first-child { padding-inline-start: 0; }
 .site-header nav a:last-child { padding-inline-end: 0; }
 .split { grid-template-columns: minmax(0, 1fr); }
 .split-copy { padding-block: 30px; }
 .split figure { min-height: clamp(220px, 40svh, 420px); }
 .home-hero { min-height: 0; }
}

@media (max-width: 540px) {
 .tiles { grid-template-columns: minmax(0, 1fr); }
 .features { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
