/* =============================================================================
 * style.css — 다크 미니멀 개발자 테마
 * 색·간격·폰트는 :root 변수만 바꾸면 전체가 따라옵니다.
 * ========================================================================== */

:root {
  /* 색 (GitHub Dark 계열) */
  --bg:        #0d1117;
  --bg-soft:   #11161d;
  --surface:   #161b22;
  --surface-2: #1c232c;
  --border:    #283039;
  --border-soft:#21262d;
  --text:      #e6edf3;
  --muted:     #9aa5b1;
  --faint:     #6e7681;
  --accent:    #3fb950;   /* 터미널 그린 */
  --accent-2:  #56d364;
  --accent-dim:#2ea043;
  --link:      #58a6ff;
  --nav-bg:    rgba(13,17,23,0.82);
  --danger:    #ff7b72;
  --success:   #56d364;
  --focus:     #79c0ff;

  /* 폰트 */
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Apple SD Gothic Neo",
          "Noto Sans KR", "Malgun Gothic", sans-serif;

  /* 레이아웃 */
  --maxw: 920px;
  --radius: 10px;
  --gap: 1.5rem;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* 미세한 그리드 배경 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(63,185,80,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(63,185,80,0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  z-index: 0;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, textarea { font: inherit; }
[hidden] { display: none !important; }

:where(a, button, input, textarea):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 1.5rem; position: relative; z-index: 1; }

/* ----- 상단 네비 ----------------------------------------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-soft);
  transition: background-color .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.nav.scrolled {
  background: var(--bg-soft);
  border-bottom-color: var(--border);
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0.7rem 1.5rem;
  display: flex; align-items: center; gap: 0.55rem;
  position: relative;
}
.nav-brand {
  font-family: var(--mono); font-size: 0.92rem; font-weight: 600;
  color: var(--text); white-space: nowrap;
}
.nav-brand .prompt { color: var(--accent); }
.nav-links {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 0;
  background: var(--bg-soft);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 1.5rem 1rem;
}
.nav-links.open { display: flex; }
.nav-links a {
  font-family: var(--mono); font-size: 0.82rem; color: var(--muted);
  letter-spacing: 0.02em; transition: color 0.15s;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border-soft);
}
.nav-links a:hover { color: var(--accent-2); text-decoration: none; }

.lang-toggle {
  display: flex; align-items: center; gap: 0.15rem;
  font-family: var(--mono); font-size: 0.8rem;
  border: 1px solid var(--border); border-radius: 6px; overflow: hidden;
}
.lang-toggle a { padding: 0.22rem 0.55rem; color: var(--faint); }
.lang-toggle a:hover { color: var(--text); text-decoration: none; background: var(--surface-2); }
.lang-toggle a.active { color: var(--bg); background: var(--accent); font-weight: 600; }

.nav-toggle { display: block; background: none; border: 1px solid transparent; cursor: pointer;
  font-family: var(--mono); color: var(--accent); font-size: 1.2rem; margin-left: auto;
  border-radius: 6px; padding: 0.18rem 0.45rem; }

/* ----- 히어로 ------------------------------------------------------- */
.hero { padding: 3.5rem 0 2.5rem; border-bottom: 1px solid var(--border-soft); }
.hero-layout { display: grid; gap: 2rem; align-items: center; }
.hero-content { min-width: 0; }
.hero-term {
  font-family: var(--mono); font-size: 0.85rem; color: var(--faint);
  margin-bottom: 1.4rem;
}
.hero-term .accent { color: var(--accent); }
.hero h1 {
  font-family: var(--mono); font-size: clamp(2.1rem, 6vw, 3.3rem);
  font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 0.6rem;
}
.hero .role {
  font-family: var(--mono); font-size: clamp(1rem, 2.6vw, 1.25rem);
  color: var(--accent-2); margin-bottom: 1.3rem;
}
.hero .role .cursor {
  display: inline-block; width: 0.55em; height: 1.05em; background: var(--accent);
  margin-left: 2px; transform: translateY(0.15em);
  animation: blink 1.1s steps(1) infinite;
}
@keyframes blink { 50% { opacity: 0; } }
.hero .tagline { font-size: 1.12rem; color: var(--text); max-width: 38rem; margin-bottom: 1rem; }
.hero .summary { color: var(--muted); max-width: 42rem; margin-bottom: 1.8rem; }

.hero-meta { display: flex; flex-wrap: wrap; gap: 0.6rem 1.4rem; margin-bottom: 1.8rem;
  font-family: var(--mono); font-size: 0.84rem; color: var(--muted); }
.hero-meta span { display: inline-flex; align-items: center; gap: 0.4rem; }
.hero-meta .ic { color: var(--accent); }
.hero-profile {
  width: min(78vw, 320px);
  margin: 0 auto;
}
.hero-profile img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 22px;
  border: 1px solid var(--border);
  box-shadow: 0 18px 45px rgba(0,0,0,.3);
}

.btn-row { display: flex; flex-wrap: wrap; gap: 0.7rem; }
.btn {
  font-family: var(--mono); font-size: 0.85rem; font-weight: 500;
  padding: 0.6rem 1.1rem; border-radius: 7px; border: 1px solid var(--border);
  color: var(--text); background: var(--surface); transition: all 0.15s; cursor: pointer;
  display: inline-flex; align-items: center; gap: 0.45rem;
}
.btn:hover { text-decoration: none; border-color: var(--accent-dim); transform: translateY(-1px); }
.btn-primary { background: var(--accent-dim); border-color: var(--accent-dim); color: #03130a; font-weight: 600; }
.btn-primary:hover { background: var(--accent); border-color: var(--accent); }

/* ----- 섹션 공통 ---------------------------------------------------- */
section { padding: 3.2rem 0; border-bottom: 1px solid var(--border-soft); }
.section-head {
  font-family: var(--mono); font-size: 1.35rem; font-weight: 700;
  margin-bottom: 1.8rem; display: flex; align-items: baseline; gap: 0.6rem;
}
.section-head .hash { color: var(--accent); font-weight: 700; }
.section-head .idx { font-size: 0.8rem; color: var(--faint); font-weight: 400; margin-left: auto; }

/* ----- 타임라인 (학력/경력) ---------------------------------------- */
.timeline { display: flex; flex-direction: column; gap: 1.1rem; }
.tl-item {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.2rem 1.3rem; transition: border-color 0.15s, transform 0.15s;
}
.tl-item:hover { border-color: var(--border); transform: translateX(3px); }
.tl-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; margin-bottom: 0.35rem; }
.tl-org { font-weight: 600; font-size: 1.05rem; color: var(--text); }
.tl-period { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-2); margin-left: auto; white-space: nowrap; }
.tl-title { font-family: var(--mono); font-size: 0.86rem; color: var(--muted); margin-bottom: 0.5rem; }
.tl-detail { color: var(--muted); font-size: 0.96rem; }
.tl-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-top: 0.3rem; }
.tl-bullets li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: 0.96rem; }
.tl-bullets li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); }

/* ----- 프로젝트 카드 ------------------------------------------------ */
/* 대표 프로젝트도 행·열 확장이 필요하므로 Grid를 사용합니다. */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
  gap: 1.1rem;
  align-items: start;
}
.proj {
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}
.proj:hover { border-color: var(--accent-dim); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.proj.featured { border-left: 3px solid var(--accent); }
.proj-top { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem 0.8rem; margin-bottom: 0.5rem; }
.proj-name { font-family: var(--mono); font-size: 1.12rem; font-weight: 700; color: var(--text); }
.proj-year { font-family: var(--mono); font-size: 0.78rem; color: var(--faint); margin-left: auto; }
.proj-role { font-family: var(--mono); font-size: 0.8rem; color: var(--accent-2); margin-bottom: 0.2rem; }
.proj-badge {
  display: inline-block; font-family: var(--mono); font-size: 0.72rem;
  color: var(--accent); background: rgba(63,185,80,0.1); border: 1px solid rgba(63,185,80,0.3);
  border-radius: 5px; padding: 0.12rem 0.5rem; margin-bottom: 0.7rem;
}
.proj-summary { color: var(--text); font-size: 0.99rem; margin-bottom: 0.7rem; }
.proj-bullets { list-style: none; display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 0.9rem; }
.proj-bullets li { position: relative; padding-left: 1.1rem; color: var(--muted); font-size: 0.94rem; }
.proj-bullets li::before { content: "–"; position: absolute; left: 0.15rem; color: var(--accent); }
.proj-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem; }
.tag {
  font-family: var(--mono); font-size: 0.72rem; color: var(--muted);
  background: var(--surface-2); border: 1px solid var(--border-soft);
  border-radius: 5px; padding: 0.15rem 0.5rem;
}
.proj-link { font-family: var(--mono); font-size: 0.78rem; color: var(--link); margin-left: auto; }
.proj-link::before { content: "↗ "; }

/* ----- GitHub API 프로젝트 ----------------------------------------- */
.project-group + .project-group { margin-top: 3rem; }
.subsection-title {
  font-family: var(--mono);
  font-size: 1.02rem;
  color: var(--text);
  margin-bottom: 1rem;
}
.subsection-title::before { content: "## "; color: var(--accent); }
.github-heading { display: flex; flex-direction: column; gap: 0.65rem; margin-bottom: 1rem; }
.section-note { color: var(--muted); }
.github-profile-link { font-family: var(--mono); font-size: 0.78rem; }
.repo-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; }
.filter-btn {
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  padding: 0.35rem 0.75rem;
  cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background-color .15s ease;
}
.filter-btn:hover { color: var(--text); border-color: var(--accent-dim); }
.filter-btn[aria-pressed="true"] {
  color: #03130a;
  border-color: var(--accent);
  background: var(--accent);
  font-weight: 700;
}
/* 저장소 카드는 두 방향으로 늘어나므로 Flex가 아닌 반응형 Grid를 사용합니다. */
.repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 1rem;
}
.repo-card {
  display: flex;
  flex-direction: column;
  min-height: 190px;
  padding: 1.1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  box-shadow: 0 6px 20px rgba(0,0,0,.16);
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.repo-card:hover {
  transform: translateY(-3px);
  border-color: var(--accent-dim);
  box-shadow: 0 10px 28px rgba(0,0,0,.25);
}
.repo-card-top { display: flex; justify-content: space-between; gap: 0.8rem; align-items: flex-start; }
.repo-card h4 { font-family: var(--mono); font-size: .93rem; overflow-wrap: anywhere; }
.repo-card-top > span { color: var(--accent-2); font-family: var(--mono); font-size: .76rem; white-space: nowrap; }
.repo-card > p { color: var(--muted); font-size: .9rem; margin: .8rem 0 1rem; }
.repo-meta {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .4rem .8rem;
  color: var(--faint);
  font-family: var(--mono);
  font-size: .7rem;
  margin-top: auto;
}
.repo-status {
  min-height: 2.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .8rem;
  color: var(--muted);
  text-align: center;
}
.repo-status.error { color: var(--danger); flex-direction: column; }
.spinner {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ----- 연락 폼 ------------------------------------------------------ */
.contact-layout { display: grid; gap: 1.5rem; align-items: start; }
.contact-copy {
  color: var(--muted);
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1rem 1.1rem;
}
.contact-copy a { display: inline-block; margin-top: .7rem; font-family: var(--mono); font-size: .85rem; }
.contact-form {
  display: grid;
  gap: 1rem;
  background: var(--surface);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius);
  padding: 1.2rem;
}
.form-field { display: grid; gap: .35rem; }
.form-field label { font-family: var(--mono); font-size: .82rem; color: var(--text); }
.form-field input,
.form-field textarea {
  width: 100%;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: .7rem .8rem;
  resize: vertical;
}
.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--faint); }
.form-field :where(input, textarea).invalid { border-color: var(--danger); }
.field-error { min-height: 1.15rem; color: var(--danger); font-size: .78rem; }
.form-status { min-height: 1.4rem; color: var(--muted); }
.form-status.success { color: var(--success); }
.form-status.error { color: var(--danger); }
.contact-form button:disabled { cursor: wait; opacity: .7; transform: none; }

/* ----- 스크롤 탑 ---------------------------------------------------- */
.back-to-top {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 45;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid var(--accent-dim);
  border-radius: 50%;
  color: #03130a;
  background: var(--accent);
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  cursor: pointer;
}
.footer-built { margin-top: .6rem; color: var(--faint); }
.adsbygoogle { display: block; }

/* ----- 기술 스택 ---------------------------------------------------- */
.skills-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; }
.skill-card { background: var(--surface); border: 1px solid var(--border-soft); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.skill-card h3 { font-family: var(--mono); font-size: 0.82rem; color: var(--accent-2); margin-bottom: 0.7rem; letter-spacing: 0.03em; }
.skill-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ----- 수상 -------------------------------------------------------- */
.awards-list { display: flex; flex-direction: column; gap: 0.7rem; }
.award {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.3rem 0.8rem;
  background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: 8px; padding: 0.85rem 1.1rem; border-left: 3px solid var(--accent-dim);
}
.award-title { font-weight: 600; color: var(--text); font-size: 0.99rem; }
.award-org { color: var(--muted); font-size: 0.88rem; }
.award-date { font-family: var(--mono); font-size: 0.78rem; color: var(--accent-2); margin-left: auto; white-space: nowrap; }
.award-note { flex-basis: 100%; color: var(--faint); font-size: 0.85rem; font-family: var(--mono); }

/* ----- 푸터 -------------------------------------------------------- */
.footer { padding: 2.5rem 0 3.5rem; text-align: center; }
.footer .term { font-family: var(--mono); font-size: 0.82rem; color: var(--faint); }
.footer .term .accent { color: var(--accent); }
.footer .links { margin-top: 0.8rem; display: flex; justify-content: center; gap: 1.2rem; flex-wrap: wrap; }
.footer .links a { font-family: var(--mono); font-size: 0.82rem; color: var(--muted); }

/* ----- 등장 애니메이션 --------------------------------------------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.5s ease, transform 0.5s ease; }
.reveal.in { opacity: 1; transform: none; }

.nav-brand { text-decoration: none; }
.nav-brand:hover { text-decoration: none; }
.nav-links a.active { color: var(--accent-2); }

/* ----- 블로그 목록 ------------------------------------------------- */
.blog-h1 { font-family: var(--mono); font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 700; margin: 0.4rem 0 2rem; letter-spacing: -0.02em; }
.blog-command { margin-top: 2.5rem; }
.post-list { display: flex; flex-direction: column; gap: 1.1rem; padding-bottom: 1rem; }
.post-card { display: block; background: var(--surface); border: 1px solid var(--border-soft);
  border-radius: var(--radius); padding: 1.3rem 1.4rem; transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s; }
.post-card:hover { text-decoration: none; border-color: var(--accent-dim); transform: translateY(-2px); box-shadow: 0 6px 24px rgba(0,0,0,0.35); }
.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.8rem; font-family: var(--mono); font-size: 0.76rem; color: var(--faint); margin-bottom: 0.5rem; }
.post-date { color: var(--accent-2); }
.post-draft { color: #fff; background: var(--accent-dim); border-radius: 4px; padding: 0.05rem 0.4rem; }
.post-title { font-size: 1.25rem; font-weight: 700; color: var(--text); margin-bottom: 0.4rem; line-height: 1.3; }
.post-card:hover .post-title { color: var(--accent-2); }
.post-summary { color: var(--muted); font-size: 0.97rem; margin-bottom: 0.8rem; }
.post-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ----- 글 상세 (마크다운 렌더) ------------------------------------- */
.wrap-article { max-width: 720px; }
.back-link { display: inline-block; font-family: var(--mono); font-size: 0.82rem; color: var(--muted); margin: 2.5rem 0 1.2rem; }
.back-link:hover { color: var(--accent-2); text-decoration: none; }
.article { padding-bottom: 1rem; }
.article-title { font-family: var(--mono); font-size: clamp(1.6rem, 4.5vw, 2.3rem); font-weight: 700; line-height: 1.25; letter-spacing: -0.02em; margin: 0.5rem 0 0.9rem; }
.article-body { color: var(--text); font-size: 1.04rem; line-height: 1.8; margin-top: 1.6rem; }
.article-body h2 { font-family: var(--mono); font-size: 1.3rem; margin: 2rem 0 0.8rem; color: var(--text); }
.article-body h2::before { content: "# "; color: var(--accent); }
.article-body h3 { font-family: var(--mono); font-size: 1.08rem; margin: 1.6rem 0 0.6rem; color: var(--text); }
.article-body h3::before { content: "## "; color: var(--accent); }
.article-body p { margin: 0.9rem 0; color: var(--muted); }
.article-body strong { color: var(--text); font-weight: 600; }
.article-body a { color: var(--link); }
.article-body ul, .article-body ol { margin: 0.9rem 0; padding-left: 1.4rem; color: var(--muted); }
.article-body li { margin: 0.35rem 0; }
.article-body ul li::marker { color: var(--accent); }
.article-body blockquote { border-left: 3px solid var(--accent-dim); background: var(--surface); margin: 1.2rem 0;
  padding: 0.8rem 1.1rem; color: var(--muted); border-radius: 0 8px 8px 0; }
.article-body code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2);
  border: 1px solid var(--border-soft); border-radius: 4px; padding: 0.1rem 0.35rem; color: var(--accent-2); }
.article-body pre { background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
  padding: 1rem 1.1rem; overflow-x: auto; margin: 1.2rem 0; }
.article-body pre code { background: none; border: none; padding: 0; color: var(--muted); font-size: 0.86rem; line-height: 1.6; }
.article-body hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }

.ad-slot { margin: 2.5rem 0 1rem; min-height: 1px; }
.preview-banner { font-family: var(--mono); font-size: 0.82rem; color: #fff; background: var(--accent-dim);
  border-radius: 6px; padding: 0.5rem 0.9rem; margin: 1rem 0; text-align: center; }

/* ----- 반응형: 모바일 기본 → 태블릿 768 → 데스크톱 1024 ----------- */
.tl-period, .award-date { margin-left: 0; }

@media (min-width: 768px) {
  .nav-inner { gap: 1rem; }
  .nav-toggle { display: none; }
  .nav-links {
    display: flex;
    position: static;
    flex-direction: row;
    gap: 1.1rem;
    margin-left: auto;
    padding: 0;
    background: transparent;
    border: 0;
  }
  .nav-links a { padding: 0; border: 0; }
  .hero { padding: 5rem 0 3.5rem; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) minmax(220px, 280px); gap: 2rem; }
  .hero-profile { width: 100%; margin: 0; }
  .contact-layout { grid-template-columns: minmax(220px, .75fr) minmax(0, 1.25fr); gap: 2rem; }
  .github-heading { flex-direction: row; justify-content: space-between; align-items: end; }
  .tl-period, .award-date { margin-left: auto; }
  .back-to-top { right: 1.5rem; bottom: 1.5rem; }
}

@media (min-width: 1024px) {
  :root { --maxw: 1080px; }
  .wrap, .nav-inner { padding-left: 2rem; padding-right: 2rem; }
  section { padding: 4rem 0; }
  .hero-layout { grid-template-columns: minmax(0, 1fr) 340px; gap: 4rem; }
  .repo-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ----- 라이트 테마 ------------------------------------------------- */
html { color-scheme: dark; }
html[data-theme="light"] { color-scheme: light;
  --bg: #ffffff; --bg-soft: #f6f8fa; --surface: #ffffff; --surface-2: #f1f4f8;
  --border: #d0d7de; --border-soft: #e6eaef; --text: #1f2328; --muted: #57606a; --faint: #8b949e;
  --accent: #1a7f37; --accent-2: #1f9d57; --accent-dim: #2da44e; --link: #0969da;
  --nav-bg: rgba(255,255,255,0.85); --danger: #cf222e; --success: #1a7f37; --focus: #0969da;
}
body, .nav { transition: background-color .22s ease, color .22s ease; }

/* ----- 테마 토글 버튼 ---------------------------------------------- */
.theme-toggle { font-family: var(--mono); font-size: 0.92rem; line-height: 1; background: transparent;
  border: 1px solid var(--border); color: var(--muted); border-radius: 6px; padding: 0.2rem 0.5rem; cursor: pointer; }
.theme-toggle:hover { color: var(--text); border-color: var(--accent-dim); }

/* ----- 글 대표 이미지 / 조회수 ------------------------------------- */
.article-cover { width: 100%; border-radius: 10px; border: 1px solid var(--border-soft); margin: 0.3rem 0 0.4rem; display: block; }
.post-views { font-family: var(--mono); color: var(--faint); }

/* ----- 관리자 GitHub 패널 ----------------------------------------- */
.gh-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1.2rem; }
.gh-warn { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); background: var(--bg-soft);
  border: 1px solid var(--border-soft); border-left: 3px solid #ef9f27; border-radius: 0 6px 6px 0; padding: 0.6rem 0.8rem; margin-bottom: 0.9rem; }
.gh-warn b { color: var(--text); }
.gh-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-bottom: 0.9rem; }
.gh-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.gh-status { font-family: var(--mono); font-size: 0.78rem; color: var(--muted); margin-left: 0.3rem; }
@media (max-width: 640px) { .gh-grid { grid-template-columns: 1fr; } }
