@font-face {
  font-family: Feitian Brush;
  src: url("assets/title.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --ink: #101d1d;
  --paper: #ede3d0;
  --gold: #e7c48b;
  --line: #dbc18c44;
  --white: #fff0d8;
  --normal: "Songti SC", "Noto Serif CJK SC", "Noto Serif SC", SimSun, serif;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --brush: "Feitian Brush", var(--normal);
  --page: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--white); font-family: var(--normal); }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3, figure { margin: 0; }
button { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid #b96c37; outline-offset: 5px; }
img { display: block; max-width: 100%; }
.page { width: min(calc(100% - 112px), var(--page)); margin: 0 auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
section[id] { scroll-margin-top: 20px; }

.masthead {
  position: absolute; z-index: 2; inset: 0 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: 19px max(32px, calc((100vw - var(--page)) / 2));
  background: linear-gradient(#0b1415b0, #0b141500);
}
.studio { display: inline-flex; gap: 12px; align-items: center; }
.studio span { font: 600 11px/1 var(--sans); letter-spacing: .21em; white-space: nowrap; }
.studio img { object-fit: contain; }
.masthead nav { display: flex; gap: clamp(23px, 4.4vw, 62px); color: #f5e2bf; font-size: 14px; letter-spacing: .13em; }
.masthead nav a { padding: 10px 2px; }
.masthead nav a:hover, .to-top:hover { color: #fff9e7; text-decoration: underline; text-underline-offset: 5px; }

.hero { position: relative; isolation: isolate; display: grid; align-items: center; min-height: clamp(640px, 94svh, 950px); overflow: hidden; }
.hero-art, .hero-wash { position: absolute; inset: 0; z-index: -1; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 50%; }
.hero-wash {
  background: linear-gradient(90deg, #122329db 0%, #14282eaa 29%, #12232908 69%),
              linear-gradient(0deg, #0d1717c9 0%, #14202000 26%);
}
.hero-content { max-width: 555px; padding-block: 126px 110px; }
.eyebrow { color: #f0d5a9; font: 500 13px/1.6 var(--sans); letter-spacing: .19em; }
.eyebrow span { color: #bd9460; margin-inline: 3px; }
.hero h1 { margin: 22px 0 12px -5px; color: #fff0d1; font: 400 clamp(96px, 12vw, 171px)/.99 var(--brush); letter-spacing: .025em; text-shadow: 0 4px 30px #080d0c5e; white-space: nowrap; }
.hero-subtitle { font-size: clamp(19px, 2.2vw, 29px); letter-spacing: .14em; color: #e7c48b; }
.hero-description { color: #ebdbbc; font-size: clamp(14px, 1.3vw, 17px); line-height: 2.04; margin-top: 22px; letter-spacing: .055em; }
.cta {
  display: inline-flex; gap: 35px; align-items: center; justify-content: space-between;
  margin-top: 36px; min-height: 48px; padding: 10px 19px;
  background-color: #f0cf98; color: #202c26; box-shadow: 0 9px 32px #0002;
  font-size: 14px; font-weight: 700; letter-spacing: .11em; transition: background .2s, transform .2s;
}
.cta:hover { background: #ffe4b7; transform: translateY(-2px); }
.cta span { font: 400 19px/1 var(--sans); }
.hero-caption { position: absolute; bottom: 29px; right: max(32px, calc((100vw - var(--page)) / 2)); font: 500 10px/1 var(--sans); letter-spacing: .36em; display: flex; align-items: center; gap: 13px; color: #e8ce9b; }
.hero-caption span { width: 49px; height: 1px; background: #e8ce9b91; }

.paper { color-scheme: light; color: #253331; background-color: var(--paper); background-image: radial-gradient(ellipse at 0 0,#f8f0df,transparent 72%), linear-gradient(108deg,#936d3212,#f6ecd600 49%,#96683c13); }
.story { border-top: 1px solid #aa93614b; border-bottom: 1px solid #89745592; }
.story-inner { display: grid; grid-template-columns: 1fr 1.6fr; align-items: center; gap: 62px; padding-block: clamp(66px, 8vw, 114px); }
.section-label { color: #905c30; display: flex; align-items: center; gap: 11px; font: 600 12px/1.4 var(--sans); letter-spacing: .17em; margin-bottom: 18px; }
.section-label span { width: 22px; height: 1px; background: currentColor; }
h2 { font: 400 clamp(38px, 5.1vw, 73px)/1.14 var(--brush); letter-spacing: .05em; }
.story-body { max-width: 580px; color: #454638; font-size: clamp(16px, 1.55vw, 20px); line-height: 2.18; letter-spacing: .055em; padding-top: 12px; }
.story-body p + p { margin-top: 16px; }

.restoration { padding-block: clamp(68px, 9vw, 128px); background: radial-gradient(ellipse at 78% 0,#233533 0%,var(--ink) 64%); }
.section-head { display: flex; justify-content: space-between; gap: 22px 42px; align-items: end; margin-bottom: 35px; }
.section-head > p { font-size: 15px; line-height: 1.9; letter-spacing: .04em; max-width: 480px; margin-bottom: 3px; }
.restoration .section-label { color: var(--gold); }
.restoration .section-head > p { color: #e3d4b9; }
.restoration-frame { border: 1px solid var(--line); background: #172523; }
.painting { position: relative; aspect-ratio: 2 / 1; overflow: hidden; }
.painting img, .painting canvas { position: absolute; inset: 0; max-width: none; width: 100%; height: 100%; object-fit: cover; }
.painting canvas { display: block; filter: saturate(.64) sepia(.17) contrast(.76) brightness(.66); touch-action: none; cursor: crosshair; }
.restoration-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 18px 13px 23px; min-height: 65px; }
.painting-name { display: flex; align-items: center; gap: 16px; }
.painting-name strong { color: #ffe7af; font-size: 17px; white-space: nowrap; }
.painting-name span { color: #d4c7ac; font-size: 12px; line-height: 1.45; }
.quiet-button { padding: 8px 13px; min-height: 40px; border: 1px solid #e3bb8061; background: transparent; color: #f6dbab; cursor: pointer; font-size: 13px; white-space: nowrap; }
.painting-actions { display: flex; flex-shrink: 0; gap: 7px; }
.quiet-button:hover:not(:disabled) { background: #e0bb7b1e; }
.quiet-button:disabled { opacity: .50; cursor: default; }

.site-footer { background: #101d1d; color: #e5cc9d; border-top: 1px solid #9474485b; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 19px; min-height: 110px; }
.footer-inner p { color: #baa885; font: 10px/1.4 var(--sans); letter-spacing: .08em; }
.to-top { font-size: 13px; white-space: nowrap; }

@media (max-width: 900px) {
  .page { width: calc(100% - 64px); }
  .section-head { align-items: start; flex-direction: column; }
  .story-inner { gap: 32px; }
}

@media (max-width: 680px) {
  .page { width: calc(100% - 40px); }
  .masthead { padding: 13px 20px; gap: 8px; }
  .masthead nav { gap: 16px; font-size: 13px; }
  .studio span { font-size: 9px; letter-spacing: .12em; }
  .studio { gap: 8px; }
  .masthead img { width: 31px; height: 31px; }
  .hero { align-items: end; min-height: min(790px, max(650px, 94svh)); }
  .hero-art img { object-position: 50% 24%; }
  .hero-wash { background: linear-gradient(0deg,#0d1717 0%,#0d1717e8 15%,#0d17178c 41%,transparent 65%), linear-gradient(180deg,#101c1c88,transparent 22%); }
  .hero-content { padding: 340px 0 57px; }
  .hero h1 { font-size: clamp(75px, 18vw, 105px); margin-top: 13px; margin-bottom: 9px; }
  .hero-subtitle { font-size: 18px; }
  .hero-description { margin-top: 13px; }
  .hero-caption { display: none; }
  .cta { margin-top: 23px; }
  .story-inner { grid-template-columns: 1fr; gap: 8px; }
  .story-heading h2 br { display: none; }
  .story-body { font-size: 16px; line-height: 2; padding-top: 9px; }
  .section-head { gap: 15px; margin-bottom: 23px; }
  .section-head > p { font-size: 14px; }
  .section-head > p br { display: none; }
  .section-label { margin-bottom: 14px; }
  .painting { aspect-ratio: 1.36; }
  .restoration-meta { padding: 11px 12px; }
  .painting-name { display: grid; gap: 4px; }
  .footer-inner { min-height: 89px; gap: 9px; }
  .footer-inner .studio img { width: 31px; height: 31px; }
  .footer-inner p { font-size: 8px; }
  .to-top { font-size: 11px; }
}

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

.footer-links { display: flex; flex-wrap: wrap; justify-content: end; gap: 6px 16px; font-size: 12px; }
.footer-links a:hover, .info-page a:hover { text-decoration: underline; text-underline-offset: 4px; }
.info-header { position: static; background: var(--ink); }
.info-page { min-height: calc(100svh - 74px); padding: clamp(42px, 8vw, 94px) 22px; }
.info-body { width: min(100%, 720px); margin: auto; }
.info-body h1 { font-size: clamp(32px, 5vw, 57px); font-weight: 400; line-height: 1.17; }
.info-body h2 { font: 600 20px/1.45 var(--normal); margin: 30px 0 8px; letter-spacing: 0; }
.info-body p { margin-top: 12px; line-height: 1.82; overflow-wrap: anywhere; }
.info-body a { text-decoration: underline; text-underline-offset: 4px; }
.info-body .language-links { margin: 16px 0 30px; font: 500 14px/1.5 var(--sans); }
.info-body section + section { margin-top: 54px; border-top: 1px solid #9e785655; padding-top: 34px; }
.info-body [lang="en"] { font-family: Georgia, serif; }
.info-body [lang="en"] h2 { font-family: Georgia, serif; }
