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

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

:root {
  --c-red: #ff0000;
  --c-pink: #ff1493;
  --c-dark: #261717;
  --c-dark2: #1a0f0f;
  --c-dark3: #2f1a1a;
  --c-light: #fff0f3;
  --c-muted: rgba(255,255,255,0.55);
  --c-card-bg: rgba(38,23,23,0.82);
  --c-hr: rgba(255,20,147,0.4);
  --font-main: 'Noto Sans KR', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  --header-h: 56px;
  --sticky-h: 44px;
  --radius-card: 28px;
  --transition: 0.28s cubic-bezier(0.4,0,0.2,1);
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--c-dark2);
  color: var(--c-light);
}

body {
  font-family: var(--font-main);
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--c-dark2);
}

.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;
}

/* ── Aurora Background ── */
.aurora-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.aurora-layer {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.aurora-layer-1 {
  width: 80vw;
  height: 60vw;
  top: -20%;
  left: -20%;
  background: radial-gradient(ellipse, #ff0000 0%, #ff1493 50%, transparent 80%);
  animation: aurora-drift-1 10s ease-in-out infinite alternate;
}

.aurora-layer-2 {
  width: 70vw;
  height: 50vw;
  top: 20%;
  right: -15%;
  background: radial-gradient(ellipse, #ff1493 0%, #ff0000 45%, transparent 80%);
  animation: aurora-drift-2 12s ease-in-out infinite alternate;
  opacity: 0.28;
}

.aurora-layer-3 {
  width: 60vw;
  height: 40vw;
  bottom: -10%;
  left: 20%;
  background: conic-gradient(from 180deg, #ff0000, #ff1493, #261717, #ff0000);
  background-size: 200% 200%;
  animation: aurora-drift-3 9s ease-in-out infinite alternate;
  opacity: 0.22;
  mix-blend-mode: multiply;
}

@keyframes aurora-drift-1 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(8vw, 6vh) scale(1.12); }
}
@keyframes aurora-drift-2 {
  0%   { transform: translate(0, 0) scale(1.05); }
  100% { transform: translate(-6vw, 8vh) scale(0.95); }
}
@keyframes aurora-drift-3 {
  0%   { transform: translate(0, 0) scale(1); }
  100% { transform: translate(4vw, -5vh) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  .aurora-layer { animation: none; }
}

/* ── Brand Bar ── */
.brand-bar {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 18px 24px 10px;
  background: linear-gradient(180deg, rgba(38,23,23,0.95) 0%, rgba(38,23,23,0.6) 100%);
  border-bottom: 1px solid rgba(255,20,147,0.2);
}

.brand-link {
  text-decoration: none;
  display: inline-block;
  padding: 8px 16px;
}

.brand-text {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: linear-gradient(90deg, var(--c-red), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1.4;
}

.brand-logo {
  height: 48px;
  width: auto;
  display: block;
}

/* ── Header / Hamburger ── */
.site-header {
  position: relative;
  z-index: 20;
  background: rgba(38,23,23,0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  height: var(--header-h);
  display: flex;
  align-items: center;
  border-bottom: 1px solid rgba(255,0,0,0.18);
}

.header-inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.hamburger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1.5px solid rgba(255,20,147,0.5);
  border-radius: 8px;
  cursor: pointer;
  padding: 10px;
  transition: border-color var(--transition), background var(--transition);
}

.hamburger:hover,
.hamburger:focus-visible {
  background: rgba(255,20,147,0.15);
  border-color: var(--c-pink);
  outline: none;
}

.ham-line {
  display: block;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--c-red), var(--c-pink));
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* ── Nav Overlay ── */
.nav-overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(26,15,15,0.97);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.nav-overlay.is-open {
  opacity: 1;
  pointer-events: all;
}

.nav-close {
  position: absolute;
  top: 20px;
  right: 24px;
  width: 44px;
  height: 44px;
  background: none;
  border: 1.5px solid rgba(255,20,147,0.5);
  border-radius: 50%;
  color: var(--c-pink);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.nav-close:hover,
.nav-close:focus-visible {
  background: rgba(255,20,147,0.2);
  outline: none;
}

.overlay-nav {
  text-align: center;
}

.overlay-dl {
  list-style: none;
}

.overlay-nav-title {
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.2em;
  color: rgba(255,20,147,0.6);
  margin-bottom: 24px;
}

.overlay-dl dd {
  margin: 0;
  padding: 4px 0;
}

.nav-overlay-link {
  display: inline-block;
  padding: 12px 32px;
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--c-light);
  text-decoration: none;
  letter-spacing: 0.05em;
  transition: color var(--transition), transform var(--transition);
  position: relative;
}

.nav-overlay-link::after {
  content: '';
  position: absolute;
  bottom: 6px;
  left: 32px;
  right: 32px;
  height: 1px;
  background: linear-gradient(90deg, var(--c-red), var(--c-pink));
  transform: scaleX(0);
  transition: transform var(--transition);
}

.nav-overlay-link:hover,
.nav-overlay-link:focus-visible {
  color: var(--c-pink);
  transform: translateX(6px);
  outline: none;
}

.nav-overlay-link:hover::after,
.nav-overlay-link:focus-visible::after {
  transform: scaleX(1);
}

/* ── Sticky Anchor Bar ── */
.sticky-anchor-bar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: var(--sticky-h);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 16px;
  background: rgba(26,15,15,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,0,0,0.2);
  overflow-x: auto;
  scrollbar-width: none;
}

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

.sticky-link {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 14px;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--c-muted);
  text-decoration: none;
  border-radius: 16px;
  border: 1px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
  white-space: nowrap;
  letter-spacing: 0.03em;
}

.sticky-link:hover,
.sticky-link:focus-visible {
  color: var(--c-light);
  border-color: rgba(255,20,147,0.5);
  background: rgba(255,20,147,0.12);
  outline: none;
}

/* ── Hero ── */
.hero-section {
  position: relative;
  z-index: 1;
  height: 45vh;
  min-height: 260px;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.hero-tile {
  overflow: hidden;
  position: relative;
}

.hero-tile-1 {
  transform: rotate(-1deg) scale(1.06);
  transform-origin: right center;
}

.hero-tile-2 {
  transform: rotate(1deg) scale(1.06);
  transform-origin: left center;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(1.3) brightness(0.55);
}

.hero-placeholder {
  background: linear-gradient(135deg, #3a1515 0%, #261717 50%, #1a0f0f 100%);
}

.hero-slash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    rgba(255,0,0,0.18) 0%,
    transparent 40%,
    transparent 60%,
    rgba(255,20,147,0.18) 100%
  );
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
  pointer-events: none;
}

.hero-slash::before {
  content: '';
  position: absolute;
  top: 0; bottom: 0;
  left: 50%;
  width: 3px;
  background: linear-gradient(180deg, var(--c-red), var(--c-pink));
  transform: skewX(-8deg) translateX(-50%);
  opacity: 0.7;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 24px;
  max-width: 760px;
}

h1.hero-title {
  font-size: clamp(1.6rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.25;
  background: linear-gradient(90deg, #ffffff 0%, #ffb3d0 50%, var(--c-pink) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
  text-shadow: none;
}

.hero-sub {
  font-size: clamp(0.9rem, 2vw, 1.1rem);
  font-weight: 300;
  color: rgba(255,240,243,0.8);
  letter-spacing: 0.04em;
}

/* ── Main Content Layout ── */
.site-main {
  position: relative;
  z-index: 1;
  padding: 40px 0 60px;
}

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.content-section {
  width: 100%;
}

.content-article {
  width: 100%;
}

.content-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 36px;
  align-items: start;
}

/* ── Aside ── */
.content-aside {
  position: sticky;
  top: calc(var(--sticky-h) + 16px);
  background: var(--c-card-bg);
  border-radius: var(--radius-card);
  padding: 24px 20px;
  border: 1px solid rgba(255,20,147,0.2);
  border-bottom: 3px solid var(--c-pink);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.aside-heading {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--c-pink);
  margin-bottom: 10px;
}

.content-aside hr,
.content-body hr {
  border: none;
  border-top: 1px solid var(--c-hr);
  margin: 10px 0 16px;
}

.aside-list {
  list-style: none;
}

.aside-list li {
  padding: 3px 0;
}

.aside-link {
  display: block;
  padding: 8px 10px;
  font-size: 0.88rem;
  color: var(--c-muted);
  text-decoration: none;
  border-radius: 8px;
  border-left: 2px solid transparent;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}

.aside-link:hover,
.aside-link:focus-visible {
  color: var(--c-light);
  border-left-color: var(--c-red);
  background: rgba(255,0,0,0.1);
  outline: none;
}

/* ── Content Body ── */
.content-body {
  min-width: 0;
}

.content-body section {
  margin-bottom: 56px;
  scroll-margin-top: calc(var(--sticky-h) + 12px);
}

.content-body h2 {
  font-size: clamp(1.2rem, 3vw, 1.6rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
  background: linear-gradient(90deg, var(--c-red), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.content-body h2 + hr {
  border: none;
  border-top: 1px solid var(--c-hr);
  margin: 0 0 18px;
}

.content-body h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-pink);
  margin: 24px 0 10px;
  letter-spacing: 0.03em;
}

.content-body h3 + hr {
  border: none;
  border-top: 1px solid rgba(255,20,147,0.25);
  margin: 0 0 14px;
}

.content-body p {
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255,240,243,0.88);
  margin-bottom: 14px;
}

.content-body ul,
.content-body ol {
  padding-left: 1.5em;
  margin-bottom: 14px;
  color: rgba(255,240,243,0.85);
}

.content-body li {
  margin-bottom: 6px;
  line-height: 1.7;
}

.content-body a {
  color: var(--c-pink);
  text-decoration: underline;
  text-decoration-color: rgba(255,20,147,0.4);
  transition: color var(--transition), text-decoration-color var(--transition);
}

.content-body a:hover {
  color: var(--c-red);
  text-decoration-color: var(--c-red);
}

.content-body strong {
  color: var(--c-light);
  font-weight: 600;
}

.content-body .card,
.content-body .section-card {
  background: var(--c-card-bg);
  border-radius: var(--radius-card);
  border: 1px solid rgba(255,20,147,0.18);
  border-bottom: 3px solid var(--c-red);
  padding: 24px 28px;
  margin-bottom: 20px;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.content-body .card:hover,
.content-body .section-card:hover {
  border-color: rgba(255,20,147,0.5);
  transform: translateY(-3px);
  box-shadow: 0 12px 40px rgba(255,0,0,0.2);
}

@media (prefers-reduced-motion: reduce) {
  .content-body .card,
  .content-body .section-card {
    transition: none;
  }
}

/* ── Section scroll-margin ── */
section[id] {
  scroll-margin-top: calc(var(--sticky-h) + 8px);
}

/* ── Footer ── */
.site-footer {
  position: relative;
  z-index: 1;
  background: rgba(26,15,15,0.96);
  border-top: 1px solid rgba(255,20,147,0.2);
  padding: 0 24px;
  min-height: 56px;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  min-height: 56px;
  padding: 10px 0;
}

.footer-logo-wrap {
  flex-shrink: 0;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 8px;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-decoration: none;
  background: linear-gradient(90deg, var(--c-red), var(--c-pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-nav {
  flex: 1;
}

.footer-dl {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}

.footer-dl dt {
  display: none;
}

.footer-dl dd {
  margin: 0;
}

.footer-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 10px;
  font-size: 0.8rem;
  color: var(--c-muted);
  text-decoration: none;
  border-radius: 6px;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}

.footer-link:hover,
.footer-link:focus-visible {
  color: var(--c-light);
  background: rgba(255,20,147,0.12);
  outline: none;
}

.footer-copy {
  flex-shrink: 0;
  font-size: 0.78rem;
  color: rgba(255,240,243,0.35);
  white-space: nowrap;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .content-layout {
    grid-template-columns: 1fr;
  }
  .content-aside {
    position: static;
    margin-bottom: 28px;
  }
}

@media (max-width: 600px) {
  .brand-text {
    font-size: 1.25rem;
  }
  h1.hero-title {
    font-size: 1.5rem;
  }
  .hero-sub {
    font-size: 0.88rem;
  }
  .sticky-anchor-bar {
    gap: 2px;
    padding: 0 10px;
  }
  .sticky-link {
    padding: 0 10px;
    font-size: 0.78rem;
    min-height: 40px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 0;
  }
  .footer-dl {
    gap: 2px 4px;
  }
  .footer-link {
    padding: 0 8px;
    font-size: 0.75rem;
  }
  .wrap {
    padding: 0 16px;
  }
  .content-body .card,
  .content-body .section-card {
    padding: 18px 16px;
    border-radius: 18px;
  }
  .content-aside {
    border-radius: 18px;
    padding: 18px 16px;
  }
}

@media (max-width: 375px) {
  .hero-section {
    height: 42vh;
    min-height: 240px;
  }
  .nav-overlay-link {
    font-size: 1.1rem;
    padding: 10px 24px;
  }
}
