:root {
  --history-blue: #0a4f98;
  --history-blue-deep: #08376c;
  --history-bg: #f3f7fb;
  --history-text: #17324d;
  --history-muted: #57708a;
  --history-line: #d7e3ef;
  --history-shadow: 0 18px 40px rgba(11, 39, 77, 0.1);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', 'Pretendard', sans-serif;
  color: var(--history-text);
  background: linear-gradient(180deg, #eef4fb 0%, #f9fbfe 100%);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.history-hero {
  background: linear-gradient(135deg, rgba(6, 48, 97, 0.94), rgba(12, 87, 166, 0.88)), url('../images/church-bg.jpg') center/cover;
  color: #fff;
}

.history-hero__inner {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 82px 0 68px;
}

.history-eyebrow {
  margin: 0 0 10px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.82;
}

.history-hero h1 {
  margin: 0;
  font-size: clamp(46px, 8vw, 82px);
  font-weight: 900;
  letter-spacing: -0.04em;
}

.history-lead {
  max-width: 640px;
  margin: 16px 0 0;
  font-size: clamp(17px, 1.9vw, 21px);
  line-height: 1.9;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.96;
}

.history-home-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 26px;
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.history-home-link:hover {
  background: rgba(255, 255, 255, 0.22);
}

.history-page {
  width: min(980px, calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 72px;
}

.history-section {
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(215, 227, 239, 0.92);
  border-radius: 28px;
  box-shadow: var(--history-shadow);
  padding: 34px;
}

.history-section + .history-section {
  margin-top: 28px;
}

.section-heading h2 {
  margin: 0 0 10px;
  font-size: clamp(28px, 3vw, 38px);
  line-height: 1.3;
  letter-spacing: -0.025em;
}

.section-heading p {
  margin: 0;
  font-size: 1.02rem;
  line-height: 1.9;
  color: var(--history-muted);
}

.history-year-group + .history-year-group {
  margin-top: 36px;
}

.history-year-heading {
  display: inline-flex;
  align-items: center;
  margin: 0 0 18px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #eef4fb;
  border: 1px solid rgba(10, 79, 152, 0.12);
  color: var(--history-blue);
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.timeline-list {
  display: grid;
  gap: 0;
  margin-top: 0;
}

.timeline-item {
  display: grid;
  grid-template-columns: 138px 1fr;
  gap: 22px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(215, 227, 239, 0.85);
}

.timeline-date {
  font-size: 1rem;
  font-weight: 800;
  color: var(--history-blue);
  line-height: 1.75;
  letter-spacing: -0.01em;
}

.timeline-content {
  padding: 0;
  font-size: 1.04rem;
  line-height: 1.95;
  font-weight: 500;
  letter-spacing: -0.012em;
  word-break: keep-all;
  color: var(--history-text);
}

.timeline-content p {
  margin: 0;
}

.history-event-description {
  margin-top: 8px;
  color: var(--history-muted);
  font-size: 0.96rem;
  line-height: 1.8;
}

.history-archive-year-block + .history-archive-year-block {
  margin-top: 28px;
}

.timeline-bullets {
  margin: 0;
  padding-left: 1.15em;
}

.timeline-bullets li + li {
  margin-top: 6px;
}

@media (max-width: 768px) {
  .history-hero__inner,
  .history-page {
    width: min(100%, calc(100% - 24px));
  }

  .history-hero__inner {
    padding: 66px 0 50px;
  }

  .history-section {
    padding: 22px;
    border-radius: 22px;
  }

  .section-heading p,
  .timeline-content {
    font-size: 0.98rem;
  }

  .history-year-group + .history-year-group {
    margin-top: 28px;
  }

  .timeline-item {
    grid-template-columns: 106px 1fr;
    gap: 16px;
    padding: 16px 0;
  }
}

@media (max-width: 560px) {
  .history-year-heading {
    margin-bottom: 14px;
    font-size: 0.92rem;
  }

  .timeline-item {
    grid-template-columns: 1fr;
    gap: 6px;
    padding: 14px 0;
  }

  .timeline-date {
    font-size: 0.95rem;
  }

  .timeline-content {
    padding: 0;
  }
}
