/* KRK Studio — site shell (v2 · 261005)
   Shared by index · work · case · contact.
   Tokens follow the KRK Studio design system: white ground, radius 0, 1px hairlines,
   Libre Caslon Display (titles) · Libre Caslon Text (labels) · Noto Sans KR (body). */

:root {
  --paper: #ffffff;
  --mist: #e8eae7;
  --sky: #cddbdf;
  --ink: #161311;
  --ink-muted: #4a4f52;
  --hairline: rgba(22, 19, 17, 0.16);
  --signal: #eb5328;          /* never used for text */
  --signal-ink: #a8330c;      /* hover / text accent */
  --serif-display: 'Libre Caslon Display', Georgia, serif;
  --serif-text: 'Libre Caslon Text', Georgia, serif;
  --sans: 'Noto Sans KR', system-ui, -apple-system, sans-serif;
  --pad: clamp(20px, 4vw, 48px);
  --header-h: 73px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }

.label {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-muted);
}

/* ── Header ─────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 22px var(--pad);
  background: rgba(255, 255, 255, 0.92);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.site-header.is-overlay { position: absolute; left: 0; right: 0; background: transparent; -webkit-backdrop-filter: none; backdrop-filter: none; }
.site-header nav { display: flex; align-items: center; gap: 28px; }
.site-header nav:first-child { justify-self: start; }
.site-header nav:last-of-type { justify-self: end; }
.site-header nav a { color: rgba(22, 19, 17, 0.72); transition: color 160ms ease; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.site-header .logo { justify-self: center; display: inline-flex; align-items: center; }
.site-header .logo img { height: 30px; width: auto; }
.site-header .menu-btn { display: none; }

/* ── Mobile menu ────────────────────────────────────────── */
.menu-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: 14px 16px 32px 20px;
  background: var(--paper);
  visibility: hidden;
  opacity: 0;
  transition: opacity 220ms ease, visibility 0s linear 220ms;
}
.menu-overlay.is-open { visibility: visible; opacity: 1; transition: opacity 220ms ease; }
.menu-overlay .menu-top { display: flex; align-items: center; justify-content: space-between; }
.menu-overlay .menu-top img { height: 30px; width: auto; }
.menu-overlay nav { display: flex; flex-direction: column; gap: 26px; margin-top: 190px; }
.menu-overlay nav a {
  font-family: var(--serif-display);
  font-size: 56px;
  line-height: 1;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.menu-overlay .menu-foot { margin-top: auto; font-size: 13px; color: var(--ink-muted); }

.icon-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.icon-btn span { display: block; width: 24px; height: 1.5px; background: var(--ink); transition: transform 220ms ease; }
.icon-btn.is-close span:first-child { transform: translateY(4.25px) rotate(45deg); }
.icon-btn.is-close span:last-child { transform: translateY(-4.25px) rotate(-45deg); }

/* ── Footer ─────────────────────────────────────────────── */
.site-footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 96px var(--pad) 56px;
  text-align: center;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.02em;
}
.site-footer img { width: 320px; max-width: 70vw; height: auto; margin-bottom: 28px; }

.cta-link { font-family: var(--serif-display); font-size: 20px; letter-spacing: 0.02em; transition: color 160ms ease; }
.cta-link:hover { color: var(--signal-ink); }

/* ── Mobile ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  :root { --header-h: 72px; }
  .site-header { display: flex; justify-content: space-between; padding: 14px 16px 14px 20px; }
  .site-header nav { display: none; }
  .site-header .logo { justify-self: auto; }
  .site-header .menu-btn { display: flex; }
  .site-footer { padding: 56px 20px 40px; }
  .site-footer img { width: 200px; margin-bottom: 20px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0ms !important; animation-duration: 0ms !important; }
}
