@font-face {
  font-family: Lato;
  src: url('/fonts/Lato-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Lato;
  src: url('/fonts/Lato-Black.ttf') format('truetype');
  font-weight: 900;
  font-display: swap;
}

:root {
  --paper: #fff;
  --ink: #000;
  --muted: #525252;
  --rule: #e6e6e6;
  --panel: #ededed80;
  --highlight: #f8de47;
  --gap: 7px;
  --gutter: 7px;
  --columns: 2;
  --sans: Lato, 'Noto Sans CJK KR', 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --serif: Georgia, 'Times New Roman', serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 14px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.4 var(--sans); }
h1, h2, h3, p, figure, ul { margin: 0; }
h1, h2, h3 { font-size: 16px; font-weight: 400; line-height: 1.25; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; cursor: pointer; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.frame { width: min(100% - 2 * var(--gutter), 1600px); margin-inline: auto; }
.skip { position: absolute; left: 14px; top: 14px; padding: 7px; z-index: 10; clip-path: inset(100%); background: var(--highlight); }
.skip:focus-visible { clip-path: none; }

.site-header {
  position: relative;
  z-index: 2;
  min-height: 49px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--gap);
  padding: 7px 14px;
  font-size: 15px;
}
.brand { display: inline-flex; align-items: baseline; gap: 7px; width: fit-content; white-space: nowrap; }
.brand b { font-weight: 900; letter-spacing: -1px; }
.brand b span { color: #766000; }
.site-nav { display: flex; align-items: center; gap: 4.2px; background: var(--panel); padding: 4.2px; border-radius: 9999px; }
.site-nav a { padding: 4.2px 9px; border-radius: 9999px; }
.site-nav a:hover, .site-nav a[aria-current] { background: var(--paper); }
.site-nav a[aria-current] { box-shadow: 0 1px 4px #00000012; }
.header-social { justify-self: end; white-space: nowrap; }
.header-social:hover, .text-link:hover, .archive-meta a:hover, .footer a:hover { text-decoration: underline; text-underline-offset: 4px; }

.hero { position: relative; min-height: max(590px, calc(100svh - 49px)); display: grid; place-items: center; }
.hero-body { position: relative; width: min(100%, 1100px); height: clamp(560px, 76svh, 720px); display: grid; place-items: center; }
.hero-copy { z-index: 1; text-align: center; }
.hero-ko, .hero-tagline { color: var(--muted); }
.hero-copy h1 { margin: 4.2px 0 7px; }
.hero-cta, .capsule {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 14px;
  border: 0;
  border-radius: 9999px;
  background: var(--panel);
  font-size: 15px;
}
.hero-cta { margin-top: 14px; }
.hero-cta:hover, .capsule:hover { background: var(--highlight); }
.hero-gallery { position: absolute; inset: 0; pointer-events: none; }
.hero-tile {
  position: absolute;
  width: clamp(118px, 17vw, 200px);
  aspect-ratio: 3/4;
  padding: 4px;
  background: var(--panel);
  border-radius: 4px;
  pointer-events: auto;
  transition: transform .2s ease;
}
.hero-tile img, .short-image img, .about-preview img, .project-image img { width: 100%; height: 100%; object-fit: cover; }
.hero-tile img { object-position: center top; }
.hero-tile span { position: absolute; bottom: 7px; right: 7px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--paper); font-size: 12px; }
.hero-tile:hover, .hero-tile:focus-visible { z-index: 2; transform: scale(1.1); }
.hero-tile.lift { top: 2%; left: 5%; }
.hero-tile.run { top: 6%; right: 9%; }
.hero-tile.walk { bottom: 5%; left: 10%; }
.hero-tile.coffee { bottom: 1%; right: 4%; }
.hero-bottom { position: absolute; inset: auto 7px 14px; text-align: center; font-size: 12px; color: var(--muted); }

.shorts-section, .collections, .social, .about-details, .about-brief, .project-credits { margin-block: 40px; }
.section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; }
.project-index .shorts-section { margin-top: 0; }
.project-index .shorts-section > .section-head {
  min-height: clamp(195px, 26svh, 235px);
  margin-bottom: 7px;
  display: grid;
  justify-content: center;
  align-content: center;
  text-align: center;
}
.archive-description { margin-top: 7px; font: 16px/1.25 var(--serif); }
.eyebrow { display: block; color: var(--muted); font-size: 15px; }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 4.2px; }
.filters button { background: var(--panel); border: 1px solid transparent; border-radius: 9999px; font-size: 15px; padding: 4.2px 9px; }
.filters button:hover { border-color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--paper); background: var(--ink); }
.archive-meta { display: flex; justify-content: space-between; align-items: baseline; gap: 7px; margin-bottom: 7px; }
.shorts-grid, .collection-grid, .social-grid, .about-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns), minmax(0, 1fr));
  gap: 28px var(--gap);
  padding: 0;
  list-style: none;
}
.short-link { display: block; }
.short-image { position: relative; aspect-ratio: 9/16; overflow: hidden; border-radius: 4px; background: var(--panel); }
.short-image img { transition: transform .25s ease; }
.short-link:hover img { transform: scale(1.045); }
.play { position: absolute; bottom: 7px; left: 7px; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--paper); }
.play::after { content: ''; margin-left: 2px; border-left: 7px solid var(--ink); border-top: 4px solid transparent; border-bottom: 4px solid transparent; }
.short-link:hover .play, .about-preview:hover .play { background: var(--highlight); }
.card-caption { display: flex; justify-content: space-between; align-items: start; gap: 7px; padding: 7px 0 0; }
.card-caption h2, .card-caption h3 { margin-top: 4.2px; overflow-wrap: anywhere; }

.collections, .about-details, .about-brief { border-top: 1px solid var(--rule); }
.collections .section-head, .about-details .section-head, .about-brief .section-head { margin-top: 14px; }
.collection-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--gap); }
.collection { min-height: 88px; display: flex; justify-content: space-between; align-items: end; gap: 7px; padding: 14px; border-radius: 4px; background: var(--panel); }
.collection h3 { margin-top: 4.2px; }
.collection:hover { background: var(--highlight); }
.social-grid { gap: var(--gap); }
.social-grid a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 7px; align-items: center; background: var(--panel); padding: 14px; border-radius: 4px; }
.social-grid a:hover { background: #e6e6e680; }
.social-mark { display: grid; place-items: center; width: 24px; height: 24px; background: var(--highlight); border-radius: 50%; font-size: 12px; }
.social-text { display: grid; }
.social-text span { font-size: 12px; color: var(--muted); overflow-wrap: anywhere; }
.about-brief { display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 7px; align-items: baseline; }
.about-brief-copy { grid-column: span calc(var(--columns) - 1); }
.about-brief-copy p, .about-details .section-head p { margin-top: 7px; }
.text-link { display: inline-block; margin-top: 7px; }

.contact { color: var(--paper); background: var(--ink); }
.contact-inner { min-height: 96px; display: grid; grid-template-columns: repeat(var(--columns), minmax(0, 1fr)); gap: 7px; align-items: center; }
.contact a { justify-self: start; padding: 7px 14px; border-radius: 9999px; background: var(--highlight); color: var(--ink); overflow-wrap: anywhere; }
.contact a:hover { background: var(--paper); }
.contact a:focus-visible { outline-color: var(--paper); }
.footer { display: flex; flex-wrap: wrap; gap: 7px 14px; justify-content: space-between; align-items: center; margin: 14px; font-size: 12px; }

.about-hero {
  min-height: max(610px, calc(100svh - 49px));
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 14px;
  padding-inline: 14px;
  text-align: center;
}
.about-statement { max-width: 13em; font: clamp(42px, 7.2vw, 96px)/.99 var(--serif); letter-spacing: -1px; }
.about-preview { position: relative; width: clamp(92px, 14vw, 150px); aspect-ratio: 9/16; border-radius: 4px; overflow: hidden; }
.about-byline { font-size: 14px; }
.about-grid { gap: var(--gap); }
.about-grid article { min-height: 106px; border-top: 1px solid var(--rule); }
.about-grid h3 { margin-top: 14px; }
.about-grid h3 a:hover { text-decoration: underline; }
.about-grid p { margin-top: 7px; }

.project-detail { font-size: 14px; }
.project-intro { display: grid; align-content: center; justify-items: center; gap: 7px; min-height: clamp(215px, 32svh, 300px); text-align: center; }
.project-subtitle { font: 14px/1.25 var(--serif); }
.project-image a { position: relative; display: block; aspect-ratio: 16/9; background: #e6e6e680; overflow: hidden; border-radius: 4px; }
.project-image.fitness a { background: #e6e6e680; background-image: linear-gradient(135deg, #eae8dd, transparent); }
.project-image a img { position: absolute; inset: 0; margin: auto; width: auto; height: 86%; max-height: 68svh; object-fit: contain; border-radius: 4px; }
.project-image.daily a img { border: 2px solid var(--ink); }
.project-image figcaption { margin-top: 7px; font-size: 12px; color: var(--muted); }
.project-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin-block: 40px; }
.project-controls [data-info-open] { background: var(--ink); color: var(--paper); }
.project-controls [data-info-open]:hover { background: var(--highlight); color: var(--ink); }
.project-controls [data-info-open]:focus-visible { outline-color: var(--ink); }
.project-credits { border-top: 1px solid var(--rule); display: grid; justify-items: start; gap: 7px; }
.project-credits h2 { margin-top: 14px; }
.project-credits ul { padding: 0; list-style: none; }
.project-credits a, .info-dialog a:not(.capsule) { text-decoration: underline; text-underline-offset: 4px; }
.info-dialog { border: 1px solid var(--rule); border-radius: 4px; width: min(100% - 28px, 480px); padding: 14px; background: var(--paper); }
.info-dialog::backdrop { background: #00000080; }
.info-dialog form { display: flex; justify-content: end; margin-bottom: 14px; }
.info-dialog h2, .info-dialog p { margin-block: 7px; }

@media (max-width: 599px) {
  .site-header { padding-inline: 7px; }
  .site-nav a { padding-inline: 6px; }
  .brand-name { display: none; }
  .header-social { font-size: 12px; }
  .project-index .short-card:first-child:not([hidden]) { grid-column: 1 / -1; }
  .about-brief { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; align-content: center; min-height: 140px; }
}

@media (max-width: 699px) {
  .hero-body { width: min(100%, 480px); height: 510px; }
  .hero-tile { width: clamp(92px, 28vw, 125px); }
  .hero-tile.lift { top: 1%; left: 8%; }
  .hero-tile.run { top: 5%; right: 10%; }
  .hero-tile.walk { bottom: 5%; left: 10%; }
  .hero-tile.coffee { bottom: 1%; right: 8%; }
}

@media (min-width: 1024px) {
  :root { --columns: 3; }
}

@media (min-width: 600px) {
  .project-index .shorts-section > .section-head { min-height: 204px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
