/* Gu Jungun — portfolio. White page, one sans-serif, images first. */

:root {
  --paper: #ffffff;
  --ink: #111111;
  --muted: #7a7a7a;
  --line: #e6e6e6;
  --wash: #f3f3f3;
  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(1.25rem, 4vw, 3rem);
  --measure: 60ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
}
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
h1, h2, h3 { margin: 0; font-weight: 600; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }
p + p { margin-top: 1em; }
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }

.skip { position: absolute; left: 1rem; top: -4rem; padding: .5rem 1rem; background: var(--ink); color: var(--paper); }
.skip:focus { top: 1rem; z-index: 10; }

.wrap { padding: 0 var(--gutter); max-width: 90rem; margin: 0 auto; }

/* header */
.top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2rem;
  padding: 1.5rem 0;
}
.top .name { font-weight: 600; font-size: 1.125rem; }
.top nav { display: flex; gap: 1.75rem; }
.top nav a { padding-bottom: .15rem; border-bottom: 1px solid transparent; }
.top nav a:hover, .top nav a[aria-current="page"] { border-bottom-color: var(--ink); }

/* intro */
.intro {
  padding: 3rem 0 3.5rem;
  max-width: 42ch;
  font-size: clamp(1.375rem, 2.6vw, 2rem);
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -.015em;
}

/* work */
.group { padding-bottom: 3.5rem; }
.group h2 { font-size: 1rem; font-weight: 500; color: var(--muted); margin-bottom: 1.25rem; }
.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem var(--gutter);
}
.grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile a { display: block; }
.frame { background: var(--wash); aspect-ratio: 4 / 3; overflow: hidden; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame.drawing { padding: 8%; }
.frame.drawing img { object-fit: contain; }
.tile figcaption { margin-top: .6rem; line-height: 1.4; }
.tile figcaption span { display: block; color: var(--muted); }
.tile a:hover figcaption { text-decoration: underline; text-underline-offset: .15em; }

/* about + contact */
.section { padding: 3rem 0; border-top: 1px solid var(--line); }
.section h2 { font-size: 1rem; font-weight: 500; color: var(--muted); margin-bottom: 1.25rem; }
.two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: var(--gutter); }
.text { max-width: var(--measure); font-size: 1.125rem; }
.list { margin: 0; }
.list div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.list div:first-child { border-top: 1px solid var(--line); }
.list dt { color: var(--muted); }
.list dd { margin: 0; }
.mail { display: inline-block; font-size: clamp(1.25rem, 3vw, 2rem); font-weight: 500; letter-spacing: -.01em; border-bottom: 2px solid currentColor; line-height: 1.2; }
.links { margin-top: 1.5rem; display: flex; gap: 1.5rem; }
.links a { border-bottom: 1px solid var(--line); }
.links a:hover { border-color: currentColor; }

.foot { border-top: 1px solid var(--line); padding: 1.5rem 0 2.5rem; color: var(--muted); font-size: .9375rem; display: flex; justify-content: space-between; gap: 1rem; }

/* on site (home) */
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem var(--gutter); }
.strip figcaption, .pair figcaption { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.photo { background: var(--wash); aspect-ratio: 3 / 2; overflow: hidden; }
.photo img { width: 100%; height: 100%; object-fit: cover; }

/* galleries of finished work: natural proportions, two across */
.gallery { column-count: 2; column-gap: var(--gutter); }
.gallery figure { break-inside: avoid; margin-bottom: 2rem; }
.gallery img { width: 100%; background: var(--wash); }
.gallery figcaption { margin-top: .5rem; color: var(--muted); font-size: .9375rem; }
.portrait { margin-bottom: 1.5rem; max-width: 18rem; }
.portrait img { width: 100%; }

/* project page */
.project-head { padding: 2.5rem 0 2rem; }
.project-head h1 { font-size: clamp(2rem, 4.5vw, 3.25rem); }
.project-head .where { color: var(--muted); margin-top: .5rem; font-size: 1.125rem; }
.project-head .summary { max-width: var(--measure); margin-top: 1.25rem; font-size: 1.25rem; line-height: 1.45; }
.lead { background: var(--wash); aspect-ratio: 16 / 9; overflow: hidden; }
.lead img { width: 100%; height: 100%; object-fit: cover; }
.lead.drawing { padding: 5%; }
.lead.drawing img { object-fit: contain; }
.project-main { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 1.4fr); gap: var(--gutter); padding: 2.5rem 0 1rem; }
.project-body { max-width: var(--measure); font-size: 1.125rem; }
.project-body p { margin-bottom: 1em; }
.facts div { grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); font-size: .9375rem; }
.block { padding: 2rem 0; }
.block h2 { font-size: 1rem; font-weight: 500; color: var(--muted); margin-bottom: 1.25rem; }
.pairs { display: grid; gap: 2rem; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.pair figcaption b { font-weight: 500; color: var(--ink); }
.pager { border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 1rem; padding: 1.5rem 0 3rem; }
.pager a { display: block; }
.pager .next { text-align: right; }
.pager small { display: block; color: var(--muted); font-size: .9375rem; }
.pager span { font-weight: 500; }
.notfound { padding: 2rem 0 4rem; max-width: var(--measure); }
.notfound a { text-decoration: underline; }

@media (max-width: 60rem) {
  .grid, .grid.wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two, .project-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 36rem) {
  .top { padding: 1.1rem 0; }
  .top nav { gap: 1.1rem; }
  .grid, .grid.wide, .strip { grid-template-columns: minmax(0, 1fr); }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .gallery { column-count: 1; }
  .intro { padding: 2rem 0 2.5rem; }
}
