/* 디자인 토큰 · 리셋 · 레이아웃 · 헤더/푸터. 색을 바꾸려면 이 파일의 변수만 수정하세요. */
:root {
  --bg: #fff8fa;
  --surface: #ffffff;
  --surface-2: #fff0f4;
  --text: #3a2c31;
  --muted: #6e5b62;
  --line: #f1d9e0;
  --primary: #d63a73;       /* 버튼 배경 (흰 글자 대비 4.5:1 이상) */
  --primary-text: #b02a5b;  /* 링크 글자색 */
  --primary-soft: #ffe1ea;
  --focus: #1b6ef3;
  --radius: 18px;
  --shadow: 0 6px 20px rgba(214, 58, 115, .10);
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #1d1619; --surface: #281e22; --surface-2: #33262b; --text: #f7e9ee; --muted: #c4aab3;
  --line: #473239; --primary: #e0457b; --primary-text: #ff9ebb; --primary-soft: #4a2735; --focus: #7db0ff;
  --shadow: 0 6px 20px rgba(0, 0, 0, .35); color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1619; --surface: #281e22; --surface-2: #33262b; --text: #f7e9ee; --muted: #c4aab3;
    --line: #473239; --primary: #e0457b; --primary-text: #ff9ebb; --primary-soft: #4a2735; --focus: #7db0ff;
    --shadow: 0 6px 20px rgba(0, 0, 0, .35); color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; word-break: keep-all; overflow-wrap: break-word; }
img, svg { max-width: 100%; display: block; }
a { color: var(--primary-text); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.5rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.7rem); margin-top: 2.2em; }
h3 { font-size: 1.15rem; margin-top: 1.6em; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
.muted { color: var(--muted); }
.small-text { font-size: .9rem; }
.lead { font-size: 1.1rem; color: var(--muted); }
.eyebrow { color: var(--primary-text); font-weight: 700; font-size: .9rem; margin-bottom: .3em; }

.wrap { width: min(1120px, 100% - 2rem); margin-inline: auto; }
main { min-height: 60vh; padding-bottom: 3rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--primary); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 0; }

/* 헤더 */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: .75rem; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: .55rem; font-weight: 800; font-size: 1.2rem; color: var(--text); text-decoration: none; margin-right: auto; }
.site-nav { display: flex; gap: .25rem; }
.site-nav a { color: var(--text); text-decoration: none; padding: .45rem .8rem; border-radius: 999px; font-weight: 600; font-size: .95rem; }
.site-nav a:hover { background: var(--primary-soft); }
.site-nav a[aria-current="page"] { background: var(--primary-soft); color: var(--primary-text); }
.icon-btn { border: 1px solid var(--line); background: var(--surface); color: var(--text); width: 40px; height: 40px; border-radius: 12px; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.icon-btn:hover { background: var(--primary-soft); }
.nav-toggle { display: none; }
@media (max-width: 760px) {
  .nav-toggle { display: inline-grid; place-items: center; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); padding: .5rem 1rem 1rem; }
  .site-nav.open { display: flex; }
  .site-nav a { padding: .8rem 1rem; }
}

/* 푸터 */
.site-footer { border-top: 1px solid var(--line); background: var(--surface); padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; }
.footer-brand { font-weight: 800; font-size: 1.15rem; margin-bottom: .4rem; }
.footer-title { font-weight: 700; margin-bottom: .5rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .35rem; }
.footer-bottom { margin-top: 2rem; padding-top: 1rem; border-top: 1px solid var(--line); color: var(--muted); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > div { grid-column: 1 / -1; } }

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