:root {
  color-scheme: light;
  --ink: #2d281f;
  --muted: #777166;
  --line: #d8d0c3;
  --paper: #f6f2e9;
  --accent: #b5452e;
  --serif: "Songti SC", "Noto Serif CJK SC", "Source Han Serif SC", "SimSun", serif;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: #e8c5b6; color: var(--ink); }
.page-width { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; z-index: 20; left: 20px; top: -80px; padding: 10px 16px; background: var(--ink); color: white; }
.skip-link:focus { top: 12px; }

.hero { position: relative; min-height: 790px; overflow: hidden; background: #eee3d0 url("hero-scene.jpg") center center / cover no-repeat; }
.site-header { height: 92px; display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 2; }
.wordmark { font: 600 22px/1 var(--serif); letter-spacing: .03em; text-decoration: none; white-space: nowrap; }
.wordmark-dot { color: var(--accent); }
.site-header nav { display: flex; gap: 23px; align-items: center; }
.site-header nav a { font: 500 14px/1.4 var(--sans); letter-spacing: .08em; text-decoration: none; padding-block: 14px; transition: color .2s ease; }
.site-header nav a:hover { color: var(--accent); }
.nav-divider { width: 1px; height: 13px; background: #aaa092; }

.hero-copy { position: relative; z-index: 1; text-align: center; padding-top: 30px; }
.eyebrow, .section-kicker { margin: 0; font: 500 10px/1.5 var(--sans); letter-spacing: .35em; }
.short-rule { display: block; width: 25px; height: 1px; margin: 23px auto 35px; background: var(--accent); }
.hero h1 { margin: 0; font: 600 clamp(49px, 5.6vw, 82px)/1.25 var(--serif); letter-spacing: -.055em; text-wrap: balance; }
.accent-period { color: var(--accent); }
.hero-lead { margin: 17px 0 26px; font: 400 clamp(15px, 1.35vw, 20px)/1.7 var(--serif); letter-spacing: .14em; }
.hero-lead span { padding-inline: .3em; color: #ad9c86; }
.primary-link { min-height: 48px; display: inline-flex; align-items: center; gap: 26px; padding: 10px 24px; background: var(--accent); color: white; text-decoration: none; font: 500 15px/1.5 var(--serif); letter-spacing: .15em; transition: background .2s ease, transform .2s ease; }
.primary-link:hover { background: #92351f; transform: translateY(-2px); }
.primary-link span { font: 17px/1 var(--sans); }

.gallery-wrap { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; max-width: 950px; margin-top: 54px; }
.gallery-tile { position: relative; display: block; height: 245px; overflow: hidden; background: #ddd6ca; border: 1px solid rgba(51, 37, 26, .25); box-shadow: 0 8px 25px rgba(65, 45, 24, .12); text-decoration: none; transition: box-shadow .25s ease; }
.gallery-tile:hover { box-shadow: 0 16px 32px rgba(65, 45, 24, .18); }
.gallery-tile img { width: 100%; height: 100%; object-fit: cover; }
.tile-reading img { object-position: center; }
.tile-practice img { object-position: center; filter: saturate(.65); }
.tile-label { position: absolute; inset: auto 0 0; padding: 15px 20px 16px; color: #fffdf5; background: rgba(35, 30, 21, .58); display: flex; flex-direction: column; align-items: flex-start; }
.tile-label small { font: 600 9px/1.4 var(--sans); letter-spacing: .2em; }
.tile-label strong { font: 600 26px/1.35 var(--serif); letter-spacing: .06em; margin-top: 6px; }
.tile-label em { font: normal 12px/1.55 var(--sans); letter-spacing: .06em; opacity: .9; margin-top: 3px; }

.works { padding-top: 100px; }
.section-intro { margin-bottom: 47px; }
.section-kicker { color: #a14632; }
.section-intro h2 { margin: 10px 0 0; font: 500 25px/1.45 var(--serif); letter-spacing: .03em; }
.project { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .94fr); gap: 60px; min-height: 342px; padding: 42px 0; border-top: 1px solid var(--line); }
.project-copy { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 18px; }
.project-number { display: flex; align-items: flex-start; gap: 24px; margin: 0; font: 400 37px/1.1 var(--serif); color: #968a78; }
.project-number span { width: 56px; height: 1px; background: #b9aa93; margin-top: 22px; }
.project h3 { margin: 1px 0 1px; font: 600 35px/1.35 var(--serif); letter-spacing: .04em; }
.project-subtitle { margin: 2px 0 26px; color: #5f584e; font: 400 16px/1.6 var(--serif); letter-spacing: .07em; }
.project-description { max-width: 350px; margin: 0 0 30px; color: var(--muted); font-size: 14px; line-height: 2; }
.text-link { display: inline-flex; align-items: center; gap: 18px; padding-bottom: 5px; border-bottom: 1px solid #b06b5b; color: var(--accent); text-decoration: none; font: 500 14px/1.5 var(--serif); transition: gap .2s ease, color .2s ease; }
.text-link:hover { gap: 23px; color: #8f341f; }
.project-image { display: block; width: 100%; align-self: center; overflow: hidden; }
.project-image img { width: 100%; height: 245px; object-fit: cover; transition: transform .35s ease; }
.project-image:hover img { transform: scale(1.025); }
.project:last-child { border-bottom: 1px solid var(--line); }

.about { display: grid; grid-template-columns: 1fr 2fr; gap: 40px; padding-top: 96px; padding-bottom: 103px; }
.about .section-kicker { padding-top: 12px; }
.about h2 { margin: 0 0 23px; font: 600 clamp(32px, 3vw, 47px)/1.45 var(--serif); letter-spacing: .02em; }
.about p:last-child { max-width: 580px; margin: 0; color: #696256; font-size: 15px; line-height: 2.1; }
.not-found { min-height: 80vh; align-content: center; }
.not-found h1 { margin: 0 0 24px; font: 600 clamp(38px, 6vw, 70px)/1.3 var(--serif); }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-block: 27px 36px; border-top: 1px solid var(--line); color: #696358; font: 400 13px/1.7 var(--serif); }
.site-footer p { margin: 0; }
.site-footer a { font-family: var(--sans); font-size: 12px; letter-spacing: .02em; text-decoration: none; }
.site-footer a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

@media (max-width: 1100px) {
  .page-width { width: min(100% - 64px, 960px); }
  .gallery-wrap { max-width: 950px; }
  .project { gap: 35px; }
  .project-copy { grid-template-columns: 110px minmax(0, 1fr); }
  .project-number span { width: 30px; }
}

@media (max-width: 700px) {
  .page-width { width: calc(100% - 40px); }
  .hero { min-height: 745px; background-position: 43% center; }
  .site-header { height: 72px; }
  .wordmark { font-size: 19px; }
  .site-header nav { gap: 13px; }
  .site-header nav a { font-size: 12px; min-height: 44px; display: inline-flex; align-items: center; }
  .hero-copy { padding-top: 57px; }
  .eyebrow { font-size: 9px; letter-spacing: .28em; }
  .short-rule { margin: 17px auto 28px; }
  .hero h1 { font-size: clamp(39px, 10.2vw, 60px); line-height: 1.35; max-width: 11em; margin-inline: auto; }
  .hero-lead { font-size: 14px; line-height: 1.8; letter-spacing: .05em; margin: 19px auto 25px; }
  .primary-link { min-height: 46px; font-size: 14px; }
  .gallery-wrap { display: flex; gap: 12px; overflow-x: auto; width: 100%; max-width: none; padding: 7px 20px 25px; margin-top: 56px; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .gallery-wrap::-webkit-scrollbar { display: none; }
  .gallery-tile { flex: 0 0 min(76vw, 345px); height: 225px; scroll-snap-align: center; }
  .gallery-tile:first-child { margin-left: max(0px, calc((100vw - 345px)/2 - 20px)); }
  .tile-label strong { font-size: 22px; }
  .works { padding-top: 61px; }
  .section-intro { margin-bottom: 29px; }
  .section-intro h2 { font-size: 23px; }
  .project { display: flex; flex-direction: column; gap: 26px; padding: 32px 0 39px; }
  .project-copy { display: grid; grid-template-columns: 59px minmax(0, 1fr); gap: 17px; }
  .project-number { font-size: 25px; }
  .project-number span { display: none; }
  .project h3 { font-size: 31px; }
  .project-subtitle { font-size: 14px; margin-bottom: 18px; }
  .project-description { font-size: 14px; margin-bottom: 20px; }
  .project-image img { height: 220px; }
  .about { display: block; padding-top: 66px; padding-bottom: 72px; }
  .about .section-kicker { margin-bottom: 23px; }
  .about h2 { font-size: 33px; }
  .about p:last-child { font-size: 14px; }
  .site-footer { flex-direction: column; align-items: flex-start; gap: 7px; font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}
