* {
  box-sizing: border-box;
}

:root {
  --ink: #1f2933;
  --muted: #5b6673;
  --line: #d9e2ec;
  --paper: #ffffff;
  --soft: #f4f7fb;
  --brand: #1261a6;
  --brand-dark: #0b4778;
  --accent: #2f855a;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans KR", Arial, sans-serif;
  line-height: 1.72;
  word-break: keep-all;
}

a {
  color: var(--brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.header-inner,
.container,
.footer-inner {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
}

.logo-mark {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #fff;
  background: var(--brand);
  border-radius: 7px;
  font-size: 0.86rem;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 0.96rem;
}

.nav a {
  color: var(--ink);
}

.hero {
  padding: 56px 0 38px;
  background: linear-gradient(180deg, #eef6ff 0%, #fff 100%);
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
  gap: 28px;
  align-items: start;
}

.eyebrow,
.category {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.92rem;
  font-weight: 700;
}

h1,
h2,
h3 {
  line-height: 1.28;
}

h1 {
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.35rem);
}

h2 {
  margin: 42px 0 14px;
  font-size: 1.62rem;
}

h3 {
  margin: 24px 0 10px;
  font-size: 1.18rem;
}

.lead {
  margin: 0 0 20px;
  color: #3f4d5a;
  font-size: 1.12rem;
}

.hero-note,
.info-panel,
.card,
.post-card,
.sidebar {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.hero-note,
.info-panel,
.card,
.post-card {
  padding: 22px;
}

.hero-note h2,
.info-panel h2 {
  margin-top: 0;
  font-size: 1.18rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  background: var(--brand);
  border-radius: 7px;
  font-weight: 700;
}

.button.secondary {
  color: var(--brand-dark);
  background: #e6f0fa;
}

.section {
  padding: 42px 0;
}

.section.soft {
  background: var(--soft);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.post-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.card h3,
.post-card h2,
.post-card h3 {
  margin-top: 0;
}

.post-card p {
  color: var(--muted);
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 720px) minmax(240px, 1fr);
  gap: 36px;
  align-items: start;
  padding: 44px 0;
}

.article {
  min-width: 0;
}

.article-meta {
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 0.95rem;
}

.article p,
.article li {
  font-size: 1.04rem;
}

.article ul,
.article ol {
  padding-left: 22px;
}

.article blockquote,
.notice {
  margin: 22px 0;
  padding: 14px 18px;
  border-left: 4px solid var(--brand);
  background: #eef6ff;
}

.article code,
.article pre {
  font-family: Consolas, "Liberation Mono", monospace;
}

.article pre {
  overflow-x: auto;
  padding: 16px;
  background: #15202b;
  color: #f6f8fa;
  border-radius: 8px;
}

.sidebar {
  padding: 18px;
  background: var(--soft);
}

.sidebar h2 {
  margin-top: 0;
  font-size: 1.1rem;
}

.sidebar ul {
  padding-left: 18px;
}

.site-footer {
  margin-top: 42px;
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 26px 0;
  color: var(--muted);
  font-size: 0.94rem;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (max-width: 820px) {
  .header-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-grid,
  .article-layout,
  .grid,
  .post-list {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 38px;
  }

  h1 {
    font-size: 2.08rem;
  }
}
