/* Nightloom public pages — midnight navy / ivory / gold. No external fonts, scripts or trackers. */
:root {
  --navy: #0b1530;
  --navy-2: #111d3f;
  --navy-3: #1a2852;
  --ivory: #f4eedf;
  --ivory-dim: #cfc7b3;
  --gold: #c9a45c;
  --gold-soft: #e2c98f;
  --line: rgba(201, 164, 92, 0.28);
  --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: radial-gradient(ellipse at 50% -10%, #1b2a5a 0%, var(--navy) 55%) fixed, var(--navy);
  color: var(--ivory);
  font: 16px/1.75 -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", "Segoe UI", sans-serif;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--gold-soft); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
.wrap { max-width: 760px; margin: 0 auto; padding: 0 20px; }
header.site { border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
header.site .brand { display: flex; align-items: center; gap: 10px; color: var(--ivory); text-decoration: none; font-family: "Nanum Myeongjo", "Noto Serif KR", "AppleMyungjo", Georgia, serif; letter-spacing: 0.04em; font-size: 18px; }
header.site .brand img { width: 32px; height: 32px; }
header.site nav { display: flex; gap: 16px; font-size: 14px; }
header.site nav a { color: var(--ivory-dim); text-decoration: none; }
header.site nav a[aria-current="page"], header.site nav a:hover { color: var(--gold-soft); }
.hero { text-align: center; padding: 56px 0 28px; }
.hero .emblem { width: min(220px, 56vw); height: auto; filter: drop-shadow(0 8px 30px rgba(201, 164, 92, 0.18)); }
.hero .wordmark { display: block; width: min(360px, 78vw); height: auto; margin: 18px auto 4px; }
.hero .tagline { font-family: "Nanum Myeongjo", "Noto Serif KR", "AppleMyungjo", Georgia, serif; color: var(--gold-soft); letter-spacing: 0.12em; margin: 6px 0 0; }
.card { background: linear-gradient(180deg, var(--navy-2), rgba(17, 29, 63, 0.7)); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 22px; margin: 18px 0; }
h1, h2, h3 { font-family: "Nanum Myeongjo", "Noto Serif KR", "AppleMyungjo", Georgia, serif; font-weight: 700; color: var(--ivory); line-height: 1.4; }
h1 { font-size: 26px; margin: 36px 0 6px; }
h2 { font-size: 19px; margin: 30px 0 8px; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
h3 { font-size: 16px; margin: 20px 0 6px; color: var(--gold-soft); }
p, li { color: var(--ivory); }
.muted { color: var(--ivory-dim); font-size: 14px; }
ul { padding-left: 1.2em; }
li { margin: 4px 0; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: 999px; background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none; }
.btn:hover { background: var(--gold-soft); color: var(--navy); }
.btn.ghost { background: transparent; color: var(--gold-soft); border: 1px solid var(--gold); }
.btn[aria-disabled="true"] { opacity: 0.55; pointer-events: none; }
.actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 8px; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th, td { text-align: left; vertical-align: top; padding: 9px 8px; border-bottom: 1px solid var(--line); }
th { color: var(--gold-soft); font-weight: 600; white-space: nowrap; }
code { font-size: 13.5px; background: var(--navy-3); padding: 1px 6px; border-radius: 6px; color: var(--ivory); }
.lang { margin-top: 44px; }
footer.site { border-top: 1px solid var(--line); margin-top: 48px; padding: 22px 0 40px; font-size: 13.5px; color: var(--ivory-dim); }
footer.site .links { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 6px; }
@media (max-width: 560px) {
  body { font-size: 15.5px; }
  .wrap { padding: 0 16px; }
  header.site nav { gap: 12px; font-size: 13px; }
  header.site .brand span { display: none; }
  .card { padding: 18px 16px; }
  h1 { font-size: 23px; }
  th { white-space: normal; }
}
.card > h2:first-child { margin-top: 0; }
