:root {
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  color: #262522;
  background: #fff;
  line-height: 1.65;
  --muted: #615d56;
  --line: #e9e3da;
  --accent: #8b4839;
  --accent-dark: #70382c;
  --wash: #f7f3ed;
  --title-size: clamp(2.05rem, 4.4vw, 3.5rem);
  --section-size: clamp(1.5rem, 2.5vw, 2rem);
  --card-size: 1.125rem;
  --body-size: 1rem;
  --small-size: .875rem;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: var(--body-size); }
a { color: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
img { display: block; width: 100%; height: auto; }
figure { margin: 0; }
h1, h2, h3 { margin: 0; letter-spacing: -.055em; line-height: 1.22; text-wrap: balance; }
h1 { font-size: var(--title-size); font-weight: 700; }
h2 { font-size: var(--section-size); font-weight: 700; }
h3 { font-size: var(--card-size); font-weight: 700; }
p { margin-block: .6em 0; color: var(--muted); word-break: keep-all; }
.shell { width: min(1170px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: absolute; left: 12px; top: -100px; z-index: 5; background: #fff; }
.skip:focus { top: 8px; }
.mast { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding-block: 23px; }
.brand { display: block; flex: 0 1 282px; }
.brand img { width: 100%; }
.mast nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 5px 23px; }
.mast nav a { padding-block: 6px; font-size: var(--small-size); font-weight: 600; text-decoration: none; }
.mast nav a:hover, .text-link:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }

.hero, .program-hero { display: grid; grid-template-columns: .95fr 1.05fr; align-items: stretch; min-width: 0; background: var(--wash); overflow: hidden; border-radius: 21px; }
.hero { margin: 8px 0 17px; }
.hero-copy { padding: clamp(26px, 5vw, 65px); align-self: center; }
.hero h1 { word-break: keep-all; }
.hero-copy p { max-width: 30ch; margin: 18px 0 23px; }
.hero-photo img { height: 100%; min-height: 305px; object-fit: cover; object-position: 52% 56%; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin: 17px 0 0; }
.button { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border: 1px solid var(--accent); background: var(--accent); color: #fff; border-radius: 7px; font-size: var(--small-size); font-weight: 700; text-decoration: none; }
.button.secondary { background: #fff; color: var(--accent-dark); border-color: #d4b7a8; }
.button:hover { background: var(--accent-dark); color: white; }
.quick-nav { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; margin-bottom: 54px; }
.quick-card { position: relative; display: grid; align-content: start; gap: 6px; min-height: 128px; padding: 14px 16px; background: white; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; }
.quick-icon { display: inline-grid; place-items: center; width: 35px; height: 35px; background: var(--wash); border-radius: 8px; color: var(--accent); }
.quick-icon svg { width: 22px; height: 22px; }
.quick-card strong { font-size: var(--card-size); line-height: 1.3; letter-spacing: -.04em; }
.quick-card span:not(.quick-icon) { color: var(--muted); font-size: var(--small-size); line-height: 1.5; }
.quick-card b { position: absolute; right: 16px; top: 13px; font-size: 1.25rem; color: var(--accent); }
.quick-card:hover,.program-card:hover,.gallery a:hover { border-color: #ba9080; background: #faf7f3; }

.section { margin-bottom: 54px; }
.section-title { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 13px; }
.text-link { font-size: var(--small-size); font-weight: 600; color: var(--accent-dark); text-underline-offset: 4px; }
.program-cards,.gallery { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.program-cards { grid-template-columns: repeat(5,minmax(0,1fr)); }
.gallery { grid-template-columns: repeat(3,minmax(0,1fr)); }
.program-card,.gallery a { display: block; min-width: 0; height: 100%; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: #fff; text-decoration: none; }
.pc-photo img,.gallery img { aspect-ratio: 4/3; object-fit: cover; }
.pc-copy { padding: 11px 12px 15px; }
.pc-copy p { margin: .3em 0 0; font-size: var(--small-size); }
.gallery span { display: block; padding: 10px 13px; font-size: var(--small-size); font-weight: 600; }

.intro { margin: 18px 0 25px; padding: 34px clamp(22px,5vw,48px); background: var(--wash); border-radius: 16px; }
.intro p { margin-top: 10px; }
.prose { max-width: 720px; padding: 4px 0 24px; }
.prose h2 { margin-top: 12px; }
.program-nav,.pagination { display: flex; flex-wrap: wrap; gap: 7px; margin: 14px 0; }
.program-nav a,.pagination a { padding: 7px 12px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: var(--small-size); font-weight: 600; text-decoration: none; }
.program-nav a[aria-current],.pagination a[aria-current] { border-color: #d4b7a8; background: #fbf4ee; color: var(--accent-dark); }
.program-hero { margin-bottom: 16px; }
.program-hero > div { align-self: center; padding: 28px clamp(24px,4vw,44px); }
.program-hero p { max-width: 40ch; margin-top: 12px; }
.program-hero img { height: 100%; max-height: 295px; min-height: 180px; object-fit: cover; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.detail-grid section { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; }
.detail-grid h2,.visit h2 { font-size: var(--card-size); }
.detail-grid p { margin-top: 8px; }
.space-photo { max-width: 900px; }
.space-photo img { border-radius: 15px; }
.steps { padding-left: 25px; }
.steps h2 { font-size: var(--card-size); }
.steps p { margin-top: .3em; }
.visit { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--wash); border-radius: 12px; padding: 18px 22px; margin: 18px 0 48px; }
.visit .actions { margin: 0; }
footer { margin-top: 34px; background: #f7f5f1; border-top: 1px solid var(--line); }
.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 26px; padding-block: 20px; font-size: var(--small-size); }
.foot p { margin: 3px 0; }
.foot a { display: block; }
@media (max-width: 940px) {
  .brand { flex-basis: 235px; }
  .mast nav { gap: 4px 13px; }
  .program-cards { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media (max-width: 670px) {
  .shell { width: calc(100% - 30px); }
  .mast { align-items: flex-start; flex-direction: column; gap: 10px; padding-block: 15px; }
  .brand { flex: initial; width: min(240px, 80%); }
  .mast nav { justify-content: flex-start; gap: 1px 13px; }
  .mast nav a { font-size: .8125rem; }
  .hero,.program-hero,.detail-grid { grid-template-columns: 1fr; }
  .hero { margin-top: 0; }
  .hero-copy { padding: 23px 20px; }
  .hero-copy p { margin: 11px 0; }
  .hero-photo img { min-height: 0; max-height: 273px; aspect-ratio: 16/10; }
  .quick-nav,.program-cards,.gallery { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .quick-nav,.section { margin-bottom: 33px; }
  .quick-card { min-height: 0; padding: 11px; }
  .quick-card b { top: 8px; right: 10px; }
  .section-title { align-items: baseline; }
  .intro { margin-top: 4px; }
  .program-hero > div { padding: 19px; }
  .program-hero img { min-height: 0; max-height: 245px; aspect-ratio: 16/9; }
  .visit { align-items: flex-start; flex-direction: column; padding: 15px; }
  .foot { justify-content: flex-start; }
}
