/* 세계문화 어울림 축제 · 교육용 가상 행사 소개 페이지 */
:root {
  --bg: #fffaf3;
  --surface: #ffffff;
  --tint: #fdf0e1;
  --ink: #2b2420;
  --ink-soft: #5e534c;
  --line: #ecdccb;
  --accent: #c8553d;
  --accent-ink: #ffffff;
  --accent-soft: #fbe3da;
  --teal: #2a7f78;
  --teal-soft: #dcefec;
  --sun: #f2b33d;
  --notice-bg: #2b2420;
  --notice-ink: #fff3c4;
  --radius: 16px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1d1916;
    --surface: #27221e;
    --tint: #231e1a;
    --ink: #f4ece4;
    --ink-soft: #c5b8ac;
    --line: #3d342d;
    --accent: #e87a5f;
    --accent-ink: #1d1916;
    --accent-soft: #3e2a23;
    --teal: #6cc3b9;
    --teal-soft: #1f3532;
    --sun: #f2b33d;
    --notice-bg: #f2b33d;
    --notice-ink: #1d1916;
  }
}
:root[data-theme="dark"] {
  --bg: #1d1916;
  --surface: #27221e;
  --tint: #231e1a;
  --ink: #f4ece4;
  --ink-soft: #c5b8ac;
  --line: #3d342d;
  --accent: #e87a5f;
  --accent-ink: #1d1916;
  --accent-soft: #3e2a23;
  --teal: #6cc3b9;
  --teal-soft: #1f3532;
  --notice-bg: #f2b33d;
  --notice-ink: #1d1916;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; }
p { margin: 0 0 .5em; }
small { font-size: .82em; color: var(--ink-soft); font-weight: 400; }

.wrap { max-width: 760px; margin: 0 auto; padding: 0 16px; }

/* 맨 위 띠 */
.notice-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--notice-bg);
  color: var(--notice-ink);
  text-align: center;
  font-weight: 700;
  font-size: 15px;
  padding: 8px 16px;
}

/* 첫 화면 */
.hero {
  position: relative;
  overflow: hidden;
  padding: 40px 0 36px;
  background: var(--tint);
  border-bottom: 1px solid var(--line);
}
.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  opacity: .35;
  pointer-events: none;
}
.hero::before { width: 220px; height: 220px; background: var(--sun); top: -90px; right: -70px; }
.hero::after  { width: 140px; height: 140px; background: var(--teal); bottom: -60px; left: -50px; opacity: .2; }
.hero .wrap { position: relative; }

.hero-host { color: var(--teal); font-weight: 700; font-size: 16px; }
.hero h1 { font-size: clamp(32px, 9vw, 48px); margin-bottom: .3em; }
.hero-lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 1.2em; }

.facts { list-style: none; margin: 0 0 24px; padding: 0; display: grid; gap: 10px; }
.facts li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
}
.fact-label { font-size: 14px; font-weight: 700; color: var(--accent); }
.fact-value { font-size: 18px; font-weight: 600; }
.fact-value small { display: block; }

.btn {
  display: block;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 700;
  font-size: 19px;
  text-decoration: none;
  padding: 16px 20px;
  border-radius: 999px;
  min-height: 56px;
}
.btn:focus-visible, .jump a:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.hero-note { text-align: center; margin-top: 10px; color: var(--ink-soft); font-size: 16px; }

/* 페이지 안 이동 */
.jump { border-bottom: 1px solid var(--line); background: var(--bg); }
.jump .wrap { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding-top: 12px; padding-bottom: 12px; }
.jump a {
  text-align: center;
  text-decoration: none;
  color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 8px;
  font-weight: 600;
  font-size: 16px;
}

/* 섹션 */
.section { padding: 40px 0; scroll-margin-top: 40px; }
.section-tint { background: var(--tint); }
.section h2 {
  font-size: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h2::before {
  content: "";
  width: 12px; height: 12px;
  border-radius: 3px;
  background: var(--accent);
  transform: rotate(45deg);
  flex: none;
}
.section-lead { color: var(--ink-soft); }
.sub-title { font-size: 21px; margin-top: 28px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 12px;
  margin-bottom: 14px;
}
.card h3 { font-size: 19px; color: var(--teal); }
.muted { color: var(--ink-soft); font-size: 16px; }

.label-pill {
  display: inline-block;
  background: var(--accent-soft);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  padding: 2px 12px;
  border-radius: 999px;
}

/* 프로그램 */
.programs { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.program {
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 6px solid var(--accent);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.program.common { border-left-color: var(--teal); }
.program h3 { font-size: 20px; margin-bottom: .2em; }
.program-time { font-weight: 800; font-size: 17px; color: var(--accent); margin-bottom: .2em; }
.program.common .program-time { color: var(--teal); }
.program-zone { font-size: 15px; color: var(--ink-soft); font-weight: 600; }
.tag {
  display: inline-block;
  margin-top: 4px;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--ink);
}
.tag-common { background: var(--teal-soft); }

/* 정해지지 않은 것 */
.todo { list-style: none; margin: 8px 0 6px; padding: 0; }
.todo li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px dashed var(--line);
}
.todo em {
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  white-space: nowrap;
}

.plain { margin: 4px 0 6px; padding-left: 1.1em; }
.plain li { margin-bottom: 8px; }
.plain strong { display: block; }

/* 활동 */
.activities { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 12px; }
.activity {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 18px 10px;
}
.activity h4 { font-size: 18px; margin-bottom: .2em; }
.activity-target { font-size: 15px; color: var(--teal); font-weight: 600; }

.contact p { margin-bottom: .3em; }

/* 바닥 */
.footer {
  background: var(--notice-bg);
  color: var(--notice-ink);
  padding: 28px 0 36px;
  font-size: 15px;
}

@media (min-width: 640px) {
  .facts { grid-template-columns: 1fr 1fr; }
  .btn { display: inline-block; min-width: 260px; }
  .hero-note { text-align: left; }
  .jump .wrap { grid-template-columns: repeat(4, 1fr); }
  .activities { grid-template-columns: repeat(3, 1fr); }
}

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