:root {
  --navy: #0a1f3d;
  --navy-bright: #1d4c8c;
  --bg: #ffffff;
  --surface: #f5f7fa;
  --text: #1a1a1a;
  --muted: #5b6472;
  --border: #e2e6ec;
  --accent: var(--navy);
  --accent-text: #ffffff;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220;
    --surface: #121c2e;
    --text: #ececec;
    --muted: #a3acba;
    --border: #23304a;
    --accent: #3d74c4;
    --accent-text: #ffffff;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans KR", sans-serif;
}

a { color: var(--accent); }

.top, main, .bottom {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 16px;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}

.top nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top nav a { text-decoration: none; }
.top nav a[aria-current="page"] { text-decoration: underline; }

.button {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.button.big { padding: 12px 20px; font-size: 1.05rem; }
.button.ghost {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
}

.hero { padding: 56px 0 32px; }
.hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); line-height: 1.15; margin: 0 0 16px; }
.lede { font-size: 1.15rem; color: var(--muted); max-width: 40em; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 24px; }

section { padding: 24px 0; }
h2 { font-size: 1.5rem; }

.downloads {
  list-style: none;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}
.download {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.download h3 { margin: 0; }
.detail, .meta, .status, .note, .date { color: var(--muted); }
.detail { margin: 2px 0 12px; font-size: 0.9rem; }
.meta { font-size: 0.85rem; margin: 8px 0 0; }
.note { font-size: 0.9rem; max-width: 46em; }
details { margin-top: 8px; font-size: 0.85rem; }
details code { display: block; overflow-wrap: anywhere; margin-top: 4px; }

.post {
  border-top: 1px solid var(--border);
  padding: 16px 0;
}
.post h3 { margin: 0 0 6px; }
.post h3 a { color: var(--text); text-decoration: none; }
.post .date { margin: 0; font-size: 0.85rem; }
.post .body img { max-width: 100%; }

.bottom {
  border-top: 1px solid var(--border);
  margin-top: 32px;
  padding-top: 16px;
  padding-bottom: 32px;
  color: var(--muted);
  font-size: 0.9rem;
}
