@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Noto+Sans+KR:wght@400;500;600;700&display=swap');

:root {
  --ink: #111827;
  --muted: #667085;
  --paper: #f8fafc;
  --card: #ffffff;
  --accent: #2563eb;
  --accent-soft: #eff6ff;
  --line: #e5e7eb;
  --shadow: 0 12px 40px rgba(15, 23, 42, .07);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  line-height: 1.7;
  letter-spacing: -.012em;
}
.shell { max-width: 1180px; margin: auto; padding: 0 32px; }
.site-header {
  height: 76px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line); background: rgba(248,250,252,.9);
}
.brand { color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: .04em; text-decoration: none; }
.brand span { color: inherit; }
nav { display: flex; gap: 28px; }
nav a { color: #475467; font-size: 14px; font-weight: 600; text-decoration: none; transition: .2s; }
nav a:hover { color: var(--accent); }
.menu-button { display: none; padding: 7px 12px; border: 1px solid var(--line); border-radius: 8px; background: white; font: inherit; }

.hero {
  min-height: 540px; padding: 92px 0 64px; position: relative;
  border-bottom: 1px solid var(--line);
}
.eyebrow { margin: 0 0 18px; color: var(--accent); font-size: 11px; font-weight: 700; letter-spacing: .15em; }
.eyebrow a { color: inherit; text-decoration: none; }
.hero h1, .article h1, .archive > h1 {
  max-width: 850px; margin: 0; font-size: clamp(42px, 5.2vw, 68px);
  font-weight: 700; line-height: 1.17; letter-spacing: -.055em;
}
.hero h1 em { color: var(--accent); font-style: normal; font-weight: 700; }
.hero-copy { margin: 28px 0 30px; max-width: 540px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; align-items: center; gap: 24px; }
.button {
  display: inline-block; padding: 11px 18px; border-radius: 9px;
  background: var(--accent); color: white; text-decoration: none; font-size: 14px; font-weight: 600;
  box-shadow: 0 5px 16px rgba(37,99,235,.2); transition: .2s;
}
.button:hover { transform: translateY(-1px); background: #1d4ed8; }
.text-link, .section-heading > a { color: #344054; font-size: 14px; font-weight: 600; text-decoration: none; }
.stats { position: absolute; right: 0; bottom: 64px; display: flex; gap: 38px; }
.stats span { color: var(--muted); font-size: 11px; }
.stats strong { display: block; color: var(--ink); font-size: 21px; font-weight: 700; letter-spacing: -.03em; }

.section, .topics, .archive { padding: 76px 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 28px; }
.section-heading h2, .topics h2 { margin: 0; font-size: 34px; line-height: 1.25; letter-spacing: -.04em; }
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.post-card {
  min-width: 0; padding: 26px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; box-shadow: 0 1px 2px rgba(15,23,42,.02); transition: .2s;
}
.post-card:hover { transform: translateY(-3px); border-color: #cbd5e1; box-shadow: var(--shadow); }
.post-card h2 { margin: 12px 0; font-size: 20px; line-height: 1.45; letter-spacing: -.035em; }
.post-card h2 a { color: var(--ink); text-decoration: none; }
.post-card p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.post-meta { color: #98a2b3; font-size: 11px; }
.read-more { color: var(--accent); font-size: 13px; font-weight: 600; text-decoration: none; }
.topics { border-top: 1px solid var(--line); }
.topic-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; margin-top: 32px; }
.topic-list a {
  display: flex; justify-content: space-between; align-items: center; padding: 15px 16px;
  border: 1px solid var(--line); border-radius: 10px; background: white; color: var(--ink); text-decoration: none;
}
.topic-list a:hover { border-color: #bfdbfe; background: var(--accent-soft); }
.topic-list span { font-size: 15px; font-weight: 600; transition: .2s; }
.topic-list small { color: var(--muted); }

footer { display: flex; justify-content: space-between; padding: 32px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.article { max-width: 760px; margin: auto; padding: 76px 0 90px; }
.article header { margin-bottom: 48px; }
.article h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.22; }
.article time { display: block; margin-top: 18px; color: var(--muted); font-size: 13px; }
.article-body { font-size: 16px; line-height: 1.95; }
.article-body p { margin: 0 0 1.45em; }
.article-body h1, .article-body h2, .article-body h3 { margin: 2em 0 .7em; line-height: 1.4; letter-spacing: -.035em; }
.article-body img { max-width: 100%; height: auto; border-radius: 10px; }
.article-body a { color: var(--accent); }
.article-body blockquote { margin: 30px 0; padding: 2px 0 2px 20px; border-left: 3px solid #93c5fd; color: var(--muted); }
.article-body pre { overflow-x: auto; padding: 20px; border-radius: 10px; background: #0f172a; color: #e2e8f0; font-size: 13px; line-height: 1.65; }
.article-body code { padding: 2px 5px; border-radius: 4px; background: #eef2f6; font-size: .9em; }
.article-body pre code { padding: 0; background: none; }
.article-footer { margin-top: 64px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-footer a { color: var(--ink); text-decoration: none; font-size: 14px; }
.archive > h1 { font-size: clamp(40px, 6vw, 60px); }
.lead { color: var(--muted); font-size: 17px; }
.search { display: block; max-width: 560px; margin: 44px 0 10px; }
.search span { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 600; }
.search input { width: 100%; padding: 13px 14px; border: 1px solid var(--line); border-radius: 9px; background: white; font: inherit; outline: none; }
.search input:focus { border-color: #93c5fd; box-shadow: 0 0 0 3px #dbeafe; }
.search-result { min-height: 24px; color: var(--accent); font-size: 13px; }
.archive-list { list-style: none; padding: 0; margin: 34px 0; border-top: 1px solid var(--line); }
.archive-list li { display: grid; grid-template-columns: 120px 1fr; gap: 20px; padding: 15px 5px; border-bottom: 1px solid var(--line); }
.archive-list li[hidden] { display: none; }
.archive-list time { color: var(--muted); font-size: 12px; }
.archive-list a { color: var(--ink); font-size: 16px; font-weight: 500; text-decoration: none; }
.archive-list a:hover { color: var(--accent); }
.project-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 42px; }
.project-grid > a {
  min-height: 270px; padding: 26px; background: white; border: 1px solid var(--line); border-radius: 14px;
  color: var(--ink); text-decoration: none; display: flex; flex-direction: column; transition: .2s;
}
.project-grid > a:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.project-grid span { color: var(--accent); font-size: 11px; font-weight: 700; }
.project-grid h2 { margin: 18px 0 8px; font-size: 25px; letter-spacing: -.04em; }
.project-grid p { color: var(--muted); font-size: 14px; }
.project-grid b { margin-top: auto; color: var(--accent); font-size: 12px; }
.not-found { min-height: 65vh; padding: 90px 0; }
.not-found h1 { font-size: 48px; letter-spacing: -.04em; }

@media (max-width: 800px) {
  .shell { padding: 0 20px; }
  .site-header { height: 68px; }
  .menu-button { display: block; }
  .site-header nav { display: none; position: absolute; z-index: 10; top: 68px; left: 0; right: 0; padding: 20px; background: white; border-bottom: 1px solid var(--line); flex-direction: column; }
  .site-header nav.open { display: flex; }
  .hero { min-height: auto; padding: 62px 0 50px; }
  .hero h1 { font-size: 42px; }
  .hero-copy { font-size: 15px; }
  .stats { position: static; margin-top: 44px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .stats strong { font-size: 18px; }
  .post-grid, .project-grid, .topic-list { grid-template-columns: 1fr; }
  .section, .topics, .archive { padding: 58px 0; }
  .section-heading h2, .topics h2 { font-size: 29px; }
  .section-heading > a { display: none; }
  .article { padding: 54px 0 70px; }
  .article h1 { font-size: 36px; }
  .article-body { font-size: 15.5px; }
  .archive-list li { grid-template-columns: 1fr; gap: 3px; }
  .project-grid > a { min-height: 220px; }
  footer { flex-direction: column; }
  .hero-actions { align-items: flex-start; flex-direction: column; gap: 16px; }
}
