/* Archimetric - 공용 스타일 (빌드 도구 없음, 순수 CSS) */

:root {
  --bg: #05121a;
  --surface: #0b1f2b;
  --line: #17313f;
  --text: #e8f0f4;      /* 배경 대비 16.4:1 */
  --muted: #9db2bf;     /* 배경 대비 8.6:1 */
  --accent: #2dd4bf;    /* 배경 대비 10.2:1 */
  --gutter: 16px;
  --max: 1080px;
  --font: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont,
    "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  word-break: keep-all;
  overflow-wrap: break-word;
}

img { display: block; max-width: 100%; height: auto; }

a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: #6ee7d7; }

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

.skip-link {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  z-index: 100;
  padding: 8px 14px;
  background: var(--accent);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 8px; color: var(--bg); }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ---------- 상단 바 ---------- */
.site-header {
  background: rgba(5, 18, 26, 0.94);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  column-gap: 24px;
  row-gap: 4px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.wordmark {
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-decoration: none;
}
.wordmark:hover { color: var(--accent); }

.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-nav a {
  display: inline-block;
  padding: 8px 0;
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}
.site-nav a:hover { color: var(--text); }
.site-nav a.nav-notice {
  color: var(--accent);
  font-weight: 600;
}
.site-nav a[aria-current="page"] {
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

@media (min-width: 640px) {
  .site-header { position: sticky; top: 0; z-index: 50; }
  .site-header .wrap { padding-top: 14px; padding-bottom: 14px; }
  .wordmark { font-size: 16px; }
  .site-nav ul { gap: 4px 28px; }
  .site-nav a { font-size: 15px; }
}

/* ---------- 히어로 ---------- */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 460px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--bg);
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(5, 18, 26, 0.55), rgba(5, 18, 26, 0.82));
}
.hero .wrap { padding-top: 56px; padding-bottom: 56px; }
.hero h1 {
  margin: 0 0 16px;
  font-size: 32px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
}
.hero h1 span { color: var(--accent); }
.hero p {
  margin: 0;
  max-width: 30em;
  color: var(--text);
  font-size: 16px;
}
.hero .cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.btn {
  display: inline-block;
  padding: 11px 20px;
  border: 1px solid var(--accent);
  border-radius: 4px;
  color: var(--accent);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}
.btn:hover { background: rgba(45, 212, 191, 0.12); color: var(--accent); }
.btn-solid { background: var(--accent); color: var(--bg); }
.btn-solid:hover { background: #6ee7d7; border-color: #6ee7d7; color: var(--bg); }

@media (min-width: 720px) {
  .hero { min-height: 600px; }
  .hero::after {
    background: linear-gradient(90deg, rgba(5, 18, 26, 0.9) 0%, rgba(5, 18, 26, 0.55) 42%, rgba(5, 18, 26, 0) 70%);
  }
  .hero-bg { object-position: center; }
  .hero h1 { font-size: 48px; max-width: 12em; }
  .hero p { font-size: 18px; }
}

/* ---------- 섹션 공통 ---------- */
.section { padding: 56px 0; }
.section + .section { border-top: 1px solid var(--line); }
.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.section h2 {
  margin: 0 0 20px;
  font-size: 24px;
  line-height: 1.35;
  letter-spacing: -0.01em;
}
.lead { margin: 0 0 14px; max-width: 40em; color: var(--text); }
.lead:last-child { margin-bottom: 0; }
.muted { color: var(--muted); }

@media (min-width: 720px) {
  .section { padding: 80px 0; }
  .section h2 { font-size: 30px; }
}

/* ---------- 사업 영역 카드 ---------- */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.card {
  padding: 24px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 4px;
}
.card .num {
  display: block;
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.18em;
}
.card h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

@media (min-width: 640px) {
  .cards { grid-template-columns: repeat(2, 1fr); gap: 20px; }
  .card { padding: 28px 24px; }
}

/* ---------- 공고 박스 (첫 화면 하단) ---------- */
.notice-box {
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
}
.notice-box p { margin: 0 0 12px; }
.notice-box ul { margin: 0 0 12px; padding-left: 20px; }
.notice-box .all { margin: 0; font-weight: 600; }

/* ---------- 공고 페이지 ---------- */
.page-title { padding: 48px 0 8px; }
.page-title h1 { margin: 0 0 16px; font-size: 30px; line-height: 1.3; }
.notice-guide {
  margin: 0;
  padding: 16px 18px;
  max-width: 46em;
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  color: var(--text);
}
.notice-list { padding: 32px 0 72px; }
.notice-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.notice-table caption {
  margin-bottom: 12px;
  text-align: left;
  font-size: 18px;
  font-weight: 700;
}
.notice-table th,
.notice-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.notice-table thead th {
  border-top: 2px solid var(--accent);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}
.notice-table .empty { padding: 40px 12px; text-align: center; color: var(--muted); }
.notice-table details summary { cursor: pointer; }
.notice-table details p { margin: 8px 0 0; color: var(--muted); }

/* 좁은 화면: 표를 카드형으로 풀어 가로 스크롤 방지 */
@media (max-width: 639px) {
  .notice-table, .notice-table caption, .notice-table tbody, .notice-table tr, .notice-table td { display: block; }
  .notice-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }
  .notice-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .notice-table td { padding: 4px 0; border: 0; }
  .notice-table td[data-label]::before {
    content: attr(data-label) "  ";
    color: var(--muted);
    font-size: 13px;
  }
  .notice-table td.empty { padding: 32px 0; }
}

@media (min-width: 720px) {
  .page-title { padding-top: 72px; }
  .page-title h1 { font-size: 40px; }
}

/* ---------- 푸터 ---------- */
.site-footer {
  padding: 32px 0 40px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
.site-footer p { margin: 0 0 4px; }
.site-footer .corp { color: var(--text); font-weight: 600; }

/* 움직임 줄이기 */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
