:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #666;
  --border: #e5e5e5;
  --accent: #FF6B6B;
  --card: #fafafa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0a;
    --fg: #e5e5e5;
    --muted: #999;
    --border: #2a2a2a;
    --card: #141414;
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo',
    'Noto Sans KR', Roboto, sans-serif;
  background: var(--bg);
  color: var(--fg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  word-break: keep-all;
  overflow-wrap: anywhere;
}

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

header.site {
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  position: sticky;
  top: 0;
  background: var(--bg);
  backdrop-filter: saturate(180%) blur(8px);
  z-index: 10;
}

header.site .brand {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 720px;
  margin: 0 auto;
  font-weight: 800;
  font-size: 17px;
  text-decoration: none;
  color: var(--fg);
}

header.site .brand .dot {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--accent);
  display: inline-block;
}

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 28px 20px 64px;
}

h1 {
  font-size: 26px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 18px;
  margin: 28px 0 8px;
}

.meta {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 24px;
}

article {
  white-space: pre-wrap;
  font-size: 15px;
}

ul.cards {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

ul.cards li a {
  display: block;
  padding: 18px 20px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--card);
  text-decoration: none;
  color: var(--fg);
  transition: transform 0.15s ease, border-color 0.15s ease;
}

ul.cards li a:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

ul.cards .title {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 4px;
}

ul.cards .desc {
  color: var(--muted);
  font-size: 13px;
}

.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: var(--accent);
  color: #fff;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  margin-top: 20px;
}

.button:hover { opacity: 0.92; }

footer.site {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 20px 40px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  font-size: 13px;
  color: var(--muted);
}

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

footer.site a:hover {
  color: var(--fg);
  text-decoration: underline;
}
