/* ============================================
   SIGGA DESIGN SYSTEM — DESIGN TOKENS
   Style guide source of truth
   ============================================ */

:root {
  /* ---------- BASE COLOURS ---------- */
  --c-black: #000000;
  --c-white: #FFFFFF;
  --c-validation: #F6AE2D;
  --c-error: #ED4343;
  --c-success: #08B224;

  /* ---------- GRAY (BG & LINE) ---------- */
  --gray-1: #F6F6F6;
  --gray-2: #F3F3F3;
  --gray-3: #EFEFEF;
  --gray-4: #E4E4E4;
  --gray-5: #D9D9D9;

  /* ---------- GRAY (TEXT) ---------- */
  --text-1: #BEBEBE;
  --text-2: #999999;
  --text-3: #777777;
  --text-4: #555555;
  --text-5: #333333;

  /* ---------- PRIMARY (Baltic Blue + Coral Red 팔레트) ---------- */
  /* 브랜드 메인 = Baltic Blue, 구매 CTA = Coral Red */
  --main-1: #33658A;        /* Baltic Blue — primary */
  --main-1-deep: #2F4858;   /* Charcoal Blue — pressed / deep */
  --main-2: #FF6B6B;        /* Coral Red — action CTA */
  --main-2-deep: #E04F4F;   /* Coral pressed */
  --sub-sky: #86BBD8;       /* Sky Reflection — soft accent */
  --sub-1: #FFF3E4;         /* cream */
  --sub-2: #E4F2FB;         /* sky-tinted bg */
  --sub-gold: #F6AE2D;      /* Honey Bronze — validation / accent */

  /* Legacy aliases kept for backward-compat */
  --sub-cream: #FFF3E4;
  --sub-mint:  #E4F2FB;

  /* ---------- RADIUS ---------- */
  --r-xs: 4px;
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-pill: 999px;

  /* ---------- SHADOWS ---------- */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.04), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.08);

  /* ---------- SPACING (4pt grid) ---------- */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;
  --sp-12: 48px;
  --sp-16: 64px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--gray-1);
  color: var(--text-5);
  font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================
   TYPOGRAPHY SCALE (from style guide)
   Font family: Pretendard (fallback Apple SD Gothic Neo)
   ============================================ */

.h-24-eb { font-size: 24px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.h-24-b  { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; }
.h-24-m  { font-size: 24px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.35; }
.h-24-r  { font-size: 24px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.35; }

.h-20-eb { font-size: 20px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.h-20-b  { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.35; }
.h-20-m  { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.35; }

.h-16-eb { font-size: 16px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.35; }
.h-16-b  { font-size: 16px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.35; }
.h-16-m  { font-size: 16px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.35; }

.b-14-eb { font-size: 14px; font-weight: 800; letter-spacing: -0.03em; line-height: 1.45; }
.b-14-b  { font-size: 14px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.45; }
.b-14-m  { font-size: 14px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.45; }
.b-14-r  { font-size: 14px; font-weight: 400; letter-spacing: -0.03em; line-height: 1.45; }

.b-12-b  { font-size: 12px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.45; }
.b-12-m  { font-size: 12px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.45; }
.b-12-r  { font-size: 12px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.45; }

.b-10-b  { font-size: 10px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.4; }
.b-10-m  { font-size: 10px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.4; }
.b-10-r  { font-size: 10px; font-weight: 400; letter-spacing: -0.02em; line-height: 1.4; }

/* ============================================
   LAYOUT UTILITIES
   ============================================ */

.page {
  max-width: 1280px;
  margin: 0 auto;
  padding: 56px 48px 96px;
}

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--gray-3);
}

.topbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 48px;
  display: flex;
  align-items: center;
  gap: 32px;
}

.topbar a {
  color: var(--text-4);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.02em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .15s, border-color .15s;
}
.topbar a:hover { color: var(--text-5); }
.topbar a.active { color: var(--main-1); border-bottom-color: var(--main-1); }

.section {
  background: #fff;
  border: 1px solid var(--gray-3);
  border-radius: 16px;
  padding: 32px 36px;
  margin-bottom: 24px;
}

.section-title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--text-5);
  margin: 0 0 4px;
}
.section-sub {
  font-size: 13px;
  color: var(--text-3);
  margin: 0 0 24px;
  letter-spacing: -0.02em;
}

.subsection-title {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-5);
  margin: 0 0 16px;
  padding-top: 8px;
}

.divider-soft {
  height: 1px;
  background: var(--gray-3);
  margin: 28px 0;
  border: 0;
}

/* Page header */
.page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 40px;
}
.page-header h1 {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: var(--text-5);
  margin: 0 0 8px;
}
.page-header p {
  font-size: 14px;
  color: var(--text-3);
  max-width: 540px;
  margin: 0;
  letter-spacing: -0.02em;
}
.page-header .meta {
  font-size: 12px;
  color: var(--text-2);
  font-family: 'SF Mono', ui-monospace, Menlo, monospace;
  letter-spacing: 0.02em;
}
