@import url('https://cdn.jsdelivr.net/npm/lxgw-wenkai-webfont@1.7.0/style.css');

:root {
  color-scheme: light;
  --paper: #faf9f6;
  --ink: #171916;
  --muted: #575b55;
  --line: #d8d9d2;
  --white: #faf9f6;
  --latin: 'Times New Roman', Times, serif;
  --kai: KaiTi, 'Kaiti SC', STKaiti, 'LXGW WenKai', serif;
  --gutter: clamp(1.25rem, 5vw, 5rem);
  font-family: var(--latin);
  background: var(--paper);
  color: var(--ink);
}

:lang(zh-CN) { font-family: var(--kai); }
:lang(en), .monogram, .scroll-cue { font-family: var(--latin); }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; }
button[hidden] { display: none; }
[id] { scroll-margin-top: 1.5rem; }
h1, h2, h3, p, ul, blockquote { margin: 0; }
h1, h2, h3, cite { font-weight: 400; font-style: normal; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 5px; }
.skip { position: absolute; inset: .75rem auto auto 1rem; z-index: 4; padding: .75rem 1rem; background: var(--paper); color: var(--ink); transform: translateY(-150%); }
.skip:focus { transform: translateY(0); }

.site-header { display: flex; align-items: center; gap: clamp(1.5rem, 3vw, 3rem); min-height: 7rem; padding: 1.4rem var(--gutter); }
.home .site-header { position: absolute; z-index: 2; inset: 0 0 auto; color: var(--white); }
.interior .site-header { border-bottom: 1px solid var(--line); }
.monogram { flex: none; display: grid; place-items: center start; width: 3.2rem; min-height: 2.75rem; margin-right: auto; text-decoration: none; font-size: 2.85rem; line-height: .8; }
.monogram > span > span { position: relative; left: -.32em; top: .21em; font-size: .79em; }
.main-nav ul, .mobile-menu ul { list-style: none; padding: 0; }
.main-nav ul { display: flex; gap: clamp(1rem, 2.35vw, 2.25rem); }
.main-nav a, .languages a, .mobile-menu a { display: inline-flex; align-items: center; min-height: 2.75rem; text-decoration: none; white-space: nowrap; }
.main-nav a { font-size: 1.13rem; }
.main-nav a:hover, .main-nav a[aria-current], .languages a:hover, .languages a[aria-current], .mobile-menu a[aria-current] { text-decoration: underline; text-underline-offset: .32em; }
.languages { flex: none; display: flex; align-items: center; gap: .35rem; font-size: .95rem; }
.languages a { justify-content: center; min-width: 2.2rem; }
.languages > span { opacity: .65; }
.menu-toggle, .mobile-menu button { min-height: 2.75rem; min-width: 2.75rem; padding: .45rem .6rem; color: inherit; background: transparent; border: 1px solid currentColor; cursor: pointer; }
.mobile-menu { inset: 0; margin: 0; width: 100%; max-width: none; height: 100%; max-height: none; border: 0; padding: 1.35rem var(--gutter); background: #171a1e; color: var(--white); }
.menu-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 2.75rem; }
.menu-header h2 { font-size: 1rem; }
.mobile-menu li { border-top: 1px solid #56585a; }
.mobile-menu li:last-child { border-bottom: 1px solid #56585a; }
.mobile-menu a { display: flex; padding-block: .8rem; font-size: clamp(1.6rem, 7vw, 2.7rem); }

.hero { position: relative; display: grid; justify-items: center; align-items: start; min-height: max(38rem, 100vh); min-height: max(38rem, 100svh); padding: clamp(9rem, 26svh, 20rem) var(--gutter) 8rem; color: var(--white); text-align: center; background: linear-gradient(180deg, #11182045 0%, #17212b24 52%, #0c111652 100%), #283642 url('/assets/mountain-dawn.jpg') center 58% / cover no-repeat; }
.hero-copy h1 { font-size: clamp(4rem, 9.3vw, 9rem); line-height: .99; letter-spacing: -.045em; }
.hero-copy h1:lang(zh-CN) { font-size: clamp(3.7rem, 8vw, 7.25rem); letter-spacing: .075em; padding-left: .075em; white-space: nowrap; }
.hero-copy h1 span { white-space: nowrap; }
.hero-rule { width: 3.6rem; height: 1px; background: #faf9f6ad; margin: clamp(1.5rem, 3.5vh, 2.5rem) auto; }
.hero .belief { font-size: clamp(1.4rem, 3vw, 2.35rem); letter-spacing: .23em; padding-left: .23em; white-space: nowrap; }
.hero .translation { margin-top: .75rem; font-size: clamp(1.08rem, 2vw, 1.35rem); }
.hero cite { display: block; margin-top: .65rem; font-size: 1rem; letter-spacing: .055em; }
.hero-base { position: absolute; inset: auto var(--gutter) clamp(1.35rem, 5vh, 3.5rem); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; }
.scroll-cue { grid-column: 2; display: grid; place-items: center; width: 2.75rem; height: 3.35rem; border: 1px solid #faf9f6a8; border-radius: 2rem; text-decoration: none; font-size: 1.35rem; }
.scroll-cue:hover { background: #faf9f622; }
.location { grid-column: 3; display: flex; align-items: center; gap: .55rem; justify-self: end; text-align: right; font-size: .9rem; letter-spacing: .055em; }
.location svg { flex: none; }

.wrap { width: min(100% - 2 * var(--gutter), 75rem); margin-inline: auto; }
.section { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(0, 2.55fr); gap: 2rem; padding-block: clamp(3.25rem, 8vw, 7rem); border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section h2 { font-size: clamp(1.7rem, 3vw, 2.55rem); line-height: 1.1; }
.section h3, .page-body h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); line-height: 1.2; }
.section-body, .page-body { min-width: 0; font-size: clamp(1.125rem, 1.7vw, 1.3rem); line-height: 1.65; }
.section-body:lang(zh-CN), .page-body:lang(zh-CN) { line-height: 1.8; }
.section-body > * + *, .page-body > * + *, .page-body section > * + * { margin-top: .95em; }
.intro { font-size: clamp(1.25rem, 2.25vw, 1.7rem); line-height: 1.5; }
.intro:lang(zh-CN) { line-height: 1.65; }
.section-body > p, .page-body > p, .section-body > .intro { max-width: 43rem; }
.text-link { display: inline-block; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .27em; padding-block: .18rem; }
.text-link:hover { color: var(--muted); }
.project-row { display: grid; grid-template-columns: minmax(8.5rem, 1fr) minmax(0, 1.4fr); gap: 1.5rem; padding: 1.45rem 0; border-block-start: 1px solid var(--line); }
.project-row:last-child { border-block-end: 1px solid var(--line); }
.project-row h3 a { text-decoration: none; }
.project-row h3 a:hover { text-decoration: underline; text-underline-offset: .2em; }
.project-row .text-link, .project-row .supporting { margin-top: .35rem; }
.meta, .supporting { color: var(--muted); }
.meta { font-size: .95rem; margin-bottom: .4rem; }
.supporting { font-size: 1.02rem; }
.entry-list, .contact-links { list-style: none; padding: 0; }
.entry-list li { display: flex; align-items: baseline; gap: .6rem 2rem; flex-wrap: wrap; justify-content: space-between; padding: 1rem 0; border-block: 1px solid var(--line); }

.page { min-height: 57vh; padding-block: clamp(3rem, 9vw, 8rem); }
.reading { max-width: 45rem; margin-inline: auto; }
.page h1 { font-size: clamp(2.7rem, 7vw, 5.6rem); line-height: 1.1; overflow-wrap: anywhere; }
.page h1:lang(zh-CN) { font-size: clamp(2.5rem, 6vw, 4.5rem); }
.page .intro { margin-top: 1.35rem; }
.page-body { margin-top: clamp(2rem, 5vw, 3.5rem); }
.page-body > section + section { margin-top: 2rem; }
.back { margin-bottom: 1.25rem; }
.site-footer { border-top: 1px solid var(--line); color: var(--muted); }
.site-footer > div { display: flex; justify-content: space-between; align-items: center; padding-block: 1.75rem; }
.site-footer a { text-underline-offset: .2em; }

@media (max-width: 760px) {
  .site-header { gap: .65rem 1rem; min-height: 5.45rem; padding-block: 1.05rem; flex-wrap: wrap; }
  .main-nav { order: 1; width: 100%; }
  .main-nav ul { flex-wrap: wrap; gap: .1rem 1rem; }
  .main-nav a { font-size: 1rem; }
  .menu-ready .main-nav { display: none; }
  .hero { padding-top: max(10rem, 25svh); background-position: center, 54% 65%; }
  .hero-copy h1 { font-size: clamp(3.25rem, 12vw, 5.5rem); }
  .hero-copy h1:lang(zh-CN) { font-size: clamp(3.05rem, 13vw, 5.7rem); }
  .section { grid-template-columns: 1fr; gap: 1.2rem; }
  .section-body { font-size: 1.125rem; }
}

@media (max-width: 440px) {
  .site-header { column-gap: .45rem; }
  .project-row { grid-template-columns: 1fr; gap: .65rem; }
  .hero-base { grid-template-columns: 1fr auto 1fr; row-gap: .9rem; }
  .location { grid-column: 1 / -1; justify-self: end; }
}

@media (min-width: 761px) { .menu-toggle { display: none; } }
