:root {
  --ink: #17161a;
  --ink-soft: #4d4a52;
  --ink-faint: #86828d;
  --paper: #f7f5f1;
  --paper-2: #ffffff;
  --line: #e0dcd4;
  --accent: #9a5f2c;
  --accent-soft: #f0e3d5;
  --shadow: 0 1px 2px rgba(20, 16, 12, .05), 0 12px 32px rgba(20, 16, 12, .07);
  --max: 1120px;
  --font: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; letter-spacing: -.02em; }
p { margin: 0 0 1.1em; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50;
  background: rgba(247, 245, 241, .88);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-head .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.brand { display: flex; align-items: baseline; gap: 10px; }
.brand strong { font-size: 22px; letter-spacing: .22em; font-weight: 700; }
.brand span { font-size: 12px; color: var(--ink-faint); letter-spacing: .04em; }
.nav { display: flex; gap: 4px; }
.nav a {
  padding: 8px 14px; border-radius: 999px; font-size: 14.5px; color: var(--ink-soft);
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--accent-soft); color: var(--ink); }
.nav a.is-active { background: var(--ink); color: #fff; }

/* ---------- hero ---------- */
.hero { position: relative; margin-bottom: 72px; }
.hero-media {
  position: relative; overflow: hidden; border-radius: 0 0 28px 28px;
  max-height: 520px;
}
.hero-media img { width: 100%; height: 520px; object-fit: cover; }
.hero-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 48px 24px 40px;
  background: linear-gradient(to top, rgba(10, 9, 12, .82), rgba(10, 9, 12, 0));
  color: #fff;
}
.hero-caption .wrap { padding: 0 24px; }
.hero-caption h1 { font-size: clamp(30px, 4.6vw, 52px); font-weight: 700; }
.hero-caption p { margin: 14px 0 0; max-width: 640px; color: rgba(255, 255, 255, .84); font-size: 17px; }

/* ---------- sections ---------- */
.section { margin: 0 0 76px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 20px; margin-bottom: 28px; padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.section-head h2 { font-size: 25px; }
.section-head .more { font-size: 14px; color: var(--accent); }
.eyebrow {
  font-size: 12px; letter-spacing: .18em; color: var(--accent);
  text-transform: uppercase; margin-bottom: 10px; font-weight: 600;
}
.lede { font-size: 18px; color: var(--ink-soft); max-width: 720px; }

/* ---------- cards ---------- */
.grid { display: grid; gap: 28px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.card {
  background: var(--paper-2); border-radius: 18px; overflow: hidden;
  box-shadow: var(--shadow); display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(20,16,12,.06), 0 20px 44px rgba(20,16,12,.12); }
.card img { width: 100%; height: 210px; object-fit: cover; background: #e8e4dd; }
.card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-cat { font-size: 12px; letter-spacing: .12em; color: var(--accent); font-weight: 600; }
.card h3 { font-size: 19px; }
.card p { margin: 0; font-size: 14.5px; color: var(--ink-soft); line-height: 1.7; }
.card-meta { margin-top: auto; padding-top: 12px; font-size: 13px; color: var(--ink-faint); }

/* ---------- detail ---------- */
.crumb { font-size: 13px; color: var(--ink-faint); margin: 28px 0 18px; }
.crumb a { color: var(--accent); }
.detail-hero { border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 34px; }
.detail-hero img { width: 100%; height: 460px; object-fit: cover; }
.detail-title { font-size: clamp(28px, 4vw, 42px); margin-bottom: 12px; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.9fr) minmax(220px, .8fr); gap: 48px; align-items: start; }
.prose p { font-size: 16.5px; color: #2c2a30; }
.spec { background: var(--paper-2); border-radius: 16px; padding: 22px 24px; box-shadow: var(--shadow); font-size: 14.5px; }
.spec dl { margin: 0; display: grid; grid-template-columns: 78px 1fr; gap: 10px 14px; }
.spec dt { color: var(--ink-faint); }
.spec dd { margin: 0; }
.spec h3 { font-size: 15px; margin-bottom: 14px; }
.credits { margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); list-style: none; }
.credits li { font-size: 14px; color: var(--ink-soft); }

/* ---------- about / contact ---------- */
.split { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 34px; }
.info-list { list-style: none; margin: 0; padding: 0; }
.info-list li { padding: 16px 0; border-bottom: 1px solid var(--line); display: flex; gap: 18px; }
.info-list b { min-width: 92px; color: var(--ink-faint); font-weight: 500; font-size: 14px; }
.note { background: var(--accent-soft); border-radius: 16px; padding: 24px 26px; font-size: 15px; color: #513520; }
.note h3 { font-size: 16px; margin-bottom: 10px; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px; margin: 30px 0 44px; }
.stat { background: var(--paper-2); border-radius: 16px; padding: 20px 22px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 28px; letter-spacing: -.03em; }
.stat span { font-size: 13px; color: var(--ink-faint); }

/* ---------- footer ---------- */
.site-foot {
  border-top: 1px solid var(--line); margin-top: 80px; padding: 40px 0 60px;
  font-size: 14px; color: var(--ink-faint);
}
.site-foot .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
.site-foot a { color: var(--ink-soft); }

.loading { padding: 90px 0; text-align: center; color: var(--ink-faint); }

@media (max-width: 760px) {
  .site-head .wrap { height: auto; padding-top: 12px; padding-bottom: 12px; flex-direction: column; gap: 8px; }
  .nav { flex-wrap: wrap; justify-content: center; }
  .hero-media img { height: 380px; }
  .detail-layout { grid-template-columns: 1fr; gap: 30px; }
  .detail-hero img { height: 280px; }
}
