@import url("https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,700&family=Gowun+Batang:wght@400;700&display=swap");
@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/variable/pretendardvariable-dynamic-subset.min.css");

html { --ivory: #f7f3ea; --card: #fffdf8; --text: #23201d; --muted: #6d655c; --wine: #6f1d2a; --wine-d: #4f121c; --gold: #b08a4a; --hair: #dcd3c1; --w: 1120px; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font: 400 16.5px/1.8 "Pretendard Variable", Pretendard, -apple-system, "Malgun Gothic", sans-serif; color: var(--text); background: var(--ivory); word-break: keep-all; }
a { color: var(--wine); }
h1, h2, h3, .serif { font-family: "Fraunces", "Gowun Batang", serif; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; }
.shell { width: min(var(--w), 100% - 44px); margin-inline: auto; }

/* 상단 */
.masthead { border-bottom: 1px solid var(--hair); background: var(--ivory); }
.masthead .shell { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; padding: 18px 0; }
.brand { text-decoration: none; color: var(--text); line-height: 1.1; }
.brand strong { display: block; font-family: "Fraunces", serif; font-size: 21px; letter-spacing: 0.02em; color: var(--wine); }
.brand span { font-size: 12.5px; color: var(--muted); letter-spacing: 0.08em; }
.primary { display: flex; gap: 26px; justify-content: center; font-size: 15px; }
.primary a { color: var(--text); text-decoration: none; padding: 4px 0; position: relative; }
.primary a.here::after, .primary a:hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 1px; background: var(--wine); }
.cta { display: inline-block; background: var(--wine); color: #fff; text-decoration: none; padding: 10px 20px; font-size: 15px; font-weight: 600; border: 1px solid var(--wine); }
.cta:hover { background: var(--wine-d); color: #fff; }
.cta.line { background: transparent; color: var(--wine); }
.cta.line:hover { background: var(--wine); color: #fff; }
.navtoggle { display: none; background: none; border: 0; font: inherit; color: var(--wine); font-weight: 600; padding: 8px 0; cursor: pointer; }

/* 표지 */
.cover { padding: 76px 0 64px; text-align: center; border-bottom: 1px solid var(--hair); }
.cover .kicker { font-size: 13px; letter-spacing: 0.22em; color: var(--gold); font-weight: 600; text-transform: uppercase; margin: 0 0 18px; }
.cover .kicker a { color: var(--gold); text-decoration: none; }
.cover h1 { font-size: clamp(30px, 4.6vw, 46px); margin: 0 auto; max-width: 20em; }
.cover .lede { font-size: 18px; color: #4a443d; max-width: 36em; margin: 22px auto 0; }
.cover .row { margin-top: 32px; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cover.home { padding: 100px 0 84px; background: radial-gradient(ellipse at 50% 0, #fffdf7 0, var(--ivory) 70%); }
.rule { width: 44px; height: 2px; background: var(--gold); margin: 26px auto 0; border: 0; }

/* 본문 */
.band { padding: 68px 0; }
.band.tint { background: var(--card); border-block: 1px solid var(--hair); }
.band-title { text-align: center; margin: 0 0 40px; }
.band-title h2 { font-size: clamp(24px, 3vw, 31px); margin: 0; }
.band-title p { color: var(--muted); margin: 10px auto 0; max-width: 34em; }
.article { max-width: 740px; margin-inline: auto; }
.article h2 { font-size: 26px; margin: 52px 0 16px; padding-top: 28px; border-top: 1px solid var(--hair); }
.article h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.article h3 { font-size: 19px; margin: 32px 0 10px; color: var(--wine-d); }
.article p { margin: 0 0 1.15em; }
.article li { margin-bottom: 0.5em; }
.aside-note { border: 1px solid var(--gold); background: var(--card); padding: 20px 24px; margin: 28px 0; font-size: 15.5px; }
.grid { width: 100%; border-collapse: collapse; margin: 24px 0; font-size: 15px; background: var(--card); }
.grid th, .grid td { border: 1px solid var(--hair); padding: 11px 13px; text-align: left; vertical-align: top; }
.grid th { background: #f0e9da; font-weight: 700; }
.scroll { overflow-x: auto; }
.related { max-width: 740px; margin: 56px auto 0; padding-top: 26px; border-top: 1px solid var(--hair); font-size: 15px; }
.related b { display: block; font-size: 13px; letter-spacing: 0.14em; color: var(--gold); margin-bottom: 10px; }
.related a { display: inline-block; margin: 0 18px 8px 0; }

/* 목록 판 */
.plates { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--hair); background: var(--card); }
.plates a { display: block; padding: 28px 24px; text-decoration: none; color: var(--text); border-right: 1px solid var(--hair); border-bottom: 1px solid var(--hair); margin: 0 -1px -1px 0; }
.plates a:hover { background: #f3ecdd; }
.plates em { font-style: normal; font-family: "Fraunces", serif; font-size: 13px; color: var(--gold); letter-spacing: 0.1em; }
.plates b { display: block; font-family: "Fraunces", "Gowun Batang", serif; font-size: 20px; margin: 6px 0 8px; color: var(--wine-d); }
.plates span { font-size: 14.5px; color: var(--muted); line-height: 1.65; display: block; }
.plates.three { grid-template-columns: repeat(3, 1fr); }
.plates.two { grid-template-columns: repeat(2, 1fr); }

/* 선생님 */
.roster { max-width: 860px; margin-inline: auto; }
.roster h3 { font-size: 15px; letter-spacing: 0.14em; color: var(--gold); font-family: inherit; margin: 44px 0 6px; }
.roster h3:first-child { margin-top: 0; }
.tutor { display: grid; grid-template-columns: 170px 1fr; gap: 26px; padding: 22px 0; border-bottom: 1px solid var(--hair); }
.tutor dt { font-family: "Fraunces", "Gowun Batang", serif; font-weight: 700; font-size: 17px; color: var(--wine-d); line-height: 1.5; }
.tutor dt small { display: block; font-family: "Pretendard Variable", sans-serif; font-weight: 400; font-size: 13px; color: var(--muted); }
.tutor dd { margin: 0; font-size: 15.5px; }
dl { margin: 0; }

/* 단계 */
.flow { list-style: none; margin: 0 auto; padding: 0; max-width: 760px; counter-reset: n; }
.flow li { counter-increment: n; display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 24px 0; border-bottom: 1px solid var(--hair); }
.flow li::before { content: counter(n, upper-roman); font-family: "Fraunces", serif; font-size: 26px; color: var(--gold); line-height: 1.2; }
.flow b { display: block; font-family: "Fraunces", "Gowun Batang", serif; font-size: 19px; margin-bottom: 4px; }
.flow span { color: #4a443d; font-size: 15.5px; }

/* 학교 이름 */
.country { max-width: 900px; margin: 0 auto 44px; }
.country h2 { font-size: 22px; margin: 0 0 4px; }
.country > p { color: var(--muted); font-size: 14.5px; margin: 0 0 14px; }
.names { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 40px; font-size: 15px; }
.names li { break-inside: avoid; padding: 8px 0; border-bottom: 1px solid var(--hair); }
.names small { display: block; color: var(--muted); font-size: 13px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center; margin: 0 auto 50px; max-width: 900px; font-size: 15px; }

/* 문답 */
.faq { max-width: 760px; margin-inline: auto; }
.faq h2 { font-size: 15px; letter-spacing: 0.14em; color: var(--gold); font-family: inherit; margin: 44px 0 8px; }
.faq h2:first-child { margin-top: 0; }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; }
.faq details > p { margin: 0 0 20px; color: #4a443d; }

/* 문의 */
.reach { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: 1px solid #8b3a46; }
.reach div { padding: 30px 26px; border-right: 1px solid #8b3a46; }
.reach div:last-child { border-right: 0; }
.reach b { display: block; font-family: "Fraunces", "Gowun Batang", serif; font-size: 20px; margin-bottom: 6px; }
.reach p { font-size: 15px; margin: 0 0 16px; opacity: 0.85; }
.endnote { background: var(--wine); color: #f6ecdd; }
.endnote .band-title p { color: #e0c9b2; }
.endnote .cta { background: #f6ecdd; color: var(--wine-d); border-color: #f6ecdd; }
.endnote .cta:hover { background: #fff; }
.sheet { max-width: 620px; margin-inline: auto; background: var(--card); border: 1px solid var(--hair); padding: 36px; }
.sheet label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.sheet input, .sheet select, .sheet textarea { display: block; width: 100%; margin-top: 7px; padding: 12px; font: inherit; font-size: 16px; border: 1px solid #c9bfab; background: #fff; color: var(--text); border-radius: 0; }
.sheet input:focus, .sheet select:focus, .sheet textarea:focus { outline: 2px solid var(--wine); outline-offset: 0; }
.sheet textarea { min-height: 120px; }
.sheet .duo { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sheet .consent { display: flex; gap: 10px; font-weight: 400; color: var(--muted); font-size: 13.5px; }
.sheet .consent input { width: auto; margin: 6px 0 0; }
.sheet button { width: 100%; cursor: pointer; font: inherit; font-weight: 600; padding: 14px; }
.sheet .thanks { margin: 18px 0 0; padding: 14px; border: 1px solid var(--gold); text-align: center; }
.alt { max-width: 620px; margin: 26px auto 0; text-align: center; font-size: 15px; color: var(--muted); }

/* 하단 */
.colophon { padding: 44px 0 80px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--hair); }
.colophon .shell { display: flex; flex-wrap: wrap; gap: 14px 40px; justify-content: space-between; }
.colophon nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
.colophon a { color: var(--muted); }
.colophon p { margin: 0; flex-basis: 100%; }

@media (max-width: 900px) {
  .masthead .shell { grid-template-columns: 1fr auto; }
  .navtoggle { display: block; }
  .primary { display: none; grid-column: 1 / -1; flex-direction: column; gap: 0; border-top: 1px solid var(--hair); }
  .primary.open { display: flex; }
  .primary a { padding: 13px 0; border-bottom: 1px solid var(--hair); }
  .masthead .cta { display: none; }
  .cover, .cover.home { padding: 56px 0 48px; }
  .band { padding: 50px 0; }
  .plates, .plates.three, .plates.two { grid-template-columns: 1fr; }
  .tutor { grid-template-columns: 1fr; gap: 6px; }
  .names { columns: 1; }
  .reach { grid-template-columns: 1fr; }
  .reach div { border-right: 0; border-bottom: 1px solid #8b3a46; }
  .reach div:last-child { border-bottom: 0; }
  .sheet { padding: 24px 20px; }
  .sheet .duo { grid-template-columns: 1fr; gap: 0; }
  .flow li { grid-template-columns: 44px 1fr; gap: 12px; }
}
