:root {
  --bg: #130f12;
  --bg-soft: #1f181d;
  --panel: rgba(255, 247, 238, 0.08);
  --panel-strong: rgba(255, 247, 238, 0.14);
  --paper: #f6ece2;
  --paper-deep: #e8d7c6;
  --ink: #fff8f0;
  --muted: #c6b5a7;
  --red: #9a1919;
  --red-bright: #c73131;
  --gold: #c79a4d;
  --line: rgba(255, 248, 240, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.42);
  --serif: 'Cormorant Garamond', Georgia, serif;
  --display: 'Bodoni Moda', 'Cormorant Garamond', Georgia, serif;
  --sans: 'Inter', 'Noto Sans KR', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(151, 25, 25, 0.24), transparent 34rem),
    radial-gradient(circle at 80% 10%, rgba(199, 154, 77, 0.16), transparent 30rem),
    linear-gradient(135deg, #0d0a0d 0%, #191115 42%, #281819 100%);
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255,255,255,0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px),
    radial-gradient(circle at 18% 22%, rgba(255, 234, 204, 0.13), transparent 19rem),
    radial-gradient(circle at 78% 24%, rgba(199, 154, 77, 0.1), transparent 24rem);
  background-size: 44px 44px, 44px 44px, auto, auto;
  mask-image: linear-gradient(to bottom, black, transparent 88%);
}

body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.055;
  background-image:
    repeating-radial-gradient(circle at 17% 23%, rgba(255,255,255,.85) 0 0.45px, transparent 0.55px 2.4px),
    repeating-linear-gradient(115deg, rgba(255,255,255,.35) 0 0.5px, transparent 0.75px 4px);
  mix-blend-mode: screen;
}

.site-shell { position: relative; z-index: 1; }

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

img {
  max-width: 100%;
  display: block;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
}

.lookbook-card img,
.hero-feature-card img,
.detail-image-panel img {
  pointer-events: none;
}

.site-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px 0;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.brand-mark { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--gold); border-radius: 999px; color: var(--gold); font-family: var(--display); font-size: 25px; box-shadow: inset 0 0 18px rgba(199,154,77,.08); }
.brand-text { font-size: 14px; }
.topnav { display: flex; gap: 24px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; }
.topnav a { position: relative; padding-bottom: 5px; }
.topnav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); transform: scaleX(0); opacity: 0; transition: transform .22s ease, opacity .22s ease; }
.topnav a:hover { color: var(--ink); }
.topnav a:hover::after { transform: scaleX(1); opacity: .85; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 390px);
  gap: clamp(34px, 7vw, 96px);
  align-items: center;
  min-height: calc(100vh - 110px);
  padding: 36px 0 80px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  font-weight: 800;
}

h1, h2, h3, p { margin-top: 0; }

.hero h1 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(62px, 9.4vw, 118px);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: 0.018em;
  text-wrap: balance;
  text-shadow: 0 1px 0 rgba(255,255,255,.16), 0 24px 70px rgba(0,0,0,.38);
}

.subtitle {
  margin: 24px 0 18px;
  max-width: 680px;
  font-family: var(--display);
  font-size: clamp(34px, 4.7vw, 64px);
  line-height: 0.96;
  letter-spacing: -0.02em;
  color: var(--paper);
  text-wrap: balance;
}

.hero-korean {
  max-width: 650px;
  color: var(--paper-deep);
  font-size: 18px;
  line-height: 1.8;
}

.hero-mantra {
  margin: 24px 0 0;
  color: rgba(246, 236, 226, .76);
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid var(--line); font-weight: 800; letter-spacing: 0.04em; transition: transform .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease; }
.button:hover { transform: translateY(-2px); }
.button.primary { background: var(--paper); color: #241313; border-color: var(--paper); box-shadow: 0 14px 36px rgba(246,236,226,.12); }
.button.primary:hover { box-shadow: 0 18px 46px rgba(246,236,226,.18); }
.button.ghost { color: var(--paper); background: rgba(255,255,255,0.04); }

.hero-card-stage { perspective: 1200px; }
.hero-feature-card, .lookbook-card {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: var(--panel);
  border: 1px solid rgba(255, 248, 240, 0.22);
  box-shadow: var(--shadow);
  isolation: isolate;
}
.hero-feature-card { aspect-ratio: 3 / 4; transform: rotate(2deg); box-shadow: 0 26px 100px rgba(0,0,0,.5), 0 0 0 1px rgba(199,154,77,.22), inset 0 0 0 1px rgba(255,255,255,.04); }
.hero-feature-card::before,
.lookbook-card::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0%, rgba(255,255,255,.02) 32%, rgba(255,255,255,.22) 45%, rgba(199,154,77,.11) 52%, transparent 66%),
    linear-gradient(35deg, rgba(255,255,255,.14), transparent 22%, transparent 72%, rgba(255,255,255,.08));
  opacity: .22;
  transform: translateX(-28%);
  transition: opacity .35s ease, transform .55s ease;
  mix-blend-mode: screen;
}
.hero-feature-card:hover::before,
.lookbook-card:hover::before { opacity: .5; transform: translateX(18%); }
.hero-feature-card::after,
.lookbook-card::after {
  content: '';
  position: absolute;
  inset: 10px;
  z-index: 3;
  border: 1px solid rgba(199,154,77,.28);
  border-radius: 22px;
  pointer-events: none;
  opacity: .7;
}
.hero-feature-card img, .lookbook-card img { width: 100%; height: 100%; object-fit: cover; }
.skeleton-card { display: grid; place-items: center; min-height: 520px; color: var(--muted); }
.card-overlay {
  position: absolute;
  inset: auto 0 0;
  z-index: 4;
  padding: 42px 24px 24px;
  background: linear-gradient(to top, rgba(10, 6, 7, .92), rgba(10, 6, 7, .55), transparent);
}
.card-overlay h3 { margin: 0 0 6px; font-family: var(--display); font-weight: 500; font-size: 32px; line-height: 0.95; letter-spacing: 0.035em; text-transform: uppercase; }
.card-overlay p { margin: 0; color: var(--paper-deep); }

.section-heading { margin-bottom: 24px; }
.section-heading h2 { margin: 0 0 8px; font-family: var(--display); font-weight: 500; font-size: clamp(38px, 6.5vw, 68px); line-height: .94; letter-spacing: -0.015em; }
.section-heading p { color: var(--muted); line-height: 1.7; }
.row-heading { display: flex; justify-content: space-between; gap: 24px; align-items: end; }
.result-count { white-space: nowrap; }

.filters-section, .cards-section { padding: 70px 0; border-top: 1px solid var(--line); }
.filters-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.filter-group { padding: 22px; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; backdrop-filter: blur(10px); }
.filter-group h3 { margin: 0 0 4px; font-family: var(--serif); font-size: 30px; }
.filter-group p { color: var(--muted); font-size: 13px; line-height: 1.5; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip { cursor: pointer; border: 1px solid rgba(255,248,240,.18); color: var(--paper-deep); background: rgba(255,255,255,.045); border-radius: 999px; padding: 8px 12px; font: 700 12px/1 var(--sans); letter-spacing: .03em; }
.chip:hover, .chip.active { background: var(--paper); border-color: var(--paper); color: #2a1715; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px; }
.lookbook-card { display: block; aspect-ratio: 3 / 4; transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease; box-shadow: 0 18px 50px rgba(0,0,0,.34), inset 0 0 0 1px rgba(255,255,255,.035); }
.lookbook-card:hover { transform: translateY(-8px) rotate(-1deg); border-color: rgba(199,154,77,.85); box-shadow: 0 26px 76px rgba(0,0,0,.48), 0 0 0 1px rgba(199,154,77,.22); }
.card-meta-line { margin-top: 13px; display: flex; gap: 7px; flex-wrap: wrap; }
.tag { display: inline-flex; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 5px 8px; color: var(--paper-deep); font-size: 11px; font-weight: 800; background: rgba(0,0,0,.18); }
.empty-state { padding: 42px; border: 1px dashed rgba(255,255,255,.22); border-radius: 22px; color: var(--muted); }
.hidden { display: none !important; }

.detail-root { padding: 28px 0 80px; }
.detail-hero { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 30px; align-items: start; }
.detail-image-panel { background: var(--paper); border-radius: 24px; overflow: hidden; box-shadow: var(--shadow); border: 1px solid rgba(255, 248, 240, .24); }
.detail-image-panel img { width: 100%; height: auto; }
.detail-info { position: sticky; top: 20px; padding: 28px; background: rgba(255, 247, 238, 0.09); border: 1px solid var(--line); border-radius: 24px; backdrop-filter: blur(10px); }
.detail-info h1 { margin: 0 0 8px; font-family: var(--display); font-weight: 500; font-size: 52px; line-height: .9; text-transform: uppercase; }
.detail-info .detail-title { font-family: var(--serif); color: var(--gold); font-size: 31px; margin-bottom: 18px; }
.detail-desc { color: var(--paper-deep); line-height: 1.75; }
.meta-list { display: grid; gap: 15px; margin: 28px 0; }
.meta-item span { display: block; color: var(--gold); font-size: 11px; text-transform: uppercase; letter-spacing: .15em; font-weight: 800; margin-bottom: 5px; }
.meta-item strong { color: var(--paper); font-size: 15px; }
.notice { margin-top: 22px; padding: 16px; border-radius: 16px; background: rgba(154,25,25,.18); border: 1px solid rgba(199,154,77,.22); color: var(--paper-deep); font-size: 12px; line-height: 1.6; }
.back-link { display: inline-flex; margin-bottom: 18px; color: var(--gold); font-weight: 800; }
.detail-loading, .error-box { padding: 60px 0; color: var(--muted); }

.site-footer { margin-top: 40px; padding: 28px 0 46px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.7; }

@media (max-width: 900px) {
  .hero, .detail-hero { grid-template-columns: 1fr; }
  .hero { min-height: auto; }
  .hero-feature-card { max-width: 430px; margin: 0 auto; }
  .filters-grid { grid-template-columns: 1fr; }
  .detail-info { position: static; }
  .row-heading { display: block; }
}

@media (max-width: 560px) {
  .site-shell { width: min(100% - 22px, 1180px); }
  .topbar { align-items: flex-start; gap: 16px; }
  .topnav { gap: 12px; font-size: 10px; letter-spacing: .1em; }
  .hero h1 { font-size: 58px; }
  .subtitle { font-size: 33px; }
  .hero-korean { font-size: 15px; }
  .hero-mantra { font-size: 17px; letter-spacing: .1em; }
  .card-grid { grid-template-columns: 1fr; }
  .detail-info h1 { font-size: 40px; }
}
