/* VACUUM ARCHIVE — a museum-style catalogue on the archive's own black page. Single dark look on purpose. */
:root {
  --ink: #0d0d0c;      /* page */
  --plate: #191917;    /* behind images */
  --bone: #efede8;     /* main text */
  --mist: #bdb9b1;     /* secondary text, kept high-contrast for reading */
  --rule: #2e2d2a;     /* hairlines */
  --chrome: #c9ccd0;   /* silver accent */
  --display: "EB Garamond", "Garamond", "Times New Roman", serif;
  --body: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  color-scheme: dark;
  padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ink); color: var(--bone); font-family: var(--body); font-size: 17px; line-height: 1.8; -webkit-font-smoothing: antialiased; word-break: keep-all; }
img, video { max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--chrome); outline-offset: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }

body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--ink); }
header.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 5; background: color-mix(in srgb, var(--ink) 90%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--rule); }
header.top .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-block: 16px; }
.mark { font-family: var(--display); letter-spacing: .3em; font-size: 16px; text-transform: uppercase; text-decoration: none; }
nav { display: flex; gap: 24px; font-family: var(--display); font-size: 17px; }
nav a { text-decoration: none; color: var(--mist); transition: color .2s; }
nav a:hover { color: var(--bone); }

/* hero */
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 56px; align-items: end; padding-block: 64px 72px; }
.hero h1 { font-family: var(--display); font-weight: 400; font-size: clamp(60px, 10vw, 150px); line-height: .88; margin: 0; letter-spacing: -.01em; }
.hero h1 i { color: var(--chrome); }
.hero .lede { max-width: 30em; color: var(--mist); font-size: 18px; margin: 32px 0 0; }
.hero-media { margin: 0; }
.hero-media .frame { overflow: hidden; aspect-ratio: 4 / 5; background: var(--plate); }
.hero-media video { display: block; width: 100%; height: 100%; object-fit: cover; transform: scale(1.08) translate3d(var(--mx, 0px), var(--my, 0px), 0); transition: transform .9s cubic-bezier(.2,.7,.2,1); }
.hero-media figcaption { display: flex; justify-content: space-between; gap: 12px; margin-top: 12px; font-size: 14px; color: var(--mist); }
.hero-media figcaption a { text-decoration: none; color: var(--bone); }

section { border-top: 1px solid var(--rule); }
section > .wrap { padding-block: 80px; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 32px; flex-wrap: wrap; }
.sec-head h2 { font-family: var(--display); font-weight: 400; font-size: 48px; margin: 0; }
.sec-head span { font-size: 14px; color: var(--mist); }

/* index rows */
.rows { position: relative; z-index: 5; border-top: 1px solid var(--rule); }
.row { display: grid; grid-template-columns: 110px minmax(0, 1fr) auto; align-items: baseline; gap: 24px; padding-block: 26px; border-bottom: 1px solid var(--rule); text-decoration: none; transition: padding .35s ease, color .35s ease; }
.row .thumb { display: none; }
.row .no { font-family: var(--display); font-size: 18px; color: var(--chrome); letter-spacing: .06em; }
.row .ttl { font-family: var(--display); font-size: clamp(30px, 4.4vw, 56px); line-height: 1.05; }
.row .ttl small { display: block; font-family: var(--body); font-size: 16px; color: var(--mist); margin-top: 10px; line-height: 1.5; }
.row .ssn { font-family: var(--display); font-size: 18px; color: var(--mist); white-space: nowrap; }
.rows:hover .row { color: #6f6c66; }
.rows:hover .row:hover { color: var(--bone); padding-left: 16px; }
.peek { position: fixed; left: 0; top: 0; width: 300px; aspect-ratio: 4 / 5; object-fit: cover; pointer-events: none; z-index: 3; opacity: 0; transform: translate3d(-9999px, 0, 0); transition: opacity .25s ease; box-shadow: 0 30px 60px rgba(0,0,0,.5); }
.peek.on { opacity: 1; }

/* about / collaborate */
.about { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 64px; }
.about blockquote { margin: 0; font-family: var(--display); font-style: italic; font-size: clamp(32px, 4.4vw, 52px); line-height: 1.12; }
.about p { margin: 0 0 1em; max-width: 34em; }
.kit { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.kit div { border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 24px 20px; }
.kit b { display: block; font-family: var(--display); font-weight: 400; font-size: 46px; line-height: 1; font-variant-numeric: tabular-nums; }
.kit small { display: block; margin-top: 10px; font-size: 14px; color: var(--mist); }
.collab { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.collab h4 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 0 0 8px; }
.collab p { margin: 0; color: var(--mist); }
.contact { margin: 48px 0 0; font-size: 18px; }
.contact a { color: var(--chrome); }

/* issue page */
.issue-head { padding-block: 48px 40px; }
.back { display: inline-block; text-decoration: none; color: var(--mist); font-size: 15px; margin-bottom: 36px; }
.back:hover { color: var(--bone); }
.acc { display: flex; gap: 20px; font-family: var(--display); font-size: 18px; color: var(--chrome); letter-spacing: .06em; }
.issue-head h1 { font-family: var(--display); font-weight: 400; font-size: clamp(48px, 8vw, 112px); line-height: .95; margin: 14px 0 0; text-wrap: balance; }
.who { color: var(--mist); font-size: 18px; margin: 16px 0 0; }
.issue-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); gap: 64px; align-items: start; padding-block: 8px 80px; }
.text { position: sticky; top: calc(env(safe-area-inset-top, 0px) + 96px); max-width: 34em; }
.text p { margin: 0 0 1.2em; }
.text .lede { font-size: 20px; line-height: 1.75; color: var(--bone); }
.text h3 { font-family: var(--display); font-weight: 500; font-size: 24px; margin: 32px 0 10px; }
.text ul { margin: 0 0 1.2em; padding-left: 1.1em; }
.text li { margin-bottom: .6em; }
.credits { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--rule); font-size: 13px; line-height: 1.7; color: var(--mist); }
.slides { display: grid; gap: 28px; }
.slide { margin: 0; }
.slide img, .slide video { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: var(--plate); }
.slide figcaption { margin-top: 8px; font-family: var(--display); font-size: 15px; color: var(--mist); }
.pager { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding-block: 40px 72px; border-top: 1px solid var(--rule); }
.pn { text-decoration: none; font-family: var(--display); font-size: 30px; line-height: 1.15; }
.pn span { display: block; font-family: var(--body); font-size: 14px; color: var(--mist); margin-bottom: 8px; }
.pn.next { text-align: right; grid-column: 2; }
.pn:hover { color: var(--chrome); }

footer { border-top: 1px solid var(--rule); }
footer .wrap { padding-block: 28px 44px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 14px; color: var(--mist); }
footer a { text-decoration: none; }
footer a:hover { color: var(--bone); }

/* fade-in for slides (visible at rest without JS) */
.js .slide { opacity: .001; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.js .slide.in { opacity: 1; transform: none; }

@media (max-width: 900px) {
  .hero .wrap, .about, .issue-body { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .text { position: static; }
  .collab { grid-template-columns: minmax(0, 1fr); }
  .row { grid-template-columns: 96px minmax(0, 1fr); grid-template-rows: auto auto; gap: 6px 18px; align-items: start; padding-block: 20px; }
  .row .thumb { display: block; grid-row: 1 / span 2; width: 96px; aspect-ratio: 4 / 5; object-fit: cover; background: var(--plate); }
  .row .no { grid-column: 2; font-size: 15px; }
  .row .ssn { display: none; }
  .row .ttl { grid-column: 2; font-size: 28px; }
  .row .ttl small { font-size: 15px; }
  .rows:hover .row, .rows:hover .row:hover { color: var(--bone); padding-left: 0; }
}
@media (max-width: 520px) {
  body { font-size: 16px; }
  nav { gap: 14px; font-size: 15px; }
  .mark { font-size: 13px; letter-spacing: .22em; }
  section > .wrap { padding-block: 56px; }
  .kit b { font-size: 32px; }
  .kit div { padding: 18px 14px; }
  .pn { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-media video, .row, .peek { transition: none; }
  .js .slide { opacity: 1; transform: none; transition: none; }
}
