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

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

:root {
  --bg: #0b0b16;
  --ink: #1a1a2e;
  --panel: #12122a;
  --red: #ff0000;
  --pink: #ff006e;
  --text: #ecedf7;
  --muted: #a6a6c6;
  --line: #33335e;
  --rail: 256px;
  --head: 152px;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Noto Sans KR', 'Helvetica Neue', Arial, 'PingFang SC', 'Microsoft YaHei', sans-serif;
  font-size: 17px;
  line-height: 1.78;
  font-weight: 400;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(65% 42% at 50% 0%, rgba(255, 0, 110, .18), transparent 72%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .035) 0 1px, transparent 1px 5px),
    linear-gradient(180deg, #0b0b16, #06060e 55%, #0b0b16);
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
  opacity: .32;
  background: repeating-linear-gradient(180deg, rgba(0, 0, 0, .55) 0 1px, transparent 1px 3px);
}

::selection { background: var(--pink); color: #fff; }

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

.ticker {
  position: relative;
  z-index: 45;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 30px;
  padding: 5px 18px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .3em;
  color: #fff;
  background: linear-gradient(90deg, var(--red), var(--pink) 58%, rgba(255, 0, 110, .12));
  text-shadow: 0 1px 0 rgba(0, 0, 0, .45);
}
.ticker-dot {
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 8px #fff;
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }

.masthead {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(9, 9, 18, .93);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(9px);
}

.brand-row {
  display: flex;
  align-items: center;
  padding: 6px 18px;
  border-bottom: 1px solid rgba(51, 51, 94, .7);
}
.brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 21px;
  font-weight: 700;
  letter-spacing: .05em;
  color: #fff;
  text-decoration: none;
  text-shadow: 2px 0 0 rgba(255, 0, 0, .55), -2px 0 0 rgba(0, 200, 255, .38), 0 0 16px rgba(255, 0, 110, .7);
}

.menubar { padding: 0 12px 6px; }

.menu-wrap summary {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 4px 6px;
  list-style: none;
  cursor: pointer;
  font-size: 13px;
  letter-spacing: .22em;
  color: var(--muted);
  user-select: none;
}
.menu-wrap summary::-webkit-details-marker { display: none; }
.menu-wrap summary:hover { color: var(--pink); }

.burger { display: inline-flex; flex-direction: column; gap: 3px; }
.burger i { width: 16px; height: 2px; background: currentColor; display: block; }

.menu {
  list-style: none;
  margin: 0;
  padding: 2px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 8px;
}

.menu a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 6px 12px;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: rgba(255, 255, 255, .02);
}
.menu a:hover,
.menu a:focus-visible {
  color: #fff;
  border-color: var(--pink);
  background: rgba(255, 0, 110, .14);
  box-shadow: inset 0 0 0 1px rgba(255, 0, 110, .35), 0 0 12px rgba(255, 0, 110, .35);
}

.hero {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 84px 20px 130px;
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 3; max-width: 900px; }

.hero h1 {
  margin: 0;
  font-size: clamp(30px, 6.6vw, 68px);
  line-height: 1.24;
  font-weight: 700;
  letter-spacing: .01em;
  color: #fff;
  text-shadow: 3px 0 0 rgba(255, 0, 0, .6), -3px 0 0 rgba(0, 190, 255, .45), 0 0 26px rgba(255, 0, 110, .6);
  animation: glitch 6s steps(1) infinite;
}
@keyframes glitch {
  0%, 90%, 100% { transform: none; }
  92% { transform: skewX(-7deg) translateX(-4px); }
  94% { transform: skewX(5deg) translateX(4px); }
  96% { transform: none; }
}

.lede { margin: 20px auto 0; max-width: 660px; font-size: 16px; line-height: 1.85; color: #c9c9dd; }

.hero .horizon {
  position: absolute;
  left: -12%;
  right: -12%;
  bottom: -2px;
  height: 38vh;
  margin: 0;
  z-index: 1;
  pointer-events: none;
  transform: skewY(-6deg);
  transform-origin: bottom;
  border-top: 2px solid rgba(255, 0, 110, .85);
  background: linear-gradient(180deg, transparent, rgba(255, 0, 110, .2) 58%, rgba(255, 0, 0, .42));
}
.hero .horizon::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -78px;
  width: min(46vw, 280px);
  aspect-ratio: 1 / 1;
  transform: translateX(-50%) skewY(6deg);
  border-radius: 50%;
  opacity: .5;
  background: repeating-linear-gradient(180deg, var(--pink) 0 6px, transparent 6px 13px);
}
.hero .horizon span { position: absolute; left: 0; right: 0; height: 1px; background: rgba(255, 255, 255, .16); }
.hero .horizon span:nth-child(1) { bottom: 22%; }
.hero .horizon span:nth-child(2) { bottom: 40%; }
.hero .horizon span:nth-child(3) { bottom: 62%; }

.deck {
  position: relative;
  z-index: 2;
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px 20px 40px;
  display: grid;
  grid-template-columns: var(--rail) minmax(0, 1fr);
  gap: 52px;
  align-items: start;
}

.rail {
  position: sticky;
  top: calc(var(--head) + 16px);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 16px 14px;
  background: rgba(18, 18, 42, .78);
}
.rail small { display: block; font-size: 11px; letter-spacing: .34em; color: var(--pink); margin-bottom: 2px; }
.rail h2 { margin: 0 0 10px; font-size: 19px; letter-spacing: .1em; color: #fff; text-shadow: 0 0 12px rgba(255, 0, 110, .5); }
.rail ol { list-style: none; margin: 0; padding: 0; counter-reset: idx; }
.rail li { counter-increment: idx; }
.rail a {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 3px 6px;
  font-size: 15px;
  color: var(--muted);
  text-decoration: none;
  border-top: 1px dashed rgba(255, 255, 255, .09);
}
.rail a::before { content: counter(idx, decimal-leading-zero); font-size: 11px; letter-spacing: .1em; color: var(--red); }
.rail a:hover { color: #fff; background: rgba(255, 0, 110, .12); }

.js .rail li { animation: slideIn .45s ease both; }
.js .rail li:nth-child(1) { animation-delay: .04s; }
.js .rail li:nth-child(2) { animation-delay: .1s; }
.js .rail li:nth-child(3) { animation-delay: .16s; }
.js .rail li:nth-child(4) { animation-delay: .22s; }
.js .rail li:nth-child(5) { animation-delay: .28s; }
.js .rail li:nth-child(6) { animation-delay: .34s; }
.js .rail li:nth-child(7) { animation-delay: .4s; }
@keyframes slideIn { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }

.body { min-width: 0; }

.body > article {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 26px 22px;
  margin: 0 0 26px;
  background: rgba(255, 255, 255, .016);
}
.body > article::after { content: ""; display: block; clear: both; }

.body h2 { margin: 0 0 14px; font-size: clamp(21px, 3.2vw, 28px); line-height: 1.36; color: #fff; text-shadow: 0 0 14px rgba(255, 0, 110, .38); }
.body h3 { margin: 24px 0 10px; font-size: 19px; line-height: 1.45; color: #ffd7e7; }
.body h4 { margin: 18px 0 8px; font-size: 17px; color: #fff; }

.body p { margin: 0 0 16px; color: #dcdcea; }
.body p:last-child { margin-bottom: 0; }

.body a { color: #ff5c9d; text-decoration: underline; text-underline-offset: 3px; }
.body a:hover { color: #fff; }

.body ul, .body ol { margin: 0 0 16px; padding-left: 1.2em; }
.body li { margin: 0 0 8px; }

.body figure { margin: 0 0 18px; padding: 12px; border: 1px solid var(--line); border-radius: 4px; background: rgba(255, 0, 110, .05); }
.body figure > figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); letter-spacing: .06em; }

.body aside {
  float: right;
  width: min(300px, 48%);
  margin: 0 0 16px 18px;
  padding: 12px 14px;
  border: 1px solid var(--pink);
  border-radius: 4px;
  background: rgba(255, 0, 110, .08);
  font-size: 15px;
}

.body blockquote { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--pink); background: rgba(255, 0, 110, .07); color: #e6e6f4; }
.body blockquote p:last-child { margin-bottom: 0; }

.body img { display: block; max-width: 100%; height: auto; border-radius: 4px; }

.body table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: 15px; }
.body th, .body td { border: 1px solid var(--line); padding: 8px 10px; text-align: left; }
.body th { background: rgba(255, 255, 255, .04); color: #fff; }

.body hr { border: 0; border-top: 1px dashed var(--line); margin: 22px 0; }

.body small { font-size: 12px; letter-spacing: .26em; color: var(--pink); display: block; margin-bottom: 4px; }

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

footer {
  position: relative;
  z-index: 2;
  margin-top: 44px;
  border-top: 2px solid var(--pink);
  background: linear-gradient(180deg, rgba(255, 0, 110, .09), transparent 62%);
}

.foot-grid {
  max-width: 1180px;
  margin: 0 auto;
  padding: 38px 20px 8px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}
footer article { border-top: 1px solid var(--line); padding-top: 12px; }
footer h2 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .22em; color: #fff; }
.foot-brand h2 { font-size: 17px; letter-spacing: .05em; color: #fff; text-shadow: 0 0 12px rgba(255, 0, 110, .55); }
footer ul { list-style: none; margin: 0; padding: 0; }
footer a { display: inline-flex; align-items: center; min-height: 40px; font-size: 15px; color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--pink); }

.colophon {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px 34px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  letter-spacing: .1em;
  color: var(--muted);
}

.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (max-width: 899px) {
  .deck { grid-template-columns: minmax(0, 1fr); gap: 26px; padding: 34px 18px 30px; }
  .rail { position: static; }
  .body aside { float: none; width: auto; margin: 0 0 16px; }
  main article[id] { scroll-margin-top: 132px; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .brand { font-size: 18px; }
  .hero { padding: 64px 18px 120px; }
  .hero .horizon { height: 32vh; }
  .body > article { padding: 20px 16px; }
  .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 30px 18px 4px; }
  .ticker { font-size: 11px; letter-spacing: .22em; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

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