/* JIYUHWAN portfolio — white gallery */

:root {
  --ink: #111;
  --muted: #8a8a8a;
  --line: #e6e6e6;
  --bg: #fff;
  --side: clamp(20px, 3.2vw, 48px);
  --gap: clamp(20px, 3vw, 40px);
  --sans: "Helvetica Neue", Helvetica, Arial, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 12px/1.6 var(--sans);
  letter-spacing: 0.04em;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
img { display: block; max-width: 100%; height: auto; }
h1, p, dl, dd, ol { margin: 0; padding: 0; }

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 18px var(--side);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
}

.wordmark {
  font-weight: 700;
  font-stretch: condensed;
  font-size: 26px;
  letter-spacing: 0.02em;
  line-height: 1;
  transform: scaleY(1.08);
}

.nav { display: flex; gap: 24px; text-transform: uppercase; font-size: 11px; letter-spacing: 0.14em; }
.nav-right { justify-content: flex-end; }
.nav a { color: var(--muted); transition: color .2s; }
.nav a:hover, .nav a[aria-current] { color: var(--ink); }

/* ---------- index ---------- */

.intro {
  display: flex;
  justify-content: space-between;
  padding: 28px var(--side) 36px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
}

.works {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  column-gap: var(--gap);
  row-gap: clamp(48px, 6vw, 88px);
  padding: 0 var(--side);
}

.work a { display: block; }

.work .frame {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}
.work .frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s cubic-bezier(.2, .7, .2, 1), opacity .4s;
}
.work a:hover .frame img { transform: scale(1.025); }

/* wall label */
.work .label {
  display: grid;
  grid-template-columns: 2.6em 1fr auto;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid transparent;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.work .no, .work .year { color: var(--muted); }
.work a:hover .title { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- project ---------- */

.project { padding: 0 var(--side); }

.wall-text {
  max-width: 420px;
  margin: clamp(56px, 10vh, 120px) auto clamp(72px, 14vh, 160px);
  text-align: center;
}
.wall-text .no, .wall-text .meta {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.wall-text h1 {
  margin: 14px 0 18px;
  font-size: clamp(22px, 2.6vw, 32px);
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  line-height: 1.2;
}
.wall-text p:not(.no):not(.meta) { font-size: 12px; }
.wall-text .meta { margin-top: 18px; }

.pieces { display: flex; flex-direction: column; gap: clamp(80px, 16vh, 200px); }

.row { display: flex; justify-content: center; gap: var(--gap); }

.piece { margin: 0; }
.piece figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.14em;
}
.piece img { max-height: 84vh; width: auto; }

.landscape { max-width: min(1200px, 100%); }
.portrait { max-width: min(640px, 100%); }
.pair .portrait { flex: 0 1 auto; max-width: calc(50% - var(--gap) / 2); }
.strip { width: min(1200px, 100%); }
.strip img { width: 100%; max-height: none; }

.next {
  display: flex;
  justify-content: space-between;
  margin: clamp(120px, 20vh, 240px) 0 0;
  padding: 24px 0;
  border-top: 1px solid var(--line);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.14em;
}
.next a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- contact ---------- */

.contact {
  max-width: 420px;
  margin: clamp(80px, 18vh, 200px) auto;
  text-align: center;
}
.contact h1 {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 36px;
}
.contact dt {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.contact dd { font-size: 15px; letter-spacing: 0.02em; margin-bottom: 28px; }
.contact dd a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- footer ---------- */

.site-footer {
  display: flex;
  justify-content: space-between;
  margin-top: clamp(96px, 14vh, 160px);
  padding: 22px var(--side) 28px;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 10px;
  letter-spacing: 0.14em;
}
.site-footer a:hover { color: var(--ink); }

/* ---------- responsive ---------- */

@media (max-width: 960px) {
  .works { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .wordmark { font-size: 22px; }
  .nav { gap: 16px; }
  .intro { padding-top: 16px; }
  .works { grid-template-columns: 1fr; row-gap: 44px; }
  .row.pair { flex-direction: column; align-items: center; }
  .pair .portrait { max-width: 100%; }
  .piece img { max-height: none; width: 100%; }
  .pieces { gap: 56px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .work .frame img { transition: none; }
}
