/* ==========================================================================
   사암(TSS) 정적 사이트 공통 디자인 시스템
   - 외부 폰트/라이브러리 없음. 시스템 서체만 사용.
   - 종이 느낌 바탕 + 먹색 텍스트 + 강조색 1개(짙은 녹색).
   - 헤어라인(1px 선)과 12칸 격자로 페이지 간 규칙을 통일.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. 토큰(변수)
   -------------------------------------------------------------------------- */
:root {
  /* 색 */
  --paper: #f6f3ec;          /* 바탕: 미색 종이 */
  --paper-2: #efeae0;        /* 살짝 어두운 종이(대체 배경) */
  --ink: #1f1d1a;            /* 먹색 본문 */
  --ink-2: #4a4641;          /* 보조 텍스트 */
  --ink-3: #66615a;           /* 라벨·캡션 (paper 위 5.5:1, paper-2 위 5.1:1) */
  --line: #d9d3c6;           /* 헤어라인 */
  --line-strong: #b9b2a3;
  --accent: #2f5b3f;         /* 강조: 짙은 녹색 */
  --accent-ink: #244a33;     /* 강조 hover */
  --accent-soft: #e6ece5;    /* 강조 옅은 배경 */
  --dark: #221f1b;           /* 어두운 섹션 배경 */
  --dark-text: #f1ede4;
  --dark-line: rgba(241, 237, 228, 0.22);
  --focus: #2f5b3f;

  /* 서체 */
  --font-serif: "Apple Myungjo", "AppleMyungjo", "Nanum Myeongjo", "NanumMyeongjo", "Batang", "BatangChe", "Georgia", "Times New Roman", serif;
  --font-sans: "Apple SD Gothic Neo", "Malgun Gothic", "맑은 고딕", "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;

  /* 크기 */
  --text-xs: 0.75rem;   /* 12 */
  --text-sm: 0.875rem;  /* 14 */
  --text-md: 1rem;      /* 16 */
  --text-lg: 1.125rem;  /* 18 */
  --text-xl: 1.375rem;  /* 22 */
  --text-2xl: 1.75rem;  /* 28 */
  --text-3xl: 2.25rem;  /* 36 */
  --text-4xl: 3rem;     /* 48 */

  /* 간격 */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-7: 3rem;
  --space-8: 4rem;
  --space-9: 6rem;

  /* 레이아웃 */
  --container: 1200px;
  --container-narrow: 760px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  --header-h: 64px;

  /* 기타 */
  --radius: 2px;
  --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. 리셋·기본
   -------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--text-md);
  line-height: 1.75;
  letter-spacing: -0.01em;
  word-break: keep-all;
  overflow-wrap: anywhere;
  -webkit-font-smoothing: antialiased;
}

img, picture, video, svg { display: block; max-width: 100%; height: auto; }

a { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: var(--accent); }

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

button { font: inherit; color: inherit; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: -0.005em;
  margin: 0 0 var(--space-4);
}
h1 { font-size: clamp(var(--text-3xl), 4vw, var(--text-4xl)); }
h2 { font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl)); }
h3 { font-size: var(--text-xl); }
h4 { font-size: var(--text-lg); }

p { margin: 0 0 var(--space-4); }
ul, ol { margin: 0 0 var(--space-4); padding-left: 1.25em; }
hr { border: 0; border-top: 1px solid var(--line); margin: var(--space-6) 0; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute; left: var(--space-4); top: -100px;
  padding: var(--space-2) var(--space-4);
  background: var(--ink); color: var(--paper);
  z-index: 1000; text-decoration: none;
}
.skip-link:focus { top: var(--space-2); }

/* --------------------------------------------------------------------------
   3. 컨테이너·격자
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5) var(--space-5);
}
.col-4  { grid-column: span 4; }
.col-5  { grid-column: span 5; }
.col-6  { grid-column: span 6; }
.col-7  { grid-column: span 7; }
.col-8  { grid-column: span 8; }
.col-12 { grid-column: span 12; }

@media (max-width: 767px) {
  .grid > [class*="col-"] { grid-column: span 12; }
}

/* --------------------------------------------------------------------------
   4. 타이포 유틸
   -------------------------------------------------------------------------- */
.eyebrow {
  display: block;
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: var(--space-3);
}
.lead {
  font-size: var(--text-lg);
  color: var(--ink-2);
  line-height: 1.8;
}
.serif { font-family: var(--font-serif); }
.muted { color: var(--ink-3); }
.small { font-size: var(--text-sm); }
.text-center { text-align: center; }
.hanja {
  font-family: var(--font-serif);
  color: var(--accent);
}

/* --------------------------------------------------------------------------
   5. 헤더
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(246, 243, 236, 0.94);
  backdrop-filter: saturate(1.2) blur(6px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-5);
}
.brand {
  display: inline-flex; align-items: baseline; gap: var(--space-2);
  text-decoration: none;
  font-family: var(--font-serif);
  font-size: var(--text-xl);
  line-height: 1;
  color: var(--ink);
}
.brand:hover { color: var(--ink); }
.brand__hanja { color: var(--accent); }
.brand__sub {
  font-family: var(--font-sans);
  font-size: var(--text-xs);
  letter-spacing: 0.12em;
  color: var(--ink-3);
}

/* 메뉴 토글: JS 없이도 동작하도록 체크박스 사용. 데스크톱에서는 숨김 */
.nav-toggle-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.nav-toggle {
  display: none;
  align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: transparent;
  cursor: pointer;
  font-size: var(--text-sm);
  user-select: none;
}
.nav-toggle-input:focus-visible + .nav-toggle { outline: 2px solid var(--focus); outline-offset: 3px; }
.nav-toggle__bar {
  display: inline-block; width: 18px; height: 12px;
  background:
    linear-gradient(var(--ink) 0 0) top / 100% 1.5px no-repeat,
    linear-gradient(var(--ink) 0 0) center / 100% 1.5px no-repeat,
    linear-gradient(var(--ink) 0 0) bottom / 100% 1.5px no-repeat;
}

.site-nav { font-size: var(--text-sm); }
.site-nav__list {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: center; gap: var(--space-5);
}
.site-nav__item { position: relative; }
.site-nav__link {
  display: inline-block; padding: var(--space-2) 0;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.site-nav__link:hover, .site-nav__link[aria-current="page"] {
  color: var(--ink);
  border-bottom-color: var(--accent);
}
.site-nav__sub {
  list-style: none; margin: 0; padding: var(--space-2) 0;
  position: absolute; left: calc(-1 * var(--space-4)); top: 100%;
  min-width: 180px;
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(31, 29, 26, 0.08);
  opacity: 0; visibility: hidden; transform: translateY(4px);
  transition: opacity .15s var(--ease), transform .15s var(--ease), visibility 0s .15s;
}
.site-nav__item:hover > .site-nav__sub,
.site-nav__item:focus-within > .site-nav__sub {
  opacity: 1; visibility: visible; transform: translateY(0);
  transition-delay: 0s;
}
.site-nav__sub a {
  display: block; padding: var(--space-2) var(--space-4);
  text-decoration: none;
}
.site-nav__sub a:hover { background: var(--accent-soft); color: var(--ink); }
.site-nav__caret { font-size: 0.7em; margin-left: 0.3em; color: var(--ink-3); }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    display: none;
    padding: var(--space-3) var(--gutter) var(--space-5);
  }
  .nav-toggle-input:checked ~ .site-nav { display: block; }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__item { border-bottom: 1px solid var(--line); }
  .site-nav__link { display: block; padding: var(--space-3) 0; font-size: var(--text-md); }
  .site-nav__sub {
    position: static; opacity: 1; visibility: visible; transform: none;
    border: 0; box-shadow: none; background: transparent;
    padding: 0 0 var(--space-3) var(--space-4);
  }
  .site-nav__sub a { padding: var(--space-2) 0; color: var(--ink-2); }
  .site-nav__caret { display: none; }
}

/* --------------------------------------------------------------------------
   6. 섹션 규칙
   -------------------------------------------------------------------------- */
.section { padding-block: clamp(var(--space-7), 8vw, var(--space-9)); }
.section--tight { padding-block: var(--space-6); }
.section--alt { background: var(--paper-2); }
.section--dark { background: var(--dark); color: var(--dark-text); }
.section--dark a:hover { color: var(--dark-text); }
.section--dark .eyebrow { color: #9fc2a8; }
.section--dark .muted { color: rgba(241, 237, 228, 0.7); }
.section + .section:not(.section--alt):not(.section--dark) { border-top: 1px solid var(--line); }

.section__head {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
  align-items: end;
  margin-bottom: clamp(var(--space-6), 5vw, var(--space-8));
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.section--dark .section__head { border-bottom-color: var(--dark-line); }
.section__head > .section__title { grid-column: span 7; margin: 0; }
.section__head > .section__aside { grid-column: 9 / span 4; align-self: end; color: var(--ink-3); font-size: var(--text-sm); }
@media (max-width: 767px) {
  .section__head > .section__title, .section__head > .section__aside { grid-column: span 12; }
}

/* 문서형 페이지 상단(소개·약사·헌법 등) */
.page-head { padding-block: clamp(var(--space-7), 8vw, var(--space-8)) var(--space-6); border-bottom: 1px solid var(--line); }
.page-head__title { margin-bottom: var(--space-3); }
.page-head__desc { max-width: 40em; color: var(--ink-2); }

/* --------------------------------------------------------------------------
   7. 버튼
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  min-height: 46px;
  padding: 0 var(--space-5);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink); color: var(--paper);
  font-family: var(--font-sans);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: background .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
}
.btn:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--ink); color: var(--paper); }
.btn--light { background: var(--paper); border-color: var(--paper); color: var(--ink); }
.btn--light:hover { background: var(--dark-text); border-color: var(--dark-text); color: var(--ink); }
.btn--outline-light { background: transparent; border-color: rgba(241,237,228,0.6); color: var(--dark-text); }
.btn--outline-light:hover { background: var(--dark-text); border-color: var(--dark-text); color: var(--ink); }
.btn--lg { min-height: 52px; padding-inline: var(--space-6); font-size: var(--text-md); }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--space-3); }

.text-link {
  font-size: var(--text-sm); font-weight: 600;
  text-decoration: none; border-bottom: 1px solid var(--line-strong);
}
.text-link:hover { border-bottom-color: var(--accent); }

/* --------------------------------------------------------------------------
   8. 히어로(첫 화면)
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: clamp(520px, 78vh, 820px);
  display: flex; align-items: flex-end;
  color: var(--dark-text);
  background: var(--dark);
  isolation: isolate;
}
.hero__media { position: absolute; inset: 0; z-index: -2; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.hero__shade {
  position: absolute; inset: 0; z-index: 1;
  background:
    linear-gradient(to top, rgba(20, 18, 15, 0.94) 0%, rgba(20, 18, 15, 0.8) 32%, rgba(20, 18, 15, 0.4) 62%, rgba(20, 18, 15, 0.25) 100%);
}
.hero__inner { width: 100%; padding-block: clamp(var(--space-7), 8vw, var(--space-9)); }
.hero__eyebrow { color: rgba(241, 237, 228, 0.8); }
.hero__title {
  font-size: clamp(2.25rem, 4.6vw, 3.5rem);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  margin-bottom: var(--space-4);
  max-width: 14em;
}
.hero__sub {
  font-size: var(--text-lg);
  color: rgba(241, 237, 228, 0.86);
  margin-bottom: var(--space-6);
}
.hero__caption {
  margin-top: var(--space-6);
  font-size: var(--text-xs);
  letter-spacing: 0.08em;
  color: rgba(241, 237, 228, 0.78);
}

/* --------------------------------------------------------------------------
   9. 통계
   -------------------------------------------------------------------------- */
.stats {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.stats__item {
  padding: var(--space-6) var(--space-5);
  border-left: 1px solid var(--line);
}
.stats__item:first-child { border-left: 0; padding-left: 0; }
.stats__value {
  display: block;
  font-family: var(--font-serif);
  font-size: clamp(var(--text-2xl), 3vw, var(--text-3xl));
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: var(--space-2);
}
.stats__label {
  display: block;
  font-size: var(--text-sm);
  letter-spacing: 0.04em;
  color: var(--ink-3);
}
@media (max-width: 767px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats__item { padding: var(--space-5) var(--space-4); border-left: 0; border-top: 1px solid var(--line); }
  .stats__item:nth-child(-n+2) { border-top: 0; }
  .stats__item:nth-child(even) { border-left: 1px solid var(--line); }
  .stats__item:nth-child(odd) { padding-left: 0; }
}

/* --------------------------------------------------------------------------
   10. 사진 + 글 (잡지형 나란히 배치)
   -------------------------------------------------------------------------- */
.feature { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); align-items: start; }
.feature__media { grid-column: span 6; }
.feature__body { grid-column: 8 / span 5; }
.feature--reverse .feature__media { grid-column: 7 / span 6; order: 2; }
.feature--reverse .feature__body { grid-column: 1 / span 5; order: 1; }
.feature__body .lead { margin-bottom: var(--space-5); }
@media (max-width: 767px) {
  .feature__media, .feature__body,
  .feature--reverse .feature__media, .feature--reverse .feature__body { grid-column: span 12; order: initial; }
}

.figure { margin: 0; }
.figure img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--paper-2); }
.figure--portrait img { aspect-ratio: 2 / 3; }
.figure--wide img { aspect-ratio: 16 / 9; }
.figure--natural img { aspect-ratio: auto; }
.figure__caption {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

/* --------------------------------------------------------------------------
   11. 카드·목록
   -------------------------------------------------------------------------- */
.card {
  border-top: 1px solid var(--ink);
  padding-top: var(--space-4);
}
.card__title { font-size: var(--text-lg); margin-bottom: var(--space-2); }
.card__meta { font-size: var(--text-xs); color: var(--ink-3); letter-spacing: 0.04em; margin-bottom: var(--space-2); }
.card p:last-child { margin-bottom: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--space-6) var(--space-5); }

/* 글 목록 (공지사항·활동 소식) */
.post-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.post-list__item { border-bottom: 1px solid var(--line); }
.post-list__link {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-4);
  padding: var(--space-3) 0;
  text-decoration: none;
}
.post-list__link:hover .post-list__title { color: var(--accent); }
.post-list__title { font-size: var(--text-md); }
.post-list__date { font-size: var(--text-xs); color: var(--ink-3); white-space: nowrap; font-variant-numeric: tabular-nums; }
.post-list__empty {
  padding: var(--space-6) 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--text-sm); color: var(--ink-3);
}

.news { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-7) var(--space-5); }
.news__col { grid-column: span 6; }
.news__col-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-3); }
.news__col-head h3 { margin: 0; }
@media (max-width: 767px) { .news__col { grid-column: span 12; } }

/* 정의 목록(문의 정보·일정 등) */
.dl { display: grid; grid-template-columns: minmax(96px, auto) 1fr; gap: var(--space-2) var(--space-5); margin: 0 0 var(--space-4); }
.dl dt { font-size: var(--text-sm); color: var(--ink-3); }
.dl dd { margin: 0; }

/* --------------------------------------------------------------------------
   12. 갤러리
   -------------------------------------------------------------------------- */
.gallery {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--space-5);
}
.gallery__item { grid-column: span 4; }
.gallery__item--wide { grid-column: span 8; }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--tall .figure, .gallery__item--fill .figure { height: 100%; display: flex; flex-direction: column; }
.gallery__item--tall .figure img, .gallery__item--fill .figure img { aspect-ratio: auto; flex: 1 1 auto; min-height: 0; height: 100%; }
.gallery__item--wide .figure img { aspect-ratio: 16 / 9; }
@media (max-width: 767px) {
  .gallery { gap: var(--space-4); }
  .gallery__item, .gallery__item--wide { grid-column: span 6; }
  .gallery__item--tall { grid-row: auto; }
  .gallery__item--tall .figure, .gallery__item--fill .figure { display: block; height: auto; }
  .gallery__item--tall .figure img, .gallery__item--fill .figure img { aspect-ratio: 3 / 2; height: auto; }
  .gallery__item--wide .figure img { aspect-ratio: 3 / 2; }
}
@media (max-width: 479px) {
  .gallery__item, .gallery__item--wide { grid-column: span 12; }
}

/* --------------------------------------------------------------------------
   13. 마무리 안내(CTA)
   -------------------------------------------------------------------------- */
.cta { text-align: left; }
.cta__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); align-items: center; }
.cta__body { grid-column: span 7; }
.cta__actions { grid-column: 9 / span 4; }
.cta__title { color: var(--dark-text); margin-bottom: var(--space-4); }
.cta__desc { color: rgba(241, 237, 228, 0.78); font-size: var(--text-lg); max-width: 30em; }
@media (max-width: 767px) {
  .cta__body, .cta__actions { grid-column: span 12; }
}

/* --------------------------------------------------------------------------
   14. 문서형 본문(.prose): 소개·인사말·약사·헌법·FAQ 등
   -------------------------------------------------------------------------- */
.prose { max-width: var(--container-narrow); font-size: var(--text-md); line-height: 1.9; }
.prose > * + * { margin-top: var(--space-4); }
.prose h2 { margin-top: var(--space-8); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.prose h3 { margin-top: var(--space-6); }
.prose p { margin: 0; }
.prose blockquote {
  margin: var(--space-6) 0;
  padding-left: var(--space-5);
  border-left: 2px solid var(--accent);
  font-family: var(--font-serif);
  font-size: var(--text-lg);
  color: var(--ink-2);
}
.prose blockquote p { margin: 0; }
.prose figure { margin: var(--space-6) 0; }
.prose table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.prose th, .prose td { text-align: left; padding: var(--space-2) var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--ink-3); font-weight: 600; }
.prose ol.legal { padding-left: 1.6em; }
.prose ol.legal li + li { margin-top: var(--space-2); }

/* 접이식(FAQ 등): details 기반, JS 불필요 */
.accordion { border-top: 1px solid var(--ink); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__summary {
  list-style: none;
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-4);
  padding: var(--space-4) 0;
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: var(--text-lg);
}
.accordion__summary::-webkit-details-marker { display: none; }
.accordion__summary::after { content: "+"; color: var(--ink-3); font-family: var(--font-sans); }
.accordion__item[open] .accordion__summary::after { content: "−"; }
.accordion__body { padding: 0 0 var(--space-5); color: var(--ink-2); }
.accordion__body p:last-child { margin-bottom: 0; }

/* 연표(사암약사 등) */
.timeline { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ink); }
.timeline__item { display: grid; grid-template-columns: 96px 1fr; gap: var(--space-5); padding: var(--space-4) 0; border-bottom: 1px solid var(--line); }
.timeline__year { font-family: var(--font-serif); font-size: var(--text-lg); color: var(--accent); }
.timeline__body p:last-child { margin-bottom: 0; }

/* 안내 박스 */
.note {
  padding: var(--space-4) var(--space-5);
  background: var(--accent-soft);
  border-left: 2px solid var(--accent);
  font-size: var(--text-sm);
}
.note p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------------
   15. 푸터
   -------------------------------------------------------------------------- */
.site-footer {
  border-top: 1px solid var(--line-strong);
  padding-block: var(--space-7) var(--space-6);
  font-size: var(--text-sm);
  color: var(--ink-2);
}
.site-footer__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: var(--space-6) var(--space-5); }
.site-footer__brand { grid-column: span 5; }
.site-footer__brand .brand { font-size: var(--text-2xl); margin-bottom: var(--space-3); }
.site-footer__motto { font-family: var(--font-serif); font-size: var(--text-lg); color: var(--ink); margin-bottom: var(--space-2); }
.site-footer__nav { grid-column: 7 / span 6; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); }
.site-footer__nav h4 { font-family: var(--font-sans); font-size: var(--text-xs); letter-spacing: 0.12em; color: var(--ink-3); text-transform: uppercase; margin-bottom: var(--space-3); }
.site-footer__nav ul { list-style: none; margin: 0; padding: 0; }
.site-footer__nav li + li { margin-top: var(--space-2); }
.site-footer__nav a { text-decoration: none; }
.site-footer__bottom {
  margin-top: var(--space-7); padding-top: var(--space-4);
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-3);
  font-size: var(--text-xs); color: var(--ink-3);
}
@media (max-width: 767px) {
  .site-footer__brand, .site-footer__nav { grid-column: span 12; }
  .site-footer__nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* --------------------------------------------------------------------------
   16. 접근성·환경
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-header, .site-footer, .skip-link, .nav-toggle, .hero__shade { display: none !important; }
  body { background: #fff; color: #000; }
}
