@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard.min.css");

/* ==========================================================================
   용마미식거리 — 디자인 시스템
   브랜드 팔레트는 캐릭터(용·마)의 앰버/오렌지 + 블루 리본에서 추출
   ========================================================================== */

:root {
  /* Brand */
  --amber-50:  #FFF7ED;
  --amber-100: #FFEDD5;
  --amber-200: #FED7AA;
  --amber-400: #FB923C;
  --amber-500: #F5883A;
  --amber-600: #E0701F;
  --amber-700: #C2570F;

  --blue-50:   #EFF6FF;
  --blue-100:  #DBEAFE;
  --blue-500:  #3B82F6;
  --blue-600:  #1D4ED8;
  --blue-700:  #1E40AF;

  /* Neutral */
  --ink-900: #12100E;
  --ink-800: #292524;
  --ink-700: #44403C;
  --ink-600: #57534E;
  --ink-500: #78716C;
  --ink-400: #A8A29E;
  --ink-300: #D6D3D1;
  --line:    #E7E5E4;
  --bg:      #FFFFFF;
  --bg-soft: #FAFAF9;
  --bg-warm: #FDFBF7;

  /* Zone colors — 배치도 색상과 일치 */
  --z-gateway: #F97316;
  --z-food:    #EC4899;
  --z-busking: #84CC16;
  --z-photo:   #06B6D4;
  --z-play:    #8B5CF6;
  --z-market:  #EF4444;
  --z-startup: #F59E0B;

  /* System */
  --radius-sm: 8px;
  --radius:    14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(18,16,14,.06), 0 1px 3px rgba(18,16,14,.04);
  --shadow:    0 4px 6px -1px rgba(18,16,14,.07), 0 2px 4px -2px rgba(18,16,14,.05);
  --shadow-lg: 0 12px 24px -6px rgba(18,16,14,.12), 0 4px 8px -4px rgba(18,16,14,.06);
  --shadow-xl: 0 24px 48px -12px rgba(18,16,14,.18);
  --wrap: 1180px;
  --nav-h: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  font-family: Pretendard, "Freesentation 5 Medium", -apple-system, BlinkMacSystemFont,
               "Segoe UI", "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-800);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: break-word;
}
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { list-style: none; padding: 0; }
table { border-collapse: collapse; width: 100%; }
:focus-visible { outline: 3px solid var(--blue-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.25; letter-spacing: -.02em; color: var(--ink-900); font-weight: 700; }
h1 { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.4vw, 2.25rem); }
h3 { font-size: clamp(1.15rem, 1.05rem + .5vw, 1.4rem); }
h4 { font-size: 1.0625rem; }
.lead { font-size: clamp(1rem, .95rem + .3vw, 1.15rem); color: var(--ink-600); }
.muted { color: var(--ink-500); }
.tiny { font-size: .8125rem; }
.num { font-variant-numeric: tabular-nums; }

/* ---------- Layout ---------- */
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.section { padding: clamp(56px, 7vw, 104px) 0; }
.section--soft { background: var(--bg-soft); }
.section--warm { background: var(--bg-warm); }
.stack > * + * { margin-top: 1rem; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }

.split { display: grid; gap: clamp(28px, 5vw, 64px); align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1fr 1fr; } .split--wide { grid-template-columns: 1.15fr .85fr; } }

/* ---------- Section head ---------- */
.sec-head { max-width: 720px; margin-bottom: clamp(32px, 4vw, 52px); }
.sec-head--center { margin-inline: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8125rem; font-weight: 700; letter-spacing: .08em;
  color: var(--amber-700); text-transform: uppercase; margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--amber-500); border-radius: 2px; }
.sec-head--center .eyebrow::before { display: none; }
.sec-head p { margin-top: 14px; color: var(--ink-600); font-size: 1.0625rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 1.5px solid transparent;
  font-weight: 700; font-size: .9375rem; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--ease), background-color .18s, box-shadow .18s, border-color .18s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--amber-500); color: #fff; box-shadow: 0 4px 14px rgba(245,136,58,.32); }
.btn--primary:hover { background: var(--amber-600); box-shadow: 0 8px 22px rgba(245,136,58,.4); }
.btn--dark { background: var(--ink-900); color: #fff; }
.btn--dark:hover { background: var(--ink-800); }
.btn--ghost { background: #fff; color: var(--ink-800); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn--ghost:hover { border-color: var(--amber-400); color: var(--amber-700); }
.btn--onimg { background: rgba(255,255,255,.16); color: #fff; border-color: rgba(255,255,255,.5); backdrop-filter: blur(8px); }
.btn--onimg:hover { background: rgba(255,255,255,.26); }
.btn--sm { padding: 9px 18px; font-size: .875rem; }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; height: var(--nav-h);
  background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.0625rem; letter-spacing: -.02em; color: var(--ink-900); }
.brand img { width: 34px; height: 34px; object-fit: contain; }
.brand small { display: block; font-size: .625rem; font-weight: 600; color: var(--amber-600); letter-spacing: .1em; line-height: 1; }
.nav { display: none; margin-left: auto; }
.nav ul { display: flex; align-items: center; gap: 4px; }
.nav a {
  display: block; padding: 9px 14px; border-radius: 999px;
  font-size: .9375rem; font-weight: 600; color: var(--ink-600);
  transition: background-color .16s, color .16s;
}
.nav a:hover { background: var(--amber-50); color: var(--amber-700); }
.nav a[aria-current="page"] { color: var(--ink-900); background: var(--bg-soft); }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
@media (min-width: 1020px) { .nav { display: block; } .header-actions { margin-left: 0; } .nav-toggle { display: none; } }

.nav-toggle {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: 1px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: var(--ink-800); border-radius: 2px; position: relative; }
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink-800); border-radius: 2px;
}
.nav-toggle span::before { top: -6px; } .nav-toggle span::after { top: 6px; }

.mobile-nav { display: none; border-bottom: 1px solid var(--line); background: #fff; }
.mobile-nav.open { display: block; }
.mobile-nav ul { padding: 12px 0 20px; }
.mobile-nav a { display: block; padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--bg-soft); }
@media (min-width: 1020px) { .mobile-nav { display: none !important; } }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ink-900); }
.hero__bg { position: absolute; inset: 0; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; opacity: .5; }
.hero__bg::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(18,16,14,.5) 0%, rgba(18,16,14,.62) 45%, rgba(18,16,14,.88) 100%);
}
.hero__inner { position: relative; padding: clamp(72px, 12vw, 132px) 0 clamp(56px, 8vw, 92px); color: #fff; }
.hero h1 { color: #fff; max-width: 17ch; line-height: 1.32; padding-top: .14em; }
/* 제목 강조 — 색상 + 글자마다 방점(드러냄표) */
.em-dot {
  font-style: normal; color: var(--amber-400);
  -webkit-text-emphasis: filled dot currentColor;
          text-emphasis: filled dot currentColor;
  -webkit-text-emphasis-position: over right;
          text-emphasis-position: over right;
}
.hero__sub {
  margin-top: 14px; font-size: clamp(1.59375rem, 1.425rem + .75vw, 2.0625rem);
  font-weight: 600; color: rgba(255,255,255,.8); letter-spacing: -.01em;
}
.hero__sub b { color: var(--amber-400); font-weight: 800; }
.hero .lead { color: rgba(255,255,255,.86); max-width: 54ch; margin-top: 18px; }
.hero__sub + .lead { margin-top: 14px; }
.hero .btn-row { margin-top: 32px; }
.hero__badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px 7px 9px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24);
  border-radius: 999px; font-size: .8125rem; font-weight: 600; color: #fff;
  backdrop-filter: blur(8px); margin-bottom: 22px;
}
.hero__badge b { background: var(--amber-500); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: .75rem; }

.hero-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 2px 8px; margin-top: clamp(44px, 6vw, 68px); border-top: 1px solid rgba(255,255,255,.18); padding-top: 28px; }
.hero-stats div { padding-right: 16px; }
.hero-stats dt { font-size: .8125rem; color: rgba(255,255,255,.62); font-weight: 600; }
.hero-stats dd { font-size: clamp(2.75rem, 2.2rem + 2vw, 3.75rem); font-weight: 800; color: #fff; letter-spacing: -.02em; margin-top: 6px; line-height: 1.05; }
.hero-stats dd span { font-size: 1.75rem; font-weight: 600; color: var(--amber-400); margin-left: 5px; }

/* ---------- Cards ---------- */
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: transform .22s var(--ease), box-shadow .22s var(--ease), border-color .22s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card__img { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-soft); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.card:hover .card__img img { transform: scale(1.05); }
.card__body { padding: 22px 24px 26px; flex: 1; display: flex; flex-direction: column; }
.card__body h3 { margin-bottom: 8px; }
.card__body p { color: var(--ink-600); font-size: .9375rem; }
.card__foot { margin-top: auto; padding-top: 16px; }

.zone-tag {
  display: inline-flex; align-items: center; gap: 7px; font-size: .75rem; font-weight: 800;
  letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; margin-bottom: 12px;
  background: var(--z, var(--amber-500)); color: #fff;
}
.zone-card { border-top: 4px solid var(--z, var(--amber-500)); }

/* ---------- Stat / feature tiles ---------- */
.tile { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; }
.tile--soft { background: var(--bg-soft); border-color: transparent; }
.tile dt { font-size: .875rem; font-weight: 600; color: var(--ink-500); }
.tile dd { font-size: 1.75rem; font-weight: 800; color: var(--ink-900); letter-spacing: -.03em; margin-top: 6px; }
.tile dd small { font-size: .875rem; font-weight: 600; color: var(--ink-500); margin-left: 4px; }
.tile .delta { display: inline-block; margin-top: 8px; font-size: .8125rem; font-weight: 700; color: var(--amber-700); background: var(--amber-50); padding: 3px 10px; border-radius: 999px; }
a.tile { display: block; transition: transform .2s var(--ease), border-color .2s, box-shadow .2s var(--ease); }
a.tile:hover { transform: translateY(-3px); border-color: var(--amber-200); box-shadow: var(--shadow-lg); }

.icon-badge {
  width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px;
  background: var(--amber-50); color: var(--amber-600); margin-bottom: 16px; font-size: 1.375rem;
}

/* ---------- Timeline ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; padding-bottom: 30px; }
.timeline li::before {
  content: ""; position: absolute; left: -30px; top: 6px; width: 16px; height: 16px;
  border-radius: 50%; background: #fff; border: 3px solid var(--amber-500);
}
.timeline .when { font-size: .8125rem; font-weight: 800; color: var(--amber-700); letter-spacing: .03em; }
.timeline h4 { margin: 4px 0 4px; }
.timeline p { color: var(--ink-600); font-size: .9375rem; }

/* ---------- Table ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { min-width: 620px; font-size: .9375rem; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); }
table.data thead th { background: var(--bg-soft); font-size: .8125rem; font-weight: 700; color: var(--ink-600); letter-spacing: .02em; white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--amber-50); }
table.data td.right, table.data th.right { text-align: right; font-variant-numeric: tabular-nums; }
table.data tfoot td { padding: 14px 16px; font-weight: 800; background: var(--bg-soft); border-top: 2px solid var(--ink-300); }

/* ---------- Forms ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: .875rem; font-weight: 700; margin-bottom: 7px; color: var(--ink-700); }
.field .hint { font-size: .8125rem; color: var(--ink-500); margin-top: 6px; }
.input, .select, .textarea {
  width: 100%; padding: 12px 15px; border: 1.5px solid var(--line); border-radius: 12px;
  background: #fff; transition: border-color .16s, box-shadow .16s;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--amber-500); box-shadow: 0 0 0 4px var(--amber-50);
}
.textarea { min-height: 130px; resize: vertical; }
.checkbox { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; }
.checkbox input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--amber-500); flex: none; }

.auth-card { max-width: 460px; margin-inline: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 42px); box-shadow: var(--shadow); }
.tabs { display: flex; gap: 4px; background: var(--bg-soft); padding: 4px; border-radius: 999px; margin-bottom: 26px; }
.tabs button { flex: 1; padding: 10px; border: 0; background: transparent; border-radius: 999px; font-weight: 700; font-size: .9375rem; color: var(--ink-500); cursor: pointer; transition: .16s; }
.tabs button.active { background: #fff; color: var(--ink-900); box-shadow: var(--shadow-sm); }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: 12px; font-size: .875rem; font-weight: 600; margin-bottom: 18px; display: none; }
.alert.show { display: block; }
.alert--ok   { background: #ECFDF5; color: #065F46; border: 1px solid #A7F3D0; }
.alert--err  { background: #FEF2F2; color: #991B1B; border: 1px solid #FECACA; }
.alert--info { background: var(--blue-50); color: var(--blue-700); border: 1px solid var(--blue-100); }
.alert--warn { background: var(--amber-50); color: var(--amber-700); border: 1px solid var(--amber-200); }

/* ---------- Chips / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .8125rem; font-weight: 700; background: var(--bg-soft); color: var(--ink-600); border: 1px solid var(--line); }
.chip--amber { background: var(--amber-50); color: var(--amber-700); border-color: var(--amber-200); }
.chip--blue  { background: var(--blue-50); color: var(--blue-700); border-color: var(--blue-100); }
.chip--green { background: #ECFDF5; color: #047857; border-color: #A7F3D0; }
.chip--red   { background: #FEF2F2; color: #B91C1C; border-color: #FECACA; }
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Progress ---------- */
.bar { height: 9px; background: var(--bg-soft); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--amber-400), var(--amber-600)); border-radius: 999px; transition: width .6s var(--ease); }

/* ---------- Figure ---------- */
.figure { border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; background: #fff; box-shadow: var(--shadow-sm); }
.figure img { width: 100%; }
.figure figcaption { padding: 14px 20px; font-size: .875rem; color: var(--ink-500); border-top: 1px solid var(--line); background: var(--bg-soft); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.62); padding: clamp(48px, 6vw, 76px) 0 34px; font-size: .875rem; }
.site-footer h4 { color: #fff; font-size: .9375rem; margin-bottom: 14px; }
.site-footer a:hover { color: var(--amber-400); }
.site-footer .grid { gap: 34px; }
.foot-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: .8125rem; color: rgba(255,255,255,.45); }
.foot-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 800; margin-bottom: 14px; }
.foot-brand img { width: 32px; }

/* ---------- Admin ---------- */
.admin-body { background: var(--bg-soft); }
.admin-shell { display: grid; min-height: 100vh; }
@media (min-width: 1000px) { .admin-shell { grid-template-columns: 250px 1fr; } }
.admin-side { background: var(--ink-900); color: rgba(255,255,255,.7); padding: 22px 16px; }
@media (min-width: 1000px) { .admin-side { position: sticky; top: 0; height: 100vh; overflow-y: auto; } }
.admin-side .brand { color: #fff; margin-bottom: 26px; padding: 0 8px; }
.admin-side .brand small { color: var(--amber-400); }
.admin-nav-group { margin-bottom: 22px; }
.admin-nav-group > p { font-size: .6875rem; font-weight: 800; letter-spacing: .12em; color: rgba(255,255,255,.34); padding: 0 12px; margin-bottom: 6px; text-transform: uppercase; }
.admin-side a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: .9375rem; font-weight: 600; transition: .16s; }
.admin-side a:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-side a[aria-current="page"] { background: var(--amber-500); color: #fff; }
.admin-main { padding: clamp(20px, 3vw, 36px); min-width: 0; }
.admin-head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.admin-head h1 { font-size: clamp(1.5rem, 1.2rem + 1vw, 1.875rem); }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin-bottom: 24px; }
.panel > h3 { margin-bottom: 4px; }
.panel > .panel-sub { font-size: .875rem; color: var(--ink-500); margin-bottom: 20px; }

/* ---------- Utilities ---------- */
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; }
.mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; } .mt-5 { margin-top: 48px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.divider { height: 1px; background: var(--line); border: 0; margin: 32px 0; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
