:root {
  color-scheme: dark;
  --ink: #f6f3ed;
  --muted: #bbb7b0;
  --accent: #ff7846;
  --ground: #171717;
  --rule: #3c3936;
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(ellipse at 80% 0%, #26211e 0%, var(--ground) 38rem);
  color: var(--ink);
  line-height: 1.5;
}

a { color: inherit; text-underline-offset: .25em; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.frame {
  width: min(100% - 7rem, 83rem);
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 2;
  top: .75rem;
  left: .75rem;
  padding: .5rem .85rem;
  transform: translateY(calc(-100% - .75rem));
  background: var(--ink);
  color: var(--ground);
}

.skip-link:focus { transform: none; }

.site-header, .site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem 2rem;
  padding: 1.5rem 0;
}

.site-header { border-bottom: 1px solid var(--rule); }
.site-footer { border-top: 1px solid var(--rule); margin-top: 4rem; padding-bottom: 2.75rem; }
.wordmark { font-size: 1.35rem; font-weight: 600; letter-spacing: -.065em; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: .6rem 1.35rem; }
.site-nav a { color: var(--muted); font-size: .875rem; text-decoration: none; }
.site-nav a:hover, .site-nav [aria-current] { color: var(--ink); text-decoration: underline; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(15rem, 1fr);
  align-items: end;
  gap: 2rem 3rem;
  padding: clamp(4rem, 10vw, 8.5rem) 0 clamp(4rem, 8vw, 7rem);
  border-bottom: 1px solid var(--rule);
}

.hero h1 {
  margin: 0;
  font-size: clamp(3.5rem, 8.3vw, 7.8rem);
  font-weight: 500;
  letter-spacing: -.075em;
  line-height: .83;
  text-transform: uppercase;
}

.hero h1 span { display: block; color: var(--accent); }
.hero-intro { max-width: 23rem; padding-bottom: .15rem; }
.hero-intro p { margin: 0 0 1rem; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); }

.work-row {
  display: grid;
  grid-template-columns: minmax(13rem, 1fr) minmax(0, 1.65fr);
  gap: 1rem 3.5rem;
}

.founder {
  display: grid;
  grid-template-areas: "portrait title bio";
  grid-template-columns: minmax(9rem, .8fr) minmax(9rem, .9fr) minmax(16rem, 1.5fr);
  align-items: center;
  gap: 1.25rem clamp(1.25rem, 4vw, 3.5rem);
  padding: clamp(2.5rem, 5vw, 4.5rem) 0;
  border-bottom: 1px solid var(--rule);
}

.founder-heading { grid-area: title; }
.founder-bio { grid-area: bio; }
.founder-portrait {
  grid-area: portrait;
  display: block;
  width: min(100%, 18rem);
  height: auto;
  border: 1px solid var(--rule);
}

.section-label {
  color: var(--accent);
  font-size: .875rem;
  letter-spacing: .07em;
  line-height: 1.3;
  text-transform: uppercase;
}

.founder h2 {
  margin: .4rem 0 0;
  font-size: clamp(2.5rem, 4.5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .96;
}

.founder p { margin: 0; }
.founder-bio, .work-copy { max-width: 43rem; }
.founder-bio p { color: var(--muted); font-size: clamp(1.05rem, 1.6vw, 1.25rem); }
.profile-links, .source-links {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem 1.3rem;
  margin: 1.1rem 0 0;
  padding: 0;
  list-style: none;
}

.work-section { margin-top: clamp(3rem, 6vw, 5rem); }
.work-section > h2 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 500;
  letter-spacing: -.06em;
  line-height: .98;
}

.work-row { border-top: 1px solid var(--rule); padding: 1.75rem 0 2.15rem; }
.work-row h3 {
  margin: 0 0 .65rem;
  font-size: clamp(1.4rem, 2.25vw, 1.9rem);
  font-weight: 500;
  letter-spacing: -.035em;
  line-height: 1.14;
}

.work-row p { margin: 0 0 .85rem; color: var(--muted); }
.work-row .section-label { margin-bottom: .3rem; color: var(--accent); }
.work-row .work-subtitle { color: var(--ink); }
.work-row .work-meta p:last-child { margin-bottom: 0; }
.work-row .source-links { margin-top: .9rem; }
.event-gallery {
  display: grid;
  grid-column: 1 / -1;
  align-items: start;
  gap: 1rem;
  margin-top: clamp(.4rem, 2vw, 1.25rem);
}
.event-gallery--shenzhen { grid-template-columns: minmax(0, 1.5fr) minmax(0, .67fr) minmax(0, 1.33fr) minmax(0, .75fr); }
.event-gallery--builder { grid-template-columns: minmax(0, 1.41fr) minmax(0, 1.33fr); }
.event-gallery figure { margin: 0; }
.event-gallery img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.event-gallery figcaption { margin-top: .55rem; color: var(--muted); font-size: .875rem; }
.study-quote { margin: 1.2rem 0; padding: .15rem 0 .15rem 1.1rem; border-left: 2px solid var(--accent); font-size: 1.2rem; }
.study-table { width: 100%; margin: 1.25rem 0 .85rem; border-collapse: collapse; font-size: .95rem; }
.study-table caption { padding-bottom: .5rem; color: var(--ink); font-weight: 500; text-align: left; }
.study-table th, .study-table td { padding: .6rem .7rem; border-top: 1px solid var(--rule); text-align: left; }
.study-table th[scope="row"] { color: var(--muted); font-weight: 400; }
.study-table td { white-space: nowrap; font-variant-numeric: tabular-nums; }
.study-table thead, .study-table tbody { border-bottom: 1px solid var(--rule); }
.study-figure { margin: 1.25rem 0 1.4rem; }
.study-figure img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.study-figure figcaption { margin-top: .55rem; color: var(--muted); font-size: .875rem; }

@media (max-width: 850px) {
  .frame { width: min(100% - 3.5rem, 83rem); }
  .hero { grid-template-columns: 1fr; align-items: start; }
  .hero h1 { font-size: clamp(3.1rem, 11vw, 6rem); }
  .work-row { grid-template-columns: minmax(9rem, .7fr) minmax(0, 1.3fr); gap: .9rem 2rem; }
  .founder { grid-template-areas: "portrait title" "portrait bio"; grid-template-columns: minmax(9rem, .85fr) minmax(0, 1.5fr); }
  .founder-heading { align-self: end; }
  .founder-bio { align-self: start; }
  .founder-portrait { max-width: 14rem; }
  .event-gallery--shenzhen { grid-template-columns: minmax(0, 1.45fr) minmax(0, .75fr); }
}

@media (max-width: 560px) {
  .frame { width: calc(100% - 2rem); }
  .site-header { align-items: flex-start; gap: .65rem 1rem; }
  .site-nav { justify-content: flex-end; gap: .4rem .75rem; }
  .work-row, .event-gallery { grid-template-columns: 1fr; }
  .founder { grid-template-areas: "portrait title" "bio bio"; grid-template-columns: minmax(7.5rem, .75fr) minmax(0, 1fr); }
  .founder-heading { align-self: center; }
  .founder h2 { font-size: clamp(1.9rem, 8.5vw, 2.9rem); }
  .founder-portrait { width: min(100%, 10.5rem); }
  .work-row { padding: 1.2rem 0 1.65rem; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .site-footer .site-nav { justify-content: flex-start; }
}

@media (max-width: 360px) {
  .site-header { flex-direction: column; }
  .site-nav { justify-content: flex-start; }
  .hero h1 { font-size: 2.8rem; }
}
