:root {
  color-scheme: light;
  --paper: #f5f3ee;
  --panel: #fffdf8;
  --ink: #1d241f;
  --muted: #687069;
  --line: #d8d8cf;
  --accent: #ec5b3f;
  --accent-2: #174c3c;
  --soft: #e8e4d8;
  --shadow: 0 18px 60px rgba(29, 36, 31, 0.1);
}

html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #171a18;
  --panel: #222622;
  --ink: #f2f0e8;
  --muted: #b1b6ae;
  --line: #3b403b;
  --accent: #ff765b;
  --accent-2: #8bc9b1;
  --soft: #2d322d;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.3);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  line-height: 1.6;
  transition: background-color 220ms ease, color 220ms ease;
}

button, a { -webkit-tap-highlight-color: transparent; }

button { font: inherit; }

a { color: inherit; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -80px;
  z-index: 100;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  padding: 10px 16px;
  transition: top 150ms ease;
}

.skip-link:focus { top: 16px; }

.site-header {
  width: min(1200px, calc(100% - 40px));
  height: 84px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  font-weight: 720;
  text-decoration: none;
  letter-spacing: 0.08em;
}

.brand-mark {
  width: 28px;
  height: 28px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3px;
  transform: rotate(8deg);
}

.brand-mark span { border-radius: 3px; background: var(--ink); }
.brand-mark span:nth-child(2), .brand-mark span:nth-child(3) { background: var(--accent); }

nav { display: flex; align-items: center; gap: 28px; }
nav a, .quiet-button {
  color: var(--muted);
  font-size: 13px;
  text-decoration: none;
  transition: color 150ms ease;
}
nav a:hover, nav a:focus-visible, .quiet-button:hover, .quiet-button:focus-visible { color: var(--ink); }

.quiet-button {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  background: none;
  cursor: pointer;
}

.theme-icon {
  width: 14px;
  height: 14px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  box-shadow: inset 5px -3px 0 var(--paper);
}

main, footer { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }

.hero {
  min-height: 680px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
  padding: 72px 0 88px;
}

.eyebrow {
  margin: 0 0 20px;
  color: var(--accent);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.2em;
}

h1, h2, p { margin-top: 0; }

h1 {
  margin-bottom: 30px;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(58px, 7.6vw, 108px);
  font-weight: 520;
  line-height: 0.96;
  letter-spacing: -0.055em;
}

h2 {
  margin-bottom: 0;
  font-family: "Songti SC", "STSong", serif;
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 540;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.hero-lede {
  max-width: 560px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.9;
}

.hero-actions { display: flex; gap: 12px; margin-top: 34px; }

.primary-action, .secondary-action {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 24px;
  border: 1px solid var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 150ms ease, background-color 150ms ease, color 150ms ease;
}

.primary-action { background: var(--ink); color: var(--paper); }
.secondary-action { background: transparent; color: var(--ink); }
.primary-action:hover, .secondary-action:hover { transform: translateY(-2px); }
.secondary-action:hover { background: var(--ink); color: var(--paper); }

.trust-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 12px;
}

.trust-list li::before { content: ""; display: inline-block; width: 5px; height: 5px; margin: 0 8px 2px 0; border-radius: 50%; background: var(--accent-2); }

.hero-art { position: relative; min-height: 520px; }

.poster {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 5px;
  box-shadow: var(--shadow);
  transition: transform 320ms cubic-bezier(.2,.8,.2,1);
}

.poster:hover { transform: translateY(-10px) rotate(0); }
.poster-index { position: absolute; top: 15px; left: 17px; font-size: 10px; letter-spacing: .16em; }
.poster strong { position: absolute; font-family: "Songti SC", serif; font-weight: 500; line-height: 1.05; }

.poster-a { width: 42%; aspect-ratio: .72; left: 4%; top: 12%; background: #ec6043; color: #2b201d; transform: rotate(-7deg); z-index: 2; }
.poster-a strong { right: 16%; bottom: 12%; font-size: clamp(34px, 5vw, 64px); }
.poster-circle { position: absolute; width: 62%; aspect-ratio: 1; border: 2px solid #2b201d; border-radius: 50%; left: -18%; top: 21%; }
.poster-circle::after { content: ""; position: absolute; inset: 16%; border-radius: inherit; background: #f3d845; }

.poster-b { width: 40%; aspect-ratio: .72; left: 35%; top: 1%; background: #163f34; color: #eef0df; transform: rotate(5deg); z-index: 3; }
.poster-b strong { left: 16%; bottom: 12%; font-size: clamp(28px, 4vw, 52px); }
.poster-grid { position: absolute; inset: 17% 12% 38%; background-image: linear-gradient(rgba(255,255,255,.25) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.25) 1px, transparent 1px); background-size: 18% 18%; }

.poster-c { width: 39%; aspect-ratio: .72; right: 1%; top: 18%; background: #e5dcca; color: #272722; transform: rotate(9deg); z-index: 1; }
.poster-c strong { right: 15%; bottom: 12%; font-size: clamp(27px, 4vw, 50px); text-align: right; }
.poster-wave { position: absolute; width: 180%; height: 42%; top: 25%; left: -42%; border-radius: 50%; border: 26px solid #315a96; transform: rotate(-12deg); }

.orbit { position: absolute; border: 1px solid var(--line); border-radius: 50%; }
.orbit-one { width: 86%; aspect-ratio: 1; left: 2%; top: -7%; }
.orbit-two { width: 50%; aspect-ratio: 1; right: -5%; bottom: -2%; }

.gallery-section { padding: 110px 0 120px; border-top: 1px solid var(--line); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.section-heading > p { margin-bottom: 4px; color: var(--muted); font-size: 13px; }

.filters { display: flex; flex-wrap: wrap; gap: 9px; margin: 42px 0 30px; }
.filter {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}
.filter:hover { border-color: var(--ink); color: var(--ink); }
.filter.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

.gallery-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.work-card { grid-column: span 2; min-width: 0; }
.work-card.work-wide { grid-column: span 2; }
.work-card[hidden] { display: none; }
.work-open { width: 100%; padding: 0; border: 0; background: none; color: inherit; text-align: left; cursor: zoom-in; }

.work-visual {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  border-radius: 4px;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.work-open:hover .work-visual, .work-open:focus-visible .work-visual { transform: translateY(-5px); box-shadow: var(--shadow); }
.work-open:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; border-radius: 4px; }
.work-meta { display: flex; justify-content: space-between; gap: 16px; padding: 15px 2px 24px; }
.work-meta b { font-size: 14px; }
.work-meta span { color: var(--muted); font-size: 11px; letter-spacing: .08em; }

.visual-reading { display: grid; grid-template-columns: 64px 1fr 58px; gap: 1px; padding: 18px; background: #d8d0be; }
.mock-sidebar, .mock-reading, .mock-note { background: #f7f1e5; }
.mock-sidebar { display: flex; flex-direction: column; align-items: center; gap: 17px; padding-top: 22px; }
.mock-sidebar i { width: 18px; height: 3px; background: #25372f; }
.mock-sidebar i:nth-child(2) { width: 29px; height: 29px; border-radius: 50%; background: #e95d40; }
.mock-reading { padding: 42px 36px; color: #21372e; }
.mock-tag { font-size: 9px; letter-spacing: .2em; }
.mock-reading b { display: block; margin: 48px 0 38px; font-family: "Songti SC", serif; font-size: clamp(28px, 3.5vw, 48px); line-height: 1.25; }
.mock-reading i { display: block; width: 88%; height: 3px; margin-top: 12px; background: #d2cdc1; }
.mock-reading i:nth-last-child(1) { width: 58%; }
.mock-note { display: flex; align-items: end; justify-content: center; padding-bottom: 20px; color: #8a887e; font-size: 9px; writing-mode: vertical-rl; }

.visual-spring { background: #f2c84b; color: #133f32; }
.color-sun { position: absolute; width: 34%; aspect-ratio: 1; right: 12%; top: 9%; border-radius: 50%; background: #ee694f; }
.color-leaf { position: absolute; background: #164c3b; border-radius: 100% 0 100% 0; transform: rotate(27deg); }
.leaf-a { width: 55%; height: 35%; left: -6%; bottom: 8%; }
.leaf-b { width: 36%; height: 24%; right: 8%; bottom: 12%; transform: rotate(-25deg); background: #f4efe3; }
.visual-spring strong { position: absolute; left: 11%; top: 12%; font-family: "Songti SC", serif; font-size: clamp(48px, 6vw, 76px); font-weight: 500; line-height: 1; }
.visual-spring small { font: 9px/1.2 ui-sans-serif, system-ui; letter-spacing: .16em; }

.visual-echo { display: grid; grid-template-columns: 1fr 1fr; background: #252d83; color: #f4e9d5; }
.visual-echo span { border-right: 1px solid rgba(255,255,255,.25); border-bottom: 1px solid rgba(255,255,255,.25); }
.visual-echo span:nth-child(1)::before, .visual-echo span:nth-child(4)::before { content: ""; display: block; width: 68%; aspect-ratio: 1; margin: 16%; border: 13px solid #ef6045; border-radius: 50%; }
.visual-echo span:nth-child(4)::before { border-color: #f0cf51; }
.visual-echo b { position: absolute; inset: 0; display: grid; place-content: center; font-family: "Songti SC", serif; font-size: clamp(52px, 8vw, 90px); font-weight: 500; line-height: .88; text-align: center; }

.visual-rhythm { padding: 34px; display: flex; flex-direction: column; justify-content: space-between; background: #efe8d7; color: #1d2e26; }
.visual-rhythm span { display: block; font-family: "Songti SC", serif; font-size: clamp(42px, 6vw, 76px); line-height: .95; }
.visual-rhythm span:nth-child(2) { align-self: center; color: #e45138; }
.visual-rhythm span:nth-child(3) { align-self: end; }
.visual-rhythm em { font-size: 9px; font-style: normal; letter-spacing: .22em; }

.visual-weather { padding: 34px; background: #d9e8ed; color: #17344a; }
.weather-orb { position: absolute; width: 220px; height: 220px; right: -54px; top: -64px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff8c7 0 19%, #f7ba4c 20% 39%, rgba(255,255,255,.45) 40% 41%, transparent 42%); }
.visual-weather > span { font-size: 12px; letter-spacing: .2em; }
.visual-weather > b { display: block; margin-top: 30px; font-size: 82px; font-weight: 400; letter-spacing: -.08em; }
.visual-weather > small { font-size: 12px; }
.weather-days { position: absolute; left: 34px; right: 34px; bottom: 28px; display: flex; justify-content: space-between; border-top: 1px solid rgba(23,52,74,.25); padding-top: 16px; }
.weather-days i { font-size: 11px; font-style: normal; }

.visual-landscape { min-height: 390px; background: #dddfca; color: #173d35; }
.landscape-sun { position: absolute; width: 130px; height: 130px; border-radius: 50%; right: 15%; top: 10%; background: #ef6045; }
.mountain { position: absolute; width: 65%; height: 64%; bottom: -25%; border-radius: 52% 48% 0 0; transform: rotate(12deg); }
.mountain-a { left: -18%; background: #163f34; }
.mountain-b { left: 26%; bottom: -37%; background: #f0c84e; transform: rotate(-9deg); }
.mountain-c { right: -25%; bottom: -28%; background: #4964a8; transform: rotate(17deg); }
.visual-landscape > span { position: absolute; left: 8%; top: 14%; font-family: "Songti SC", serif; font-size: clamp(28px, 4vw, 50px); line-height: 1.2; }
.visual-landscape small { font: 9px/1.2 ui-sans-serif, system-ui; letter-spacing: .16em; }

.empty-message { padding: 60px 0; color: var(--muted); text-align: center; }

.notes { display: grid; grid-template-columns: .85fr 1.15fr; gap: 80px; padding: 100px 0 120px; border-top: 1px solid var(--line); }
.notes-copy { display: grid; grid-template-columns: 1fr 1fr; gap: 34px; color: var(--muted); font-size: 14px; line-height: 1.9; }

footer { min-height: 150px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
footer > div { display: flex; align-items: center; gap: 18px; }
footer strong { color: var(--ink); }
.filing-links a { text-underline-offset: 3px; }
.police-filing { display: inline-flex; align-items: center; gap: 6px; }
.police-filing img { width: 18px; height: auto; flex: 0 0 auto; }
.filing-links a { text-underline-offset: 4px; }
.police-pending { padding-left: 18px; border-left: 1px solid var(--line); }

.preview-dialog {
  width: min(920px, calc(100% - 32px));
  max-height: 88vh;
  margin: auto;
  border: 0;
  border-radius: 10px;
  padding: 22px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: 0 26px 100px rgba(0,0,0,.25);
}
.preview-dialog::backdrop { background: rgba(16, 19, 17, .72); backdrop-filter: blur(8px); }
.preview-dialog[open] { animation: dialog-in 180ms ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(12px) scale(.985); } }
.dialog-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 8px 4px 20px; }
.dialog-head h2 { font-size: 34px; }
.dialog-head .eyebrow { margin-bottom: 8px; }
.dialog-close { min-height: 40px; border: 1px solid var(--line); border-radius: 999px; padding: 0 16px; background: transparent; color: var(--ink); cursor: pointer; }
.dialog-visual .work-visual { min-height: min(58vh, 560px); }
.dialog-note { margin: 16px 3px 2px; color: var(--muted); font-size: 12px; }

@media (max-width: 880px) {
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 60px; }
  .hero-art { min-height: 580px; }
  .gallery-grid { grid-template-columns: 1fr 1fr; }
  .notes { grid-template-columns: 1fr; gap: 40px; }
}

@media (max-width: 600px) {
  .site-header, main, footer { width: min(100% - 28px, 1200px); }
  .site-header { height: 70px; }
  nav { gap: 14px; }
  nav > a { display: none; }
  .hero { padding: 52px 0 72px; gap: 24px; }
  h1 { font-size: 58px; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .trust-list { display: grid; gap: 8px; }
  .hero-art { min-height: 410px; }
  .poster-a { width: 49%; left: 0; }
  .poster-b { width: 47%; left: 31%; }
  .poster-c { width: 45%; right: 0; }
  .gallery-section { padding: 76px 0 80px; }
  .section-heading { align-items: start; }
  .gallery-grid { grid-template-columns: 1fr; }
  .work-card, .work-card.work-wide { grid-column: span 1; }
  .work-visual { min-height: 300px; }
  .visual-reading { grid-template-columns: 45px 1fr 36px; padding: 10px; }
  .mock-reading { padding: 34px 18px; }
  .notes { padding: 76px 0 86px; }
  .notes-copy { grid-template-columns: 1fr; gap: 8px; }
  footer { padding: 34px 0; align-items: flex-start; flex-direction: column; }
  footer > div, .filing-links { align-items: flex-start; flex-direction: column; gap: 8px; }
  .police-pending { padding: 0; border: 0; }
}

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