:root {
  --paper: #f2eee5;
  --ink: #151511;
  --muted: #67635b;
  --line: #cbc3b6;
  --orange: #ef740b;
  --teal: #007f79;
  --cream: #faf7f0;
  --white: #fffdf8;
  --shadow: 7px 7px 0 var(--ink);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Arial, "Noto Sans KR", "Noto Sans JP", sans-serif;
  line-height: 1.55;
}
a { color: inherit; }
button, input { font: inherit; }

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.site-header {
  border-bottom: 3px solid var(--orange);
  background: rgba(242, 238, 229, .96);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner { min-height: 68px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { text-decoration: none; display: flex; align-items: baseline; gap: 10px; }
.brand strong { font-family: Georgia, serif; font-size: 22px; }
.brand span { font-size: 13px; color: var(--muted); letter-spacing: .06em; }
.main-nav { display: flex; gap: 24px; align-items: center; font-weight: 700; font-size: 14px; }
.main-nav a { text-decoration: none; padding: 8px 0; }
.main-nav a:hover, .main-nav a:focus-visible { color: var(--orange); }
.status-pill { border: 1px solid var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 12px; background: var(--cream); }

.eyebrow { margin: 0 0 18px; font-size: 12px; font-weight: 900; letter-spacing: .18em; text-transform: uppercase; }
.hero { padding: 92px 0 84px; border-bottom: 1px solid var(--line); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr); gap: 56px; align-items: end; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 850px; font-size: clamp(44px, 6.6vw, 84px); line-height: 1.02; letter-spacing: -.055em; }
.hero-copy { margin: 30px 0 0; max-width: 760px; font-size: 19px; }
.hero-mark { border: 2px solid var(--ink); background: var(--ink); color: white; padding: 28px; box-shadow: 10px 10px 0 var(--orange); }
.hero-mark span { display: block; color: var(--orange); font-weight: 900; font-size: 12px; letter-spacing: .15em; }
.hero-mark strong { display: block; font-family: Georgia, serif; font-size: 54px; line-height: 1; margin: 18px 0; }
.hero-mark p { margin: 0; font-size: 14px; }

.section { padding: 78px 0; border-bottom: 1px solid var(--line); }
.section-heading { display: grid; grid-template-columns: 240px 1fr; gap: 64px; margin-bottom: 36px; }
.section-heading h2 { margin: 0; font-size: clamp(30px, 4vw, 50px); line-height: 1.12; letter-spacing: -.035em; }
.path-grid { display: grid; grid-template-columns: repeat(2, 1fr); border: 1px solid var(--ink); }
.path-card { position: relative; min-height: 330px; padding: 30px; background: var(--cream); }
.path-card + .path-card { border-left: 1px solid var(--ink); }
.path-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 7px; background: var(--accent); }
.path-card.teal { --accent: var(--teal); }
.path-card.orange { --accent: var(--orange); }
.path-top { display: flex; justify-content: space-between; color: var(--accent); font-weight: 900; letter-spacing: .08em; }
.path-card h3 { margin: 58px 0 18px; font-size: 32px; line-height: 1.18; }
.path-card p { color: var(--muted); min-height: 78px; }
.path-card a, .button { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 900; }
.path-card a { border-bottom: 2px solid var(--accent); padding-bottom: 4px; }

.future-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.future-card { border: 1px solid var(--line); background: rgba(255,255,255,.28); padding: 22px; min-height: 170px; }
.future-card span { color: var(--muted); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.future-card h3 { margin: 36px 0 8px; font-size: 22px; }
.future-card p { margin: 0; color: var(--muted); font-size: 14px; }

.course-hero { padding: 70px 0 58px; border-bottom: 1px solid var(--line); }
.course-hero.teal { --course: var(--teal); }
.course-hero.orange { --course: var(--orange); }
.course-hero .eyebrow { color: var(--course); }
.course-hero h1 { font-size: clamp(42px, 6vw, 72px); }
.course-meta { margin-top: 24px; display: flex; gap: 10px; flex-wrap: wrap; }
.course-meta span { border: 1px solid var(--line); background: var(--cream); padding: 8px 12px; font-size: 13px; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--ink); }
.module-card { min-height: 210px; padding: 24px; text-decoration: none; background: var(--cream); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.module-card:nth-child(3n) { border-right: 0; }
.module-card:nth-child(n+4) { border-bottom: 0; }
.module-card small { color: var(--muted); font-weight: 900; }
.module-card h3 { margin: 46px 0 10px; font-size: 24px; }
.module-card p { margin: 0; color: var(--muted); font-size: 14px; }

.catalog-tools { border: 1px solid var(--ink); background: var(--cream); padding: 22px; margin-bottom: 28px; }
.catalog-tools label { display: block; font-size: 12px; font-weight: 900; margin-bottom: 8px; }
.catalog-tools input { width: min(520px, 100%); padding: 13px 14px; background: var(--white); border: 1px solid var(--line); }
.lesson-list { border-top: 2px solid var(--ink); }
.lesson-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 24px; align-items: center; padding: 23px 12px; border-bottom: 1px solid var(--line); }
.lesson-row .number { font-family: Georgia, serif; font-size: 21px; }
.lesson-row small { display: block; color: var(--teal); font-weight: 900; margin-bottom: 4px; }
.lesson-row strong { font-size: 18px; }
.lesson-row a { text-decoration: none; font-weight: 900; }

.module-shell { padding: 56px 0 80px; }
.module-heading { border: 1px solid var(--line); background: var(--cream); padding: 34px; }
.module-heading h1 { font-size: clamp(34px, 5vw, 58px); }
.module-heading p { max-width: 760px; color: var(--muted); }
.staging-note { margin-top: 28px; border: 2px solid var(--ink); background: var(--white); padding: 28px; box-shadow: var(--shadow); }
.staging-note strong { display: block; color: var(--orange); margin-bottom: 8px; }
.content-panel { margin-top: 28px; border-top: 2px solid var(--ink); }
.content-source { display: flex; justify-content: space-between; gap: 18px; padding: 16px 4px; color: var(--teal); font-size: 12px; letter-spacing: .08em; }
.content-section { border: 1px solid var(--line); border-bottom: 0; background: var(--cream); padding: 28px; }
.content-section:last-child { border-bottom: 1px solid var(--line); }
.content-section h2 { margin: 0 0 20px; font-size: 27px; }
.content-section p { margin: 8px 0; }
.content-section ul, .content-section ol { margin: 12px 0; padding-left: 24px; }
.content-section li { margin: 7px 0; line-height: 1.75; }
.content-section blockquote { margin: 18px 0; padding: 14px 18px; border-left: 4px solid var(--orange); background: var(--white); }
.content-section blockquote p { margin: 5px 0; }
.content-section code { padding: 2px 5px; border: 1px solid var(--line); background: var(--white); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
.content-section hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.content-table-wrap { margin: 18px 0; overflow-x: auto; }
.content-table-wrap table { width: 100%; min-width: 680px; border-collapse: collapse; background: var(--white); }
.content-table-wrap th, .content-table-wrap td { padding: 11px 12px; border: 1px solid var(--line); text-align: left; vertical-align: top; line-height: 1.65; }
.content-table-wrap th { background: var(--ink); color: var(--white); font-size: 13px; }
.content-field { margin: 12px 0; }
.content-field > strong { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
.module-nav { margin-top: 48px; display: flex; flex-wrap: wrap; gap: 9px; }
.module-nav a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 9px 13px; background: var(--cream); font-weight: 800; font-size: 13px; }

.site-footer { padding: 34px 0 54px; display: flex; justify-content: space-between; gap: 24px; color: var(--muted); font-size: 13px; }
.loading { padding: 80px 24px; text-align: center; }

@media (max-width: 820px) {
  .shell { width: min(100% - 28px, 1180px); }
  .header-inner { display: grid; grid-template-columns: 1fr; align-items: start; gap: 7px; padding: 12px 0; }
  .brand { white-space: nowrap; }
  .main-nav { width: auto; gap: 18px; flex-wrap: wrap; justify-content: flex-start; }
  .main-nav a { white-space: nowrap; }
  .brand span, .status-pill { display: none; }
  .hero { padding: 64px 0; }
  .hero-grid, .section-heading { grid-template-columns: 1fr; gap: 28px; }
  .path-grid, .module-grid, .future-grid { grid-template-columns: 1fr; }
  .path-card + .path-card { border-left: 0; border-top: 1px solid var(--ink); }
  .module-card, .module-card:nth-child(3n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .module-card:last-child { border-bottom: 0; }
  .lesson-row { grid-template-columns: 54px 1fr; }
  .lesson-row > a { grid-column: 2; }
  .site-footer { flex-direction: column; }
}
