/* 야간교습소철거 — 다크 테마, 별빛 도트 배경
   Primary #1A1A2E / Accent #9D8DF1 */

:root {
  --primary: #1A1A2E;
  --card-bg: #22223F;
  --card-border: #3A3A5C;
  --accent: #9D8DF1;
  --accent-soft: #C9BFFA;
  --text-body: #E4E1F2;
  --text-muted: #B4AECB;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background-color: var(--primary);
  background-image:
    radial-gradient(1.5px 1.5px at 8% 12%, rgba(157,141,241,0.55) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 22% 68%, rgba(255,255,255,0.35) 50%, transparent 100%),
    radial-gradient(2px 2px at 38% 30%, rgba(157,141,241,0.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 54% 82%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 68% 18%, rgba(157,141,241,0.5) 50%, transparent 100%),
    radial-gradient(1px 1px at 82% 55%, rgba(255,255,255,0.3) 50%, transparent 100%),
    radial-gradient(2px 2px at 94% 88%, rgba(157,141,241,0.4) 50%, transparent 100%),
    radial-gradient(1px 1px at 12% 92%, rgba(255,255,255,0.25) 50%, transparent 100%),
    radial-gradient(1.5px 1.5px at 47% 6%, rgba(157,141,241,0.45) 50%, transparent 100%),
    radial-gradient(1px 1px at 74% 40%, rgba(255,255,255,0.3) 50%, transparent 100%);
  background-repeat: repeat;
  background-size: 340px 340px;
  color: var(--text-body);
  font-family: "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Malgun Gothic", sans-serif;
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}

h1, h2, h3 {
  font-family: "Hahmlet", "Noto Sans KR", serif;
}

a { color: var(--accent-soft); }
a:hover, a:focus { color: #FFFFFF; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ---------- Header ---------- */
.site-header {
  background: rgba(15, 15, 26, 0.85);
  border-bottom: 1px solid var(--card-border);
  position: sticky;
  top: 0;
  z-index: 10;
  backdrop-filter: blur(6px);
}

.header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.logo {
  font-family: "Hahmlet", serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #FFFFFF;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  color: var(--text-body);
  border-radius: 8px;
  position: absolute;
  right: 16px;
  top: 10px;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 14px;
  text-decoration: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
}

.site-nav a:hover,
.site-nav a:focus {
  color: #FFFFFF;
  border-color: var(--accent);
  background: rgba(157, 141, 241, 0.12);
}

/* ---------- Layout / Cards ---------- */
main {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 28px 24px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.hero-card { padding-bottom: 24px; }

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-soft);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
}

h1 {
  margin: 0 0 14px;
  color: #FFFFFF;
  font-size: clamp(1.6rem, 4vw, 2.3rem);
  line-height: 1.35;
  letter-spacing: -0.01em;
}

h2 {
  margin: 0 0 14px;
  color: #FFFFFF;
  font-size: 1.35rem;
  border-left: 4px solid var(--accent);
  padding-left: 12px;
}

h3 {
  margin: 22px 0 8px;
  color: var(--accent-soft);
  font-size: 1.05rem;
}

.card h3:first-of-type { margin-top: 4px; }

p { margin: 0 0 12px; color: var(--text-body); }
p:last-child { margin-bottom: 0; }

.lead {
  color: var(--text-muted);
  font-size: 1.02rem;
}

.hero-img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}

/* ---------- Checklist ---------- */
.check-list {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.check-list li {
  position: relative;
  padding: 12px 16px 12px 44px;
  background: rgba(157, 141, 241, 0.08);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  font-size: 0.98rem;
  color: var(--text-body);
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background:
    linear-gradient(var(--accent), var(--accent)) center / 8px 8px no-repeat;
}

/* ---------- Gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.gallery-grid figure { margin: 0; }

.gallery-grid img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid var(--card-border);
}

/* ---------- CTA ---------- */
.cta-card {
  text-align: center;
  background: linear-gradient(160deg, #24244A, #1A1A2E);
  border-color: var(--accent);
}
.cta-card h2 {
  color: #FFFFFF;
  border-left: none;
  padding-left: 0;
  justify-content: center;
}
.cta-card p {
  color: var(--text-muted);
  max-width: 60ch;
  margin-left: auto;
  margin-right: auto;
}
.cta-card a:not(.btn-outline) { color: var(--accent-soft); }

.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  min-width: 44px;
  margin-top: 16px;
  padding: 10px 30px;
  border: 2px solid var(--accent);
  border-radius: 999px;
  color: #FFFFFF;
  background: transparent;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
  transition: background 0.15s ease, color 0.15s ease;
}

.btn-outline:hover,
.btn-outline:focus {
  background: var(--accent);
  color: #1A1A2E;
  border-color: var(--accent);
}

/* ---------- Footer ---------- */
footer {
  background: #0F0F1A;
  color: #C4C0DC;
  padding: 32px 20px 40px;
  border-top: 1px solid var(--card-border);
}

footer nav {
  max-width: 900px;
  margin: 0 auto 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  justify-content: center;
}

footer nav a {
  color: #C4C0DC;
  text-decoration: none;
  font-size: 0.88rem;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
}

footer nav a:hover,
footer nav a:focus { color: #FFFFFF; }

footer address {
  max-width: 900px;
  margin: 0 auto;
  font-style: normal;
  text-align: center;
  font-size: 0.85rem;
  line-height: 1.8;
  color: #B4AECB;
  border-top: 1px solid #33334E;
  padding-top: 18px;
}

footer address a {
  color: var(--accent-soft);
}

footer p {
  text-align: center;
  margin: 14px 0 0;
  font-size: 0.78rem;
  color: #8B85A6;
}

/* ---------- Breakpoints ---------- */
@media (max-width: 1024px) {
  main { max-width: 720px; }
  .header-inner, footer nav, footer address { max-width: 720px; }
}

@media (max-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  main { padding: 16px 14px 48px; }
  .card { padding: 20px 16px; }
  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.15rem; }
  .gallery-grid { grid-template-columns: 1fr; }

  .nav-toggle { display: flex; }
  .site-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { justify-content: center; }
  .header-inner { align-items: stretch; }
  .logo { align-self: center; }
}

@media (min-width: 1280px) {
  main, .header-inner, footer nav, footer address { max-width: 980px; }
}

.related-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 12px;
}
.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 14px 16px;
  border: 1px solid var(--line, #ddd);
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--paper, #fff);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.related-card:hover,
.related-card:focus-visible {
  border-color: currentColor;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.related-card-arrow { opacity: 0.6; flex-shrink: 0; }
@media (max-width: 480px) {
  .related-cards { grid-template-columns: 1fr; }
}

