/* 강화교습소철거 — 전통·헤리티지 톤 (어스톤 팔레트, 세리프 헤드라인) */

:root {
  --paper: #f3ecdd;
  --paper-deep: #ece2cc;
  --ink: #2b2925;
  --ink-soft: #4a463f;
  --ochre: #a9743f;
  --ochre-deep: #8a5c2e;
  --pine: #33463a;
  --pine-deep: #24352b;
  --line: #c9b892;
  --card-bg: #faf6ec;
  --shadow: 0 6px 18px rgba(43, 41, 37, 0.08);
  --radius: 2px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background-color: var(--paper);
  background-image:
    repeating-linear-gradient(45deg, rgba(169, 116, 63, 0.035) 0, rgba(169, 116, 63, 0.035) 1px, transparent 1px, transparent 14px),
    repeating-linear-gradient(-45deg, rgba(51, 70, 58, 0.03) 0, rgba(51, 70, 58, 0.03) 1px, transparent 1px, transparent 14px);
  color: var(--ink);
  font-family: "Noto Sans KR", "Malgun Gothic", sans-serif;
  line-height: 1.9;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: "Noto Serif KR", "Batang", serif;
  color: var(--pine-deep);
  font-weight: 700;
  letter-spacing: -0.01em;
}

a {
  color: var(--ochre-deep);
}

/* 전통 문양풍 얇은 구분선 */
.pattern-divider,
.hero-divider {
  height: 14px;
  margin: 28px auto 0;
  max-width: 720px;
  background-image: repeating-linear-gradient(
    90deg,
    var(--ochre) 0,
    var(--ochre) 6px,
    transparent 6px,
    transparent 12px,
    var(--pine) 12px,
    var(--pine) 18px,
    transparent 18px,
    transparent 24px
  );
  background-size: 24px 2px;
  background-repeat: repeat-x;
  background-position: center;
  opacity: 0.55;
}

/* 헤더 */
.site-header {
  background: var(--pine-deep);
  border-bottom: 3px solid var(--ochre);
}

.header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.brand {
  font-family: "Noto Serif KR", serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--paper);
  text-decoration: none;
  letter-spacing: 0.04em;
}

.main-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.main-nav a {
  color: #e7dcc2;
  text-decoration: none;
  font-size: 0.92rem;
  padding: 6px 2px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.main-nav a:hover {
  color: var(--paper);
  border-bottom: 1px solid var(--ochre);
}

/* 히어로 */
.hero {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 24px 12px;
  text-align: center;
}

.eyebrow {
  color: var(--ochre-deep);
  font-size: 0.92rem;
  letter-spacing: 0.18em;
  margin: 0 0 10px;
  font-weight: 500;
}

.hero h1 {
  font-size: 2.4rem;
  margin: 0 0 20px;
  line-height: 1.4;
}

.hero .lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 680px;
  margin: 0 auto;
  line-height: 2;
}

/* 본문 컨테이너 */
.content-stack {
  max-width: 880px;
  margin: 0 auto;
  padding: 12px 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 40px;
  position: relative;
}

.card::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  border: 1px solid rgba(169, 116, 63, 0.25);
  pointer-events: none;
}

.card h2 {
  font-size: 1.45rem;
  margin: 0 0 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
  position: relative;
}

.card h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 56px;
  height: 3px;
  background: var(--ochre);
}

.card h3 {
  font-size: 1.1rem;
  color: var(--pine-deep);
  margin: 28px 0 8px;
}

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

.card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
}

/* 표 */
table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 8px;
  font-size: 0.95rem;
}

caption {
  text-align: left;
  font-weight: 500;
  color: var(--ochre-deep);
  margin-bottom: 10px;
}

th, td {
  border: 1px solid var(--line);
  padding: 12px 14px;
  text-align: left;
  color: var(--ink-soft);
}

thead th {
  background: var(--pine-deep);
  color: var(--paper);
  font-weight: 500;
}

tbody tr:nth-child(even) {
  background: var(--paper-deep);
}

/* 목록 */
.checklist,
.procedure {
  margin: 8px 0 4px;
  padding-left: 0;
  list-style: none;
}

.checklist li,
.procedure li {
  padding: 10px 0 10px 30px;
  border-bottom: 1px dashed var(--line);
  position: relative;
  color: var(--ink-soft);
}

.checklist li:last-child,
.procedure li:last-child {
  border-bottom: none;
}

.checklist li::before {
  content: "◆";
  position: absolute;
  left: 0;
  top: 10px;
  color: var(--ochre);
  font-size: 0.75rem;
}

.procedure {
  counter-reset: step;
}

.procedure li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--pine-deep);
  color: var(--paper);
  font-size: 0.72rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 갤러리 */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  justify-items: center;
  align-items: start;
}

.gallery-grid picture {
  display: block;
  width: 100%;
  border: 1px solid var(--line);
  padding: 6px;
  background: var(--paper-deep);
}

.gallery-grid img {
  width: 100%;
  height: auto;
  display: block;
}

/* 관련 페이지 카드 */
.related-cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-top: 8px;
}

.related-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  min-height: 44px;
  background: var(--paper-deep);
  border: 1px solid var(--line);
  border-left: 4px solid var(--ochre);
  color: var(--pine-deep);
  text-decoration: none;
  font-weight: 500;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.related-card:hover {
  background: #f0e5cc;
  border-left-color: var(--pine);
}

.related-card-arrow {
  color: var(--ochre-deep);
}

/* CTA */
.cta-section {
  text-align: center;
  background: var(--pine-deep);
  color: var(--paper);
  border-radius: var(--radius);
  padding: 44px 32px;
  background-image: repeating-linear-gradient(
    90deg,
    rgba(169, 116, 63, 0.25) 0,
    rgba(169, 116, 63, 0.25) 2px,
    transparent 2px,
    transparent 10px
  );
  background-position: top;
  background-repeat: repeat-x;
  background-size: 100% 4px;
  background-color: var(--pine-deep);
}

.cta-section h2 {
  color: var(--paper);
  border: none;
  padding: 0;
  margin: 0 0 12px;
}

.cta-section h2::after {
  display: none;
}

.cta-section p {
  color: #e7dcc2;
  max-width: 560px;
  margin: 0 auto 22px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 32px;
  background: var(--ochre);
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  border-radius: var(--radius);
  letter-spacing: 0.02em;
}

.cta-button:hover {
  background: #bd8248;
}

/* 푸터 */
footer {
  background: var(--ink);
  color: #cfc6b3;
  padding: 22px 24px;
  text-align: center;
  font-size: 0.82rem;
  line-height: 1.7;
}

footer address {
  font-style: normal;
  max-width: 900px;
  margin: 0 auto;
}

footer a {
  color: #e7dcc2;
}

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

  .related-cards {
    grid-template-columns: 1fr;
  }

  .card {
    padding: 28px 22px;
  }

  .hero h1 {
    font-size: 1.9rem;
  }

  .content-stack {
    padding: 12px 16px 48px;
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding: 40px 16px 8px;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero .lead {
    font-size: 0.98rem;
  }

  .header-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav {
    gap: 14px;
  }

  .card {
    padding: 22px 18px;
  }

  .card h2 {
    font-size: 1.25rem;
  }

  .cta-section {
    padding: 32px 20px;
  }
}
