:root {
  color-scheme: light;
  --ink: #17201f;
  --ink-soft: #41504d;
  --muted: #71717a;
  --paper: #f7f8f5;
  --surface: #ffffff;
  --line: #dce3de;
  --line-strong: #d4d4d8;
  --teal: #0369a1;
  --teal-deep: #075985;
  --mint: #f0f9ff;
  --charcoal: #18181b;
  --shadow: 0 1px 2px rgba(24, 24, 27, 0.05);
  --shadow-lg: 0 12px 30px rgba(23, 32, 31, 0.08);
  --focus-ring: #0369a1;
  --radius: 8px;
  --radius-md: 6px;
  --max: 1124px;
  --font-sans:
    -apple-system,
    BlinkMacSystemFont,
    "Apple SD Gothic Neo",
    "Noto Sans KR",
    "Malgun Gothic",
    system-ui,
    sans-serif;
  --font-mono:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    "Liberation Mono",
    monospace;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: 2px;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: translateY(-160%);
  transition: transform 160ms ease;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.section-inner {
  width: 100%;
  max-width: var(--max);
  min-width: 0;
  margin: 0 auto;
  padding: 44px 28px;
}

.section-kicker {
  margin: 0 0 12px;
  color: #72e4d5;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 100vw;
  min-height: 64px;
  padding: 0 28px;
  border-bottom: 1px solid rgba(228, 228, 231, 0.9);
  background: rgba(255, 255, 255, 0.96);
  color: var(--ink);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  width: 176px;
  min-width: 176px;
  height: 40px;
  flex-shrink: 0;
}

.brand-logo-frame {
  display: block;
  width: 100%;
  height: 34px;
}

.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left center;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  color: currentColor;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  border-color: #bae6fd;
  background: var(--mint);
  color: var(--teal);
}

.site-nav .nav-cta {
  margin-left: 4px;
  border-color: var(--teal);
  background: var(--teal);
  color: #fff;
}

.site-nav .nav-cta:hover,
.site-nav .nav-cta.is-active {
  border-color: var(--teal-deep);
  background: var(--teal-deep);
  color: #fff;
}

.site-nav .language-link {
  min-width: 34px;
  padding: 0 9px;
  border-color: var(--line-strong);
  color: #52525b;
  font-size: 12px;
  justify-content: center;
}

.site-nav .nav-cta + .language-link {
  margin-left: 6px;
}

.site-nav .language-link:hover,
.site-nav .language-link[aria-current="true"],
.site-nav .blog-link[aria-current="page"] {
  border-color: var(--teal);
  background: var(--mint);
  color: var(--teal);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-md);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
}

.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
  content: "";
  transition: transform 180ms ease, opacity 180ms ease;
}

.nav-toggle span::before {
  transform: translateY(-6px);
}

.nav-toggle span::after {
  transform: translateY(4px);
}

.nav-toggle[aria-expanded="true"] span {
  transform: rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span::before {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span::after {
  transform: translateY(-2px) rotate(-90deg);
}

.blog-page {
  background: var(--paper);
}

.blog-hero,
.blog-post-hero {
  border-bottom: 1px solid var(--line);
  background: var(--charcoal);
  color: #fff;
}

.blog-hero-inner {
  padding-top: 36px;
  padding-bottom: 28px;
}

.blog-post-hero-inner {
  padding-top: 34px;
  padding-bottom: 30px;
}

.blog-hero h1,
.blog-post-hero h1 {
  max-width: 860px;
  margin: 0;
  font-size: 32px;
  line-height: 1.22;
  font-weight: 750;
  letter-spacing: 0;
}

.blog-hero p:not(.section-kicker),
.blog-post-hero p {
  max-width: 760px;
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  line-height: 1.62;
}

.blog-back-link {
  display: inline-flex;
  margin-bottom: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.blog-back-link:hover {
  color: #fff;
}

.latest-meta,
.blog-board-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 10px;
}

.latest-meta span,
.latest-meta time,
.blog-board-meta-row span,
.blog-board-meta-row time {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid #e4e4e7;
  border-radius: var(--radius-md);
  background: #fafafa;
  color: #52525b;
  font-size: 12px;
  font-weight: 650;
}

.latest-meta span:first-of-type,
.blog-board-source {
  border-color: #bae6fd;
  background: var(--mint);
  color: var(--teal);
}

.blog-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: start;
}

.blog-board-wrap {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfbf8;
  box-shadow: none;
}

.blog-board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
  padding: 9px 14px;
  border-bottom: 1px solid var(--line);
  background: #f0f2ec;
}

.blog-board-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.blog-board-header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

.blog-board {
  display: grid;
  margin: 0;
  padding: 0;
  list-style: none;
}

.blog-board li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #ecefea;
  background: rgba(255, 255, 255, 0.45);
}

.blog-board li:hover {
  background: #fff;
}

.blog-board li.blog-empty-row {
  grid-template-columns: 1fr;
}

.blog-board li:last-child {
  border-bottom: 0;
}

.blog-rank {
  padding-top: 30px;
  color: #a1a1aa;
  font-size: 13px;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  text-align: right;
}

.blog-board-main {
  display: grid;
  min-width: 0;
  gap: 7px;
}

.blog-board-title {
  width: fit-content;
  color: var(--ink);
  font-size: 17px;
  font-weight: 760;
  line-height: 1.38;
  text-decoration: none;
}

.blog-board-title:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.blog-board-excerpt {
  max-width: 760px;
  margin: 0;
  color: #3f3f46;
  font-size: 14px;
  line-height: 1.58;
}

.blog-board-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.blog-article {
  max-width: 1120px;
  padding-top: 28px;
  padding-bottom: 54px;
}

.blog-article-grid {
  display: grid;
  min-width: 0;
}

.blog-article-grid.has-toc {
  grid-template-columns: 220px minmax(0, 720px);
  gap: 44px;
  justify-content: center;
  align-items: start;
}

.blog-prose {
  min-width: 0;
  max-width: 720px;
  margin: 0 auto;
}

.article-toc {
  position: sticky;
  top: 88px;
  display: grid;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.article-toc p {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.article-toc ol {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.article-toc a {
  display: block;
  padding: 5px 0;
  color: #52525b;
  font-size: 13px;
  line-height: 1.4;
  text-decoration: none;
}

.article-toc a:hover {
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-toc .depth-3 {
  padding-left: 12px;
}

.blog-prose h2,
.blog-prose h3 {
  scroll-margin-top: 92px;
  margin: 30px 0 10px;
  color: var(--ink);
  line-height: 1.32;
  letter-spacing: 0;
}

.blog-prose h2 {
  font-size: 23px;
}

.blog-prose h3 {
  font-size: 18px;
}

.blog-prose h2:first-child,
.blog-prose h3:first-child {
  margin-top: 0;
}

.heading-anchor {
  color: inherit;
  text-decoration: none;
}

.heading-anchor:hover {
  color: var(--teal);
}

.blog-prose p,
.blog-prose li,
.blog-prose blockquote {
  color: #3f3f46;
  font-size: 16px;
  line-height: 1.76;
}

.blog-prose p {
  margin: 13px 0 0;
}

.blog-prose ul,
.blog-prose ol {
  margin: 13px 0 0;
  padding-left: 22px;
}

.blog-prose li + li {
  margin-top: 5px;
}

.blog-prose a {
  color: var(--teal);
  font-weight: 720;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.blog-prose code {
  font-family: var(--font-mono);
  font-size: 0.92em;
}

.blog-prose blockquote {
  margin: 20px 0 0;
  padding: 12px 14px;
  border-left: 3px solid var(--teal);
  background: #f4f4f5;
}

.article-rule {
  margin: 22px 0 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.blog-prose pre {
  overflow-x: auto;
  margin: 0;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--charcoal);
  color: #fafafa;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.56;
}

.article-ad {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  text-align: center;
}

.article-lede {
  margin-top: 0;
  color: var(--ink);
  font-size: 18px;
  line-height: 1.7;
  font-weight: 550;
}

.article-kicker {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.article-summary,
.article-callout {
  margin: 22px 0 0;
  padding: 16px;
  border: 1px solid #bfdbfe;
  border-radius: var(--radius);
  background: #eff6ff;
}

.article-summary h2 {
  margin: 0;
  font-size: 18px;
}

.summary-list {
  display: grid;
  gap: 7px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}

.summary-list li {
  position: relative;
  padding-left: 18px;
  color: #1f2937;
  font-size: 15px;
  line-height: 1.58;
}

.summary-list li::before {
  position: absolute;
  top: 0.78em;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--teal);
  content: "";
}

.flow-figure {
  margin: 24px 0 0;
}

.flow-figure img {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.flow-figure figcaption {
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.flow-steps {
  display: grid;
  gap: 0;
  margin: 16px 0 0;
}

.flow-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.flow-step:last-child {
  border-bottom: 1px solid var(--line);
}

.flow-step-number {
  color: var(--teal);
  font-size: 13px;
  line-height: 1.4;
  font-weight: 800;
}

.flow-step h3 {
  margin: 0;
  font-size: 17px;
}

.flow-step p {
  margin-top: 4px;
  color: #52525b;
  font-size: 15px;
  line-height: 1.58;
}

.code-panel {
  overflow: hidden;
  margin: 18px 0 0;
  border-radius: var(--radius);
  background: var(--charcoal);
}

.code-panel figcaption {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #d4d4d8;
  font-size: 13px;
  font-weight: 700;
}

.article-callout {
  border-color: #fed7aa;
  background: #fff7ed;
}

.article-callout p:not(.article-kicker) {
  margin-top: 0;
  color: #431407;
  font-size: 15px;
  line-height: 1.6;
}

.link-list {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
}

.link-card {
  display: grid;
  gap: 3px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
}

.link-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.link-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.link-card:hover {
  border-color: #bae6fd;
  background: var(--mint);
}

.article-related {
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.article-related h2 {
  margin: 0 0 12px;
  font-size: 19px;
}

.article-related-list {
  display: grid;
  gap: 10px;
}

.article-related-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  text-decoration: none;
}

.article-related-card:hover {
  border-color: #bae6fd;
  background: var(--mint);
}

.article-related-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.article-related-card strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.45;
}

.article-related-card small {
  color: #52525b;
  font-size: 13px;
  line-height: 1.5;
}

.site-footer {
  background: var(--charcoal);
  color: rgba(255, 255, 255, 0.72);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding-top: 18px;
  padding-bottom: 18px;
  font-size: 13px;
}

.footer-brand-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 16px;
}

.footer-logo {
  width: 140px;
  height: auto;
  flex: 0 0 140px;
}

.footer-brand-row div {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.footer-meta {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.footer-inner a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.footer-inner a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 14px;
}

@media (max-width: 1120px) and (min-width: 821px) {
  .site-header {
    padding-right: 18px;
    padding-left: 18px;
  }

  .brand {
    width: 148px;
    min-width: 148px;
  }

  .site-nav {
    gap: 3px;
  }

  .site-nav a {
    padding: 0 7px;
    font-size: 12px;
  }

  .site-nav .language-link {
    min-width: 30px;
    padding: 0 7px;
  }
}

@media (max-width: 980px) {
  .blog-article-grid.has-toc {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .article-toc {
    position: static;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }
}

@media (max-width: 820px) {
  body {
    font-size: 15px;
  }

  .site-header {
    min-height: 64px;
    padding: 0 18px;
  }

  .brand {
    width: 154px;
    min-width: 154px;
    height: 42px;
  }

  .brand-logo-frame {
    height: 32px;
  }

  .nav-toggle {
    display: inline-flex;
    position: relative;
    z-index: 30;
  }

  .site-nav {
    position: fixed;
    inset: 64px 14px auto;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 10px;
    border: 1px solid rgba(23, 32, 31, 0.1);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    box-shadow: var(--shadow-lg);
  }

  body.nav-open .site-nav {
    display: flex;
  }

  .site-nav a {
    justify-content: center;
  }

  .site-nav .nav-cta,
  .site-nav .nav-cta + .language-link {
    margin-left: 0;
  }

  .section-inner {
    padding-right: 20px;
    padding-left: 20px;
  }

  .blog-hero-inner {
    padding-top: 36px;
    padding-bottom: 24px;
  }

  .blog-post-hero-inner {
    padding-top: 30px;
    padding-bottom: 24px;
  }

  .blog-hero h1,
  .blog-post-hero h1 {
    font-size: 24px;
  }

  .blog-board-header {
    padding: 8px 10px;
  }

  .blog-board li {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding: 14px 12px;
  }

  .blog-rank {
    padding-top: 31px;
  }

  .blog-board-title {
    font-size: 16px;
  }

  .blog-prose {
    max-width: none;
  }

  .article-lede {
    font-size: 17px;
  }

  .blog-prose p,
  .blog-prose li,
  .blog-prose blockquote {
    font-size: 15px;
    line-height: 1.7;
  }

  .flow-step {
    grid-template-columns: 38px minmax(0, 1fr);
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
  }

  .footer-brand-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-logo {
    width: 136px;
    flex-basis: auto;
  }
}

@media (max-width: 420px) {
  .brand {
    width: 142px;
    min-width: 142px;
  }

  .blog-hero h1,
  .blog-post-hero h1 {
    font-size: 22px;
  }

  .latest-meta span,
  .latest-meta time,
  .blog-board-meta-row span,
  .blog-board-meta-row time {
    font-size: 11px;
  }
}
