@charset "UTF-8";
/* =============================================================
   Myeong Ro Lee · Aurora Purple Theme on Jekyll
   Light (default) + Dark, driven by data-theme attribute.
   Brand: Aurora Purple (#6D28D9) + Soft Violet (#A78BFA)
   ============================================================= */
/* ===== Light theme (default) ===== */
:root {
  --bg: #FCFBFF;
  --bg-elev: #F5F3FF;
  --bg-card: #FFFFFF;
  --bg-soft: #EDE9FE;
  --border: #DDD6FE;
  --border-soft: #E9E4FF;
  --text: #1E1B4B;
  --text-soft: #4338CA;
  --text-mute: #6366F1;
  --indigo: #6D28D9;
  --indigo-deep: #4C1D95;
  --sky: #8B5CF6;
  --sky-hover: #7C3AED;
  --sky-soft: rgba(139, 92, 246, 0.12);
  --indigo-soft: rgba(109, 40, 217, 0.10);
  --hero-grad: linear-gradient(135deg, #F5F3FF 0%, #FCFBFF 100%);
  --hero-blob-a: rgba(139, 92, 246, 0.14);
  --hero-blob-b: rgba(109, 40, 217, 0.10);
  --header-bg: rgba(252, 251, 255, 0.85);
  --footer-bg: #1E1B4B;
  --footer-text: #E0E7FF;
  --footer-mute: #A5B4FC;
  --code-bg: #1E1B4B;
  --code-text: #E0E7FF;
  --code-inline-bg: #F5F3FF;
  --code-inline-text: #6D28D9;
  --shadow-card: 0 4px 6px -1px rgba(109, 40, 217, 0.05), 0 2px 4px -1px rgba(109, 40, 217, 0.03);
  --shadow-hover: 0 10px 15px -3px rgba(109, 40, 217, 0.1), 0 4px 6px -2px rgba(109, 40, 217, 0.05);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 20px;
  --maxw: 1200px;
  --font-sans: "Inter", "Pretendard", -apple-system, BlinkMacSystemFont, "Helvetica Neue", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}

/* ===== Dark theme (explicit) ===== */
[data-theme=dark] {
  --bg: #0F172A;
  --bg-elev: #1E293B;
  --bg-card: #1E293B;
  --bg-soft: #334155;
  --border: #334155;
  --border-soft: #1E293B;
  --text: #F8FAFC;
  --text-soft: #CBD5E1;
  --text-mute: #94A3B8;
  --indigo: #A78BFA;
  --indigo-deep: #8B5CF6;
  --sky: #C084FC;
  --sky-hover: #D8B4FE;
  --sky-soft: rgba(192, 132, 252, 0.16);
  --indigo-soft: rgba(167, 139, 250, 0.18);
  --hero-grad: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  --hero-blob-a: rgba(192, 132, 252, 0.18);
  --hero-blob-b: rgba(167, 139, 250, 0.18);
  --header-bg: rgba(15, 23, 42, 0.85);
  --footer-bg: #020617;
  --footer-text: #F8FAFC;
  --footer-mute: #94A3B8;
  --code-bg: #020617;
  --code-text: #F8FAFC;
  --code-inline-bg: #334155;
  --code-inline-text: #C084FC;
  --shadow-card: none;
  --shadow-hover: 0 10px 15px -3px rgba(0, 0, 0, 0.4);
}

/* Honor system preference only if user hasn't chosen manually */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0F172A;
    --bg-elev: #1E293B;
    --bg-card: #1E293B;
    --bg-soft: #334155;
    --border: #334155;
    --border-soft: #1E293B;
    --text: #F8FAFC;
    --text-soft: #CBD5E1;
    --text-mute: #94A3B8;
    --indigo: #A78BFA;
    --sky: #C084FC;
    --sky-hover: #D8B4FE;
    --sky-soft: rgba(192, 132, 252, 0.16);
    --indigo-soft: rgba(167, 139, 250, 0.18);
    --hero-grad: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
    --hero-blob-a: rgba(192, 132, 252, 0.18);
    --hero-blob-b: rgba(167, 139, 250, 0.18);
    --header-bg: rgba(15, 23, 42, 0.85);
    --footer-bg: #020617;
    --footer-text: #F8FAFC;
    --footer-mute: #94A3B8;
    --code-bg: #020617;
    --code-text: #F8FAFC;
    --code-inline-bg: #334155;
    --code-inline-text: #C084FC;
    --shadow-card: none;
  }
}
/* ===== Reset / Base ===== */
* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.2s ease, color 0.2s ease;
}

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

a {
  color: var(--sky);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  color: var(--sky-hover);
}

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

@media (max-width: 720px) {
  .container {
    padding: 0 18px;
  }
}
/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border-soft);
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
}

.brand:hover {
  color: var(--text);
}

.brand-logo {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  object-fit: cover;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}

.brand-text__main {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -0.01em;
}

.brand-text__sub {
  font-size: 11px;
  color: var(--text-mute);
  margin-top: 2px;
}

.site-nav {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  gap: 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-item a {
  position: relative;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text-soft);
  padding: 22px 2px;
  display: inline-block;
}

.nav-item a:hover {
  color: var(--text);
}

.nav-item.is-active a {
  color: var(--text);
}

.nav-item.is-active a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--sky);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.repo-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  transition: all 0.15s ease;
}

.repo-link:hover {
  background: var(--bg-soft);
  border-color: var(--sky);
  color: var(--sky);
}

.repo-link svg {
  flex-shrink: 0;
}

/* Theme toggle button */
.theme-toggle {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-soft);
  cursor: pointer;
  transition: all 0.15s ease;
}

.theme-toggle:hover {
  color: var(--sky);
  border-color: var(--sky);
}

.theme-toggle svg {
  width: 16px;
  height: 16px;
}

.theme-toggle .icon-sun {
  display: none;
}

.theme-toggle .icon-moon {
  display: inline-block;
}

[data-theme=dark] .theme-toggle .icon-sun {
  display: inline-block;
}

[data-theme=dark] .theme-toggle .icon-moon {
  display: none;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) .theme-toggle .icon-sun {
    display: inline-block;
  }
  :root:not([data-theme]) .theme-toggle .icon-moon {
    display: none;
  }
}
@media (max-width: 920px) {
  .repo-link span {
    display: none;
  }
  .repo-link {
    padding: 8px 10px;
  }
}
.nav-toggle {
  display: none;
}

@media (max-width: 760px) {
  .site-nav {
    display: none;
  }
  .nav-toggle {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
    padding: 10px;
    background: transparent;
    border: 0;
    cursor: pointer;
  }
  .nav-toggle span {
    width: 22px;
    height: 2px;
    background: var(--text);
    display: block;
  }
  .site-nav.is-open {
    display: block;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--bg-elev);
    border-bottom: 1px solid var(--border);
    padding: 12px 24px;
  }
  .site-nav.is-open .nav-list {
    flex-direction: column;
    gap: 4px;
  }
  .site-nav.is-open .nav-item a {
    padding: 12px 4px;
  }
}
/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 96px 0 80px;
  overflow: hidden;
  border-bottom: 1px solid var(--border-soft);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 60% at 80% 20%, var(--hero-blob-a), transparent 60%), radial-gradient(ellipse 50% 60% at 10% 90%, var(--hero-blob-b), transparent 60%), var(--hero-grad);
  z-index: 0;
}

.hero-inner {
  position: relative;
  z-index: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  color: var(--sky);
  padding: 6px 12px;
  border: 1px solid var(--sky);
  border-radius: 999px;
  margin-bottom: 24px;
  background: var(--sky-soft);
}

.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
  font-weight: 800;
  color: var(--text);
}

.hero h1 .accent {
  color: var(--sky);
}

.hero p.lead {
  font-size: clamp(15px, 1.6vw, 18px);
  color: var(--text-soft);
  max-width: 720px;
  margin: 0 0 32px;
}

.hero-cta {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-weight: 600;
  font-size: 14.5px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: all 0.15s ease;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: var(--sky);
  color: #FFFFFF;
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn--ghost:hover {
  border-color: var(--sky);
  color: var(--sky);
}

/* ===== Section ===== */
.section {
  padding: 80px 0;
}

.section--soft {
  background: var(--bg-elev);
  border-block: 1px solid var(--border-soft);
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 32px;
}

.section-header h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}

.section-header__sub {
  color: var(--text-mute);
  font-size: 14px;
  margin: 6px 0 0;
}

.section-header__more {
  font-size: 13.5px;
  color: var(--text-soft);
}

.section-header__more:hover {
  color: var(--sky);
}

/* ===== Cards Grid ===== */
.cards-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  padding: 32px;
  border-radius: var(--radius);
  transition: all 0.2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  border-color: var(--sky);
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.card__icon {
  width: 48px;
  height: 48px;
  background: var(--sky-soft);
  color: var(--sky);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  margin-bottom: 20px;
}

.card__title {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 12px;
  color: var(--text);
}

.card__desc {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0 0 20px;
  flex: 1;
}

.card__cta {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sky);
}

/* ===== Posts Grid ===== */
.posts-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.posts-grid--featured {
  grid-template-columns: 1fr;
}

@media (min-width: 960px) {
  .posts-grid--featured {
    grid-template-columns: 1.6fr 1fr;
  }
  .postcard--featured {
    grid-row: span 2;
  }
}
.postcard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.postcard:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-hover);
}

.postcard__content {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.postcard__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.postcard__tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--sky);
  padding: 4px 8px;
  background: var(--sky-soft);
  border-radius: 4px;
}

.postcard__date {
  font-size: 13px;
  color: var(--text-mute);
}

.postcard__title {
  font-size: 20px;
  font-weight: 700;
  margin: 0 0 12px;
  line-height: 1.4;
  color: var(--text);
}

.postcard__excerpt {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0 0 20px;
  flex: 1;
}

.postcard__footer {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--sky);
}

.postcard--featured .postcard__title {
  font-size: 28px;
}

@media (max-width: 640px) {
  .postcard--featured .postcard__title {
    font-size: 22px;
  }
}
/* ===== Article / Page Content ===== */
.page-article {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 0 80px;
}

.article-header {
  margin-bottom: 48px;
  text-align: center;
}

.article-title {
  font-size: clamp(28px, 5vw, 44px);
  font-weight: 800;
  line-height: 1.2;
  margin: 0 0 16px;
}

.article-meta {
  color: var(--text-mute);
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.content {
  font-size: 17.5px;
  line-height: 1.8;
  color: var(--text-soft);
}

.content h2 {
  font-size: 28px;
  font-weight: 700;
  color: var(--text);
  margin: 48px 0 20px;
}

.content h3 {
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin: 32px 0 16px;
}

.content p {
  margin: 0 0 24px;
}

.content ul, .content ol {
  margin: 0 0 24px;
  padding-left: 20px;
}

.content li {
  margin-bottom: 8px;
}

.content img {
  border-radius: var(--radius);
  margin: 32px 0;
  border: 1px solid var(--border-soft);
}

.content blockquote {
  margin: 32px 0;
  padding: 24px 32px;
  background: var(--bg-elev);
  border-left: 4px solid var(--sky);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

.content blockquote p {
  margin-bottom: 0;
}

/* Code blocks */
.highlight {
  margin: 32px 0;
  padding: 20px;
  background: var(--code-bg);
  color: var(--code-text);
  border-radius: var(--radius);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 14.5px;
  line-height: 1.6;
}

code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  padding: 2px 6px;
  background: var(--code-inline-bg);
  color: var(--code-inline-text);
  border-radius: 4px;
}

.highlight code {
  padding: 0;
  background: transparent;
  color: inherit;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 80px 0 40px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.footer-inner {
  display: grid;
  gap: 48px;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  margin-bottom: 64px;
}

.footer-links {
  display: contents;
}

@media (max-width: 840px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 540px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}
.footer-brand {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.footer-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  object-fit: cover;
}

.footer-name {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 4px;
  color: #FFFFFF;
}

.footer-tag {
  font-size: 14px;
  color: var(--footer-mute);
  margin: 0;
}

.footer-col h4 {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin: 0 0 20px;
  color: #FFFFFF;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 12px;
}

.footer-col a {
  color: var(--footer-mute);
  font-size: 14.5px;
}

.footer-col a:hover {
  color: #FFFFFF;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--footer-mute);
  font-size: 13px;
}

@media (max-width: 640px) {
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
}
/* ===== Stats Counter Widget ===== */
.stats-widget {
  margin-top: 20px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.stat-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 8px 12px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  min-width: 80px;
}

.stat-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--footer-mute);
}

.stat-value {
  font-size: 16px;
  font-weight: 700;
  color: #FFFFFF;
  font-family: var(--font-mono);
}

/* ===== Profile Section (About page) ===== */
.profile-section {
  margin-top: 48px;
  padding-top: 40px;
  border-top: 1px solid var(--border);
}

.profile-section > h2 {
  font-size: clamp(22px, 3vw, 28px);
  font-weight: 800;
  color: var(--text);
  margin: 0 0 28px;
}

.profile-header {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 40px;
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.profile-header__photo {
  width: 80px;
  height: 100px;
  border-radius: 40%;
  border: 3px solid var(--border);
  object-fit: cover;
  flex-shrink: 0;
}

.profile-header__name {
  font-size: 24px;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--text);
  letter-spacing: -0.01em;
}

.profile-header__role {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--sky);
  margin: 0 0 8px;
  font-family: var(--font-mono);
}

.profile-header__bio {
  font-size: 14.5px;
  color: var(--text-soft);
  margin: 0;
  line-height: 1.55;
}

@media (max-width: 600px) {
  .profile-header {
    flex-direction: column;
    text-align: center;
  }
}
.profile-block {
  margin-bottom: 32px;
}

.profile-block__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--sky);
  display: inline-block;
}

.profile-entry {
  margin-bottom: 20px;
  padding: 18px 22px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}

.profile-entry:last-child {
  margin-bottom: 0;
}

.profile-entry__header {
  margin-bottom: 10px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.5;
}

.profile-entry__header strong {
  color: var(--text);
  font-weight: 700;
}

.profile-entry__period {
  display: block;
  font-size: 12.5px;
  color: var(--text-mute);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.profile-entry__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.profile-entry__list li {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.65;
  margin: 6px 0;
}

.profile-entry__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  width: 5px;
  height: 5px;
  background: var(--sky);
  border-radius: 50%;
}

.profile-entry__list em {
  color: var(--text);
  font-style: italic;
}

.profile-skills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.profile-skills__group h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-soft);
  margin: 0 0 10px;
}

.profile-skills__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.profile-skills__tags .tag-chip {
  display: inline-block;
  font-size: 12px;
  padding: 4px 10px;
  background: var(--bg-soft);
  color: var(--text-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-mono);
}

.profile-skills__tags .tag-chip:hover {
  color: var(--sky);
  border-color: var(--sky);
}

@media (max-width: 600px) {
  .profile-skills {
    grid-template-columns: 1fr;
  }
}
/* ===== Header visitor counter (Firebase) ===== */
.header-stats {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--font-mono);
}

.header-stats__item {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 0 8px;
}

.header-stats__value {
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1;
}

.header-stats__value--accent {
  color: var(--sky);
}

.header-stats__label {
  font-size: 10px;
  font-weight: 500;
  color: var(--text-mute);
  line-height: 1;
}

.header-stats__divider {
  width: 1px;
  height: 14px;
  background: var(--border);
}

@media (max-width: 920px) {
  .header-stats {
    display: none;
  }
}
/* ===== Post Navigation (이전글/다음글) ===== */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}

.post-nav__item {
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.2s ease;
  text-decoration: none;
}

.post-nav__item:hover {
  border-color: var(--sky);
  box-shadow: var(--shadow-hover);
}

.post-nav__item--next {
  text-align: right;
}

.post-nav__item--empty {
  visibility: hidden;
}

.post-nav__direction {
  font-size: 12px;
  font-weight: 600;
  color: var(--sky);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.post-nav__title {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .post-nav {
    grid-template-columns: 1fr;
  }
}
/* ===== Table of Contents (TOC) ===== */
.toc {
  margin-bottom: 36px;
  padding: 20px 24px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.toc__title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  user-select: none;
  padding: 4px 0;
}

.toc__title::marker {
  color: var(--sky);
}

.toc__list {
  margin-top: 12px;
}

.toc__list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc__item {
  margin: 0;
  line-height: 1.4;
}

.toc__item a {
  display: block;
  padding: 5px 0;
  font-size: 13.5px;
  color: var(--text-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
  padding-left: 12px;
  transition: all 0.15s ease;
}

.toc__item a:hover {
  color: var(--sky);
  border-left-color: var(--sky);
}

.toc__item--h2 a {
  font-weight: 600;
  color: var(--text);
}

.toc__item--h3 a {
  padding-left: 28px;
  font-size: 13px;
}

/* ===== Floating TOC (오른쪽 플로팅 목차) ===== */
.toc-float {
  position: fixed;
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toc-float.is-visible {
  opacity: 1;
  pointer-events: auto;
}

/* 넓은 화면: 오른쪽 사이드바 형태 */
@media (min-width: 1280px) {
  .toc-float {
    top: 80px;
    right: calc((100vw - var(--maxw)) / 2 - 20px);
    right: 24px;
    width: 220px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    transform: translateX(16px);
  }
  .toc-float.is-visible {
    transform: translateX(0);
  }
  .toc-float__toggle {
    display: none;
  }
  .toc-float__panel {
    display: block !important;
    padding: 16px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
  }
}
/* 중간 화면: 우하단 플로팅 버튼 + 펼침 패널 */
@media (max-width: 1279px) {
  .toc-float {
    bottom: 24px;
    right: 24px;
    transform: translateY(8px);
  }
  .toc-float.is-visible {
    transform: translateY(0);
  }
  .toc-float__toggle {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sky);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }
  .toc-float__toggle:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }
  .toc-float__panel {
    display: none;
    position: absolute;
    bottom: 54px;
    right: 0;
    width: 260px;
    max-height: 50vh;
    overflow-y: auto;
    padding: 16px 14px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  }
  .toc-float.is-open .toc-float__panel {
    display: block;
  }
  .toc-float.is-open .toc-float__toggle {
    background: var(--text);
  }
}
/* 모바일: 더 작은 버튼 */
@media (max-width: 600px) {
  .toc-float {
    bottom: 16px;
    right: 16px;
  }
  .toc-float__toggle {
    width: 40px;
    height: 40px;
  }
  .toc-float__panel {
    width: 220px;
    max-height: 40vh;
  }
}
.toc-float__title {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-mute);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.toc-float__list ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.toc-float .toc__item a {
  display: block;
  padding: 4px 0 4px 10px;
  font-size: 12px;
  color: var(--text-mute);
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: all 0.15s ease;
  line-height: 1.4;
}

.toc-float .toc__item a:hover,
.toc-float .toc__item a.is-active {
  color: var(--sky);
  border-left-color: var(--sky);
}

.toc-float .toc__item--h2 a {
  font-weight: 600;
  color: var(--text-soft);
  font-size: 12.5px;
}

.toc-float .toc__item--h3 a {
  padding-left: 22px;
  font-size: 11.5px;
}

/* ===== Anchor offset for sticky header ===== */
.post-content h2,
.post-content h3,
.post-content h4 {
  scroll-margin-top: 80px;
}

/* ===== Post Content Tables ===== */
.post-content table,
.content table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.post-content thead,
.content thead {
  background: var(--bg-soft);
}

.post-content th,
.content th {
  padding: 12px 16px;
  font-weight: 700;
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text);
  text-align: left;
  border-bottom: 2px solid var(--border);
}

.post-content td,
.content td {
  padding: 10px 16px;
  color: var(--text-soft);
  border-bottom: 1px solid var(--border);
}

.post-content tr:last-child td,
.content tr:last-child td {
  border-bottom: none;
}

.post-content tbody tr:hover,
.content tbody tr:hover {
  background: var(--sky-soft);
}

.post-content td code,
.content td code {
  font-size: 12.5px;
  padding: 1px 5px;
}

/* ===== Mermaid Diagrams ===== */
.mermaid {
  margin: 24px 0;
  padding: 20px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
  overflow-x: auto;
}

/*# sourceMappingURL=style.css.map */