:root {
  --accent: #3e6ae1;
  --accent-dark: #3459c2;
  --bg: #ffffff;
  --bg-alt: #f4f4f4;
  --ink: #171a20;
  --ink-body: #393c41;
  --ink-dim: #5c5e62;
  --ink-faint: #8e8e8e;
  --border: #eeeeee;
  --border-strong: #d0d1d2;
  --nav-bg: rgba(255, 255, 255, 0.82);
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root {
    --accent: #6b8bff;
    --accent-dark: #86a0ff;
    --bg: #0c0d10;
    --bg-alt: #16171b;
    --ink: #f3f4f6;
    --ink-body: #d3d4d8;
    --ink-dim: #9a9ba1;
    --ink-faint: #6c6d72;
    --border: #232428;
    --border-strong: #313236;
    --nav-bg: rgba(12, 13, 16, 0.82);
  }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink-body);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Noto Sans KR", sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
p { line-height: 1.6; }

/* ---------- Nav ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: transparent;
  transition: background-color 0.33s ease, border-color 0.33s ease, backdrop-filter 0.33s ease;
}
.site-header.is-scrolled,
.site-header.is-solid {
  background: var(--nav-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand {
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink);
}
.site-nav {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  padding: 8px 16px;
  border-radius: 4px;
  transition: background-color 0.33s ease, color 0.33s ease;
}
.site-nav a:hover { background: rgba(128, 128, 128, 0.08); }
.site-nav a.current { color: var(--accent); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 28px;
  border-radius: 4px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid transparent;
  transition: background-color 0.33s ease, color 0.33s ease, border-color 0.33s ease;
  cursor: pointer;
}
.btn-primary { background: var(--accent); color: #ffffff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: transparent; color: var(--ink); border-color: var(--border-strong); }
.btn-secondary:hover { border-color: var(--ink-dim); }
.btn-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Layout shells ---------- */
main { display: block; }
.wrap-1200 { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
section.tight { padding: 72px 0; }
section + section { border-top: 1px solid var(--border); }

.eyebrow {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 16px;
}
h1, h2, h3 { color: var(--ink); font-weight: 500; letter-spacing: normal; margin: 0; }

/* ---------- Hero ---------- */
.hero {
  min-height: 78vh;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  align-items: center;
  gap: 40px;
}
.hero-copy h1 {
  font-size: 44px;
  line-height: 1.15;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero-copy p {
  font-size: 17px;
  color: var(--ink-dim);
  max-width: 460px;
  margin: 0 0 32px;
}
.hero-art {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-alt);
  border-radius: 12px;
  min-height: 420px;
}
.hero-art img { width: 66%; max-width: 320px; }

/* ---------- Category cards (games/tools) ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 280px;
  padding: 24px;
  border-radius: 12px;
  overflow: hidden;
  background: var(--tile-bg, var(--bg-alt));
  color: var(--tile-ink, var(--ink));
}
.tile .tile-icon {
  position: absolute;
  top: 24px;
  right: 24px;
  font-size: 64px;
  opacity: 0.9;
  line-height: 1;
}
.tile .tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.22);
  margin-bottom: 10px;
}
.tile h3 { font-size: 20px; margin-bottom: 6px; }
.tile p { font-size: 14px; opacity: 0.85; margin: 0; max-width: 34ch; }
.tile.tile-accent { --tile-bg: var(--accent); --tile-ink: #ffffff; }
.tile.tile-dark { --tile-bg: var(--ink); --tile-ink: #ffffff; }
.tile.tile-outline {
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--ink-dim);
  align-items: flex-start;
}

/* ---------- Plain lists (blog) ---------- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li {
  display: flex;
  gap: 24px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
}
.post-list li:first-child { border-top: none; }
.post-date {
  font-size: 13px;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  min-width: 84px;
  padding-top: 2px;
}
.post-title { font-size: 16px; font-weight: 500; color: var(--ink); }
.post-excerpt { margin: 6px 0 0; color: var(--ink-dim); font-size: 14px; }

.empty-note {
  border: 1px dashed var(--border-strong);
  border-radius: 12px;
  padding: 32px;
  color: var(--ink-dim);
  font-size: 14px;
  line-height: 1.8;
}

/* ---------- Prose (about / blog post) ---------- */
.prose { max-width: 680px; }
.prose .lede { color: var(--ink-dim); font-size: 17px; margin: 16px 0 8px; }
.prose h1 { font-size: 32px; margin-bottom: 8px; }
.prose h2 { font-size: 19px; margin-top: 40px; margin-bottom: 10px; }
.prose a { color: var(--accent); }
.prose a:hover { text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); }
.site-footer .wrap-1200 {
  padding: 32px 24px 56px;
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-faint);
  font-size: 13px;
}
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer nav a:hover { color: var(--ink); }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; padding-top: 32px; }
  .hero-art { order: -1; min-height: 260px; }
  section { padding: 64px 0; }
}
