:root {
  --bg: #f4f1eb;
  --bg-deep: #e7e1d6;
  --surface: #fffcf8;
  --ink: #1c1916;
  --muted: #5c564e;
  --line: #d5cec3;
  --forest: #243832;
  --forest-deep: #182722;
  --copper: #7a3e2a;
  --copper-dark: #5e2e1e;
  --sage: #e5efe8;
  --danger: #8a2e2e;
  --ok: #1e4d38;
  --serif: "Noto Serif KR", "Apple SD Gothic Neo", serif;
  --sans: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  --max: 1120px;
  --shadow: 0 18px 40px rgba(28, 25, 22, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.75;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--forest);
}

a:hover {
  color: var(--copper);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--surface);
  padding: 0.5rem 0.8rem;
  z-index: 30;
}

.skip:focus {
  top: 1rem;
}

:focus-visible {
  outline: 2px solid var(--copper);
  outline-offset: 3px;
}

.topbar {
  background: var(--forest);
  color: #f4f1eb;
  font-size: 0.92rem;
}

.topbar-inner,
.header-inner,
.footer-inner,
.wrap {
  width: min(var(--max), calc(100% - 2rem));
  margin-inline: auto;
}

.topbar-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  padding: 0.45rem 0;
}

.topbar a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 15;
  background: rgba(244, 241, 235, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 76px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--forest);
  border-radius: 50%;
  position: relative;
  flex: none;
}

.logo-mark::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  background: var(--copper);
  border-radius: 50%;
  top: 6px;
  right: 4px;
}

.logo strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.logo small {
  display: block;
  color: var(--muted);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.site-nav a {
  text-decoration: none;
  color: var(--ink);
  font-size: 0.98rem;
}

.site-nav a.is-active {
  color: var(--copper);
  text-decoration: underline;
  text-underline-offset: 0.35rem;
}

.nav-toggle {
  display: none;
  border: 1px solid var(--forest);
  background: transparent;
  color: var(--forest);
  padding: 0.45rem 0.7rem;
  font: inherit;
  cursor: pointer;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  background: var(--copper);
  color: #fff !important;
  text-decoration: none;
  border: 1px solid var(--copper);
  padding: 0.85rem 1.2rem;
  font-weight: 700;
  line-height: 1.3;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
}

.button:hover {
  background: var(--copper-dark);
  border-color: var(--copper-dark);
  color: #fff !important;
}

.button.secondary {
  background: transparent;
  color: var(--forest) !important;
  border-color: var(--forest);
}

.button.secondary:hover {
  background: var(--forest);
  color: #fff !important;
}

.button.small {
  padding: 0.55rem 0.85rem;
  font-size: 0.95rem;
}

main {
  padding-bottom: 4rem;
}

.island-errors {
  width: min(var(--max), calc(100% - 2rem));
  margin: 1rem auto 0;
}

.island-error {
  background: #f8e8e4;
  color: var(--danger);
  padding: 0.8rem 1rem;
  margin: 0 0 0.5rem;
}

.hero {
  display: grid;
  grid-template-columns: 1.35fr 0.75fr;
  background: var(--forest-deep);
  color: #f4f1eb;
}

.hero-figure {
  margin: 0;
  grid-column: 1 / -1;
  background: #d9d2c6;
}

.hero-figure img,
.frame img,
.portrait img,
.cover img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #d9d2c6;
}

.hero-figure img {
  aspect-ratio: 16 / 7;
  max-height: 460px;
}

.hero-figure figcaption {
  padding: 0.55rem 1.2rem 0.8rem;
  color: #d9d2c6;
  font-size: 0.92rem;
}

.hero-panel,
.hero-meta {
  padding: 2.2rem 2rem 2.4rem;
}

.hero-meta {
  background: var(--bg);
  color: var(--ink);
}

.eyebrow,
.section-index,
.kicker {
  margin: 0 0 0.6rem;
  color: var(--copper);
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero-panel .eyebrow {
  color: #e7c2b4;
}

h1,
h2,
h3 {
  font-family: var(--serif);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

h2 {
  margin: 0;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

h3 {
  margin: 0 0 0.4rem;
  font-size: 1.25rem;
}

.hero-panel p:last-child,
.dek {
  font-size: 1.08rem;
}

.meta-label {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.meta-value {
  margin: 0.15rem 0 1rem;
  font-family: var(--serif);
  font-size: 1.35rem;
}

.section {
  width: min(var(--max), calc(100% - 2rem));
  margin: 3.2rem auto 0;
}

.section-head {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.5rem 1rem;
  align-items: end;
  margin-bottom: 1.2rem;
  border-top: 1px solid var(--line);
  padding-top: 1rem;
}

.section-head .section-index {
  margin: 0;
}

.prose p,
.stack p {
  margin: 0 0 0.9rem;
}

.split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.5rem;
  align-items: start;
}

.card-grid,
.people,
.steps,
.fact-grid {
  display: grid;
  gap: 1rem;
}

.card-grid {
  grid-template-columns: repeat(3, 1fr);
}

.card-grid.two,
.people,
.steps {
  grid-template-columns: repeat(2, 1fr);
}

.fact-grid {
  grid-template-columns: repeat(4, 1fr);
}

.card,
.quote,
.person,
.step,
.note,
.surface {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.card,
.quote,
.person,
.step,
.note {
  padding: 1rem 1rem 1.15rem;
}

.card h3 a {
  color: inherit;
  text-decoration: none;
}

.card h3 a:hover {
  color: var(--copper);
}

.card p,
.person p,
.quote p {
  margin: 0.4rem 0 0;
}

.frame img,
.cover img {
  aspect-ratio: 3 / 2;
}

.portrait img {
  aspect-ratio: 4 / 5;
}

.card > img,
.course-row > img,
.course-row > a img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #d9d2c6;
  display: block;
}

.card .meta,
.quote footer,
.quiet {
  color: var(--muted);
  font-size: 0.95rem;
}

.band {
  margin-top: 3rem;
  background: var(--forest);
  color: #f4f1eb;
}

.band-inner {
  width: min(var(--max), calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0;
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
}

.band p {
  margin: 0.4rem 0 0;
}

.page-intro {
  width: min(var(--max), calc(100% - 2rem));
  margin: 2rem auto 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.5rem;
  align-items: end;
}

.page-intro.plain {
  grid-template-columns: 1fr;
}

.course-list {
  display: grid;
  gap: 1.25rem;
}

.course-row {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.2rem;
  background: var(--surface);
  border: 1px solid var(--line);
}

.course-row .body {
  padding: 1.1rem 1.2rem 1.2rem 0;
}

dl.facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.7rem 1rem;
  margin: 1rem 0;
}

dl.facts div {
  border-top: 1px solid var(--line);
  padding-top: 0.4rem;
}

dl.facts dt {
  color: var(--muted);
  font-size: 0.88rem;
}

dl.facts dd {
  margin: 0.15rem 0 0;
  font-weight: 700;
}

.service-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}

.service-hero .copy {
  padding: 2rem;
}

.service-hero img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #d9d2c6;
}

.outline {
  margin: 0;
  padding-left: 1.2rem;
}

.outline li + li,
.checklist li + li {
  margin-top: 0.45rem;
}

.checklist {
  margin: 0;
  padding-left: 1.1rem;
}

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.8rem;
}

.timeline li {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 0.9rem 1rem;
}

.faq details {
  border-top: 1px solid var(--line);
  padding: 0.8rem 0;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  background: var(--surface);
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}

th,
td {
  text-align: left;
  vertical-align: top;
  padding: 0.85rem 0.9rem;
  border-bottom: 1px solid var(--line);
}

th {
  background: var(--bg-deep);
  font-weight: 700;
}

.quote {
  margin: 0;
}

.quote p {
  font-size: 1.08rem;
}

.case + .case {
  margin-top: 1.5rem;
}

.people.instructors {
  grid-template-columns: 1fr 1fr;
}

.person img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  background: #d9d2c6;
  margin-bottom: 0.8rem;
}

.form-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: start;
}

form {
  display: grid;
  gap: 0.85rem;
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.2rem;
}

label {
  display: grid;
  gap: 0.3rem;
  font-weight: 700;
}

input,
select,
textarea {
  font: inherit;
  color: inherit;
  background: #fff;
  border: 1px solid #b7b0a5;
  padding: 0.7rem 0.75rem;
  width: 100%;
}

textarea {
  min-height: 150px;
  resize: vertical;
}

.field-error {
  color: var(--danger);
  font-weight: 500;
  font-size: 0.92rem;
  min-height: 0;
}

.form-status {
  margin: 0;
  padding: 0;
}

.form-status.is-success {
  background: var(--sage);
  color: var(--ok);
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.form-status.is-error {
  background: #f8e8e4;
  color: var(--danger);
  padding: 0.9rem 1rem;
  font-weight: 700;
}

.address-block {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: 1.1rem 1.2rem;
}

.verbatim {
  margin: 0.3rem 0 1rem;
  font-weight: 500;
  line-height: 1.6;
}

.legal h2 {
  margin-top: 2rem;
  font-size: 1.45rem;
}

.legal h3 {
  margin-top: 1.2rem;
}

.article-cover {
  margin: 0 0 1rem;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  background: #d9d2c6;
}

.byline {
  color: var(--muted);
}

.missing {
  padding: 3rem 1rem;
  text-align: center;
}

.site-footer {
  background: var(--forest-deep);
  color: #f4f1eb;
  padding: 2.4rem 0 1.4rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 0.8fr;
  gap: 1.5rem;
}

.site-footer a {
  color: #f4f1eb;
}

.site-footer h2 {
  font-size: 1.05rem;
  margin: 0 0 0.6rem;
}

.footer-links {
  display: grid;
  gap: 0.25rem;
}

.legal-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 1rem;
  margin-top: 1.4rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(244, 241, 235, 0.2);
  font-size: 0.95rem;
}

.cookie {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--forest);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.cookie p {
  margin: 0;
}

.cookie-actions {
  display: flex;
  gap: 0.5rem;
  flex: none;
}

.cookie-actions button {
  min-width: 6.5rem;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.8rem 1rem 1rem;
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav.is-open {
    display: flex;
  }

  .hero,
  .split,
  .page-intro,
  .service-hero,
  .form-layout,
  .course-row,
  .card-grid,
  .card-grid.two,
  .people,
  .people.instructors,
  .steps,
  .fact-grid,
  .footer-grid,
  .band-inner,
  .timeline li {
    grid-template-columns: 1fr;
  }

  .course-row .body {
    padding: 0 1rem 1rem;
  }

  .cookie {
    flex-direction: column;
    align-items: stretch;
  }

  .cookie-actions button {
    flex: 1;
  }
}

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

@media print {
  .topbar,
  .site-header,
  .cookie,
  .band,
  .site-footer,
  .button {
    display: none !important;
  }

  body {
    background: #fff;
  }
}
