/* ============================================================
   core-theme.css (Lego Block)
   Single Source of Truth: 디자인 토큰 + 리셋 + 문서 베이스.
   모든 페이지가 가장 먼저 이 블록을 로드한다.
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;600;800&family=Noto+Serif+KR:wght@700;900&display=swap');

:root {
  /* Backgrounds (Comfortable Dark) */
  --bg-base: #0d1117;
  --bg-hero: #1F074B;
  --bg-surface: #161b22;
  --bg-elevated: #21262d;

  /* Void tier — near-neutral almost-black, used to break the purple wash
     between sections so the eye gets a rest and the accent color still reads
     as an accent instead of the page's only color. */
  --bg-void: #010409;
  --bg-void-soft: #0d1117;

  /* Card surfaces — one shared "lifted" treatment so cards read as elevated
     objects instead of blending into whatever section they sit on. */
  --card-bg: rgba(255, 255, 255, 0.02);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);

  /* Gradients (Vibrant accents for modern dev feel) */
  /* 중간색이 탁해지지 않도록 3-stop 그라데이션 적용 (딥 바이올렛 -> 퓨어 퍼플 -> 일렉트릭 라일락) */
  --gradient-primary: linear-gradient(135deg, #5b21b6 0%, #9333ea 50%, #d8b4fe 100%); 
  --glow-primary: rgba(147, 51, 234, 0.5);
  --glow-secondary: rgba(192, 132, 252, 0.4);
  --glow-primary-hover: rgba(147, 51, 234, 0.6);
  --glow-secondary-hover: rgba(192, 132, 252, 0.5);
  --gradient-glow: linear-gradient(90deg, var(--glow-primary), var(--glow-secondary));
  --text-gradient: linear-gradient(to right, #c9d1d9, #8b949e);

  /* Text (No Pure White, Soft Silver & Gray) */
  --text-primary: #c9d1d9;
  --text-secondary: #8b949e;
  --text-muted: #6E7284;
  --text-inverse: #ffffff; /* Only for vibrant buttons */

  /* Borders (Ultra-subtle) */
  --border-muted: #30363d;
  --border-hover: #8b949e;

  /* Accents (Soft Violet Developer Vibe) */
  --accent-primary: #9D6FFF;
  --accent-primary-hover: #7C4DFF;
  --accent-glow: rgba(157, 111, 255, 0.25);
  --accent-hero: #1F074B;

  /* Legacy mapping (Safeguard) */
  --paper: var(--bg-base);
  --paper-deep: var(--bg-surface);
  --ink: var(--text-primary);
  --ink-soft: var(--text-secondary);
  --hairline: var(--border-muted);
  --muted: var(--text-muted);
  --red: var(--accent-primary);
  --red-deep: var(--accent-primary-hover);
  --blue-glow: rgba(255, 255, 255, 0.1);
  --pink-glow: rgba(121, 40, 202, 0.2);
  --navy: var(--bg-surface);
  --navy-deep: var(--bg-base);

  /* Typography */
  --sans: 'Outfit', -apple-system, "Segoe UI", "Helvetica Neue", "Apple SD Gothic Neo", sans-serif;
  --serif: 'Noto Serif KR', Georgia, "Times New Roman", serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  position: relative;
  z-index: 0;
  font-family: var(--sans);
  background-color: var(--bg-base);
  background-image: radial-gradient(140% 85% at 50% 115%, rgba(168, 85, 247, 0.05) 0%, rgba(236, 72, 153, 0.02) 40%, transparent 70%);
  background-repeat: no-repeat;
  background-attachment: scroll;
  color: var(--text-primary);
  line-height: 1.7;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; transition: color 0.2s ease; }
button { transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1); }
img { max-width: 100%; display: block; }
h1, h2, h3, h4, h5, h6 { letter-spacing: -0.02em; line-height: 1.25; font-weight: 700; color: #e5e7eb; }

.container { max-width: 1080px; margin: 0 auto; padding: 0 24px; }
.narrow    { max-width: 760px;  margin: 0 auto; padding: 0 24px; }

/* Every section (including .hero, which now shares this same class) grows together
   on very wide screens instead of staying boxed into a narrow fixed column. */
@media (min-width: 1600px) {
  .container { max-width: 1400px; }
}
@media (min-width: 2000px) {
  .container { max-width: 1600px; }
}
