:root {
  color-scheme: light;
  --ink: #362d2b;
  --muted: #67544d;
  --body: #493e3a;
  --accent: #a14430;
  --accent-surface: #ffd2b4;
  --paper: #fffdf9;
  --wash: #fff0e4;
  --mount: #fff;
  --line: #efdbcf;
  --wrap: 1200px;
  --gutter: clamp(20px, 5vw, 76px);
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", "SimSun", serif;
  --sans: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --hand: "Kaiti SC", "KaiTi", var(--serif);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--body);
  font: 16px/1.8 var(--sans);
  background: var(--paper);
}
a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; height: auto; }
figure, p, h1, h2, h3 { margin: 0; }
h1, h2, h3 { color: var(--ink); }
h1, h2 { font-family: var(--serif); line-height: 1.2; }
h2 { font-size: clamp(2.15rem, 4.5vw, 3.9rem); letter-spacing: -.012em; }
h3 { line-height: 1.4; }
button { font: inherit; }
[hidden] { display: none !important; }
.wrap { width: min(var(--wrap), calc(100% - var(--gutter) * 2)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 10px; left: 10px; background: var(--ink); color: #fff; padding: 10px 20px; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { position: sticky; top: 0; z-index: 5; background: var(--mount); border-bottom: 1px solid var(--line); }
.header-inner { display: flex; justify-content: space-between; align-items: center; min-height: 83px; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; gap: 12px; line-height: 1.2; font: 700 1.35rem/1.2 var(--serif); white-space: nowrap; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 39px; border: 1px solid var(--accent); border-radius: 2px; transform: rotate(-3deg); color: var(--accent); font: 700 1.65rem var(--hand); }
.brand small { display: block; margin-top: 4px; color: var(--muted); font: 400 .75rem/1.25 var(--sans); }
nav { display: flex; flex-wrap: wrap; gap: 4px clamp(14px, 2.5vw, 34px); align-items: center; }
nav a { font-size: .9rem; text-decoration: none; white-space: nowrap; color: var(--ink); position: relative; padding-block: 12px; }
nav a:hover, nav a[aria-current="page"] { color: var(--accent); }
nav a[aria-current="page"] { font-weight: 650; }
nav a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: 5px; height: 1px; background: currentColor; }
.eyebrow { display: flex; align-items: center; gap: 10px; color: var(--accent); font-size: .88rem; font-weight: 650; letter-spacing: .14em; margin-bottom: .75rem; }
.eyebrow::before { content: ""; width: 22px; flex: 0 0 22px; height: 1px; background: currentColor; }
.hero {
  display: grid;
  grid-template-columns: .87fr 1.13fr;
  align-items: center;
  gap: clamp(30px, 6vw, 92px);
  padding-block: clamp(52px, 6vw, 90px) clamp(54px, 6.8vw, 102px);
}
.hero-eyebrow { font-family: var(--hand); letter-spacing: .03em; font-size: 1.02rem; margin-bottom: 20px; }
.hero h1 {
  font-size: clamp(3.55rem, 6.6vw, 6.45rem);
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.14;
}
.hero h1 span { position: relative; display: inline-block; }
.hero h1 span::after {
  content: "";
  position: absolute;
  left: 0;
  right: 1ch;
  bottom: .025em;
  height: .069em;
  border-bottom: 2px solid var(--accent);
  border-radius: 50%;
  transform: rotate(-3deg);
  opacity: .72;
}
.hero-lead { color: var(--muted); max-width: 25em; margin-top: 24px; font-size: 1.03rem; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px 23px; margin-top: 25px; }
.button, .text-link { display: inline-block; font-size: .95rem; font-weight: 650; white-space: nowrap; }
.button { padding: 10px 20px; background: var(--accent-surface); color: var(--ink); text-decoration: none; border: 1px solid var(--accent-surface); border-radius: 3px; }
.button:hover { background: #ffbd97; color: var(--ink); }
.text-link { color: var(--ink); text-decoration-thickness: 1px; }
.hero-art {
  display: grid;
  grid-template-columns: 1fr .56fr;
  align-items: end;
  gap: 8px;
  padding: 9px 13px 13px 0;
}
.hero-figure { position: relative; z-index: 1; transform: rotate(-1.5deg); }
.hero-companion { transform: rotate(2.5deg); margin: 0 0 16px -16px; }
.art-mount {
  display: block;
  padding: clamp(5px, 1.25vw, 16px);
  background: var(--mount);
  box-shadow: 0 0 0 1px rgb(75 43 33 / 8%), 0 7px 24px rgb(75 43 33 / 9%);
}
.art-mount img { width: 100%; height: auto; }
.hero-art figcaption {
  color: var(--muted);
  font: 1rem/1.3 var(--hand);
  padding: 12px 0 1px;
  text-align: center;
}
.section-space { padding-block: clamp(55px, 7vw, 104px); }
.section-head > p:not(.eyebrow) { max-width: 39em; color: var(--muted); margin-top: 17px; }
.section-head-split { display: flex; justify-content: space-between; gap: 18px; align-items: end; margin-bottom: 28px; }
.works-preview, .notes { background: var(--wash); }
.selection-grid { display: grid; grid-template-columns: 1fr .82fr 1.11fr; align-items: start; gap: clamp(14px, 2.8vw, 40px); }
.selection-grid figure:nth-child(2) { margin-top: 37px; }
.selection-grid figure:nth-child(3) { margin-top: 12px; }
.selection-image { display: block; overflow: hidden; background: var(--mount); padding: 7px; box-shadow: 0 3px 10px rgb(75 43 33 / 8%); }
.selection-image img { width: 100%; transition: transform .25s ease; }
.selection-image:hover img { transform: scale(1.035); }
.selection-grid figcaption a { color: var(--ink); font-weight: 650; text-decoration: none; }
.selection-grid figcaption a:hover { text-decoration: underline; }
.fusion { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 84px); }
.fusion-pair > article { border-top: 1px solid var(--line); padding: 23px 0; }
.fusion-pair > article:last-child { border-bottom: 1px solid var(--line); }
.fusion-pair h3 { margin-bottom: .65rem; font-family: var(--serif); font-size: 1.75rem; }
.fusion-pair p { color: var(--muted); }
.method { grid-column: 1/-1; }
.method h3 { font-size: 1.1rem; margin-bottom: 15px; }
.method-list { padding: 0; margin: 0; list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); border-block: 1px solid var(--line); }
.method-list li { padding: 16px 16px 16px 0; }
.method-list strong { display: block; color: var(--ink); margin-bottom: 3px; }
.method-list span { display: block; color: var(--muted); font-size: .9rem; }
.method-list li + li { padding-left: 16px; border-left: 1px solid var(--line); }
.notes-layout, .faq-layout { display: grid; grid-template-columns: .76fr 1.24fr; gap: clamp(28px, 6vw, 100px); }
.note-list { border-bottom: 1px solid var(--line); }
.note-list details { border-top: 1px solid var(--line); }
.note-list summary { cursor: pointer; list-style: none; color: var(--ink); font-size: clamp(1rem, 1.8vw, 1.2rem); font-weight: 650; display: grid; grid-template-columns: 7em minmax(0,1fr) 18px; align-items: baseline; gap: 8px; padding: 20px 0; }
.note-list summary::-webkit-details-marker { display: none; }
.note-list summary::after { content: "+"; color: var(--accent); font-size: 1.25rem; }
.note-list details[open] summary::after { content: "−"; }
.note-tag, .work-type { color: var(--accent); font-size: .91rem; font-family: var(--hand); }
.note-body { padding: 0 24px 22px 0; color: var(--muted); }
.note-body a { margin-top: 10px; }
.faq-list > div { border-top: 1px solid var(--line); padding: 20px 0; }
.faq-list > div:last-child { border-bottom: 1px solid var(--line); }
.faq-list h3 { margin-bottom: 6px; font-size: 1.1rem; }
.faq-list p { color: var(--muted); }
.faq-list p a { color: var(--ink); display: inline-block; margin-left: 10px; white-space: nowrap; }
.site-footer { border-top: 1px solid var(--line); background: var(--wash); color: var(--muted); }
.footer-inner { display: grid; grid-template-columns: .76fr 1.24fr; gap: 20px 5vw; padding-block: 36px; font-size: .91rem; }
.footer-inner a { color: var(--accent); display: inline-block; margin-top: 8px; margin-right: 16px; }
.footer-name { font: 700 1.8rem/1.3 var(--serif); color: var(--ink); }
.inner-intro { padding-block: clamp(44px, 7vw, 100px) clamp(25px, 5vw, 58px); }
.inner-intro h1 { font-size: clamp(3rem, 6.8vw, 5.8rem); letter-spacing: -.05em; }
.intro-copy { max-width: 43em; color: var(--muted); }
p.intro-copy, .intro-copy > p:not(.eyebrow) { margin-top: 20px; }
.archive-intro { padding-block: clamp(40px, 5.75vw, 78px) clamp(23px, 3vw, 38px); }
.archive-intro h1 { font-size: clamp(2.9rem, 5.6vw, 4.6rem); }
.archive { padding-bottom: clamp(54px, 7vw, 104px); }
.work-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.work-filters button { color: var(--ink); background: var(--paper); border: 1px solid var(--line); border-radius: 3px; padding: 6px 17px; cursor: pointer; min-height: 42px; font-size: .91rem; }
.work-filters button:hover { border-color: var(--ink); }
.work-filters button[aria-pressed="true"] { background: var(--accent-surface); color: var(--ink); border-color: var(--accent); }
.work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px clamp(15px, 2.8vw, 38px); }
.work-item { padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.work-image { display: grid; place-items: center; aspect-ratio: 4/4.6; padding: 12px; background: var(--mount); box-shadow: 0 3px 10px rgb(75 43 33 / 8%); cursor: zoom-in; }
.work-image img { width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.work-copy { padding-top: 12px; }
.work-copy h2 { font-size: clamp(1.35rem, 2.3vw, 1.82rem); letter-spacing: -.025em; line-height: 1.35; margin-bottom: 4px; }
.work-copy p { color: var(--muted); margin-top: 6px; font-size: .93rem; }
.work-copy p.work-type { color: var(--accent); font-size: .85rem; }
.gallery-status { margin: 0 0 12px; color: var(--muted); font-size: .86rem; }
.gallery-dialog { width: min(900px, calc(100% - 24px)); max-height: calc(100dvh - 24px); border: 0; padding: 16px; color: var(--ink); background: var(--paper); }
.gallery-dialog::backdrop { background: rgb(49 36 31 / 72%); }
.gallery-dialog header { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; }
.gallery-dialog h2 { font-size: 1.25rem; }
.gallery-dialog button { padding: 5px 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); cursor: pointer; white-space: nowrap; }
.gallery-dialog img { object-fit: contain; width: 100%; max-height: 76dvh; }
.profile-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: clamp(26px, 7vw, 102px); }
.profile-image { justify-self: center; width: min(100%, 290px); border: 10px solid var(--mount); box-shadow: 0 4px 17px rgb(75 43 33 / 9%); transform: rotate(2deg); }
.page-section { border-top: 1px solid var(--line); padding-block: clamp(36px, 6vw, 72px); }
.page-section h2 { font-size: clamp(1.95rem, 4.3vw, 3.5rem); }
.about-text { max-width: 50em; margin-top: 20px; }
.about-text p + p { margin-top: 12px; }
.page-section .method-list { margin-top: 26px; }
.page-section .about-text a { color: var(--ink); }
@media (max-width: 800px) {
  html { scroll-padding-top: 130px; }
  .header-inner { display: block; padding-top: 13px; }
  .brand-mark { width: 34px; height: 36px; font-size: 1.4rem; }
  nav { justify-content: space-between; gap: 0 13px; }
  nav a { padding-block: 8px 10px; }
  .hero { gap: 22px; }
  .work-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 610px) {
  html { scroll-padding-top: 125px; }
  .header-inner { width: calc(100% - 30px); }
  nav { justify-content: space-between; gap: 0 7px; }
  nav a { font-size: clamp(.72rem, 3vw, .85rem); }
  .hero { grid-template-columns: 1fr; padding-block: 32px 28px; gap: 24px; }
  .hero-eyebrow { margin-bottom: 12px; }
  .hero-lead { margin-top: 12px; }
  .hero-actions { margin-top: 20px; }
  .hero-art { max-width: 450px; padding: 9px 13px 0 6px; }
  .hero-art figcaption { font-size: .92rem; }
  .hero-companion { margin-left: -12px; }
  .section-head-split { align-items: baseline; flex-wrap: wrap; }
  .selection-grid { grid-template-columns: 1fr 1fr; }
  .selection-grid figure:nth-child(3) { grid-column: 1/-1; }
  .selection-grid figure:nth-child(2) { margin-top: 22px; }
  .selection-grid figcaption { gap: 2px 5px; }
  .fusion, .notes-layout, .faq-layout, .profile-grid { grid-template-columns: 1fr; }
  .method-list { grid-template-columns: 1fr; }
  .method-list li, .method-list li + li { padding: 10px 0; border-left: 0; display: grid; grid-template-columns: 4em 1fr; align-items: baseline; }
  .method-list li + li { border-top: 1px solid var(--line); }
  .note-list summary { grid-template-columns: 1fr 18px; }
  .note-tag { grid-column: 1/-1; }
  .work-grid { gap: 24px 12px; }
  .work-image { padding: 6px; }
  .profile-image { justify-self: start; }
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
