/* My Schola 공통 화면
   확정 시안(머리글·로고)과 글쓰기 5차 시안의 색·글씨 규칙을 그대로 따라요.
   노랑 = 지금 할 일, 빨강 = 고칠 곳, 초록 = 다 했어요, 파랑 = 힌트·도움 */
:root {
  --desk: #EEF0F3; --paper: #FFFFFF; --sunk: #F6F7F9;
  --ink: #262B30; --ink-2: #48505A; --ink-3: #5F6770; --ink-4: #9AA1AA;
  --line: #E2E6EA; --line-2: #CDD3DA;
  --navy: #30363A; --navy-2: #23282C; --navy-line: #454C52; --on-dark: #C7CCD1;
  --yellow: #EECF6C; --yellow-hover: #E8C65A; --yellow-deep: #CDA732;
  --red: #D8443A; --green: #1B8455; --blue: #2A63B8;
  --font-body: 'Noto Sans KR', -apple-system, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
  --font-label: 'Archivo', 'Noto Sans KR', sans-serif;
  --font-en: 'Atkinson Hyperlegible', 'Noto Sans KR', -apple-system, 'Helvetica Neue', sans-serif;
  --r-btn: 12px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.65;
  word-break: keep-all; overflow-wrap: break-word;
  -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
html[lang="en"] body { font-family: var(--font-en); word-break: normal; }
main { flex: 1 0 auto; }
main:focus { outline: none; }
p { margin: 0; }
a { color: var(--navy); }
a:hover { color: #000; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.en { font-family: var(--font-en); word-break: normal; }
.muted { color: var(--ink-3); }
.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.h1 { margin: 0; font-size: 28px; line-height: 1.35; font-weight: 800; letter-spacing: -.02em; text-wrap: balance; }

/* 본문으로 건너뛰기 (키보드로 들어온 사람에게만 보여요) */
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700; text-decoration: none;
}
.skip:focus { top: 12px; color: #fff; }

/* ---------- 머리글 (확정 시안) ---------- */
.site-header { position: relative; z-index: 40; background: #fff; border-bottom: 1px solid var(--line); }
.sh-in { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 14px; padding-bottom: 14px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--navy); border-radius: 10px; }
.brand-mark { flex: none; display: block; }
.brand-t { font-family: var(--font-label); font-weight: 900; font-size: 18px; letter-spacing: .01em; color: var(--navy); }
.sh-right { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px;
  border-radius: 999px; border: 1.5px solid var(--line-2); background: #fff;
  font-size: 15px; font-weight: 700; color: var(--navy); text-decoration: none; white-space: nowrap;
}
.lang-switch[lang="en"] { font-family: var(--font-en); }
.lang-switch[lang="ko"] { font-family: var(--font-body); }
.lang-switch:hover { border-color: var(--ink-3); color: var(--navy); }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 18px;
  border-radius: var(--r-btn); border: 1.5px solid var(--line-2); background: #fff; color: var(--navy);
  font: inherit; font-size: 15px; font-weight: 700; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn:hover { border-color: var(--ink-3); color: var(--navy); }
.btn-primary { background: var(--yellow); border-color: var(--yellow); font-weight: 800; box-shadow: 0 3px 0 var(--yellow-deep); }
.btn-primary:hover { background: var(--yellow-hover); border-color: var(--yellow-hover); }
.btn-primary:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--yellow-deep); }

/* ---------- 처음 화면 ---------- */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; }
.hero-stars { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-stars path { fill: none; stroke: var(--navy-line); stroke-width: 1.5; }
.hero-in { position: relative; display: flex; flex-direction: column; gap: 20px; padding-top: clamp(56px, 10vw, 120px); padding-bottom: clamp(64px, 12vw, 140px); }
.hero-mark {
  margin: 0; font-family: 'Archivo', sans-serif; font-weight: 900; font-size: clamp(56px, 11vw, 112px);
  line-height: .95; letter-spacing: -.01em; color: var(--yellow);
}
.hero-lead { font-size: clamp(20px, 2.6vw, 26px); font-weight: 700; line-height: 1.45; color: #fff; text-wrap: balance; }
.hero-body { max-width: 34em; font-size: 17px; line-height: 1.75; color: var(--on-dark); }

/* 처음 화면은 바닥글까지 남는 공간을 채워요 */
.is-home main { display: flex; flex-direction: column; }
.is-home .hero { flex: 1 0 auto; display: flex; align-items: center; }
.is-home .hero-in { flex: 1; }

/* ---------- 404·오류 화면 ---------- */
.status { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; padding-top: 72px; padding-bottom: 96px; }

/* ---------- 바닥글 ---------- */
.site-foot { border-top: 1px solid var(--line); background: #fff; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 28px; font-size: 13px; color: var(--ink-3); }
.foot-in a { color: var(--ink-2); text-underline-offset: 3px; }
.grant { font-weight: 700; }

@media (max-width: 560px) {
  .wrap { padding-left: 18px; padding-right: 18px; }
  .brand-t { font-size: 16px; }
  .hero-body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
