/* ============================================================
   Hyeejin Bae — portfolio
   Plain CSS, no build step, no external dependency.
   ============================================================ */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --bg: #f6f6f6;
  --ink: #281a39;
  --page: 1160px;
  --gutter: 24px;
  --side: 296px;
  --content: 752px;
  --gap-img: 18px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

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

a:hover,
a:focus-visible { text-decoration: underline; text-underline-offset: .18em; }

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: var(--bg);
  padding: 10px 16px;
  z-index: 100;
}
.skip-link:focus { left: 8px; top: 8px; }

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

.site-header {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 40px var(--gutter) 0;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}

.logo {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: .01em;
  font-weight: 400;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: baseline;
  gap: 30px;
  font-size: 16px;
  line-height: 1.2;
}

/* ---------- page grid: works list | content ---------- */

.layout {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  padding: 36px var(--gutter) 0;
  flex: 1 0 auto;
  display: grid;
  grid-template-columns: var(--side) minmax(0, 1fr);
  align-items: start;
}

.works-nav {
  font-size: 16px;
  line-height: 1.45;
}

.works-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.works-nav a { display: inline-block; }

.works-nav a[aria-current='page'] {
  text-decoration: underline;
  text-underline-offset: .18em;
}

.content {
  width: 100%;
  max-width: var(--content);
  min-width: 0;
}

/* Info / Contact: keep the text at the same left edge as the images,
   with an empty column where the works list sits on project pages. */
.col-spacer { display: block; }

/* ---------- images ---------- */

.gallery {
  margin: 0;
  padding: 0;
}

.shot {
  margin: 0 0 var(--gap-img);
  padding: 0;
}

.shot:last-child { margin-bottom: 0; }

.shot img {
  width: 100%;
  background: #ededed;
}

/* video item */

.video-shot {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #ededed;
  cursor: pointer;
  overflow: hidden;
}

.video-shot img { width: 100%; }

.video-shot .play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
}

.video-shot .play::before {
  content: '';
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .82);
  box-shadow: 0 1px 6px rgba(0, 0, 0, .18);
}

.video-shot .play::after {
  content: '';
  position: absolute;
  margin-left: 5px;
  border-style: solid;
  border-width: 11px 0 11px 18px;
  border-color: transparent transparent transparent var(--ink);
}

.video-shot:hover .play::before { background: #fff; }

.video-shot.is-loaded { cursor: default; }

video.inline-video {
  width: 100%;
  background: #000;
}

/* ---------- text pages ---------- */

.prose {
  max-width: var(--content);
  font-size: 16px;
  line-height: 1.85;
}

.prose p { margin: 0 0 1.85em; }
.prose p:last-child { margin-bottom: 0; }

/* ---------- list of works ---------- */

.works-list {
  margin-top: 46px;
  font-size: 16px;
  line-height: 1.45;
}

.works-list h2 {
  margin: 0 0 1.5em;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.45;
}

.work + .work { margin-top: 1.5em; }

.work p {
  margin: 0;
  overflow-wrap: break-word;
}

/* ---------- password gate (private pages) ---------- */

.gate {
  min-height: 58vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 0 40px;
}

.gate[hidden] { display: none; }

.gate-form {
  width: 100%;
  max-width: 360px;
}

.gate h1 {
  margin: 0 0 12px;
  font-size: 28px;
  font-weight: 500;
  letter-spacing: -.01em;
  line-height: 1.25;
}

.gate-hint {
  margin: 0 0 26px;
  font-size: 15px;
  line-height: 1.5;
}

.gate input {
  display: block;
  width: 100%;
  padding: 8px 0;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--ink);
  border-radius: 0;
}

.gate input::placeholder { color: #8a8194; opacity: 1; }

.gate input:focus { outline: 0; border-bottom-width: 2px; padding-bottom: 7px; }

.gate button {
  display: block;
  width: 100%;
  margin-top: 24px;
  padding: 13px 16px;
  font: inherit;
  font-size: 15px;
  color: #f6f6f6;
  background: var(--ink);
  border: 0;
  cursor: pointer;
}

.gate button:hover { background: #3b2a52; }

.gate-error {
  margin: 14px 0 0;
  font-size: 13px;
  line-height: 1.4;
}

.gate-error[hidden] { display: none; }

.project[hidden] { display: none; }

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

.site-footer {
  width: 100%;
  max-width: var(--page);
  margin: 0 auto;
  margin-top: auto;
  padding: 72px var(--gutter) 44px;
  text-align: center;
  font-size: 12px;
  line-height: 1.6;
}

/* ============================================================
   Mobile
   ============================================================ */

@media (max-width: 1080px) {
  :root { --side: 240px; }
}

@media (max-width: 860px) {
  .site-header { padding-top: 30px; }
  .logo { font-size: 19px; }
  .site-nav { gap: 22px; font-size: 15px; }
  .layout { padding-top: 30px; }
  :root { --side: 200px; }
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --side: 104px;
    --gap-img: 28px;
  }

  body { line-height: 1.4; }

  .site-header {
    padding: 24px var(--gutter) 0;
    align-items: baseline;
    gap: 16px;
  }

  .logo { font-size: 17px; letter-spacing: .01em; }
  .site-nav { gap: 16px; font-size: 13px; }

  .layout {
    padding: 24px var(--gutter) 0;
    grid-template-columns: var(--side) minmax(0, 1fr);
    column-gap: 16px;
  }

  .works-nav {
    font-size: 13px;
    line-height: 1.35;
  }

  .works-nav ul { gap: 10px; }

  .content { max-width: none; }

  /* text pages go full width on phones */
  .layout--text { grid-template-columns: minmax(0, 1fr); }
  .layout--text .col-spacer { display: none; }

  .prose { font-size: 15px; line-height: 1.8; }

  .works-list {
    margin-top: 34px;
    font-size: 14px;
    line-height: 1.45;
  }

  .works-list h2 { font-size: 14px; margin-bottom: 1.4em; }

  .work + .work { margin-top: 1.4em; }

  .gate { min-height: 52vh; }
  .gate h1 { font-size: 22px; }

  .site-footer {
    padding: 44px var(--gutter) 28px;
    font-size: 11px;
    line-height: 1.7;
  }
}

@media (max-width: 400px) {
  :root { --side: 92px; --gutter: 16px; }
  .works-nav { font-size: 12px; }
  .site-nav { gap: 12px; font-size: 12px; }
}

@media (prefers-reduced-motion: no-preference) {
  .project, .gate { transition: opacity .18s ease; }
}
