@import url("../fonts/fonts.css");

:root {
  --base-size: 12.96px;
  --mobile-padding-offset: 0.89;
  --font-content: "Noto Sans SC", "Noto Sans CJK SC", sans-serif;
  --font-mono: "DM Mono", "Noto Sans SC", monospace;
  --font-footer: "DM Sans", "Noto Sans SC", sans-serif;
  --ink-85: rgba(0, 0, 0, 0.85);
  --ink-75: rgba(0, 0, 0, 0.75);
  --ink-40: rgba(0, 0, 0, 0.4);
  --footer-ink: rgba(139, 139, 139, 0.85);
  --rule: rgba(0, 0, 0, 0.75);
  color-scheme: light;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-size: var(--base-size);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink-85);
  font-family: var(--font-content);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
hr { border: 0; }

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

:focus-visible {
  outline: 2px solid var(--ink-75);
  outline-offset: 3px;
}

/* ---------------- fixed desktop information column ---------------- */

.site-header {
  position: fixed;
  inset: 0 auto 0 0;
  width: 20%;
  height: 100vh;
  padding: 2rem;
  z-index: 499;
  pointer-events: none;
  color: var(--ink-85);
}

.site-header a { pointer-events: auto; }
.brand {
  display: block;
  width: 61%;
  line-height: 0;
  text-decoration: none;
}
.brand img { width: 100%; height: auto; }

.site-intro {
  margin-top: 3.36rem;
  font-family: var(--font-content);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-85);
  white-space: nowrap;
}

.site-info {
  margin: 0;
  font-family: var(--font-content);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-75);
}
.site-info a { text-decoration: none; }

.site-cats {
  margin-top: 3.36rem;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.75;
  color: var(--ink-40);
}
.site-cats a { color: inherit; text-decoration: underline; }
.site-cats--mobile { display: none; }
.header-rule { display: none; }

/* ---------------- footer ---------------- */

.site-footer {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: 6.157rem;
  z-index: 498;
  pointer-events: none;
  background: transparent;
}
.footer-copy {
  position: absolute;
  right: 3rem;
  bottom: 1.98rem;
  font-family: var(--font-footer);
  font-size: 1.4rem;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: 0.0784rem;
  color: var(--footer-ink);
  text-align: right;
  white-space: nowrap;
}

/* ---------------- homepage feed ---------------- */

.site-main { position: relative; }
.home-feed {
  width: 80%;
  margin-left: 20%;
}
.project-section {
  padding: 2rem;
  text-align: left;
}
.section-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gutter, 2rem);
  align-items: start;
}
.section-text {
  grid-column: span 4;
  min-width: 0;
  font-family: var(--font-content);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-85);
}
.section-text h2 {
  margin: 0;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-75);
}
.section-text h2 a { color: inherit; text-decoration: none; }
.section-text i, .section-text em { font-style: italic; }
.section-text .caption {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-40);
}
.section-text .caption a { color: inherit; text-decoration: underline; }

.section-media { grid-column: span 8; min-width: 0; }
.section-year {
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-40);
  margin-bottom: 1.68rem;
}
.media-stack { display: flex; flex-direction: column; gap: 0.4rem; }
.media-tail { height: 1.68rem; }
.mobile-text-spacer { display: none; }
.media-row {
  display: grid;
  grid-template-columns: var(--cols, 1fr);
  gap: 0.4rem;
  align-items: start;
}
.media-item {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: zoom-in;
  text-align: left;
}
.media-item picture { display: block; width: 100%; }
.media-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  border: 0;
}

.section-extra { height: var(--extra-desktop, 0px); }
.section-rule {
  height: 1px;
  background: var(--rule);
  margin: 0.525rem 0;
}
.home-tail { height: 13.156rem; }

/* ---------------- scroll-in image offset (measured 40px) ---------------- */

.js .media-item {
  transform: translateY(40px);
}
.js .media-item.is-visible {
  transform: translateY(0);
  transition: transform 120ms ease-out;
}
@media (prefers-reduced-motion: reduce) {
  .js .media-item { transform: none !important; transition: none !important; }
}

/* ---------------- quick view ---------------- */

.quick-view {
  position: fixed;
  inset: 0;
  z-index: 5001;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
}
.quick-view[hidden] { display: none !important; }
.qv-image {
  display: block;
  max-width: calc(100vw - 6rem);
  max-height: calc(100vh - 6rem);
  width: auto;
  height: auto;
  object-fit: contain;
}
.qv-button {
  position: fixed;
  width: 2.78rem;
  height: 2.78rem;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.06);
  color: rgba(0, 0, 0, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5002;
  font-family: var(--font-content);
  font-size: 1.3rem;
  line-height: 1;
}
.qv-button svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.qv-button:hover { background: rgba(0, 0, 0, 0.1); }
.qv-close { top: 2rem; right: 2rem; }
.qv-prev { left: 3rem; top: 50%; transform: translateY(-50%); }
.qv-next { right: 3rem; top: 50%; transform: translateY(-50%); }
body.quick-open { overflow: hidden; }


/* ---------------- About ---------------- */

.about-feed { width: 80%; margin-left: 20%; }
.about-page {
  padding: 2rem;
  padding-bottom: calc(2rem + 6.157rem + 11.69px);
}
.about-copy {
  font-family: var(--font-content);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-85);
}
.about-copy .caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-40);
}
.about-copy a { color: inherit; text-decoration: underline; }
.about-portrait-button {
  display: block;
  width: 21.7%;
  margin: 0 auto;
  padding: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: zoom-in;
}
.about-portrait-button picture,
.about-portrait-button img { display: block; width: 100%; }
.about-copy .about-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  vertical-align: middle;
  line-height: 0;
  color: var(--ink-85);
  text-decoration: none;
}
.about-copy .about-icon--mail { position: relative; top: 0.614rem; }
.about-copy .about-icon--mail svg { display: block; width: 2.8rem; height: 2.8rem; }
.about-copy .about-icon--instagram { position: relative; top: 0.713rem; margin-left: 0.283rem; }
.about-copy .about-icon--instagram svg { display: block; width: 2.456rem; height: 2.456rem; }

.category-feed .project-section:last-child {
  padding-bottom: calc(2rem + 6.157rem);
}

/* ---------------- detail pages ---------------- */

.detail-page { width: 80%; margin-left: 20%; padding: 2rem 2rem 0; }
.detail-intro {
  width: var(--intro-w-d, 100%);
  min-height: var(--intro-h-d, 0px);
  font-family: var(--font-content);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-85);
}
.detail-intro h1 {
  margin: 0;
  font-size: 3.8rem;
  font-weight: 600;
  line-height: 1;
  color: var(--ink-85);
}
.detail-intro h2 {
  margin: 0;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-75);
}
.detail-intro h2 a { color: inherit; text-decoration: none; }
.detail-intro .caption {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-40);
}
.detail-intro a { color: inherit; text-decoration: underline; }
.detail-media { margin-top: var(--intro-gap-d, 0px); }
.detail-row { margin-bottom: var(--row-gap-d, 0px); }
.detail-row:last-child { margin-bottom: 0; }
.detail-row--images {
  display: grid;
  grid-template-columns: var(--cols-d, 1fr);
  column-gap: var(--gap-x-d, 0px);
  align-items: start;
}
.detail-image-item {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: zoom-in;
  text-align: left;
}
.detail-image-item picture,
.detail-image-item img { display: block; width: 100%; height: auto; }
.detail-embed {
  width: 100%;
  aspect-ratio: var(--embed-ratio, 2);
  background: #000;
}
.detail-embed iframe { display: block; width: 100%; height: 100%; border: 0; }
.detail-row--video { display: block; }
.detail-video-wrap {
  width: 100%;
  aspect-ratio: var(--ratio-d, 1);
  background: #000;
}
.detail-video { display: block; width: 100%; height: 100%; object-fit: contain; }

.detail-page--plank .detail-plank-layout {
  display: grid;
  grid-template-columns: 256fr 26.9fr 67fr 25.9fr 725fr;
  align-items: start;
}
.detail-page--plank .detail-intro {
  grid-column: 1;
  width: 100%;
  min-height: 0;
}
.detail-page--plank .detail-media {
  grid-column: 5;
  margin-top: 0;
}

.detail-nav {
  width: 100%;
  height: 131.27px;
  margin-top: var(--nav-gap-d, 0px);
  padding-bottom: 79.7969px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
}
.detail-nav-inner {
  width: 94.6%;
  transform: translateY(0.39rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
}
.detail-nav-inner a,
.detail-nav-disabled {
  font-family: var(--font-content);
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-75);
  text-decoration: none;
  white-space: nowrap;
}
.detail-nav-prev, .detail-nav-next { text-align: right; }
.detail-nav-disabled { cursor: default; }
.nav-arrow { font-family: var(--font-content); }
.detail-nav-home { padding-left: 0.5rem; }
.detail-nav-home .nav-arrow { margin-left: 0.79rem; }
.detail-nav-prev { padding-right: 0.52rem; }
.detail-nav-prev .nav-arrow { margin-right: 0.47rem; }
/* ---------------- mobile ---------------- */

html.is-mobile .site-header {
  position: absolute;
  width: 100%;
  height: 22.696rem;
  padding: 1.78rem;
  z-index: 499;
}
html.is-mobile .brand { width: 36.72%; }
html.is-mobile .site-intro { display: none; }
html.is-mobile .site-info {
  position: absolute;
  top: 1.78rem;
  right: 1.78rem;
  margin: 0;
  font-size: 2.35rem;
  line-height: 1.35;
}
html.is-mobile .site-info br { display: none; }
html.is-mobile .site-cats--desktop { display: none; }
html.is-mobile .site-cats--mobile {
  display: block;
  position: absolute;
  top: 8.512rem;
  right: 1.78rem;
  width: 13.68rem;
  margin: 0;
  font-size: 1.104rem;
  line-height: 1.98;
  text-align: right;
}
html.is-mobile .site-cats--mobile a {
  display: block;
  white-space: nowrap;
}
html.is-mobile .header-rule {
  display: block;
  position: absolute;
  left: 1.78rem;
  right: 1.78rem;
  top: 20.244rem;
  height: 1px;
  background: var(--rule);
}

html.is-mobile .home-feed { width: 100%; margin-left: 0; }
html.is-mobile .project-section { padding: 1.78rem; }
html.is-mobile .project-section:first-child {
  padding-top: calc(22.696rem + 1.78rem);
}
html.is-mobile .section-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: calc(var(--gutter, 2rem) * var(--mobile-padding-offset));
}
html.is-mobile .section-text { grid-column: auto; font-size: 1.15rem; }
html.is-mobile .section-text h2 { font-size: 2.35rem; }
html.is-mobile .section-text .caption { font-size: 1.2rem; }
html.is-mobile .section-media { grid-column: auto; }
html.is-mobile .section-year { margin-bottom: 1.8rem; }
html.is-mobile .media-tail { height: var(--mobile-tail, 18.4px); }
html.is-mobile .mobile-text-spacer { display: block; height: var(--mobile-text-spacer, 0px); }
html.is-mobile .media-stack,
html.is-mobile .media-row { gap: 0.4rem; }
html.is-mobile .section-rule { margin: 0.525rem 0; }
html.is-mobile .section-extra { height: var(--extra-mobile, 0px); }
html.is-mobile .home-tail { height: 15.03rem; }


html.is-mobile .about-feed { width: 100%; margin-left: 0; }
html.is-mobile .about-page {
  padding: 1.78rem;
  padding-top: calc(22.696rem + 1.78rem);
  padding-bottom: calc(1.78rem + 6.01rem + 10.37px);
}
html.is-mobile .about-copy { font-size: 1.15rem; }
html.is-mobile .about-copy .caption { font-size: 1.2rem; }
html.is-mobile .about-copy .about-icon--mail { top: 0.597rem; }
html.is-mobile .about-copy .about-icon--mail svg { width: 3.06rem; height: 3.06rem; }
html.is-mobile .about-copy .about-icon--instagram { top: 0.706rem; margin-left: 0.317rem; }
html.is-mobile .about-copy .about-icon--instagram svg { width: 2.69rem; height: 2.69rem; }
html.is-mobile .category-feed .project-section:last-child {
  padding-bottom: calc(1.78rem + 6.01rem);
}


html.is-mobile .detail-page {
  width: 100%;
  margin-left: 0;
  padding: 1.78rem;
  padding-top: calc(22.696rem + 1.78rem);
  padding-bottom: 0;
}
html.is-mobile .detail-intro {
  width: 100%;
  min-height: var(--intro-h-m, 0px);
  font-size: 1.15rem;
}
html.is-mobile .detail-intro h1 { font-size: 2.35rem; }
html.is-mobile .detail-intro h2 { font-size: 2.35rem; }
html.is-mobile .detail-intro .caption { font-size: 1.2rem; }
html.is-mobile .detail-media { margin-top: var(--intro-gap-m, 0px); }
html.is-mobile .detail-row { margin-bottom: var(--row-gap-m, 0px); }
html.is-mobile .detail-row--images {
  grid-template-columns: var(--cols-m, 1fr);
  column-gap: var(--gap-x-m, 0px);
}
html.is-mobile .detail-video-wrap { aspect-ratio: var(--ratio-m, 1); }
html.is-mobile .detail-page--plank .detail-plank-layout,
html.is-mobile .detail-page--split .detail-plank-layout { display: block; }
html.is-mobile .detail-page--plank .detail-intro,
html.is-mobile .detail-page--split .detail-intro { width: 100%; min-height: var(--intro-h-m, 0px); }
html.is-mobile .detail-page--plank .detail-media,
html.is-mobile .detail-page--split .detail-media { margin-top: var(--intro-gap-m, 0px); }
html.is-mobile .summary-page {
  width: 100%;
  margin-left: 0;
  padding: 1.78rem;
  padding-top: calc(22.696rem + 1.78rem);
  padding-bottom: 8.85rem;
}
html.is-mobile .summary-grid {
  grid-template-columns: minmax(0, 1fr);
  row-gap: 1.78rem;
}
html.is-mobile .summary-copy,
html.is-mobile .summary-side { font-size: 1.15rem; }
html.is-mobile .summary-copy { padding-bottom: 1.6em; }
.summary-title { font-size: 2.35rem; margin-bottom: 1.84rem; }
html.is-mobile .summary-more { font-size: 1.2rem; }
html.is-mobile .summary-gallery { grid-template-columns: var(--summary-cols-m, 1fr 1fr); gap: 0.4rem; }
html.is-mobile .detail-nav {
  height: 84.9px;
  margin-top: var(--nav-gap-m, 0px);
  padding-bottom: 61.4219px;
}
html.is-mobile .detail-nav-inner { width: calc(100% - 4.2rem); transform: none; }
html.is-mobile .detail-nav-inner a,
html.is-mobile .detail-nav-disabled { font-size: 1.175rem; line-height: 1.35; }
html.is-mobile .detail-nav-home { padding-left: 0.695rem; }
html.is-mobile .detail-nav-home .nav-arrow { margin-left: 0.39rem; }
html.is-mobile .detail-nav-prev { padding-right: 0.734rem; }
html.is-mobile .detail-nav-prev .nav-arrow { margin-right: 0.235rem; }
html.is-mobile .detail-nav-next { padding-right: 0.567rem; }

html.is-mobile .site-footer { height: 6.01rem; }
html.is-mobile .footer-copy {
  right: 2.669rem;
  bottom: 1.78rem;
  font-size: 1.4rem;
  letter-spacing: 0.0784rem;
}
html.is-mobile .qv-image {
  max-width: calc(100vw - 4rem);
  max-height: calc(100vh - 8rem);
}
html.is-mobile .qv-button { width: 2.6rem; height: 2.6rem; }
html.is-mobile .qv-close { top: 1rem; right: 1rem; }
html.is-mobile .qv-prev { left: 0.8rem; }
html.is-mobile .qv-next { right: 0.8rem; }

/* ---------------- split detail (Life+) ---------------- */

.detail-page--split .detail-plank-layout {
  display: grid;
  grid-template-columns: 256fr 26.9fr 67fr 25.9fr 725fr;
  align-items: start;
}
.detail-page--split .detail-intro {
  grid-column: 1;
  width: 100%;
  min-height: 0;
}
.detail-page--split .detail-media {
  grid-column: 5;
  margin-top: 0;
}

/* ---------------- orphan summary pages ---------------- */

.summary-page { width: 80%; margin-left: 20%; padding: 2rem 2rem 0; }
.summary-grid {
  display: grid;
  grid-template-columns: 349fr 725fr;
  column-gap: 2rem;
  align-items: start;
}
.summary-copy,
.summary-side {
  font-family: var(--font-content);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.6;
  color: var(--ink-85);
}
.summary-copy { padding-bottom: 1.6em; }
.summary-title {
  margin: 0 0 1.68rem;
  font-size: 2.35rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--ink-75);
}
.summary-title a { color: inherit; text-decoration: none; }
.summary-meta { margin: 0 0 1.6em; }
.summary-description { margin: 0 0 1.6em; }
.summary-more {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 1.2rem;
  font-weight: 400;
  line-height: 1.3;
  color: var(--ink-40);
}
.summary-more a { color: inherit; text-decoration: underline; }
.summary-date { margin: 0 0 1.6em; }
.summary-gallery {
  display: grid;
  grid-template-columns: var(--summary-cols-d, 1fr 1fr);
  gap: 0.4rem;
  align-items: start;
}
.summary-image {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: 0;
  background: none;
  line-height: 0;
  cursor: zoom-in;
  text-align: left;
}
.summary-image picture,
.summary-image img { display: block; width: 100%; height: auto; }
.summary-rule {
  border: 0;
  border-top: 1px solid var(--ink-85);
  margin: 2rem 0 0;
}
