/* base.css — 폰트 로드, 리셋, 팔레트 변수, 기본 타이포
   노리판(NORIPAN) · app.css 의 유틸리티/컴포넌트가 이 위에 올라간다 */

@font-face { font-family:"Pretendard"; font-weight:400; font-style:normal; font-display:swap; src:url("../fonts/Pretendard-Regular.woff2") format("woff2"); }
@font-face { font-family:"Pretendard"; font-weight:500; font-style:normal; font-display:swap; src:url("../fonts/Pretendard-Medium.woff2") format("woff2"); }
@font-face { font-family:"Pretendard"; font-weight:600; font-style:normal; font-display:swap; src:url("../fonts/Pretendard-SemiBold.woff2") format("woff2"); }
@font-face { font-family:"Pretendard"; font-weight:700; font-style:normal; font-display:swap; src:url("../fonts/Pretendard-Bold.woff2") format("woff2"); }
@font-face { font-family:"Pretendard"; font-weight:900; font-style:normal; font-display:swap; src:url("../fonts/Pretendard-Black.woff2") format("woff2"); }
@font-face { font-family:"Jua";        font-weight:400; font-style:normal; font-display:swap; src:url("../fonts/Jua-400.woff2") format("woff2"); }

/* 리셋 — 여백을 걷어내고 예측 가능한 박스로 */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html, body, h1, h2, h3, h4, p, ul, ol, li, figure, blockquote {
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
ul, ol { list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
  background: none;
  border: 0;
}
input, select, textarea { font: inherit; color: inherit; }

/* 팔레트 & 토큰 */
:root {
  --ink:      #141634;   /* 딥 네이비 베이스 */
  --ink-2:    #0e1029;   /* 더 어두운 */
  --panel:    #1e2150;   /* 카드 */
  --panel-2:  #262a63;   /* 밝은 카드/hover */
  --line:     #33386f;   /* 보더 */
  --line-2:   #454b8f;
  --coral:    #ff5a5f;
  --coral-d:  #ff3d43;
  --blue:     #2b6fff;
  --yellow:   #ffcb2b;
  --mint:     #17d4a7;
  --pink:     #ff7ec8;
  --cream:    #fff9f0;   /* 오프화이트 텍스트 */
  --muted:    #a6abe0;   /* 서브 텍스트 */
  --muted-2:  #7b81bd;

  --shadow-sm: 0 4px 16px rgba(0,0,0,.28);
  --shadow:    0 16px 44px rgba(0,0,0,.38);
  --shadow-lg: 0 34px 80px rgba(0,0,0,.5);
  --glow-coral: 0 12px 40px rgba(255,90,95,.45);
  --glow-blue:  0 12px 40px rgba(43,111,255,.42);
  --glow-mint:  0 12px 40px rgba(23,212,167,.4);

  --r-sm: 12px;
  --r:    20px;
  --r-lg: 28px;
  --r-xl: 40px;

  --font-body: "Pretendard", system-ui, -apple-system, "Apple SD Gothic Neo", sans-serif;
  --font-display: "Jua", "Pretendard", system-ui, sans-serif;

  --maxw: 1180px;
  --space: 1rem;
  --header-h: 72px;
}

/* 기본 타이포 & 지면 */
body {
  font-family: var(--font-body);
  color: var(--cream);
  background: var(--ink);
  background-image:
    radial-gradient(1100px 620px at 78% -8%, rgba(43,111,255,.20), transparent 60%),
    radial-gradient(900px 560px at 12% 4%, rgba(255,90,95,.16), transparent 58%),
    radial-gradient(760px 500px at 96% 34%, rgba(255,126,200,.12), transparent 60%);
  background-attachment: fixed;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
main { display: block; }
h1, h2, h3, h4 {
  line-height: 1.16;
  font-weight: 800;
  letter-spacing: -.01em;
  color: var(--cream);
}
strong { font-weight: 700; color: var(--cream); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 8px; }
