/* 공용 디자인 시스템 — index / login / study 전부 이 파일을 씀 */

@import url('https://fonts.googleapis.com/css2?family=Archivo:wght@600;700;800&family=Noto+Sans+KR:wght@400;500;700;900&display=swap');

:root {
  --navy: #2c3e56;
  --navy-deep: #223145;
  --navy-soft: #35496380;
  --cream: #ece8dd;
  --sage: #9fae9b;
  --white: #fff;
  --muted: rgba(255, 255, 255, .68);
  --line: rgba(255, 255, 255, .16);
  --warn: #f0906e;
  --pad: clamp(20px, 5vw, 64px);
  --wrap: 1120px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--navy);
  color: var(--white);
  font: 16px/1.7 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ── 타이포 ────────────────────────────────── */
.display {
  font-family: 'Archivo', 'Noto Sans KR', sans-serif;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: -.025em;
  line-height: .98;
  margin: 0;
  font-size: clamp(34px, 7.5vw, 78px);
}
.display.ko { font-weight: 900; text-transform: none; letter-spacing: -.03em; line-height: 1.15; }
.display.sm { font-size: clamp(28px, 4.4vw, 46px); }

.lead { color: var(--muted); max-width: 46ch; margin: 18px 0 0; }
.lead strong { color: var(--white); font-weight: 700; }

.eyebrow {
  font-family: 'Archivo', sans-serif; font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase; color: var(--sage);
  margin: 0 0 14px;
}

/* ── 버튼 ──────────────────────────────────── */
.pill {
  display: inline-block; font-family: 'Archivo', sans-serif; font-weight: 700;
  font-size: 13px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--navy); background: var(--white);
  padding: 11px 26px; border-radius: 999px; text-decoration: none;
  border: 0; cursor: pointer;
}
.pill:hover { background: var(--cream); }
.pill.ghost { background: transparent; color: var(--white); border: 1.5px solid var(--white); }
.pill.ghost:hover { background: var(--white); color: var(--navy); }

.underlink {
  font-family: 'Archivo', sans-serif; font-size: 13px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: inherit; text-decoration: none; border-bottom: 2px solid currentColor;
  padding-bottom: 3px;
}
.underlink:hover { color: var(--sage); }

/* ── 좌우 번갈아 배치되는 블록 ─────────────────── */
.block {
  display: grid; gap: clamp(24px, 5vw, 64px); align-items: center;
  grid-template-columns: 1fr 1fr;
  padding: clamp(48px, 8vw, 96px) 0;
}
.block.rev > :first-child { order: 2; }
.block .text { max-width: 44ch; }
@media (max-width: 720px) {
  .block { grid-template-columns: 1fr; padding: 40px 0; }
  .block.rev > :first-child { order: 0; }
}

/* 사진 대신 쓰는 추상 패널. <img>로 갈아끼워도 됨 */
.shape {
  aspect-ratio: 4 / 3; border-radius: 4px; position: relative; overflow: hidden;
  background: var(--cream);
}
.shape::before {
  content: ''; position: absolute; width: 58%; aspect-ratio: 1;
  right: -8%; bottom: -14%; border-radius: 50%; background: var(--sage);
}
.shape::after {
  content: ''; position: absolute; inset: 18% auto auto 12%;
  width: 42%; aspect-ratio: 1; border: 2px solid var(--navy);
  border-radius: 50% 50% 46% 54% / 58% 42% 58% 42%; opacity: .55;
}
.shape.alt { background: var(--sage); }
.shape.alt::before { background: var(--cream); }
.shape img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── 밴드 ──────────────────────────────────── */
.band-light { background: var(--white); color: var(--navy); padding: clamp(48px, 8vw, 92px) 0; }
.band-light .lead { color: #56616f; }
.band-deep { background: var(--navy-deep); }

/* ── 푸터 ──────────────────────────────────── */
footer { background: var(--navy-deep); padding: clamp(56px, 9vw, 110px) 0 48px; }
.footgrid { display: flex; flex-wrap: wrap; gap: 40px 72px; margin-top: 36px; color: var(--muted); }
footer a { color: var(--muted); }

/* ── 상단 바 ───────────────────────────────── */
.topbar { padding: 22px 0; }
.topbar .wrap { display: flex; align-items: center; gap: 22px; }
.topbar .brand {
  font-family: 'Archivo', sans-serif; font-weight: 800; letter-spacing: .02em;
  text-transform: uppercase; color: var(--white); text-decoration: none; margin-right: auto;
}
.topbar nav { display: flex; gap: 4px; overflow-x: auto; }
.topbar nav a {
  color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 13px; border-radius: 999px; white-space: nowrap;
}
.topbar nav a:hover { color: var(--white); background: var(--navy-soft); }
.topbar nav a.on { color: var(--navy); background: var(--white); font-weight: 700; }
