/* 입시캐디: 종이와 먹, 낙관(인주색) 하나. 제목은 명조, 본문은 고딕. */
@font-face {
  font-family: "IC Serif";
  src: url("/fonts/noto-serif-kr-600.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

:root {
  --paper: #f4f0e8;
  --paper-2: #ebe5d9;
  --sheet: #fbf9f4;
  --ink: #1a1a1a;
  --ink-2: #3d3d3a;
  --muted: #6e6a61;
  --rule: #cfc7b8;
  --seal: #b23a26;
  --seal-dark: #8f2c1b;
  --danger: #a3261f;
  --serif: "IC Serif", "AppleMyungjo", "Noto Serif KR", "Nanum Myeongjo", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

* { box-sizing: border-box; }
img { max-width: 100%; height: auto; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.75 var(--sans); word-break: keep-all; overflow-wrap: break-word; }
a { color: var(--ink); text-decoration-color: var(--seal); text-underline-offset: 3px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; line-height: 1.3; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: 2.1rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.12rem; }
p { margin: 0 0 1em; text-wrap: pretty; }
.nw { white-space: nowrap; }
ul { margin: 0 0 1em; padding-left: 1.2em; }
li { margin-bottom: .35em; }

.wrap { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

.skip { position: absolute; left: -9999px; top: 0; background: var(--ink); color: #fff; padding: 8px 12px; z-index: 10; }
.skip:focus { left: 8px; top: 8px; }

/* 머리 */
.site-header { background: var(--paper); border-bottom: 1px solid var(--ink); position: sticky; top: 0; z-index: 5; }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 600 1.15rem/1 var(--serif); color: var(--ink); text-decoration: none; letter-spacing: -.02em; }
.seal { display: inline-grid; place-items: center; width: 28px; height: 28px; background: var(--seal); color: #fff; font: 600 14px/1 var(--serif); border-radius: 3px; transform: rotate(-4deg); }
.site-header nav { display: flex; align-items: center; gap: 18px; font-size: .95rem; }
.site-header nav a { text-decoration: none; padding: 6px 0; }
.site-header nav a:hover { text-decoration: underline; }
.site-header nav a.nav-cta { color: var(--seal); font-weight: 700; }

/* 첫 화면 */
.hero { padding: 56px 0 0; }
.kicker { font-size: .92rem; color: var(--muted); letter-spacing: .02em; margin-bottom: 18px; }
.hero h1 { font-size: 2.35rem; line-height: 1.25; margin-bottom: 28px; }
.hero-foot { border-top: 1px solid var(--rule); padding-top: 20px; }
.lead { font-size: 1.05rem; color: var(--ink-2); max-width: 32em; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin: 22px 0 0; }
.hero-art { margin: 40px 0 0; }
.hero-art img, .side-art img { display: block; width: 100%; height: auto; }
.hero-art img { aspect-ratio: 1192 / 666; object-fit: cover; }
.hero-art figcaption { margin-top: 8px; font-size: .8rem; color: var(--muted); }
.side-art { display: none; }
.side-art img { mix-blend-mode: multiply; }
.season { display: grid; gap: 4px 28px; margin-top: 36px; padding: 22px 0 26px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); }
.season-tag { margin: 0; font: 600 .95rem/1.4 var(--serif); color: var(--seal); }
.season h2 { font-size: 1.25rem; margin-bottom: .35em; }
.season p { color: var(--ink-2); font-size: .97rem; max-width: 40em; margin: 0; }

/* 버튼, 링크 */
.button { display: inline-block; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); padding: 12px 22px; border-radius: 2px; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; min-height: 44px; }
.button:hover { background: var(--seal); border-color: var(--seal); }
.button[disabled] { opacity: .6; cursor: progress; }
.textlink { font-weight: 600; text-decoration: underline; }
.textlink::after { content: " →"; }

/* 섹션 */
.section { padding: 56px 0; }
.section-title { font-size: 1.5rem; margin-bottom: 22px; }
.sub, .muted, .hint { color: var(--muted); }
.hint { font-size: .88rem; margin: 6px 0 0; }
.note { margin: 26px 0 0; font-size: .92rem; color: var(--muted); max-width: 46em; }

/* 돕는 일: 번호 목록 */
.index { list-style: none; counter-reset: idx; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.index li { counter-increment: idx; display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); column-gap: 8px; padding: 20px 0 14px; margin: 0; border-bottom: 1px solid var(--rule); }
.index li::before { content: counter(idx, decimal-leading-zero); grid-row: span 2; font: 600 1.05rem/1.6 var(--serif); color: var(--seal); }
.index h3 { margin-bottom: .25em; }
.index p { margin: 0 0 .4em; color: var(--ink-2); }

/* 만든 사람: 먹색 바탕 */
.section.dark { background: var(--ink); color: #e9e4da; }
.section.dark .section-title { color: #fff; }
.quote { font: 600 1.35rem/1.5 var(--serif); color: #fff; margin-bottom: .8em; letter-spacing: -.02em; }
.facts { color: #bdb6a8; font-size: .95rem; margin: 18px 0 0; }
.facts span { margin: 0 8px; color: var(--seal); }

/* 블로그 */
.posts { display: grid; margin: 4px 0 18px; border-top: 1px solid var(--ink); }
.post { display: flex; flex-direction: column; padding: 18px 0 16px; border-bottom: 1px solid var(--rule); color: inherit; text-decoration: none; }
.post h3 { margin-bottom: .35em; line-height: 1.4; text-wrap: balance; }
.post:hover h3, .post:focus-visible h3 { color: var(--seal); text-decoration: underline; text-decoration-thickness: 1px; }
.post time { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .4em; }
.post p { margin: 0; color: var(--ink-2); font-size: .95rem; }

/* 신청 */
.section.paper { background: var(--paper-2); border-top: 1px solid var(--rule); }
.form { margin: 0; }
.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label, legend { display: block; font-weight: 600; margin-bottom: 6px; padding: 0; }
.req, .opt { font-weight: 400; font-size: .82rem; margin-left: 6px; }
.req { color: var(--danger); }
.opt { color: var(--muted); }
input[type="text"], input[type="email"], select, textarea { width: 100%; font: inherit; color: var(--ink); background: var(--sheet); border: 1px solid #a9a191; border-radius: 2px; padding: 10px 12px; }
textarea { resize: vertical; min-height: 7.5em; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible { outline: 2px solid var(--seal); outline-offset: 2px; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 2px 16px; }
.check { display: flex; align-items: flex-start; gap: 8px; font-weight: 400 !important; margin-bottom: 8px; }
.check input { margin-top: .3em; width: 18px; height: 18px; flex: none; accent-color: var(--ink); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.consent { background: var(--sheet); border: 1px solid var(--rule); padding: 14px 16px; margin-bottom: 18px; font-size: .92rem; }
.consent-title { font-weight: 700; margin-bottom: .5em; }
.status { min-height: 1.7em; font-weight: 600; }
.status.ok { color: #24573f; }
.status.error { color: var(--danger); }

/* 바닥 */
.site-footer { border-top: 1px solid var(--ink); padding: 28px 0 40px; font-size: .9rem; color: var(--muted); }
.site-footer p { margin: 0 0 .4em; }
.biz { color: var(--ink); font-weight: 600; }
.sep { margin: 0 8px; color: var(--rule); }

/* 개인정보처리방침 */
.doc h1 { font-size: 1.8rem; margin-bottom: .2em; }
.doc h2 { margin-top: 1.8em; font-size: 1.15rem; }
.effective { color: var(--muted); font-weight: 600; }
.doc table { width: 100%; border-collapse: collapse; margin-bottom: 1em; font-size: .94rem; }
.doc th, .doc td { border: 1px solid var(--rule); padding: 8px 10px; text-align: left; vertical-align: top; background: var(--sheet); }
.doc th { width: 34%; background: var(--paper-2); font-weight: 600; }

@media (min-width: 760px) {
  body { font-size: 17px; }
  .hero { padding-top: 84px; }
  .hero h1 { font-size: 3.4rem; margin-bottom: 40px; }
  .hero-foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 32px; }
  .hero-foot .lead { margin: 0; }
  .hero-foot .actions { margin: 0; }
  .season { grid-template-columns: 15rem minmax(0, 1fr); column-gap: 40px; margin-top: 56px; }
  .hero-art { margin-top: 56px; }
  .hero-art img { aspect-ratio: 21 / 9; }
  .side-art { display: block; margin-top: 28px; }
  .season-tag { padding-top: .2em; }
  .section { padding: 80px 0; }
  .split { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 40px; }
  .index { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
  .posts { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
