:root {
  color-scheme: light;
  --paper: #f6f3ea;
  --ink: #20291f;
  --muted: #4f594b;
  --green: #40553b;
  --soft: #e9ece1;
  --line: #c8cfc0;
  --sans: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --serif: "Iowan Old Style", "Baskerville", "Georgia", "Songti SC", SimSun, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.75 var(--sans); }
a { color: inherit; text-underline-offset: .25em; }
a:focus-visible { outline: .15rem solid var(--green); outline-offset: .25rem; }
h1, h2, h3, figure, p { margin: 0; }
section[id] { scroll-margin-top: 1rem; }
.shell { width: min(72rem, calc(100% - 4rem)); margin-inline: auto; }
.skip { position: absolute; top: .75rem; left: .75rem; z-index: 1; padding: .5rem 1rem; background: var(--paper); }
.skip:not(:focus) { transform: translateY(-200%); }

.site-header, .footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .75rem 1.5rem;
  padding-block: 1.25rem;
}
.site-header { border-bottom: 1px solid var(--line); }
.wordmark, nav { display: flex; align-items: center; gap: .75rem; }
.wordmark { text-decoration: none; font-weight: 700; }
.wordmark small { margin-left: .25rem; color: var(--muted); font-size: .875rem; font-weight: 400; }
.monogram {
  display: grid;
  place-items: center;
  width: 2.25rem;
  aspect-ratio: 1;
  border: 1px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font: italic 1.35rem/1 var(--serif);
}
nav { gap: clamp(1rem, 3vw, 2rem); }
nav a, .footer a { font-size: .9rem; text-decoration: none; }
nav a:hover, .footer a:hover { text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: 1.18fr .82fr;
  align-items: center;
  gap: clamp(2rem, 7vw, 6rem);
  padding-block: clamp(2.75rem, 6.5vw, 5.5rem);
}
.location { display: flex; align-items: center; gap: .65rem; color: var(--green); font-size: .9rem; font-weight: 650; letter-spacing: .04em; }
.location span { height: 1px; width: 1.25rem; background: currentColor; }
h1 { margin: .12em 0 .13em; font: 400 clamp(4rem, 9.5vw, 8.25rem)/.94 var(--serif); letter-spacing: -.07em; }
h1 em { color: var(--green); font-weight: 400; }
.lead { font-size: clamp(1.35rem, 2.4vw, 2rem); letter-spacing: .03em; }
.intro-copy { max-width: 24em; margin-top: .55rem; color: var(--muted); }
.button { display: inline-block; margin-top: 1.55rem; padding: .65rem 1.15rem; border-radius: 999px; background: var(--green); color: #fff; font-size: .9rem; text-decoration: none; }
.button:hover { background: var(--ink); }
.portrait { padding: .6rem; border: 1px solid var(--line); }
.portrait img { display: block; width: 100%; height: auto; aspect-ratio: 4/5; max-height: 31rem; object-fit: cover; object-position: center 43%; background: var(--soft); }
figcaption { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .15rem .75rem; padding: .5rem .2rem .05rem; color: var(--muted); font-size: .875rem; }

.work { background: var(--soft); border-block: 1px solid var(--line); }
.work-layout, .about { display: grid; grid-template-columns: minmax(13rem, .8fr) 1.75fr; gap: clamp(1.25rem, 5vw, 5rem); padding-block: clamp(2.5rem, 6vw, 5.5rem); }
h2 { font-family: var(--serif); font-size: clamp(1.8rem, 3.8vw, 2.75rem); font-weight: 650; line-height: 1.25; }
.section-heading p { margin-top: .75rem; color: var(--muted); }
.project-list article { display: flex; align-items: start; justify-content: space-between; gap: .75rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.project-list article:first-child { border-top: 1px solid var(--line); }
h3 { margin-bottom: .28rem; font-size: 1.12rem; }
.project-list p { max-width: 37em; color: var(--muted); }
.category { flex-shrink: 0; padding: .12rem .65rem; border: 1px solid #aab7a5; border-radius: 999px; color: var(--green); font-size: .875rem; }
.about p { max-width: 41em; }
.demo-note { margin-top: 1.1rem; color: var(--muted); font-size: .9rem; }
.footer { border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }

@media (max-width: 48rem) {
  .shell { width: calc(100% - 2.5rem); }
  .hero, .work-layout, .about { grid-template-columns: 1fr; }
  .hero { gap: 1.85rem; }
  .portrait { width: min(100%, 30rem); }
  h1 { font-size: clamp(3.4rem, 12vw, 6.4rem); }
}
@media (max-width: 27rem) {
  .shell { width: calc(100% - 2rem); }
  .site-header { column-gap: .6rem; }
  .wordmark small { display: none; }
  .project-list article { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
