/* ─────────────────────────────────────────
   DESIGN TOKENS
───────────────────────────────────────── */
:root {
  /* Core palette */
  --color-bg:           #FAFAF9;
  --color-surface:      #FFFFFF;
  --color-ink:          #1C1917;
  --color-ink-muted:    #78716C;
  --color-ink-faint:    #A8A29E;
  --color-border:       #E7E5E4;
  --color-border-light: #F5F5F4;

  /* Accent — violet, used sparingly */
  --color-accent:       #7C3AED;
  --color-accent-light: #EDE9FE;
  --color-accent-dim:   rgba(124, 58, 237, 0.08);

  /* Pet accents */
  --color-dog:          #D97706;
  --color-dog-light:    #FEF3C7;
  --color-cat:          #DB2777;
  --color-cat-light:    #FCE7F3;

  /* Typography */
  --font-heading:       'Poppins', sans-serif;
  --font-body:          'Noto Sans KR', 'Apple SD Gothic Neo', sans-serif;

  /* Spacing scale (4px base) */
  --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;

  /* Radius */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-xs:  0 1px 3px rgba(0, 0, 0, 0.06);
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(0,0,0,0.03);
  --shadow-md:  0 2px 8px rgba(0, 0, 0, 0.06), 0 16px 40px rgba(0, 0, 0, 0.06);
  --shadow-lg:  0 4px 16px rgba(0, 0, 0, 0.06), 0 24px 56px rgba(0, 0, 0, 0.08);

  /* Transitions */
  --ease-out:   cubic-bezier(0.16, 1, 0.3, 1);
  --duration:   200ms;
}

/* ─────────────────────────────────────────
   RESET & BASE
───────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background-color: var(--color-bg);
  color: var(--color-ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

button {
  font-family: var(--font-body);
  cursor: pointer;
  border: none;
  background: none;
  transition:
    background-color var(--duration) var(--ease-out),
    color var(--duration) var(--ease-out),
    box-shadow var(--duration) var(--ease-out),
    transform var(--duration) var(--ease-out);
}

/* ─────────────────────────────────────────
   HEADER
───────────────────────────────────────── */
header {
  background-color: var(--color-ink);
  padding: var(--sp-10) var(--sp-6) var(--sp-12);
  text-align: center;
  position: relative;
}

/* Subtle dot grid overlay */
header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 24px 24px;
  pointer-events: none;
}

/* Fade at bottom edge */
header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(28, 25, 23, 0.5));
  pointer-events: none;
}

.header-inner {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
}

.logo-lockup {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}

.logo-mark {
  font-size: 1.1rem;
  line-height: 1;
}

.logo-name {
  font-family: var(--font-heading);
  font-size: 0.9rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.header-title {
  font-family: var(--font-body);
  font-size: clamp(1.5rem, 5vw, 2.5rem);
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin-bottom: var(--sp-3);
  word-break: keep-all;
}

.header-sub {
  font-size: clamp(0.82rem, 2vw, 0.95rem);
  color: rgba(255, 255, 255, 0.45);
  font-weight: 400;
  letter-spacing: 0.01em;
  word-break: keep-all;
}

/* ─────────────────────────────────────────
   MAIN
───────────────────────────────────────── */
main {
  flex: 1;
  padding: var(--sp-10) var(--sp-4) var(--sp-16);
  max-width: 860px;
  margin: 0 auto;
  width: 100%;
}

@media (min-width: 640px) {
  main {
    padding-left: var(--sp-6);
    padding-right: var(--sp-6);
  }
}

/* ─────────────────────────────────────────
   FOOTER
───────────────────────────────────────── */
footer {
  border-top: 1px solid var(--color-border);
  background-color: var(--color-surface);
  padding: var(--sp-5) var(--sp-6);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-3);
  flex-wrap: wrap;
  font-size: 0.78rem;
  color: var(--color-ink-faint);
  font-weight: 400;
}

.footer-logo {
  font-weight: 600;
  color: var(--color-ink-muted);
}

.footer-divider {
  opacity: 0.4;
}

/* ─────────────────────────────────────────
   UTILITY
───────────────────────────────────────── */
.hidden {
  display: none !important;
}
