/* Values copied from the main site's styles/tokens.css so both sites read as one brand. */
:root {
  --bg: #FFFFFF;
  --ink: #0D0D0D;
  --red: #E5372B;
  --red-dark: #C22A20;
  --line: rgba(13, 13, 13, 0.16);
  --muted: rgba(13, 13, 13, 0.66);
  --paper: #F3F0E9;
  --on-ink-muted: rgba(255, 255, 255, 0.72);
  --header-glass: rgba(255, 255, 255, 0.86);
  --container: 1160px;
  --gutter: 32px;
  --touch-target: 44px;
  --section: clamp(104px, 9vw, 144px);
  --heading-hero: clamp(40px, 4.2vw, 56px);
  --heading-section: clamp(30px, 3vw, 42px);
  --heading-feature: clamp(24px, 2.2vw, 30px);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.7 "Pretendard Variable", Pretendard, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  -webkit-font-smoothing: antialiased;
}
img { display: block; width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd { margin: 0; padding: 0; }
ul { list-style: none; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }

.wrap { width: min(100% - calc(var(--gutter) * 2), var(--container)); margin-inline: auto; }
.draft-note { background: var(--ink); color: #fff; font-size: 13px; text-align: center; padding: 8px 20px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: var(--header-glass); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; min-height: var(--touch-target); text-decoration: none; font-weight: 750; font-size: 14px; letter-spacing: .02em; }
.brand img { width: 72px; height: 44px; object-fit: contain; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { display: inline-flex; align-items: center; min-height: var(--touch-target); text-decoration: none; font-size: 14px; font-weight: 650; }
.site-nav a:not(.pill):hover, .site-nav a[aria-current] { color: var(--red-dark); }
.menu { display: none; }

.pill {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 28px; border-radius: 999px;
  background: var(--red-dark); color: #fff; text-decoration: none; font-weight: 750; font-size: 15px;
  transition: background .25s var(--ease-out), transform .25s var(--ease-out);
}
.pill:hover { background: var(--ink); }
.pill:active { transform: scale(.97); }
.pill.small { min-height: var(--touch-target); padding: 0 20px; font-size: 14px; }
.site-nav a.pill { color: #fff; }
.pill.on-ink { background: #fff; color: var(--ink); }
.pill.on-ink:hover { background: var(--paper); }
.text-link { display: inline-flex; align-items: center; min-height: var(--touch-target); font-weight: 750; font-size: 15px; text-underline-offset: 4px; }

/* Type */
.kicker { font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--red-dark); margin-bottom: 16px; }
h1 { font-size: var(--heading-hero); line-height: 1.18; font-weight: 750; letter-spacing: -.025em; }
h2 { font-size: var(--heading-section); line-height: 1.24; font-weight: 750; letter-spacing: -.02em; }
h3 { font-size: var(--heading-feature); line-height: 1.3; font-weight: 750; letter-spacing: -.015em; }
.lead { font-size: 17px; color: var(--muted); max-width: 680px; margin-top: 20px; }

/* Hero */
.hero { padding-top: clamp(72px, 7vw, 112px); text-align: center; }
.hero h1 { max-width: 820px; margin-inline: auto; }
.hero .lead { margin-inline: auto; }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px 24px; margin-top: 32px; }
.hero-photo { aspect-ratio: 21 / 9; margin-top: clamp(48px, 5vw, 72px); }
.hero-photo img { object-position: center 62%; }

/* Sections */
.section { padding-block: var(--section); }
.section.paper { background: var(--paper); }
.section-head { margin-bottom: 52px; }

/* Course list */
.course-list { border-top: 2px solid var(--ink); }
.course-row {
  display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr) 120px 24px;
  align-items: center; gap: 24px; padding: 28px 0; border-bottom: 1px solid var(--line);
  text-decoration: none; transition: color .25s var(--ease-out), padding .25s var(--ease-out);
}
.course-row:hover { color: var(--red-dark); padding-inline: 8px; }
.course-row h3 { font-size: 22px; }
.course-row .for { color: var(--muted); font-size: 14px; margin-top: 4px; }
.course-row span { font-size: 15px; }
.course-row .fee { font-weight: 750; }
.course-row .arrow { font-size: 20px; text-align: right; }

/* Why */
.why { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: center; }
.why-photo { aspect-ratio: 4 / 3; }
.why-list { margin-top: 32px; border-top: 1px solid var(--line); }
.why-list li { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.why-list strong { font-weight: 750; }
.why-list span { color: var(--muted); }

/* Scenes */
.scenes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.scenes figure { margin: 0; }
.scenes .frame { aspect-ratio: 4 / 5; overflow: hidden; }
.scenes figcaption { padding-top: 12px; font-size: 14px; }
.scenes .label { display: block; font-size: 12px; font-weight: 850; letter-spacing: .08em; }

/* Trust */
.trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 2px solid var(--ink); }
.trust li { padding: 28px 28px 8px 0; }
.trust li + li { padding-left: 28px; border-left: 1px solid var(--line); }
.trust b { display: block; font-size: 13px; color: var(--red-dark); margin-bottom: 8px; }

/* Closing */
.closing { background: var(--ink); color: #fff; padding-block: var(--section); }
.closing-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px; align-items: end; }
.closing .kicker { color: #FF8A80; }
.closing p { color: var(--on-ink-muted); margin-top: 16px; }
.closing .pill { margin-top: 32px; }
.contact-list { border-top: 1px solid rgba(255, 255, 255, .28); }
.contact-list li { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 16px; align-items: center; min-height: 60px; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, .28); }
.contact-list span { color: var(--on-ink-muted); font-size: 14px; }
.contact-list a { display: inline-flex; align-items: center; min-height: var(--touch-target); text-underline-offset: 4px; overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding-block: 32px; font-size: 13px; color: var(--muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px; }
.footer-row ul { display: flex; gap: 20px; }
.footer-row a { display: inline-flex; align-items: center; min-height: var(--touch-target); }

/* Courses page */
.page-hero { padding-block: clamp(72px, 7vw, 112px) 52px; }
.jump { position: sticky; top: 77px; z-index: 10; background: #fff; border-block: 1px solid var(--line); }
.jump ul { display: flex; gap: 28px; overflow-x: auto; scrollbar-width: none; }
.jump a { display: inline-flex; align-items: center; min-height: 52px; white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 750; }
.jump a:hover { color: var(--red-dark); }

.course { padding-block: clamp(64px, 7vw, 104px); border-bottom: 1px solid var(--line); }
.course:last-of-type { border-bottom: 0; }
.course-copy { max-width: 720px; }
.course-copy p:not(.kicker) { color: var(--muted); margin-top: 16px; font-size: 17px; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 40px; border-block: 1px solid var(--ink); }
.facts div { padding: 20px 20px 20px 0; min-width: 0; }
.facts div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.facts dt { font-size: 12px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.facts dd { font-weight: 650; line-height: 1.45; }
.facts small { display: block; font-size: 13px; font-weight: 400; color: var(--muted); margin-top: 4px; }
.course-support { display: grid; grid-template-columns: 3fr 2fr; gap: clamp(32px, 5vw, 64px); margin-top: 40px; align-items: start; }
.course-support.solo { grid-template-columns: minmax(0, 720px); }
.course-support h3 { font-size: 18px; margin-bottom: 12px; }
.checks li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--line); }
.checks li::before { content: ""; position: absolute; left: 0; top: 22px; width: 10px; height: 2px; background: var(--red); }
.course-photo { aspect-ratio: 3 / 2; }
.course .text-link { margin-top: 20px; }

/* About, Student Life, FAQ, Privacy */
.profile { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.profile-photo { aspect-ratio: 4 / 5; }
.profile-photo img { object-position: center top; }
.profile-list { margin-top: 24px; }
.why.top { align-items: start; }
.why-list.flush { margin-top: 0; }
.life-first { padding-top: 0; }
.trust + .text-link { margin-top: 24px; }
.faq-section { padding-top: 16px; }
.faq { max-width: 820px; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 68px; padding: 12px 0; font-size: 18px; font-weight: 750; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 24px; font-weight: 400; color: var(--red-dark); }
.faq details[open] summary::after { content: "\2212"; }
.faq p { max-width: 720px; padding-bottom: 24px; color: var(--muted); }
.faq a { color: var(--ink); text-underline-offset: 4px; }
.legal-section { padding-bottom: var(--section); }
.legal { max-width: 736px; }
.legal h2 { font-size: 20px; margin: 40px 0 8px; }
.legal p { color: var(--muted); }
.legal-note { background: var(--paper); color: var(--ink) !important; padding: 12px 16px; font-size: 14px; }
.legal mark { background: #FFE394; color: var(--ink); padding: 0 4px; }

@media (max-width: 1040px) { .brand span { display: none; } }

@media (max-width: 900px) {
  .why, .closing-grid, .profile { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .course-support { grid-template-columns: minmax(0, 1fr); }
  .profile-photo { max-width: 360px; }
  .course-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; }
  .course-row > div { grid-column: 1 / -1; }
  .course-row .arrow { display: none; }
  .course-row .fee { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  :root { --gutter: 20px; --section: 80px; --heading-hero: 34px; --heading-section: 27px; --heading-feature: 22px; }
  html { scroll-padding-top: 136px; }
  .brand span { display: none; }
  .header-row { height: 68px; }
  .site-nav > a:not(.pill) { display: none; }
  .site-nav { gap: 8px; }
  .menu { display: block; position: static; }
  .menu summary { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; cursor: pointer; list-style: none; font-size: 22px; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu nav { position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-block: 1px solid var(--line); padding: 8px var(--gutter); }
  .menu nav a { display: flex; min-height: 52px; font-size: 16px; }
  .lead, .course-copy p:not(.kicker) { font-size: 15px; }
  .hero-photo { aspect-ratio: 4 / 3; }
  .jump { top: 69px; }
  .scenes { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .scenes .frame { aspect-ratio: 4 / 3; }
  .why-list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .trust { grid-template-columns: minmax(0, 1fr); }
  .trust li, .trust li + li { padding: 20px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .facts div, .facts div + div { padding: 16px 12px 16px 0; border-left: 0; }
  .facts div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .contact-list li { grid-template-columns: 64px minmax(0, 1fr); }
}

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

/* FAQ and legal copy share the page heading's left edge. */
.faq.wrap, .legal.wrap { margin-left: max(var(--gutter), calc((100% - var(--container)) / 2)); margin-right: auto; }
