@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('assets/fonts/outfit-500.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('assets/fonts/outfit-700.woff2') format('woff2');
}

@font-face {
  font-family: 'Outfit';
  font-style: normal;
  font-weight: 900;
  font-display: swap;
  src: url('assets/fonts/outfit-900.woff2') format('woff2');
}

:root {
  color-scheme: dark;
  --bg: #05040c;
  --panel: rgba(9, 7, 22, 0.94);
  --border: rgba(140, 90, 220, 0.28);
  --text: #f4eefc;
  --muted: #b7a8d4;
  --accent: #a060dc;
  --font: 'Outfit', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.55;
}

body {
  background:
    radial-gradient(ellipse at 50% 0%, rgba(80, 40, 140, 0.35), transparent 52%),
    #05040c;
}

a {
  color: #d7b8ff;
  text-decoration: none;
}

a:hover {
  color: #fff;
  text-decoration: underline;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  backdrop-filter: blur(14px);
  background: rgba(5, 4, 12, 0.78);
  border-bottom: 1px solid var(--border);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.92rem;
}

.brand img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  font-weight: 700;
  font-size: 0.92rem;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
}

.nav a:hover,
.nav a[aria-current='page'] {
  color: var(--text);
}

.hero {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--border);
}

.hero-art {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
  object-position: center 28%;
}

.hero-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 48px 0 32px;
  background: linear-gradient(transparent, rgba(5, 4, 12, 0.92) 70%);
}

.hero h1 {
  margin: 0 0 8px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900;
}

.tagline {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 1.15rem;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pill {
  display: inline-block;
  padding: 6px 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.section {
  padding: 56px 0;
}

.section h2 {
  margin: 0 0 16px;
  font-size: 1.8rem;
  font-weight: 900;
}

.lede {
  max-width: 62ch;
  color: var(--muted);
  font-size: 1.08rem;
}

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px 18px;
}

.card h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
  font-weight: 800;
}

.card p {
  margin: 0;
  color: var(--muted);
}

.idols {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.idol {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}

.idol-pic {
  height: 220px;
  background: #120a22 center / cover no-repeat;
}

.idol-pic.haeun { background-image: url('assets/idols/haeun.webp'); background-position: 50% 8%; }
.idol-pic.sooyeon { background-image: url('assets/idols/sooyeon.webp'); background-position: 50% 8%; }
.idol-pic.daeri { background-image: url('assets/idols/daeri.webp'); background-position: 50% 8%; }
.idol-pic.jina { background-image: url('assets/idols/jina.webp'); background-position: 62% 0%; }
.idol-pic.minji { background-image: url('assets/idols/minji.webp'); background-position: 18% 0%; }

.idol-meta {
  padding: 12px 12px 14px;
}

.idol-meta strong {
  display: block;
  font-weight: 800;
}

.idol-meta span {
  color: var(--muted);
  font-size: 0.86rem;
}

.doc {
  padding: 40px 0 72px;
}

.doc h1 {
  margin: 0 0 8px;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
}

.updated {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 28px;
}

.doc h2 {
  margin: 32px 0 10px;
  font-size: 1.25rem;
  font-weight: 800;
}

.doc h3 {
  margin: 22px 0 8px;
  font-size: 1.05rem;
}

.doc p,
.doc li {
  color: #ddd3f0;
}

.doc ul,
.doc ol {
  padding-left: 1.2em;
}

.doc .warn {
  border: 1px solid rgba(240, 192, 48, 0.35);
  background: rgba(240, 192, 48, 0.08);
  border-radius: 14px;
  padding: 16px 18px;
  margin: 18px 0 28px;
}

.news-hero {
  margin: 0 0 28px;
}

.news-hero img {
  display: block;
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--border);
}

.news-hero figcaption,
.news-rooms figcaption,
.news-poses figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.news-rooms {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 8px 0 28px;
}

.news-rooms figure,
.news-poses figure {
  margin: 0;
}

.news-rooms img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

.news-poses {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
  margin: 8px 0 28px;
}

.news-poses img {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  object-position: 50% 12%;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: #120a22;
}

@media (max-width: 900px) {
  .news-rooms {
    grid-template-columns: 1fr;
  }

  .news-poses {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 640px) {
  .news-poses {
    grid-template-columns: repeat(2, 1fr);
  }
}

.site-footer {
  border-top: 1px solid var(--border);
  padding: 28px 0 40px;
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px 24px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
}

.btn {
  appearance: none;
  font-family: inherit;
  font-weight: 800;
  font-size: 0.92rem;
  border-radius: 999px;
  padding: 10px 16px;
  cursor: pointer;
  border: 1px solid var(--border);
}

.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: #fff;
}

.btn.ghost {
  background: transparent;
  color: var(--text);
}

a.btn {
  display: inline-block;
  text-decoration: none;
}

a.btn:hover {
  color: #fff;
  text-decoration: none;
  filter: brightness(1.08);
}

.support-form {
  display: grid;
  gap: 16px;
  max-width: 36rem;
  margin: 28px 0 24px;
  padding: 22px 20px;
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 16px;
}

.support-form label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  font-size: 0.92rem;
}

.support-form input,
.support-form select,
.support-form textarea {
  font: inherit;
  font-weight: 500;
  color: var(--text);
  background: rgba(5, 4, 12, 0.7);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.support-form textarea {
  resize: vertical;
  min-height: 8rem;
}

.support-form label.check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 500;
  color: var(--muted);
}

.support-form label.check input {
  margin-top: 4px;
  flex-shrink: 0;
}

.support-form .hp {
  position: absolute;
  left: -9999px;
  height: 0;
  width: 0;
  opacity: 0;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.cookie-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  background: rgba(9, 7, 22, 0.97);
  border-top: 1px solid var(--border);
  padding: 16px 0 18px;
  box-shadow: 0 -16px 40px rgba(0, 0, 0, 0.45);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 16px 24px;
}

.cookie-title {
  margin: 0 0 6px;
  font-weight: 800;
}

.cookie-inner p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  max-width: 70ch;
}

.cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: auto;
}

.table-wrap {
  overflow-x: auto;
  margin: 16px 0 24px;
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.92rem;
}

.doc-table th,
.doc-table td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px;
  border: 1px solid var(--border);
}

.doc-table th {
  background: rgba(140, 90, 220, 0.12);
}

@media (max-width: 900px) {
  .grid-3,
  .idols {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .grid-3,
  .idols {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    position: static;
    padding: 20px 0 8px;
    background: none;
  }
}
