@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

/* ─── Reset & Base ─── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: #000;
  color: #fff;
}

body {
  font-family: 'Noto Sans KR', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  background: #000;
  color: #fff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

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

/* ─── Announce Bar ─── */
.announce-bar {
  background: #fff;
  color: #000;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  padding: 0.45rem 1rem;
  position: relative;
  z-index: 100;
}

/* ─── Aside Nav ─── */
.site-aside-nav {
  position: sticky;
  top: 0;
  z-index: 90;
  background: #000;
  border-bottom: 1px solid #fff;
}

.site-aside-nav nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1.5rem;
  min-height: 56px;
}

.nav-left,
.nav-right {
  display: flex;
  align-items: center;
  gap: 0;
  flex: 1;
}

.nav-right {
  justify-content: flex-end;
}

.nav-left li a,
.nav-right li a {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.75rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  white-space: nowrap;
  min-height: 56px;
  transition: color 0.2s, background 0.2s;
  color: #aaa;
}

.nav-left li a:hover,
.nav-right li a:hover {
  color: #fff;
  background: rgba(255,255,255,0.06);
}

.nav-left li a span,
.nav-right li a span {
  font-size: 0.78rem;
}

.brand-center {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.5rem;
  min-height: 56px;
  transition: opacity 0.2s;
}

.brand-center:hover {
  opacity: 0.75;
}

.brand-wordmark {
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #fff;
}

.site-logo-img {
  height: 36px;
  width: auto;
}

/* ─── Sticky Anchor Bar ─── */
.sticky-anchor-bar {
  position: sticky;
  top: 57px;
  z-index: 80;
  background: rgba(0,0,0,0.95);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 1rem;
  backdrop-filter: blur(8px);
}

.sticky-anchor-bar a {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 0.55rem 1rem;
  color: rgba(255,255,255,0.5);
  min-height: 40px;
  display: flex;
  align-items: center;
  transition: color 0.2s;
  border-bottom: 2px solid transparent;
}

.sticky-anchor-bar a:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ─── Section scroll offset ─── */
article[id] {
  scroll-margin-top: 110px;
}

/* ─── Hero ─── */
.hero-section {
  position: relative;
  min-height: 45vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 6rem 2rem 8rem;
  overflow: hidden;
  background: #000;
}

.hero-figure {
  margin-bottom: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-icon {
  font-size: clamp(2rem, 6vw, 4rem);
  color: #fff;
  opacity: 0.18;
  display: block;
  line-height: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
}

.hero-content h1 {
  font-size: clamp(3rem, 10vw, 10rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.95;
  color: #fff;
  margin-bottom: 1.5rem;
}

.hero-lead {
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 300;
  color: rgba(255,255,255,0.55);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.65;
  letter-spacing: 0.01em;
}

.hero-slash {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: #000;
  clip-path: polygon(0 60%, 100% 0, 100% 100%, 0 100%);
  z-index: 1;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ─── Content Body Section ─── */
.content-body-section {
  display: flex;
  gap: 3rem;
  max-width: 1300px;
  margin: 0 auto;
  padding: 5rem 2rem 6rem;
  align-items: flex-start;
}

.content-main {
  flex: 1 1 0;
  min-width: 0;
}

.content-aside {
  flex: 0 0 220px;
  order: 2;
  background: rgba(255,255,255,0.04);
  border-radius: 28px;
  padding: 2rem 1.5rem;
  position: sticky;
  top: 115px;
}

.content-aside h2 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: #fff;
  margin-bottom: 0.4rem;
  text-transform: none;
}

.content-aside .subtitle {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.4);
  margin-bottom: 1.25rem;
  letter-spacing: 0.03em;
}

.quick-links {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.quick-links li a {
  display: block;
  padding: 0.55rem 0.75rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  border-radius: 8px;
  transition: background 0.18s, color 0.18s;
  min-height: 40px;
  display: flex;
  align-items: center;
}

.quick-links li a:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

/* ─── Content HTML Styles ─── */
.content-main h2 {
  font-size: clamp(1.6rem, 4vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: #fff;
  margin-top: 3.5rem;
  margin-bottom: 0.75rem;
}

.content-main h2:first-child {
  margin-top: 0;
}

.content-main p.subtitle,
.content-main .subhead,
.content-main .lead {
  font-size: 1rem;
  color: rgba(255,255,255,0.5);
  margin-bottom: 1.25rem;
  letter-spacing: 0.02em;
}

.content-main h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
  margin-top: 2.5rem;
  margin-bottom: 0.6rem;
}

.content-main p {
  font-size: 1rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.75);
  margin-bottom: 1.2rem;
}

.content-main ul,
.content-main ol {
  list-style: disc;
  padding-left: 1.5rem;
  margin-bottom: 1.2rem;
}

.content-main ol {
  list-style: decimal;
}

.content-main li {
  font-size: 1rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.7);
  margin-bottom: 0.4rem;
}

.content-main a {
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  transition: border-color 0.18s;
}

.content-main a:hover {
  border-color: #fff;
}

.content-main article {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 3rem;
  margin-top: 3rem;
}

.content-main article:first-child {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

.content-main figure {
  margin: 2rem 0;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255,255,255,0.04);
}

.content-main figure img {
  width: 100%;
  height: auto;
}

.content-main figcaption {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
  padding: 0.75rem 1rem;
  text-align: center;
}

.content-main aside {
  background: rgba(255,255,255,0.05);
  border-left: 3px solid rgba(255,255,255,0.15);
  border-radius: 0 12px 12px 0;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.6);
}

.content-main blockquote {
  border-left: 3px solid rgba(255,255,255,0.2);
  padding: 1rem 1.5rem;
  margin: 1.5rem 0;
  color: rgba(255,255,255,0.55);
  font-style: italic;
}

.content-main table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
}

.content-main th {
  background: rgba(255,255,255,0.08);
  color: #fff;
  font-weight: 700;
  padding: 0.75rem 1rem;
  text-align: left;
  border-bottom: 1px solid rgba(255,255,255,0.15);
}

.content-main td {
  padding: 0.65rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.7);
}

/* ─── Footer ─── */
.site-footer {
  background: #000;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 5rem 2rem 2.5rem;
}

.footer-brand-block {
  text-align: center;
  margin-bottom: 4rem;
  overflow: hidden;
}

.footer-brand-word {
  font-size: clamp(3rem, 10vw, 9rem);
  font-weight: 900;
  letter-spacing: -0.05em;
  color: rgba(255,255,255,0.08);
  line-height: 1;
  display: block;
  user-select: none;
}

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.5rem;
  max-width: 1100px;
  margin: 0 auto 3.5rem;
}

.footer-cols dl {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.footer-cols dt {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4);
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-cols dd {
  font-size: 0.85rem;
  line-height: 1.6;
  color: rgba(255,255,255,0.5);
}

.footer-cols dd a {
  color: rgba(255,255,255,0.6);
  transition: color 0.18s;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
}

.footer-cols dd a:hover {
  color: #fff;
}

.footer-bottom {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(255,255,255,0.07);
}

.footer-bottom span {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.3);
  letter-spacing: 0.04em;
}

.footer-notice {
  font-size: 0.68rem !important;
  color: rgba(255,255,255,0.2) !important;
}

/* ─── Animations ─── */
@media (prefers-reduced-motion: no-preference) {
  .hero-content h1 {
    animation: fadeUp 0.8s cubic-bezier(0.22,1,0.36,1) both;
  }

  .hero-lead {
    animation: fadeUp 0.8s 0.15s cubic-bezier(0.22,1,0.36,1) both;
  }

  .hero-figure {
    animation: fadeIn 1s 0.05s both;
  }

  @keyframes fadeUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes fadeIn {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  .content-main article {
    animation: revealSection linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 25%;
  }

  @keyframes revealSection {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  .nav-left li a,
  .nav-right li a,
  .quick-links li a,
  .footer-cols dd a {
    transition: color 0.2s, background 0.2s, border-color 0.2s;
  }

  .hero-slash {
    transition: opacity 0.3s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ─── Responsive ─── */
@media (max-width: 1024px) {
  .content-body-section {
    flex-direction: column;
    padding: 3rem 1.5rem 4rem;
    gap: 2rem;
  }

  .content-aside {
    order: -1;
    position: static;
    flex: none;
    width: 100%;
    border-radius: 16px;
  }

  .quick-links {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.4rem;
  }

  .quick-links li a {
    padding: 0.45rem 0.9rem;
    border-radius: 20px;
    background: rgba(255,255,255,0.06);
    min-height: 40px;
  }
}

@media (max-width: 768px) {
  .site-aside-nav nav {
    padding: 0 0.75rem;
    min-height: 52px;
  }

  .nav-left li a,
  .nav-right li a {
    padding: 0.75rem 0.5rem;
    font-size: 0.7rem;
    min-height: 52px;
  }

  .nav-left li a span,
  .nav-right li a span {
    display: none;
  }

  .brand-wordmark {
    font-size: 1rem;
  }

  .brand-center {
    padding: 0 0.75rem;
  }

  .sticky-anchor-bar {
    top: 53px;
    gap: 0;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .sticky-anchor-bar::-webkit-scrollbar {
    display: none;
  }

  .sticky-anchor-bar a {
    font-size: 0.68rem;
    padding: 0.5rem 0.65rem;
    white-space: nowrap;
    min-height: 40px;
  }

  article[id] {
    scroll-margin-top: 100px;
  }

  .hero-section {
    min-height: 40vh;
    padding: 4rem 1.25rem 6rem;
  }

  .footer-cols {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .site-footer {
    padding: 3.5rem 1.25rem 2rem;
  }

  .footer-brand-word {
    font-size: clamp(3rem, 20vw, 6rem);
  }

  .content-main h2 {
    font-size: clamp(1.4rem, 6vw, 2rem);
  }
}

@media (max-width: 480px) {
  .hero-content h1 {
    font-size: clamp(2.4rem, 13vw, 4rem);
    letter-spacing: -0.04em;
  }

  .announce-bar {
    font-size: 0.65rem;
    padding: 0.4rem 0.75rem;
  }

  .content-body-section {
    padding: 2rem 1rem 3rem;
  }
}

/* ─── Utility ─── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

button[aria-expanded]{min-width:44px;min-height:44px}
