:root {
  --bg: #fafaf8;
  --ink: #171614;
  --muted: rgba(23, 22, 20, 0.58);
  --line: rgba(23, 22, 20, 0.14);
  --panel: #ebe7dc;
  --page-x: 20px;
  --content-x: max(var(--page-x), calc((100vw - 1440px) / 2 + var(--page-x)));
  --section-gap: 72px;
  --image-gap: 24px;
  --body-width: 680px;
  --text-list-width: 760px;
  --works-thumb-ratio: 1 / 1;
  --menu-x: var(--content-x);
  --menu-y: 38vh;
  --sans: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Serif KR", "AppleMyungjo", "Times New Roman", serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
}

body {
  margin: 0;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
  font: inherit;
}

img {
  display: block;
  width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: var(--bg);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  left: 50%;
  max-width: 1440px;
  padding: 18px var(--page-x);
  position: fixed;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  z-index: 10;
}

.wordmark {
  font-size: 13px;
  letter-spacing: 0;
}

.topnav {
  display: none;
  gap: 16px;
}

.topnav a {
  color: var(--muted);
  font-size: 13px;
}

.topnav a.active {
  color: var(--ink);
}

.topbar-menu-button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
}

.site-menu {
  background: rgba(13, 12, 11, 0.72);
  color: #fffdf5;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 30;
}

.site-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.site-menu nav {
  display: grid;
  gap: 4px;
  left: var(--menu-x);
  position: absolute;
  top: var(--menu-y);
}

.site-menu a {
  display: block;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.35;
}

.site-menu a.active {
  color: rgba(255, 253, 245, 0.62);
}

.home-screen {
  min-height: 100vh;
  position: relative;
}

.home-hero {
  background: var(--panel);
  border: 0;
  cursor: pointer;
  display: block;
  height: 100vh;
  min-height: 620px;
  padding: 0;
  width: 100%;
}

.home-video {
  display: block;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  width: 100%;
}

.home-menu-button {
  background: transparent;
  border: 0;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  padding: 0;
  position: absolute;
  right: var(--content-x);
  top: 20px;
  z-index: 5;
}

.home-screen.has-hero .home-menu-button {
  color: #fffdf5;
  text-shadow: 0 1px 18px rgba(0, 0, 0, 0.28);
}

.home-screen.is-empty .home-hero {
  align-items: center;
  background:
    linear-gradient(rgba(23, 22, 20, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(23, 22, 20, 0.04) 1px, transparent 1px),
    #ece8dd;
  background-size: 28px 28px;
  display: flex;
  justify-content: center;
}

.hero-placeholder {
  border: 1px solid var(--line);
  display: grid;
  gap: 8px;
  margin: 20px;
  max-width: 310px;
  padding: 28px;
  text-align: left;
}

.hero-placeholder span {
  font-size: 15px;
}

.hero-placeholder small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.home-menu {
  background: rgba(13, 12, 11, 0.72);
  color: #fffdf5;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  position: fixed;
  transition: opacity 180ms ease;
  z-index: 20;
}

.home-menu.is-open {
  opacity: 1;
  pointer-events: auto;
}

.home-menu nav {
  display: grid;
  gap: 4px;
  left: var(--menu-x);
  position: absolute;
  top: var(--menu-y);
}

.home-menu a {
  display: block;
  font-size: 30px;
  font-weight: 400;
  line-height: 1.35;
}

.menu-close {
  background: transparent;
  border: 0;
  color: rgba(255, 253, 245, 0.72);
  font-size: 12px;
  padding: 22px;
  position: absolute;
  right: 0;
  top: 0;
}

.page {
  margin: 0 auto;
  max-width: 1440px;
  padding: 96px var(--page-x) var(--section-gap);
}

.page-heading {
  margin-bottom: var(--section-gap);
  max-width: var(--body-width);
}

.eyebrow {
  color: var(--muted);
  font-size: 12px;
  margin: 0 0 12px;
}

h1,
h2,
p {
  margin-top: 0;
}

h1 {
  font-size: clamp(26px, 7vw, 48px);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
  margin-bottom: 18px;
}

h2 {
  font-size: 16px;
  font-weight: 450;
  letter-spacing: 0;
  line-height: 1.35;
  margin-bottom: 10px;
}

.page-heading p:last-child,
.detail-title p,
.work-card-copy p {
  color: var(--muted);
}

.works-index {
  display: grid;
  gap: 20px;
  margin-bottom: 32px;
}

.works-index-heading {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.works-title,
.works-index-heading p {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.category-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
}

.category-filter button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  padding: 0;
}

.category-filter button.is-active {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.work-grid {
  display: grid;
  gap: 28px 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.empty-grid {
  color: var(--muted);
  font-size: 13px;
  grid-column: 1 / -1;
  margin: 32px 0 0;
}

.work-card {
  display: grid;
  gap: 8px;
}

.work-image {
  display: block;
  overflow: hidden;
}

.work-image.grid-thumb {
  aspect-ratio: var(--works-thumb-ratio);
  background: var(--panel);
}

.work-image img,
.detail-hero-image img {
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.work-image.grid-thumb img,
.work-image.grid-thumb .image-slot {
  aspect-ratio: auto;
  height: 100%;
  min-height: 0;
}

.work-card-copy h2 {
  font-size: 13px;
  margin-bottom: 4px;
}

.work-card-copy p {
  font-size: 11px;
  line-height: 1.6;
  margin-bottom: 0;
}

.work-card-copy p:last-child {
  display: none;
}

.image-slot {
  align-items: end;
  aspect-ratio: 4 / 3;
  background: #d8d2c3;
  color: rgba(23, 22, 20, 0.54);
  display: flex;
  min-height: 180px;
  overflow: hidden;
  padding: 14px;
  position: relative;
  width: 100%;
}

.image-slot::before {
  content: "";
  inset: 0;
  opacity: 0.9;
  position: absolute;
}

.image-slot span {
  font-size: 12px;
  position: relative;
  z-index: 1;
}

.image-slot.paper::before {
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.54), transparent 45%),
    repeating-linear-gradient(0deg, rgba(23, 22, 20, 0.04), rgba(23, 22, 20, 0.04) 1px, transparent 1px, transparent 8px);
}

.image-slot.street::before {
  background:
    linear-gradient(140deg, rgba(23, 22, 20, 0.16), transparent 55%),
    linear-gradient(90deg, transparent 0 42%, rgba(23, 22, 20, 0.08) 42% 45%, transparent 45%);
}

.image-slot.spread::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.38) 0 48%, rgba(23, 22, 20, 0.14) 48% 49%, rgba(255, 255, 255, 0.2) 49% 100%),
    linear-gradient(180deg, transparent 0 70%, rgba(23, 22, 20, 0.08) 70%);
}

.image-slot.process::before {
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.44), transparent 46%),
    radial-gradient(circle at 28% 34%, rgba(23, 22, 20, 0.12), transparent 20%),
    radial-gradient(circle at 72% 62%, rgba(23, 22, 20, 0.1), transparent 18%);
}

.image-slot.night {
  background: #24221e;
  color: rgba(255, 253, 245, 0.62);
}

.image-slot.night::before {
  background:
    linear-gradient(160deg, rgba(255, 248, 210, 0.18), transparent 22%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08), transparent 55%);
}

.image-slot.dark {
  background: #171614;
  color: rgba(255, 253, 245, 0.58);
}

.image-slot.dark::before {
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.12), transparent 36%);
}

.image-slot.soft::before {
  background: linear-gradient(130deg, rgba(255, 255, 255, 0.5), transparent 50%);
}

.back-link {
  color: var(--muted);
  display: inline-block;
  font-size: 12px;
  margin-bottom: 28px;
}

.detail-hero {
  display: grid;
  gap: 24px;
  margin-bottom: var(--section-gap);
}

.detail-hero-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.detail-title {
  max-width: var(--body-width);
}

.detail-heading {
  margin-bottom: 34px;
  max-width: var(--body-width);
}

.detail-heading p:last-child {
  color: var(--muted);
}

.detail-grid {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 32px;
  margin-bottom: var(--section-gap);
  padding-top: 28px;
}

.detail-grid > div {
  max-width: var(--body-width);
}

.detail-grid p {
  color: var(--muted);
  margin-bottom: 0;
}

.info-list {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  grid-template-columns: 76px minmax(0, 1fr);
  margin: 0;
}

.info-list dt,
.info-list dd {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  margin: 0;
  padding: 10px 0;
}

.info-list dt {
  color: var(--muted);
}

.info-list dd {
  margin-top: 0;
}

.purchase-block {
  align-items: start;
  border: 1px solid var(--line);
  display: grid;
  gap: 16px;
  margin-bottom: 44px;
  max-width: var(--body-width);
  padding: 20px;
}

.purchase-block p {
  color: var(--muted);
  font-size: 13px;
  margin: 0;
}

.purchase-block a,
.contact-actions a {
  border: 1px solid var(--ink);
  display: inline-flex;
  font-size: 13px;
  justify-content: center;
  padding: 10px 14px;
  width: fit-content;
}

.sequence-block {
  margin-bottom: 38px;
}

.section-title {
  max-width: var(--body-width);
}

.section-title p {
  color: var(--muted);
}

.image-sequence {
  display: grid;
  gap: var(--image-gap);
}

.slider-block {
  margin-bottom: 38px;
}

.work-body {
  margin-bottom: 56px;
  max-width: 640px;
}

.work-body p {
  color: var(--ink);
  font-size: 16px;
  letter-spacing: 0;
  line-height: 1.72;
  margin: 0;
  word-break: keep-all;
}

.work-meta {
  margin-bottom: var(--section-gap);
  max-width: 640px;
}

.slider-title {
  max-width: var(--body-width);
}

.work-slider {
  position: relative;
}

.slider-track {
  -webkit-overflow-scrolling: touch;
  display: grid;
  grid-auto-columns: 100%;
  grid-auto-flow: column;
  gap: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.slider-track::-webkit-scrollbar {
  display: none;
}

.slider-slide {
  scroll-snap-align: start;
}

.slider-slide .image-slot,
.slider-slide img {
  aspect-ratio: 4 / 5;
  height: auto;
  min-height: 420px;
  object-fit: cover;
  object-position: center center;
}

.slider-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  display: none;
  height: 28px;
  padding: 0;
  width: 28px;
}

.slider-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin-top: 14px;
}

.slider-dots button {
  background: rgba(23, 22, 20, 0.24);
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  height: 7px;
  padding: 0;
  transition: background-color 160ms ease, transform 160ms ease;
  width: 7px;
}

.slider-dots button.is-active {
  background: rgba(23, 22, 20, 0.58);
  transform: scale(1.08);
}

figure {
  margin: 0;
}

figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}

.article-note,
.article {
  max-width: 640px;
}

.article-note p,
.article .lead {
  color: var(--muted);
}

.text-list {
  border-top: 1px solid var(--line);
  display: grid;
  max-width: var(--text-list-width);
}

.text-index {
  max-width: var(--text-list-width);
}

.about-layout {
  display: grid;
  gap: 32px;
  margin-bottom: var(--section-gap);
}

.about-layout.text-first .about-image {
  order: 2;
}

.about-layout.text-only .about-image {
  display: none;
}

.about-image {
  aspect-ratio: 4 / 5;
  overflow: hidden;
}

.about-image img {
  height: 100%;
  object-fit: cover;
}

.about-copy {
  max-width: var(--body-width);
}

.about-copy h1 {
  margin-bottom: 24px;
}

.about-lead {
  color: var(--ink);
  font-size: 17px;
  line-height: 1.65;
}

.about-body {
  color: var(--muted);
}

.about-layout.serif-copy .about-body,
.about-layout.serif-copy .about-lead {
  font-family: var(--serif);
}

.about-meta {
  border-top: 1px solid var(--line);
  display: grid;
  margin: 32px 0 0;
  max-width: 460px;
}

.about-meta dt,
.about-meta dd {
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  margin: 0;
  padding: 10px 0;
}

.about-meta dt {
  color: var(--muted);
}

.selected-list {
  border-top: 1px solid var(--line);
  max-width: var(--body-width);
  padding-top: 24px;
}

.selected-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.selected-list li {
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  padding: 12px 0;
}

.profile-placeholder {
  aspect-ratio: 4 / 5;
  min-height: 360px;
}

.text-card a {
  align-items: baseline;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 16px 0;
}

.text-card h2 {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
  margin: 0;
}

.text-card time {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  margin: 0;
  white-space: nowrap;
}

.article {
  font-family: var(--sans);
  text-align: left;
  word-break: keep-all;
}

.article .eyebrow {
  font-size: 12px;
  letter-spacing: 0;
  line-height: 1.45;
  margin-bottom: 20px;
}

.article > p:not(.eyebrow):not(.lead) {
  color: var(--ink);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.72;
  margin: 0 0 18px;
  overflow-wrap: break-word;
  text-align: left;
  text-align-last: auto;
  word-break: keep-all;
}

.article h1 {
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1.18;
  margin-bottom: 18px;
}

.title-desktop {
  display: none;
}

.title-mobile {
  display: inline;
}

.article .lead {
  font-size: 15px;
  letter-spacing: 0;
  line-height: 1.7;
  margin-bottom: 32px;
  text-align: left;
}

.article-embed {
  margin: 34px 0;
}

.article-embed-frame {
  aspect-ratio: 16 / 9;
  background: #171614;
  overflow: hidden;
  width: 100%;
}

.article-embed-frame iframe {
  border: 0;
  display: block;
  height: 100%;
  width: 100%;
}

.article-embed figcaption {
  display: grid;
  gap: 2px;
  margin-top: 8px;
}

.article-embed figcaption span,
.article-link-card span,
.article-link-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.article-embed figcaption a {
  font-size: 13px;
  line-height: 1.5;
}

.article-link-card {
  border: 1px solid var(--line);
  display: grid;
  gap: 4px;
  margin: 30px 0;
  padding: 16px;
}

.article-link-card strong {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.article-image {
  margin: 40px 0 12px;
}

.article-image img {
  height: auto;
}

.article-image figcaption {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  margin-top: 8px;
}

.article-nav {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 0;
  margin-top: var(--section-gap);
  max-width: 640px;
}

.article-nav a,
.article-nav-empty {
  border-bottom: 1px solid var(--line);
  display: grid;
  min-height: 72px;
  padding: 16px 0;
}

.article-nav a {
  gap: 4px;
}

.article-nav span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.article-nav strong {
  font-size: 15px;
  font-weight: 400;
  line-height: 1.45;
}

.contact-actions {
  display: flex;
  gap: 10px;
}

@media (min-width: 760px) {
  :root {
    --page-x: 56px;
    --section-gap: 120px;
    --image-gap: 32px;
  }

  .topbar {
    padding-top: 24px;
  }

  .topnav {
    display: flex;
  }

  .topbar-menu-button {
    display: none;
  }

  .home-menu nav {
    left: 50%;
    text-align: center;
    transform: translateX(-50%);
    width: max-content;
  }

  .works-index {
    margin-bottom: 48px;
  }

  .works-index-heading {
    display: block;
  }

  .works-index-heading p {
    margin-top: 8px;
  }

  .category-filter {
    align-content: start;
    gap: 8px 16px;
  }

  .work-grid {
    gap: 36px 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .detail-hero {
    align-items: end;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  }

  .detail-hero-image {
    aspect-ratio: 5 / 4;
  }

  .detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(260px, 420px);
  }

  .about-layout {
    align-items: start;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1fr);
  }

  .about-layout.text-first {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }

  .about-layout.text-first .about-image {
    order: 0;
  }

  .about-layout.text-first .about-copy {
    order: -1;
  }

  .about-layout.text-only {
    display: block;
  }

  .about-meta {
    grid-template-columns: 120px 1fr;
  }

  .info-list {
    grid-template-columns: 96px 1fr;
  }

  .image-sequence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .image-sequence figure:nth-child(3n + 1) {
    grid-column: span 2;
  }

  .slider-button {
    display: block;
    position: absolute;
    top: calc(50% - 22px);
    transform: translateY(-50%);
    z-index: 2;
  }

  .slider-button::before {
    border-bottom: 7px solid transparent;
    border-top: 7px solid transparent;
    content: "";
    display: block;
    height: 0;
    margin: auto;
    width: 0;
  }

  .slider-prev {
    left: 10px;
  }

  .slider-prev::before {
    border-right: 9px solid rgba(23, 22, 20, 0.62);
  }

  .slider-next {
    right: 10px;
  }

  .slider-next::before {
    border-left: 9px solid rgba(23, 22, 20, 0.62);
  }

  .slider-slide .image-slot,
  .slider-slide img {
    aspect-ratio: 5 / 4;
    cursor: pointer;
    min-height: 460px;
  }

  .text-list {
    max-width: var(--text-list-width);
  }

  .text-card a {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .article-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .article-nav a,
  .article-nav-empty {
    border-bottom: 0;
  }

  .article-nav a:last-child,
  .article-nav-empty:last-child {
    border-left: 1px solid var(--line);
    padding-left: 20px;
  }

  .title-desktop {
    display: inline;
  }

  .title-mobile {
    display: none;
  }
}

@media (min-width: 1100px) {
  :root {
    --page-x: 64px;
  }

  .page {
    padding-left: 64px;
    padding-right: 64px;
  }

  .topbar {
    padding-left: 64px;
    padding-right: 64px;
  }

}
