/* 곡괭이 디펜스 서버 페이지. 밤하늘(남색) 위에 달빛(노랑) 하나만 강조색으로 쓴다. 외부 글꼴·스크립트 없음. */
:root {
  --sky: #141b33;
  --sky-deep: #0d1224;
  --panel: #1c2542;
  --line: #303a5e;
  --text: #e9ecf5;
  --muted: #a4abc4;
  --moon: #f5d76e;
  --moon-ink: #2a2206;
  --hill: #2f6a3a;
  --sans: "Pretendard", "Apple SD Gothic Neo", "Noto Sans KR", "Malgun Gothic", system-ui, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--sky-deep);
  color: var(--text);
  font: 17px/1.7 var(--sans);
  word-break: keep-all;
  overflow-wrap: anywhere;
}
a { color: var(--moon); text-underline-offset: 3px; }
a:focus-visible, .btn:focus-visible { outline: 3px solid var(--moon); outline-offset: 3px; }
.wrap { max-width: 980px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)) max(20px, env(safe-area-inset-right, 0px)); }
.narrow { max-width: 760px; }

/* 머리 */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.top nav { display: flex; gap: 18px; font-size: 15px; }
.top nav a { color: var(--muted); text-decoration: none; white-space: nowrap; }
.brand { white-space: nowrap; }
.top nav a:hover { color: var(--text); }

/* 첫 화면 */
.hero { background: linear-gradient(180deg, var(--sky) 0%, #1b2b4a 62%, var(--hill) 62%, #24522d 100%); border-block: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: auto 1fr; gap: 36px; align-items: center; padding-block: 56px; }
.hero img.icon { width: 200px; height: 200px; border-radius: 44px; box-shadow: 0 18px 40px rgba(0, 0, 0, .45); display: block; }
.hero h1 { font-size: clamp(34px, 6vw, 54px); line-height: 1.15; margin: 0 0 12px; letter-spacing: -0.02em; text-wrap: balance; }
.hero p.lead { font-size: clamp(18px, 2.4vw, 22px); margin: 0 0 24px; max-width: 26em; text-wrap: balance; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.tags li { border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px; padding: 2px 12px; background: rgba(13, 18, 36, .45); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 700; text-decoration: none; background: var(--moon); color: var(--moon-ink); border: 2px solid var(--moon); }
.btn.ghost { background: transparent; color: var(--text); border-color: rgba(255, 255, 255, .5); }
.btn.pending { background: rgba(13, 18, 36, .55); color: var(--muted); border: 2px dashed var(--line); cursor: default; }
.note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }
.hero .note { color: #d5dbee; }

/* 본문 */
section { padding-block: 52px; }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: 26px; line-height: 1.3; margin: 0 0 20px; letter-spacing: -0.01em; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); gap: 28px 36px; }
.features h3 { margin: 0 0 6px; font-size: 18px; color: var(--moon); }
.features p { margin: 0; color: var(--muted); font-size: 16px; }
.shots { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 14px; }
.shots figure { margin: 0; }
.shots img { display: block; width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--line); background: var(--panel); }
.shots figcaption { font-size: 14px; color: var(--muted); margin-top: 6px; }
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 14px; }
ol.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
ol.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; background: var(--moon); color: var(--moon-ink); font-weight: 800; display: grid; place-items: center; }
ol.steps h3 { margin: 0 0 4px; font-size: 18px; }
ol.steps p { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
ol.steps li { align-items: center; }
.order { margin: 0 0 16px; font-size: 18px; color: var(--moon); }
ol.steps li > div { min-width: 0; }
.callout { margin-top: 18px; border-left: 4px solid var(--moon); background: var(--panel); padding: 14px 18px; border-radius: 0 10px 10px 0; font-size: 16px; }
.callout p { margin: 0; }

/* 방침 문서 */
.doc { padding-block: 40px 64px; }
.doc h1 { font-size: clamp(28px, 5vw, 38px); line-height: 1.25; margin: 0 0 16px; text-wrap: balance; }
.doc h2 { margin: 44px 0 14px; padding-top: 8px; font-size: 23px; scroll-margin-top: 16px; }
.doc h2:target { color: var(--moon); }
.doc li { margin-block: 6px; }
.doc ul { padding-left: 22px; }
.table { overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; margin-block: 16px; }
.doc table { border-collapse: collapse; width: 100%; min-width: 620px; font-size: 15.5px; line-height: 1.55; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.doc th { background: var(--panel); font-weight: 700; }
.doc tr:last-child td { border-bottom: 0; }

footer { border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 24px 36px; }

@media (max-width: 640px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 24px; padding-block: 36px; }
  .hero img.icon { width: 128px; height: 128px; border-radius: 28px; }
  .btn { width: 100%; }
  ol.steps li { grid-template-columns: 1fr; }
  section { padding-block: 40px; }
}
