:root {
  --ivory: #f6f0e6;
  --paper: #fffaf1;
  --ink: #171714;
  --muted: #676158;
  --jade: #0d5146;
  --mineral: #315b7a;
  --gold: #b58b45;
  --clay: #8f6655;
  --line: rgba(23, 23, 20, 0.16);
  --font-display: Optima, "Hiragino Mincho ProN", "Yu Mincho", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", STSong, Georgia, serif;
  --font-serif: "Hiragino Mincho ProN", "Yu Mincho", "Source Han Serif SC", "Noto Serif CJK SC", "Songti SC", STSong, Georgia, serif;
  --font-sans: "Avenir Next", Avenir, "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", "Helvetica Neue", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.72;
  font-kerning: normal;
  font-feature-settings: "kern" 1, "liga" 1;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

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

img {
  display: block;
  max-width: 100%;
}

.site-header,
.site-footer,
.button,
.meta,
.page-label,
.nav-grid,
.timeline,
.archive-list,
.detail-list,
.breadcrumb {
  font-family: var(--font-sans);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px clamp(20px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 250, 241, 0.92);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(23, 23, 20, 0.34);
  border-radius: 50%;
  font-size: 13px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(16px, 3vw, 30px);
  color: var(--muted);
  font-size: 13px;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.72fr) minmax(280px, 0.28fr);
  gap: clamp(24px, 5vw, 70px);
  padding: clamp(48px, 6.5vw, 86px) clamp(22px, 5vw, 78px);
  background: var(--paper);
}

.hero.compact {
  grid-template-columns: minmax(0, 1fr);
}

.page-label {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}

.breadcrumb {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb a {
  color: var(--jade);
}

h1 {
  max-width: 980px;
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(28px, 3vw, 42px);
  font-weight: 300;
  font-synthesis-weight: none;
  line-height: 1.08;
  text-wrap: balance;
}

h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(20px, 1.8vw, 28px);
  font-weight: 300;
  font-synthesis-weight: none;
  line-height: 1.28;
  text-wrap: balance;
}

h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 300;
  font-synthesis-weight: none;
  line-height: 1.3;
  text-wrap: balance;
}

p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.78;
  text-wrap: pretty;
}

.lede {
  max-width: 760px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 1.25vw, 17px);
  line-height: 1.75;
}

.hero-aside {
  display: grid;
  align-content: end;
  gap: 12px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--jade);
  border-radius: 4px;
  padding: 0 16px;
  color: var(--jade);
  font-size: 14px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.button.primary {
  background: var(--jade);
  color: var(--paper);
}

.button:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--paper);
}

.section {
  padding: clamp(44px, 6.5vw, 78px) clamp(22px, 5vw, 78px);
}

.section.paper {
  background: var(--paper);
}

.section.jade {
  background: var(--jade);
  color: var(--paper);
}

.section.jade p,
.section.jade .timeline li {
  color: rgba(255, 250, 241, 0.82);
}

.section.jade .page-label {
  color: rgba(255, 250, 241, 0.72);
}

.work-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: clamp(14px, 2vw, 24px);
  margin-top: 32px;
}

.work-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--line);
  background: var(--paper);
}

.work-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d9d8d0;
}

.work-card.tall img {
  object-position: center 38%;
}

.work-card-body {
  padding: 18px;
}

.meta {
  margin: 0 0 14px;
  color: var(--clay);
  font-size: 13px;
  font-weight: 500;
}

.detail {
  display: grid;
  grid-template-columns: minmax(280px, 0.54fr) minmax(0, 0.46fr);
  gap: clamp(24px, 4vw, 52px);
  align-items: start;
}

.detail img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  background: #dfded5;
}

.detail-list {
  display: grid;
  gap: 11px;
  margin: 24px 0 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}

.detail-row span:first-child {
  color: var(--muted);
  font-size: 13px;
}

.detail-row span:last-child,
.detail-row a {
  font-size: 15px;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding: 0 0 14px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.timeline time {
  color: var(--gold);
}

.archive-list {
  display: grid;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.archive-list li {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}

.archive-list strong {
  color: var(--ink);
  font-weight: 400;
}

.archive-list a {
  color: var(--jade);
}

.nav-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin-top: 28px;
  border: 1px solid var(--line);
  background: var(--line);
}

.nav-tile {
  min-height: 150px;
  padding: 20px;
  background: var(--paper);
}

.nav-tile p {
  margin: 18px 0 0;
  font-size: 15px;
}

.site-footer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  padding: 22px clamp(22px, 5vw, 78px);
  background: #11110f;
  color: rgba(255, 250, 241, 0.62);
  font-size: 13px;
}

.site-footer a {
  color: rgba(255, 250, 241, 0.86);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 900px) {
  .site-header,
  .hero,
  .detail,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .site-header {
    align-items: flex-start;
    gap: 18px;
  }

  .work-grid,
  .nav-grid {
    grid-template-columns: 1fr;
  }

  .archive-list li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 680px) {
  .site-header {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .site-nav {
    width: 100%;
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: thin;
  }

  .site-nav a {
    flex: 0 0 auto;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: 30px;
  }

  h2 {
    font-size: 22px;
  }

  p,
  .lede,
  .timeline li,
  .archive-list li {
    font-size: 14px;
  }

  .site-nav {
    gap: 12px;
  }

  .detail-row,
  .timeline li {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}
