/* ============================================================
   Youngsoon Seo — Portfolio
   Shared styles. Clean editorial system from the Figma source.
   ============================================================ */

/* PP Neue Montreal is the design source font (user-licensed for a
   personal portfolio). It is listed first so dropping the real font
   files in later upgrades automatically; Geist is a close, freely
   loadable grotesque substitute used for rendering now. */
@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&display=swap');

:root {
  --ink:        #212121;            /* primary text */
  --ink-strong: #1d1d1d;            /* display headings */
  --gray:       #616979;            /* secondary text */
  --gray-soft:  #858d9d;            /* tertiary / meta */
  --placeholder:#f6f7f9;            /* image placeholder fill */
  --line:       #212121;            /* strong divider */
  --line-soft:  #d0dae9;            /* light divider */
  --bg:         #ffffff;

  --serif: 'PP Neue Montreal', 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --sans:  'PP Neue Montreal', 'Geist', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --maxw: 1560px;
  --pad:  clamp(24px, 7vw, 120px);
  --reading: 680px;
}

* { box-sizing: border-box; }

html { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

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

::selection { background: #212121; color: #fff; }

/* ---------- layout shell ---------- */
.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---------- header / nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.82);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.site-header .wrap {
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-weight: 600;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.nav {
  display: flex;
  gap: 32px;
  align-items: center;
}
.nav a {
  font-weight: 500;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: relative;
  padding-bottom: 2px;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 1.5px;
  background: var(--ink);
  transition: right .3s cubic-bezier(.2,.7,.2,1);
}
.nav a:hover::after,
.nav a[aria-current="page"]::after { right: 0; }
.nav a[aria-current="page"] { font-weight: 600; }

/* ---------- footer ---------- */
.site-footer { margin-top: 120px; }
.site-footer .rule {
  height: 1px;
  background: var(--gray);
  opacity: .35;
}
.footer-inner {
  padding-block: 64px 56px;
  display: flex;
  flex-direction: column;
  gap: 56px;
}
.connect {
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.connect a { border-bottom: 1px solid transparent; transition: border-color .25s; }
.connect a:hover { border-color: var(--ink); }
.footer-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-meta .copy { color: var(--gray); font-size: 16px; }
.footer-links { display: flex; gap: 32px; }
.footer-links a { color: var(--gray); font-size: 16px; transition: color .2s; }
.footer-links a:hover { color: var(--ink); }

/* ---------- reveal animation ---------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}
[data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1 !important; transform: none !important; transition: none; }
  .nav a::after { transition: none; }
}

/* ---------- image slot baseline ---------- */
image-slot {
  display: block;
  background: var(--placeholder);
  border-radius: 3px;
}

/* ---------- responsive safety + mobile refinements ---------- */
img, svg, video, image-slot { max-width: 100%; }
img { height: auto; }

@media (max-width: 760px) {
  .site-footer { margin-top: 80px; }
  .footer-inner { min-height: 0 !important; padding-block: 48px 44px; gap: 36px; }
  .connect { font-size: 21px; }
  .footer-links { gap: 24px; flex-wrap: wrap; }
  .nav { gap: 22px; }
}

@media (max-width: 600px) {
  .hero { padding-block: 60px !important; }
  .hero p br { display: none; }
}
