
/* Portfolio composition */
:root {
  --paper: #f7f6f2;
  --ink: #211e1c;
  --muted: #555450;
  --accent: #302824;
  --line: #d6d4cd;
  --surface: #e8e7e0;
  --hover: #dedbd4;
  --serif: "Songti SC", "Source Han Serif SC", SimSun, Georgia, serif;
}
.frame { width: min(calc(100% - 96px), 1312px); }
.mast { min-height: 76px; }
.wordmark { font-weight: 600; }
h1, h2, h3 { font-weight: 500; }
.eyebrow { letter-spacing: .12em; }
.button { border-radius: 0; }
.editorial-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: #dce4e8;
  margin: 1.5rem 0 clamp(3rem, 8vw, 7rem);
}
.editorial-copy {
  align-self: center;
  padding: clamp(2rem, 5.5vw, 6rem);
}
.editorial-copy h1 { font-size: clamp(2.8rem, 6vw, 6rem); }
.editorial-copy .lede { font-size: 1rem; max-width: 29em; }
.editorial-photo { display: grid; position: relative; }
.editorial-photo a { display: block; min-height: 100%; }
.editorial-photo img {
  height: 100%;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  object-position: 52% 42%;
}
.editorial-photo figcaption {
  position: absolute;
  inset: auto .8rem .8rem auto;
  margin: 0;
  padding: .25rem .55rem;
  color: var(--ink);
  background: var(--paper);
}
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; }
.project-feature { display: grid; grid-template-columns: 1.25fr 1fr; background: var(--surface); }
.product-photo { display: grid; place-items: center; background: #fff; }
.product-photo img { width: min(100%, 475px); }
.project-copy { align-self: center; padding: clamp(1.5rem, 5vw, 5rem); }
.project-copy .caption { margin-top: 1rem; }
.project-list { margin-top: 1.6rem; border-top: 1px solid var(--line); }
.project-list a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: .7rem 1.5rem;
  padding: 1.2rem 0;
  border-bottom: 1px solid var(--line);
  text-decoration: none;
}
.project-list a:hover strong { text-decoration: underline; }
.project-list strong { font: 500 clamp(1.3rem, 2.5vw, 2rem)/1.25 var(--serif); }
.project-list span { color: var(--muted); font-size: .9rem; }
.work-preview, .gallery + .gallery { margin-top: clamp(3rem, 7vw, 6rem); }
.work-strip, .gallery-grid { display: grid; gap: clamp(.8rem, 2.4vw, 2rem); }
.work-strip { grid-template-columns: 1fr 1fr 1fr; }
.gallery-grid { grid-template-columns: 1fr 1fr; }
.work-strip img { width: 100%; height: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.work-strip a:last-child { display: grid; place-items: center; background: var(--surface); }
.work-strip a:last-child img { object-fit: contain; padding: 1rem; }
.gallery-grid a { display: block; }
.gallery-grid img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; background: var(--surface); }
.poster-grid img { padding: clamp(.5rem, 2vw, 1.7rem); }
.social-accounts { width: min(100%, 580px); }
.social-accounts > div { grid-template-columns: 4rem minmax(0, 1fr) auto; }
.social-accounts .account-link { grid-column: 2 / -1; font-size: .86rem; }
@media (max-width: 740px) {
  .frame { width: calc(100% - 36px); }
  .mast { min-height: auto; }
  .editorial-hero, .project-feature { grid-template-columns: 1fr; }
  .editorial-hero { margin-top: 1rem; }
  .editorial-copy { padding: 2rem 1.35rem; }
  .editorial-photo img { height: auto; aspect-ratio: 5 / 4; }
  .project-list a { flex-wrap: wrap; }
  .work-strip { grid-template-columns: 1fr 1fr; }
  .work-strip a:last-child { grid-column: 1 / -1; }
  .work-strip a:last-child img { aspect-ratio: 2 / 1; }
  .gallery-grid { gap: 1rem .7rem; }
}
@media (max-width: 420px) {
  .social-accounts > div { grid-template-columns: 3.2rem minmax(0, 1fr); }
}

