/* ===========================================
   BASE.CSS — CSS Variables, Reset, Typography
   Dark Premium Theme: Dark BG + Gold Accent
   =========================================== */

:root {
  /* Color Palette — Natural Green Theme (matching logo) */
  --color-bg-dark: #FAFAF5;
  --color-bg-darker: #F0EDE4;
  --color-bg-card: #FFFFFF;
  --color-bg-card-hover: #F7F6F1;
  --color-bg-cream: #EBE7DC;
  --color-bg-cream-dark: #DED8CA;

  --color-gold: #6B8036;
  --color-gold-light: #839A4E;
  --color-gold-dark: #4E5E22;
  --color-gold-gradient: linear-gradient(135deg, #4E5E22 0%, #839A4E 50%, #6B8036 100%);

  --color-text-white: #2D3321;
  --color-text-light: #4A5640;
  --color-text-muted: #8B957A;
  --color-text-dark: #1E2614;
  --color-text-cream: #F5F0E8;

  --color-border: rgba(75, 85, 50, 0.1);
  --color-border-gold: rgba(107, 128, 54, 0.25);

  /* Accent text on colored backgrounds */
  --color-on-accent: #FFFFFF;

  /* Typography */
  --font-main: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: 'Noto Serif KR', Georgia, serif;

  /* Spacing */
  --section-padding: 120px 0;
  --section-padding-sm: 80px 0;
  --container-max: 1200px;
  --container-padding: 0 24px;

  /* Shadows */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 8px 30px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, 0.1);
  --shadow-gold: 0 4px 20px rgba(107, 128, 54, 0.12);

  /* Border Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-xl: 30px;

  /* Transitions */
  --transition-fast: 0.2s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* ---- Reset ---- */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.public-site {
  font-family: var(--font-main);
  background-color: var(--color-bg-dark);
  color: var(--color-text-light);
  line-height: 1.7;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--color-gold);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--color-gold-light);
}

ul, ol {
  list-style: none;
}

/* ---- Typography ---- */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  color: var(--color-text-white);
  line-height: 1.3;
  word-break: keep-all;
}

.public-site h1 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.public-site h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.8rem);
  font-weight: 600;
}

.public-site h3 {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  font-weight: 500;
}

p {
  word-break: keep-all;
  line-height: 1.8;
}

/* ---- Utility ---- */
.text-gold {
  color: var(--color-gold);
}

.text-cream {
  color: var(--color-bg-cream);
}

.bg-dark {
  background-color: var(--color-bg-dark);
}

.bg-darker {
  background-color: var(--color-bg-darker);
}

.bg-cream {
  background-color: var(--color-bg-cream);
  color: var(--color-text-dark);
}

.bg-cream h1,
.bg-cream h2,
.bg-cream h3 {
  color: var(--color-text-dark);
}

/* Selection */
::selection {
  background-color: var(--color-gold);
  color: var(--color-bg-dark);
}
