:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --paper: #ffffff;
  --ink: #252a30;
  --ink-strong: #1f242b;
  --muted: #7c8792;
  --muted-strong: #5f6b75;
  --line: #e1e6ea;
  --charcoal: #2f424f;
  --teal: #25c7e8;
  --teal-link: #1689a8;
  --radius: 10px;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Noto Sans KR", Pretendard, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

a {
  color: inherit;
  text-decoration: none;
  touch-action: manipulation;
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid rgba(37, 199, 232, 0.55);
  outline-offset: 4px;
}

h1,
h2,
h3,
p,
li,
blockquote {
  word-break: keep-all;
  overflow-wrap: anywhere;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  color: var(--ink-strong);
  line-height: 1.22;
  letter-spacing: 0;
}

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

main {
  min-height: 72vh;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 100;
  transform: translateY(-140%);
  border: 1px solid var(--charcoal);
  border-radius: var(--radius);
  background: #fff;
  padding: 10px 14px;
  color: var(--ink-strong);
  font-weight: 900;
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 18px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 16px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 12px;
}

.brand-mark {
  flex: none;
  width: 56px;
  height: 56px;
}

.brand-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.brand-title {
  color: #252a30;
  font-size: clamp(1.08rem, 1.2vw, 1.26rem);
  font-weight: 900;
  line-height: 1.12;
}

.brand-subtitle {
  color: #9aa4ae;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.15;
}

.brand-purpose {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}

.header-nav {
  display: inline-flex;
  justify-self: end;
  gap: 18px;
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 800;
}

.header-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-bottom: 2px solid transparent;
  padding: 0 2px 2px;
}

.header-nav a:hover,
.header-nav a:focus-visible {
  color: var(--teal-link);
  border-color: var(--teal);
}

.header-identifier {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 0 0 12px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.blog-hero,
.blog-shell,
.article-hero,
.article-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.blog-hero {
  padding: 38px 0 24px;
  border-bottom: 1px solid var(--line);
}

.blog-label,
.sidebar-kicker {
  color: var(--teal-link);
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1.35;
}

.blog-hero h1 {
  max-width: 760px;
  margin-top: 10px;
  font-size: clamp(1.8rem, 3.6vw, 2.7rem);
}

.blog-hero p:not(.blog-label) {
  max-width: 620px;
  margin-top: 14px;
  color: var(--muted-strong);
  font-size: 1.02rem;
}

.blog-ledger {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 720px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.blog-ledger div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 13px 18px 14px 0;
}

.blog-ledger div + div {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.blog-ledger span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.blog-ledger strong {
  color: var(--ink-strong);
  font-size: 0.98rem;
  line-height: 1.35;
}

.editorial-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.editorial-strip span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  padding: 5px 10px;
}

.blog-shell {
  display: grid;
  grid-template-columns: minmax(0, 720px) 300px;
  gap: 64px;
  align-items: start;
  padding: 30px 0 70px;
}

.blog-main {
  min-width: 0;
}

.blog-toolbar {
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.category-tabs a {
  color: var(--muted-strong);
  font-size: 0.92rem;
  font-weight: 900;
}

.category-tabs a:hover,
.category-tabs a[aria-current="page"] {
  color: var(--teal-link);
}

.featured-post {
  border-top: 2px solid var(--charcoal);
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, #fbfcfd 0%, #ffffff 82%);
  padding: 22px 0 28px;
}

.featured-post h2 {
  margin-top: 12px;
  font-size: clamp(1.55rem, 3vw, 2.2rem);
}

.featured-post p {
  margin-top: 12px;
  color: var(--muted-strong);
}

.post-list {
  display: grid;
}

.post-card {
  border-bottom: 1px solid var(--line);
  padding: 24px 0;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.post-meta a {
  color: var(--teal-link);
}

.post-card h2 {
  margin-top: 8px;
  font-size: 1.22rem;
  line-height: 1.42;
}

.post-card h2 a:hover,
.featured-post h2 a:hover {
  color: var(--teal-link);
}

.post-card p {
  margin-top: 8px;
  color: var(--muted-strong);
  font-size: 0.96rem;
}

.post-source {
  color: var(--muted);
  font-size: 0.82rem;
}

.read-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--teal-link);
  font-size: 0.9rem;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pagination {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 22px;
}

.pagination a,
.pagination span {
  min-height: 42px;
  border-radius: var(--radius);
  padding: 8px 12px;
  color: var(--muted-strong);
  font-size: 0.9rem;
  font-weight: 900;
}

.pagination a {
  border: 1px solid var(--line);
  background: var(--paper);
}

.pagination a:last-child {
  justify-self: end;
}

.blog-sidebar {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 16px;
}

.sidebar-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px;
}

.sidebar-panel h2 {
  margin-top: 6px;
  font-size: 1.05rem;
  line-height: 1.45;
}

.sidebar-panel p:not(.sidebar-kicker) {
  margin-top: 10px;
  color: var(--muted-strong);
  font-size: 0.92rem;
}

.sidebar-links,
.recent-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.sidebar-links a,
.recent-list a,
.quiet-cta a {
  min-height: 44px;
  color: var(--charcoal);
  font-size: 0.9rem;
  font-weight: 800;
}

.sidebar-links a,
.quiet-cta a {
  display: inline-flex;
  align-items: center;
}

.recent-list a {
  display: grid;
  align-content: center;
  gap: 2px;
  line-height: 1.45;
}

.recent-list a span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
}

.sidebar-links a:hover,
.recent-list a:hover,
.quiet-cta a:hover {
  color: var(--teal-link);
}

.quiet-cta {
  background: var(--bg-soft);
}

.quiet-cta a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal-link);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.article-hero {
  max-width: 720px;
  padding: 48px 0 24px;
  border-bottom: 1px solid var(--line);
}

.article-category {
  color: var(--teal-link);
  font-size: 0.9rem;
  font-weight: 900;
}

.article-hero h1 {
  margin-top: 12px;
  font-size: clamp(2rem, 5vw, 3.1rem);
  line-height: 1.2;
}

.article-hero p {
  margin-top: 16px;
  color: var(--muted-strong);
  font-size: 1.04rem;
}

.article-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.article-shell {
  max-width: 720px;
  padding: 28px 0 72px;
}

.article-intent {
  margin-bottom: 28px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius);
  background: var(--bg-soft);
  padding: 16px 18px;
}

.article-intent span {
  color: var(--teal-link);
  font-size: 0.78rem;
  font-weight: 900;
}

.article-intent p {
  margin-top: 6px;
  color: var(--ink);
  font-size: 0.98rem;
  line-height: 1.75;
}

.article-content h2,
.article-content h3 {
  margin-top: 38px;
  color: var(--ink-strong);
  font-size: 1.42rem;
}

.article-content h2 {
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.article-content h2:first-child,
.article-content h3:first-child {
  margin-top: 0;
}

.article-content p,
.article-content li {
  color: var(--ink);
  font-size: 1.075rem;
  line-height: 1.86;
}

.article-content p + p,
.article-content p + ul,
.article-content ul + p {
  margin-top: 1.05rem;
}

.article-content ul {
  padding-left: 1.25rem;
}

.editor-note,
.reference-box,
.brand-note {
  margin-top: 28px;
}

.editor-note {
  border-left: 4px solid var(--charcoal);
  background: var(--bg-soft);
  padding: 18px;
}

.editor-note strong {
  display: block;
  color: var(--ink-strong);
  font-weight: 900;
}

.editor-note p,
.brand-note p,
.reference-box p {
  margin-top: 8px;
  color: var(--muted-strong);
}

.reference-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
}

.reference-box h2 {
  font-size: 1.05rem;
}

.reference-box dl {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
}

.reference-box dt {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.reference-box dd {
  margin: 2px 0 0;
  color: var(--ink);
  font-weight: 800;
}

.reference-box a,
.brand-note a {
  display: inline-flex;
  margin-top: 12px;
  color: var(--teal-link);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.brand-note {
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 34px;
  color: var(--muted-strong);
  font-size: 0.86rem;
}

.footer-inner strong {
  color: var(--ink-strong);
  font-weight: 900;
}

.footer-inner p {
  margin-top: 4px;
}

.foot-note {
  color: var(--muted);
}

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

.footer-links a {
  color: var(--charcoal);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 4px;
}

@media (max-width: 900px) {
  .blog-shell {
    grid-template-columns: 1fr;
  }

  .blog-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
  }

  .header-inner {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 1120px);
    padding-top: 14px;
  }

  .header-nav {
    justify-self: start;
  }

  .header-identifier,
  .blog-hero,
  .blog-shell,
  .article-hero,
  .article-shell,
  .footer-inner {
    width: min(100% - 24px, 1120px);
  }

  .blog-hero {
    padding-top: 34px;
  }

  .blog-hero h1,
  .article-hero h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
  }

  .blog-ledger {
    grid-template-columns: 1fr;
  }

  .blog-ledger div,
  .blog-ledger div + div {
    border-left: 0;
    padding: 12px 0;
  }

  .blog-ledger div + div {
    border-top: 1px solid var(--line);
  }

  .blog-shell {
    gap: 28px;
    padding-top: 22px;
  }

  .category-tabs {
    flex-wrap: nowrap;
    gap: 18px;
    overflow-x: auto;
    padding-bottom: 2px;
    white-space: nowrap;
  }

  .category-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }

  .post-card {
    padding: 22px 0;
  }

  .article-content p,
  .article-content li {
    font-size: 1.02rem;
    line-height: 1.84;
  }

  .footer-inner {
    flex-direction: column;
  }

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