:root {
  color-scheme: light;
  --ink: #171714;
  --paper: #f2f0e9;
  --acid: #d8ff3e;
  --line: rgba(23, 23, 20, 0.18);
  --muted: #68675f;
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 74px; padding: 0 3vw; border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(14px);
}
.brand { font-size: clamp(1.15rem, 2vw, 1.75rem); font-weight: 900; letter-spacing: -0.07em; }
.brand span { margin-left: .3em; font-size: .4em; vertical-align: top; }
nav { display: flex; gap: 2rem; font-size: .85rem; }
nav a:hover { text-decoration: underline; text-underline-offset: .4em; }
.menu-button { display: none; border: 0; background: none; font: inherit; }

.hero { min-height: calc(100svh - 74px); display: grid; grid-template-columns: 1.2fr .8fr; }
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; padding: 5vw 3vw 3vw; }
.eyebrow { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
h1 { max-width: 10ch; margin: 1.5rem 0; font-size: clamp(4rem, 10vw, 10rem); line-height: .82; letter-spacing: -.09em; }
.hero-intro { max-width: 32rem; font-size: clamp(1rem, 1.7vw, 1.45rem); line-height: 1.55; }
.hero-visual { position: relative; min-height: 60vh; overflow: hidden; background: #dad7ce; }
.hero-visual img { height: 100%; object-fit: cover; filter: saturate(.82) contrast(1.05); transition: transform 1.2s ease; }
.hero-visual:hover img { transform: scale(1.025); }
.hero-stamp { position: absolute; right: 1.5rem; bottom: 1.5rem; display: grid; place-items: center; width: 8rem; aspect-ratio: 1; border-radius: 50%; background: var(--acid); font-size: .75rem; font-weight: 800; text-align: center; transform: rotate(7deg); }

.section { padding: 8rem 3vw; border-top: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; margin-bottom: 3rem; }
.section h2 { margin: 0; font-size: clamp(2.8rem, 7vw, 7rem); line-height: .9; letter-spacing: -.07em; }
.section-count { color: var(--muted); font-size: .8rem; }
.story-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 3.5rem 1.4rem; }
.story-card { grid-column: span 4; }
.story-card:nth-child(5n + 1), .story-card:nth-child(5n + 4) { grid-column: span 8; }
.story-image { aspect-ratio: 4 / 3; overflow: hidden; background: #ddd9cf; }
.story-image img { height: 100%; object-fit: cover; transition: transform .6s ease; }
.story-card:hover img { transform: scale(1.035); }
.story-meta { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1rem; color: var(--muted); font-size: .72rem; }
.story-card h3 { max-width: 22ch; margin: .55rem 0 0; font-size: clamp(1.2rem, 2.2vw, 2.1rem); line-height: 1.08; letter-spacing: -.04em; }

.work-list { border-top: 1px solid var(--ink); }
.work-row { display: grid; grid-template-columns: 5rem 1fr auto; gap: 2rem; align-items: center; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.work-row span { color: var(--muted); font-size: .74rem; }
.work-row h3 { margin: 0; font-size: clamp(1.35rem, 3vw, 3rem); letter-spacing: -.05em; }
.work-row b { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border: 1px solid; border-radius: 50%; transition: .25s; }
.work-row:hover b { background: var(--acid); transform: rotate(-20deg); }

.about-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 10vw; }
.about-grid p { margin: 0; font-size: clamp(1.7rem, 3.5vw, 3.7rem); line-height: 1.16; letter-spacing: -.045em; }
.loading, .error { min-height: 60vh; display: grid; place-items: center; color: var(--muted); }
.not-found { min-height: 100svh; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: 8vw; }
.not-found h1 { margin-block: 1rem; }
.not-found > p:not(.eyebrow) { font-size: 1.2rem; }
.entry { padding-bottom: 8rem; }
.entry-header { min-height: 68vh; display: flex; flex-direction: column; justify-content: flex-end; padding: 4rem 8vw 3rem; border-bottom: 1px solid var(--line); }
.entry-header h1 { max-width: 13ch; margin: 1.5rem 0 2.5rem; font-size: clamp(3.6rem, 8vw, 8.5rem); }
.back-link { position: absolute; top: 7rem; font-size: .8rem; }
.entry-meta { display: flex; justify-content: space-between; max-width: 50rem; color: var(--muted); font-size: .76rem; }
.entry-cover { width: min(100% - 6vw, 96rem); max-height: 88vh; margin: 3vw auto 8rem; overflow: hidden; }
.entry-cover img { width: 100%; height: 100%; max-height: 88vh; object-fit: cover; }
.entry-body { width: min(100% - 8vw, 86rem); margin: 0 auto; }
.entry-body > .content-group, .entry-body > .rich-text, .entry-body > h2, .entry-body > h3, .entry-body > ul { width: min(100%, 52rem); margin-inline: auto; }
.rich-text { font-family: Georgia, "Songti SC", serif; font-size: clamp(1.05rem, 1.4vw, 1.3rem); line-height: 1.95; }
.rich-text p { margin: 0 0 1.6em; }
.content-group { margin-block: 3rem; }
.content-row { width: 100% !important; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(22rem, 100%), 1fr)); gap: 2rem; align-items: start; }
.content-image { margin: 2rem 0; }
.content-image img { max-height: 85vh; object-fit: contain; background: #e4e1d8; }
.content-image figcaption { margin-top: .6rem; color: var(--muted); font-size: .72rem; }
.content-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin: 5rem 0; }
.content-gallery .content-image { margin: 0; }
.content-card { display: grid; grid-template-columns: minmax(16rem, .8fr) 1fr; gap: 3rem; margin: 5rem 0; padding: 2rem; border: 1px solid var(--line); }
.content-card h3 { font-size: clamp(1.7rem, 3vw, 3rem); letter-spacing: -.04em; }
.content-button { display: inline-block; margin: 2rem 0; padding: 1rem 1.4rem; border: 1px solid; border-radius: 999px; }
.content-video video { width: 100%; }
.entry-body hr { margin: 5rem 0; border: 0; border-top: 1px solid var(--line); }
.site-footer { display: grid; grid-template-columns: 1fr 1fr auto; gap: 2rem; align-items: end; padding: 3rem 3vw; color: var(--paper); background: var(--ink); }
.site-footer p { margin: 0; font-size: .75rem; }

@media (max-width: 760px) {
  .site-header { min-height: 62px; }
  .menu-button { display: block; }
  nav { position: absolute; top: 62px; left: 0; right: 0; display: none; flex-direction: column; padding: 2rem 3vw; background: var(--paper); border-bottom: 1px solid var(--line); }
  nav.open { display: flex; }
  .hero { grid-template-columns: 1fr; }
  .hero-copy { min-height: 68vh; }
  h1 { font-size: 22vw; }
  .hero-visual { min-height: 70vh; }
  .section { padding: 5rem 4vw; }
  .story-grid { display: block; }
  .story-card { margin-bottom: 3rem; }
  .work-row { grid-template-columns: 2.5rem 1fr auto; gap: .75rem; }
  .about-grid, .site-footer { grid-template-columns: 1fr; }
  .entry-header { min-height: 58vh; padding: 7rem 4vw 2rem; }
  .back-link { top: 5.5rem; }
  .entry-cover { margin-bottom: 4rem; }
  .content-gallery, .content-card { grid-template-columns: 1fr; }
}
