:root {
  color-scheme: light;
  --paper: #f7f4ec;
  --sheet: #f0ebe0;
  --ink: #25231f;
  --secondary: #514c43;
  --muted: #6e6357;
  --line: #d9d1c2;
  --accent: #963d2b;
  --accent-hover: #76301f;
  --inverse: #faf3e7;
  --inverse-muted: #d7c9b6;
  --sans: "Helvetica Neue", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  --display: Georgia, "Songti SC", "Noto Serif CJK SC", "SimSun", serif;
  --mono: ui-monospace, "SFMono-Regular", Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 16px/1.65 var(--sans);
}
[hidden] { display: none !important; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
::selection { background: var(--accent); color: var(--inverse); }

.wrap { width: min(1280px, calc(100% - 112px)); margin-inline: auto; }
.icon-library { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.registration { color: var(--accent); }
.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 5;
  padding: 8px 16px;
  background: var(--ink);
  color: var(--inverse);
  transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  min-height: 76px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.wordmark, .site-nav a, .top-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}
.wordmark { font-size: 17px; font-weight: 500; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 32px; font-size: 14px; }
.site-nav a, .top-link, .contact-links a {
  transition: color 160ms var(--ease);
}
.site-nav a:hover, .top-link:hover { color: var(--accent); }
.nav-contact .icon { color: var(--accent); }
.nav-toggle {
  display: none;
  min-height: 44px;
  padding: 4px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: transparent;
  font-size: 14px;
  cursor: pointer;
}

.hero { padding-top: 48px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, .93fr) minmax(0, 1.07fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { padding-bottom: 36px; min-width: 0; }
.folio, .section-index, .row-index, .project-meta, figcaption, .hero-meta {
  color: var(--muted);
  font: 400 13px/1.6 var(--mono);
  font-variant-numeric: tabular-nums;
}
.folio { display: flex; align-items: center; gap: 8px; }
.folio-rule { width: 24px; height: 1px; background: var(--accent); }
.folio-slash { color: var(--accent); }
h1 {
  margin: 16px 0 20px;
  font: 400 clamp(62px, 8.2vw, 118px)/.98 var(--display);
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.hero-headline {
  max-width: 22em;
  font: 500 clamp(24px, 2.5vw, 36px)/1.36 var(--display);
  text-wrap: pretty;
}
.hero-summary {
  max-width: 31em;
  margin-top: 16px;
  color: var(--secondary);
  line-height: 1.8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.button {
  display: inline-flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  padding: 8px 16px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease);
}
.button-solid { background: var(--ink); color: var(--inverse); }
.button-solid:hover { background: var(--accent-hover); }
.button-outline { border-color: var(--line); }
.button-outline:hover { background: var(--sheet); border-color: var(--muted); }

.hero-figure { min-width: 0; }
.figure-art { overflow: hidden; border-radius: 4px; background: #743526; }
.figure-art img { display: block; width: 100%; height: auto; }
figcaption {
  min-height: 36px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 16px;
}
figcaption > span:first-child { display: flex; align-items: center; gap: 8px; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 32px;
  margin-top: 32px;
  padding-block: 16px;
  border-block: 1px solid var(--line);
}
.hero-identity, .hero-status { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.hero-identity > :first-child { color: var(--secondary); }
.local-time { white-space: nowrap; }

.page-section, .contact-grid {
  display: grid;
  grid-template-columns: minmax(0, .34fr) minmax(0, .66fr);
  gap: 48px;
}
.page-section { padding-block: 80px; border-bottom: 1px solid var(--line); }
.section-heading { min-width: 0; }
.section-index { display: flex; align-items: center; gap: 12px; }
.section-index > :first-child { color: var(--accent); }
h2 {
  margin-top: 12px;
  font: 500 clamp(32px, 3.9vw, 52px)/1.2 var(--display);
  letter-spacing: -.045em;
}
.project, .principles li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: start;
  gap: 16px;
  padding-block: 24px;
  border-top: 1px solid var(--line);
}
.project:first-child, .principles li:first-child { padding-top: 0; border-top: 0; }
.project:last-child, .principles li:last-child { padding-bottom: 0; }
.row-index { padding-top: 2px; color: var(--accent); }
.project-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.project-meta span + span::before { content: "·"; margin-right: 12px; }
.project h3 {
  margin-top: 4px;
  font: 400 clamp(25px, 2.8vw, 36px)/1.18 var(--display);
  letter-spacing: -.025em;
}
.project-summary { margin-top: 12px; color: var(--secondary); }
.project-link, .contact-primary {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 44px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  white-space: nowrap;
  transition: border-color 160ms var(--ease), color 160ms var(--ease);
}
.project-link { align-self: center; }
.project-link:hover { color: var(--accent); border-color: var(--accent); }

.about-copy { max-width: 36em; font-size: clamp(18px, 1.7vw, 22px); line-height: 1.75; }
.about-copy p + p { margin-top: 16px; color: var(--secondary); }
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 32px;
  padding-block: 20px;
  border-block: 1px solid var(--line);
}
.metrics > div { display: flex; flex-direction: column-reverse; gap: 4px; }
.metrics dt { color: var(--muted); font-size: 13px; }
.metrics dd { font-size: clamp(18px, 2.2vw, 28px); font-weight: 500; }
.strengths { display: grid; margin-top: 16px; }
.strengths article {
  display: grid;
  grid-template-columns: minmax(124px, .32fr) minmax(0, .68fr);
  gap: 16px;
  padding-block: 16px;
}
.strengths article + article { border-top: 1px solid var(--line); }
.strengths h3, .experience h3, .experiences h4 { font-size: 16px; font-weight: 500; }
.strengths p, .experiences p:not(.project-meta), .experiences ul { color: var(--secondary); font-size: 15px; }
.experience { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.experience > h3 { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.experiences article { display: grid; grid-template-columns: minmax(56px, .18fr) minmax(0, .82fr); gap: 16px; }
.experiences article + article { margin-top: 24px; }
.experiences h4 + p { margin-top: 4px; }
.experiences p + p { margin-top: 8px; }
.experiences ul { margin: 8px 0 0; padding-left: 20px; }
.experiences li + li { margin-top: 4px; }
.project-copy, .about-copy, .metrics > div, .strengths article, .experiences article, .principles p { overflow-wrap: anywhere; white-space: pre-line; }

.principles { list-style: none; margin: 0; padding: 0; }
.principles li { grid-template-columns: 40px minmax(0, 1fr); }
.principles p { font-size: clamp(18px, 2vw, 25px); line-height: 1.6; }

.contact-section { padding-block: 72px; background: var(--ink); color: var(--inverse); }
.contact-grid { align-items: end; }
.contact-section :focus-visible { outline-color: var(--inverse); }
.contact-section .section-index { color: var(--inverse-muted); }
.contact-section .section-index > :first-child { color: #f0a387; }
.contact-section h2 { font-size: clamp(36px, 4.5vw, 60px); }
.contact-content { padding-bottom: 4px; }
.contact-content > p { color: var(--inverse-muted); }
.contact-primary {
  width: min(100%, 224px);
  margin-top: 12px;
  border-color: #9a8975;
  font-size: 18px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.contact-primary:hover { border-color: var(--inverse); }
.contact-links { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 12px 0 0; padding: 0; list-style: none; }
.contact-links a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--inverse-muted); font-size: 14px; }
.contact-links a:hover { color: var(--inverse); }
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 20px;
  min-height: 84px;
  padding-block: 8px;
}
.site-footer p, .top-link { font-size: 13px; color: var(--muted); }
.site-footer .wordmark { font-size: 15px; }

@media (max-width: 1080px) {
  .wrap { width: calc(100% - 64px); }
  .hero-grid { gap: 32px; }
  h1 { font-size: clamp(56px, 8.9vw, 98px); }
  .hero-copy { padding-bottom: 24px; }
  .page-section { padding-block: 64px; }
}

@media (max-width: 760px) {
  .wrap { width: calc(100% - 40px); }
  .site-header { min-height: 68px; flex-wrap: wrap; gap: 0 16px; padding-block: 8px; }
  .nav-toggle:not([hidden]) { display: block; }
  .site-nav { width: 100%; flex-wrap: wrap; gap: 0 24px; }
  .hero { padding-top: 32px; }
  .hero-grid, .page-section, .contact-grid { grid-template-columns: 1fr; }
  .hero-grid { gap: 28px; }
  .hero-copy { padding-bottom: 0; }
  h1 { font-size: clamp(58px, 13.6vw, 96px); margin-block: 12px 16px; }
  .hero-summary { margin-top: 12px; }
  .hero-actions { margin-top: 20px; }
  .hero-meta { margin-top: 20px; }
  .hero-identity, .hero-status { gap: 4px 12px; }
  .page-section, .contact-grid { gap: 24px; }
  .page-section { padding-block: 48px; }
  .project { grid-template-columns: 24px minmax(0, 1fr); gap: 4px 12px; }
  .project-link { grid-column: 2; justify-self: start; }
  .principles li { grid-template-columns: 24px minmax(0, 1fr); gap: 12px; }
  .strengths article { grid-template-columns: minmax(96px, .34fr) minmax(0, .66fr); }
  .contact-section { padding-block: 48px; }
}

@media (max-width: 400px) {
  .figure-process { display: none; }
  .site-footer p { order: 1; width: 100%; }
}

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