:root {
  --ink: #18221d;
  --muted: #66716b;
  --line: #e2e8e4;
  --paper: #ffffff;
  --wash: #f4f7f5;
  --brand: #287a56;
  --brand-dark: #185b3e;
  --accent: #e9f5ef;
  --shadow: 0 18px 50px rgb(23 53 38 / 8%);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: light;
  font-family: "Pretendard", "Noto Sans KR", "Apple SD Gothic Neo", Inter, system-ui, sans-serif;
  line-height: 1.6;
  background: var(--paper);
  color: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

.shell {
  width: min(1080px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgb(226 232 228 / 85%);
  background: rgb(255 255 255 / 92%);
  backdrop-filter: blur(16px);
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -.025em;
}

.brand-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px 10px 10px 3px;
  color: #fff;
  background: var(--brand);
  font-size: .95rem;
}

.language-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--wash);
}

.language-nav a {
  padding: 6px 12px;
  border-radius: 999px;
  color: var(--muted);
  text-decoration: none;
  font-size: .82rem;
  font-weight: 700;
}

.language-nav a[aria-current="page"] {
  color: var(--brand-dark);
  background: var(--paper);
  box-shadow: 0 2px 8px rgb(23 53 38 / 9%);
}

.hero {
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 85% 20%, rgb(53 150 104 / 12%), transparent 30%),
    linear-gradient(145deg, #f5faf7 0%, #eef6f2 100%);
}

.hero-inner {
  padding-block: 92px 84px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--brand);
  font-size: .78rem;
  font-weight: 850;
  letter-spacing: .14em;
}

.hero h1,
.article-header h1,
.empty-state h1 {
  margin: 0;
  line-height: 1.18;
  letter-spacing: -.045em;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 4.8rem);
}

.hero p:last-child {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.15rem);
}

.notice-section {
  padding-block: 72px 100px;
}

.notice-shell {
  width: min(960px, calc(100% - 40px));
}

.section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 20px;
  border-bottom: 2px solid var(--ink);
}

.section-heading h2 {
  margin: 0;
  font-size: 1.35rem;
  letter-spacing: -.025em;
}

.section-heading span {
  color: var(--muted);
  font-size: .88rem;
}

.notice-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.notice-list li {
  border-bottom: 1px solid var(--line);
}

.notice-card {
  min-height: 145px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 28px 16px;
  text-decoration: none;
  transition: background-color .18s ease, transform .18s ease;
}

.notice-card:hover {
  background: var(--wash);
}

.notice-copy {
  min-width: 0;
}

.notice-copy h3 {
  margin: 4px 0 8px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 1.12rem;
  letter-spacing: -.02em;
}

.notice-copy p {
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.new-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  color: var(--brand-dark);
  background: var(--accent);
  font-size: .7rem;
  font-weight: 800;
}

.notice-meta {
  min-width: 150px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 28px;
  color: var(--muted);
  font-size: .84rem;
}

.arrow {
  color: var(--brand);
  font-size: 1.3rem;
  transition: transform .18s ease;
}

.notice-card:hover .arrow {
  transform: translateX(4px);
}

.detail-section {
  min-height: calc(100vh - 180px);
  padding-block: 64px 110px;
  background: var(--wash);
}

.article-shell {
  width: min(860px, calc(100% - 40px));
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--muted);
  text-decoration: none;
  font-size: .9rem;
  font-weight: 700;
}

.article-header,
.article-content {
  padding-inline: clamp(24px, 6vw, 72px);
  background: var(--paper);
}

.article-header {
  padding-top: clamp(44px, 8vw, 72px);
  padding-bottom: 36px;
  border-radius: 20px 20px 0 0;
}

.article-header h1 {
  max-width: 700px;
  font-size: clamp(2rem, 5vw, 3.25rem);
}

.article-header time {
  display: block;
  margin-top: 24px;
  color: var(--muted);
  font-size: .88rem;
}

.article-content {
  padding-top: 38px;
  padding-bottom: 72px;
  border-top: 1px solid var(--line);
  border-radius: 0 0 20px 20px;
  box-shadow: var(--shadow);
  color: #344039;
  font-size: 1rem;
  line-height: 1.9;
  overflow-wrap: anywhere;
}

.article-content p {
  margin: 0 0 1.3em;
}

.translation-note {
  padding: 14px 16px;
  border-left: 4px solid var(--brand);
  border-radius: 8px;
  color: var(--brand-dark);
  background: var(--accent);
  font-weight: 700;
}

.loading,
.noscript {
  padding-block: 80px;
  color: var(--muted);
  text-align: center;
}

.language-landing {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: var(--wash);
}

.landing-languages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 32px;
}

.landing-languages a {
  padding: 10px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--paper);
  text-decoration: none;
  font-weight: 750;
}

.notice-info {
  margin: 32px 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.notice-info > div {
  display: grid;
  grid-template-columns: 120px 1fr;
}

.notice-info > div + div {
  border-top: 1px solid var(--line);
}

.notice-info dt,
.notice-info dd {
  margin: 0;
  padding: 16px 18px;
}

.notice-info dt {
  color: var(--brand-dark);
  background: var(--accent);
  font-weight: 800;
}

.article-footer {
  display: flex;
  justify-content: center;
  padding-top: 36px;
}

.list-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border-radius: 10px;
  color: #fff;
  background: var(--ink);
  text-decoration: none;
  font-weight: 750;
}

.empty-state {
  padding-block: 100px;
  text-align: center;
}

.error-code {
  margin: 0;
  color: var(--brand);
  font-weight: 850;
  letter-spacing: .12em;
}

.empty-state p:not(.error-code) {
  margin: 18px 0 30px;
  color: var(--muted);
}

.site-footer {
  color: #cbd5cf;
  background: #17231c;
}

.footer-inner {
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  font-size: .8rem;
}

.footer-brand {
  color: #fff;
  font-size: 1rem;
  font-weight: 800;
}

@media (max-width: 680px) {
  .shell,
  .notice-shell,
  .article-shell {
    width: min(100% - 28px, 1080px);
  }

  .header-inner {
    min-height: 64px;
    padding-block: 8px;
  }

  .language-nav a {
    padding: 5px 8px;
    font-size: .74rem;
  }

  .hero-inner {
    padding-block: 68px 60px;
  }

  .notice-section {
    padding-block: 50px 72px;
  }

  .notice-card {
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 4px;
  }

  .notice-meta {
    min-width: 0;
    justify-content: space-between;
  }

  .detail-section {
    padding-block: 36px 72px;
  }

  .article-header,
  .article-content {
    padding-inline: 22px;
  }

  .article-header {
    padding-top: 40px;
  }

  .article-content {
    padding-bottom: 48px;
  }

  .notice-info > div {
    grid-template-columns: 1fr;
  }

  .notice-info dd {
    padding-top: 12px;
  }

  .footer-inner {
    padding-block: 28px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}
