:root {
  color-scheme: light;
  --base: #f7f4ee;
  --paper: #fffdf8;
  --ink: #20253a;
  --muted: #6f7180;
  --accent: #5962a8;
  --accent-soft: #dfe2f5;
  --line: rgb(32 37 58 / 22%);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, transparent 0 7.5%, rgb(89 98 168 / 7%) 7.5% calc(7.5% + 1px), transparent calc(7.5% + 1px)),
    var(--base);
}

a { color: inherit; }

.skip-link {
  position: fixed;
  z-index: 20;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--paper);
  background: var(--ink);
  transform: translateY(-160%);
}

.skip-link:focus { transform: translateY(0); }

.page-shell {
  width: min(1160px, calc(100% - 48px));
  min-height: 100vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
}

.site-header {
  min-height: 92px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  border-bottom: 1px solid var(--line);
}

.site-mark {
  width: 48px;
  min-height: 48px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  font-weight: 800;
  text-decoration: none;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.primary-nav a {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  font-size: .9rem;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.primary-nav a:hover { border-bottom-color: currentColor; }

.primary-nav .nav-featured {
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
}

.primary-nav .nav-featured:hover {
  color: var(--ink);
  background: transparent;
}

.hero {
  min-height: min(670px, 76vh);
  padding: clamp(56px, 9vw, 112px) 0 64px;
  display: grid;
  align-content: center;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 360px);
  column-gap: clamp(32px, 8vw, 120px);
}

.hero-intro {
  grid-column: 1 / -1;
  margin: 0 0 8px;
  font-size: clamp(1.15rem, 2.2vw, 1.8rem);
  font-weight: 650;
}

.wordmark {
  grid-column: 1 / -1;
  margin: 0;
  overflow: hidden;
  color: var(--accent);
  font-size: clamp(6rem, 21vw, 17rem);
  font-weight: 900;
  line-height: .75;
  letter-spacing: -.095em;
  white-space: nowrap;
  transform-origin: left bottom;
  animation: wordmark-arrive .75s cubic-bezier(.22,.78,.25,1) both;
}

.hero-note {
  grid-column: 2;
  max-width: 32ch;
  margin: 40px 0 18px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.8;
}

.text-link {
  grid-column: 2;
  width: fit-content;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-underline-offset: 6px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.info-block {
  min-height: 285px;
  padding: 32px clamp(22px, 3vw, 40px) 36px;
  border-right: 1px solid var(--line);
}

.info-block:last-child { border-right: 0; }

.info-block h2,
.works-heading h1 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -.04em;
}

.info-block p {
  max-width: 34ch;
  margin: 28px 0;
  color: var(--muted);
  line-height: 1.8;
}

.info-block-featured { background: var(--accent-soft); }

.empty-state { font-style: italic; }

.block-link {
  min-height: 44px;
  width: fit-content;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  text-underline-offset: 6px;
}

.site-footer {
  min-height: 108px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: .85rem;
}

.works-main { padding: clamp(64px, 10vw, 132px) 0; }

.works-heading {
  display: grid;
  grid-template-columns: minmax(180px, .55fr) 1fr;
  gap: 18px clamp(32px, 8vw, 120px);
  align-items: end;
}

.section-index {
  margin: 0;
  color: var(--accent);
  font-size: .85rem;
  font-weight: 800;
  letter-spacing: .08em;
}

.works-heading h1 {
  grid-column: 2;
  font-size: clamp(3.8rem, 10vw, 8.5rem);
}

.works-heading > p:last-child {
  grid-column: 2;
  max-width: 48ch;
  margin: 14px 0 52px;
  color: var(--muted);
  line-height: 1.8;
}

.work-list { border-top: 1px solid var(--ink); }

.work-row {
  min-height: 154px;
  padding: 28px 4px;
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 24px;
  align-items: center;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
  transition: padding .2s ease, background .2s ease;
}

.work-row:hover {
  padding-right: 22px;
  padding-left: 22px;
  background: var(--accent-soft);
}

.work-number,
.work-action {
  color: var(--muted);
  font-size: .85rem;
}

.work-copy { display: grid; gap: 8px; }

.work-copy strong {
  font-size: clamp(1.35rem, 3vw, 2.2rem);
  letter-spacing: -.03em;
}

.work-copy > span { color: var(--muted); }

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

@keyframes wordmark-arrive {
  from { opacity: 0; transform: translateY(20px) scaleX(.96); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 760px) {
  body { background: var(--base); }
  .page-shell { width: min(100% - 30px, 620px); }
  .site-header { min-height: 78px; align-items: flex-start; padding: 15px 0; }
  .site-mark { width: 44px; min-height: 44px; }
  .primary-nav { flex-wrap: wrap; justify-content: flex-end; gap: 2px; }
  .primary-nav a { padding: 0 10px; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding: 78px 0 72px; }
  .wordmark { font-size: clamp(5.2rem, 28vw, 9rem); }
  .hero-note,
  .text-link { grid-column: 1; }
  .hero-note { margin-top: 42px; }
  .info-grid { grid-template-columns: 1fr; }
  .info-block { min-height: 230px; border-right: 0; border-bottom: 1px solid var(--line); }
  .info-block:last-child { border-bottom: 0; }
  .works-heading { grid-template-columns: 1fr; }
  .works-heading h1,
  .works-heading > p:last-child { grid-column: 1; }
  .works-heading h1 { margin-top: 18px; }
  .work-row { grid-template-columns: 44px 1fr; }
  .work-action { display: none; }
}

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