@import url("https://cdn.jsdelivr.net/gh/orioncactus/pretendard@v1.3.9/dist/web/static/pretendard-dynamic-subset.min.css");
@import url("https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600&family=Noto+Serif+KR:wght@400;600;700&display=swap");

:root {
  /* Core Palette Defaults (Minimal Nordic) */
  --bg-canvas: #ffffff;
  --bg-surface: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-muted: #f1f5f9;
  --bg-header: rgba(255, 255, 255, 0.86);
  --bg-accent-soft: #eff6ff;

  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-on-accent: #ffffff;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --border-color: #e2e8f0;
  --border-strong: #cbd5e1;

  /* Typography */
  --font-sans: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, system-ui, Roboto, sans-serif;
  --font-serif: "Noto Serif KR", Georgia, serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);

  /* Layout & Geometry */
  --container-max: 1160px;
  --reading-max: 740px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-pill: 9999px;
  --border-width: 1px;

  /* Shadows */
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-sm: 0 4px 12px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 12px 28px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 40px rgba(15, 23, 42, 0.14);

  /* Transitions */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.15s !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.15s !important;
  }
  .post-card:hover {
    transform: none !important;
  }
}

*, *::before, *::after {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  background-color: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease, opacity 0.15s ease;
}

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

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* Site Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-header);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: var(--border-width) solid var(--border-color);
  transition: background-color 0.25s ease, border-color 0.25s ease;
}

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

.brand {
  display: flex;
  align-items: baseline;
  gap: 8px;
  font-family: var(--font-heading);
}

.brand-title {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.brand-subtitle {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-link {
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: all 0.15s ease;
}

.nav-link:hover {
  color: var(--text-primary);
  background: var(--bg-subtle);
}

.nav-link.active {
  color: var(--accent);
  background: var(--bg-accent-soft);
  font-weight: 600;
}

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

.theme-trigger-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.18s ease;
}

.theme-trigger-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
}

.theme-dot-preview {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 2px var(--bg-accent-soft);
}

/* Hero Banner */
.hero-section {
  padding: 52px 0 36px;
  border-bottom: var(--border-width) solid var(--border-color);
  background: linear-gradient(180deg, var(--bg-subtle) 0%, var(--bg-canvas) 100%);
}

.hero-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}

.hero-title {
  margin: 0;
  font-family: var(--font-heading);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.22;
  color: var(--text-primary);
}

.hero-desc {
  margin: 0;
  max-width: 680px;
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px dashed var(--border-color);
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.hero-stat-item strong {
  color: var(--text-primary);
  font-weight: 700;
  font-family: var(--font-mono);
}

/* Filter & Control Bar */
.controls-section {
  padding: 24px 0 16px;
  position: relative;
}

.controls-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.search-box {
  position: relative;
  flex: 1 1 280px;
  max-width: 420px;
}

.search-input {
  width: 100%;
  padding: 10px 42px 10px 38px;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-accent-soft);
}

.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
  width: 16px;
  height: 16px;
}

.search-kbd-hint {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  color: var(--text-muted);
  background: var(--bg-muted);
  border: 1px solid var(--border-color);
  border-radius: 4px;
  pointer-events: none;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
  transition: opacity 0.15s var(--ease-out), transform 0.15s var(--ease-out);
}

.search-input:focus ~ .search-kbd-hint,
.search-input:not(:placeholder-shown) ~ .search-kbd-hint {
  opacity: 0;
  transform: translateY(-50%) scale(0.85);
}

.filter-selects {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.select-control {
  padding: 9px 12px;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.86rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
}

.select-control:focus {
  border-color: var(--accent);
}

.layout-switcher {
  display: inline-flex;
  background: var(--bg-subtle);
  padding: 3px;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
}

.layout-btn {
  border: none;
  background: transparent;
  color: var(--text-secondary);
  padding: 8px 12px;
  min-height: 38px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.layout-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  box-shadow: var(--shadow-xs);
}

/* Category Pills Bar */
.category-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.category-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 13px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 0.84rem;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
}

.category-pill:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.category-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--text-on-accent);
  font-weight: 600;
}

.category-count {
  font-size: 0.73rem;
  opacity: 0.75;
  font-family: var(--font-mono);
}

/* Active filter status bar */
.results-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 0 18px;
  font-size: 0.86rem;
  color: var(--text-secondary);
}

.reset-filter-btn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
}

/* ==========================================
   POST FEED LAYOUTS (4 Modes)
   ========================================== */
.posts-container {
  margin-bottom: 48px;
}

/* 1. GRID LAYOUT */
.posts-container[data-layout="grid"] {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  gap: 24px;
}

/* 2. BENTO LAYOUT */
.posts-container[data-layout="bento"] {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.posts-container[data-layout="bento"] .post-card {
  grid-column: span 4;
}

.posts-container[data-layout="bento"] .post-card:nth-child(6n + 1),
.posts-container[data-layout="bento"] .post-card:nth-child(6n + 2) {
  grid-column: span 6;
}

@media (max-width: 960px) {
  .posts-container[data-layout="bento"] .post-card,
  .posts-container[data-layout="bento"] .post-card:nth-child(6n + 1),
  .posts-container[data-layout="bento"] .post-card:nth-child(6n + 2) {
    grid-column: span 6;
  }
}

@media (max-width: 640px) {
  .posts-container[data-layout="bento"] .post-card,
  .posts-container[data-layout="bento"] .post-card:nth-child(6n + 1),
  .posts-container[data-layout="bento"] .post-card:nth-child(6n + 2) {
    grid-column: span 12;
  }
}

/* 3. EDITORIAL LAYOUT */
.posts-container[data-layout="editorial"] {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.posts-container[data-layout="editorial"] .post-card {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 24px;
  align-items: center;
  padding: 28px;
}

.posts-container[data-layout="editorial"] .post-card.no-thumb {
  grid-template-columns: 1fr;
}

.posts-container[data-layout="editorial"] .post-card-thumb {
  order: 2;
  height: 150px;
  border-radius: var(--radius-sm);
}

.posts-container[data-layout="editorial"] .post-card-body {
  order: 1;
  padding: 0;
}

@media (max-width: 640px) {
  .posts-container[data-layout="editorial"] .post-card {
    grid-template-columns: 1fr;
    padding: 20px;
  }
  .posts-container[data-layout="editorial"] .post-card-thumb {
    order: 1;
    height: 190px;
  }
  .posts-container[data-layout="editorial"] .post-card-body {
    order: 2;
  }
}

/* 4. COMPACT (LIST) LAYOUT */
.posts-container[data-layout="compact"] {
  display: flex;
  flex-direction: column;
  border-top: var(--border-width) solid var(--border-color);
}

.posts-container[data-layout="compact"] .post-card {
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 12px;
  border: none;
  border-bottom: var(--border-width) solid var(--border-color);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.posts-container[data-layout="compact"] .post-card:hover {
  background: var(--bg-subtle);
  transform: none;
}

.posts-container[data-layout="compact"] .post-card-thumb,
.posts-container[data-layout="compact"] .post-card-excerpt,
.posts-container[data-layout="compact"] .post-card-footer {
  display: none;
}

.posts-container[data-layout="compact"] .post-card-body {
  padding: 0;
  display: flex;
  flex-direction: row;
  align-items: baseline;
  justify-content: space-between;
  width: 100%;
  gap: 16px;
}

.posts-container[data-layout="compact"] .post-card-title {
  margin: 0;
  font-size: 1.02rem;
  flex: 1;
}

.posts-container[data-layout="compact"] .post-card-meta {
  margin: 0;
  flex-shrink: 0;
  order: 2;
}

/* Post Card Common Styling */
.post-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-xs);
  transition: transform 0.22s var(--ease-out), box-shadow 0.22s var(--ease-out), border-color 0.2s ease;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

.post-card-thumb {
  width: 100%;
  height: 200px;
  overflow: hidden;
  background: var(--bg-subtle);
  position: relative;
}

.post-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s var(--ease-out);
}

.post-card:hover .post-card-thumb img {
  transform: scale(1.04);
}

.post-card-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.post-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 10px;
  font-size: 0.78rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.post-cat-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--bg-accent-soft);
  color: var(--accent);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.74rem;
}

.post-card-title {
  margin: 0 0 10px;
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.post-card:hover .post-card-title {
  color: var(--accent);
}

.post-card-excerpt {
  margin: 0 0 16px;
  font-size: 0.92rem;
  color: var(--text-secondary);
  line-height: 1.62;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}

.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 0.78rem;
  color: var(--text-muted);
}

.read-more-link {
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Pagination / Load More */
.pagination-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 16px 0 64px;
}

.load-more-btn {
  padding: 12px 28px;
  border-radius: var(--radius-pill);
  border: var(--border-width) solid var(--border-strong);
  background: var(--bg-surface);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: all 0.18s ease;
}

.load-more-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

/* ==========================================
   SINGLE POST / PAGE ARTICLE STYLING
   ========================================== */
.article-wrapper {
  padding: 48px 0 80px;
}

.article-header {
  margin-bottom: 36px;
  padding-bottom: 28px;
  border-bottom: var(--border-width) solid var(--border-color);
}

.article-meta-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.article-title {
  margin: 0 0 16px;
  font-family: var(--font-heading);
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.tag-chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  font-size: 0.78rem;
  font-weight: 500;
}

.tag-chip:hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Rich WordPress Content */
.article-content {
  font-size: 1.06rem;
  line-height: 1.85;
  color: var(--text-primary);
  word-break: keep-all;
  overflow-wrap: break-word;
}

.article-content p {
  margin: 0 0 1.4em;
}

.article-content h1,
.article-content h2,
.article-content h3,
.article-content h4 {
  font-family: var(--font-heading);
  margin: 1.8em 0 0.7em;
  line-height: 1.35;
  letter-spacing: -0.02em;
}

.article-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content blockquote,
.article-content .wp-block-quote {
  margin: 1.8em 0;
  padding: 18px 24px;
  border-left: 4px solid var(--accent);
  background: var(--bg-subtle);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  color: var(--text-secondary);
  font-style: italic;
}

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

.article-content figure {
  margin: 2em 0;
}

.article-content figure.aligncenter {
  text-align: center;
}

.article-content figure img {
  margin: 0 auto;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  cursor: zoom-in;
}

.article-content figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.article-content .has-background {
  padding: 18px 22px;
  border-radius: var(--radius-md);
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
}

.article-content pre,
.article-content code {
  font-family: var(--font-mono);
  font-size: 0.9em;
}

.article-content pre {
  padding: 18px;
  border-radius: var(--radius-md);
  background: #0f172a;
  color: #f8fafc;
  overflow-x: auto;
}

.article-content ul,
.article-content ol {
  margin: 0 0 1.4em;
  padding-left: 1.5em;
}

.article-content li {
  margin-bottom: 0.4em;
}

.article-content hr,
.article-content .wp-block-separator {
  border: none;
  border-top: 1px solid var(--border-color);
  margin: 2.5em 0;
}

/* Video Embed Container */
.video-embed-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin: 2em 0;
  background: #000;
}

.video-embed-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.wp-block-jetpack-rating-star {
  color: #f59e0b;
  font-size: 1.35rem;
  letter-spacing: 2px;
  margin: 1em 0;
}

/* Prev / Next Post Navigation */
.post-nav-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 56px;
  padding-top: 32px;
  border-top: var(--border-width) solid var(--border-color);
}

.post-nav-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 18px 20px;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-surface);
  transition: all 0.18s ease;
}

.post-nav-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.post-nav-card.next {
  text-align: right;
}

.post-nav-label {
  font-size: 0.76rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  text-transform: uppercase;
}

.post-nav-title {
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--text-primary);
  line-height: 1.4;
}

@media (max-width: 640px) {
  .post-nav-grid {
    grid-template-columns: 1fr;
  }
  .post-nav-card.next {
    text-align: left;
  }
}

/* ==========================================
   ARCHIVE TIMELINE VIEW
   ========================================== */
.archive-year-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 36px;
}

.year-jump-pill {
  padding: 7px 14px;
  border-radius: var(--radius-md);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-surface);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.year-jump-pill:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.archive-year-section {
  margin-bottom: 44px;
}

.archive-year-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--text-primary);
  font-family: var(--font-heading);
  font-size: 1.5rem;
  font-weight: 800;
}

.archive-year-count {
  font-size: 0.85rem;
  font-family: var(--font-mono);
  color: var(--text-muted);
  font-weight: 500;
}

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

.archive-item {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 11px 8px;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.15s ease;
}

.archive-item:hover {
  background: var(--bg-subtle);
}

.archive-date {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
  flex-shrink: 0;
  width: 90px;
}

.archive-title {
  flex: 1;
  font-weight: 600;
  color: var(--text-primary);
}

.archive-item:hover .archive-title {
  color: var(--accent);
}

/* ==========================================
   CONTACT FORM (FEEDBACK PAGE)
   ========================================== */
.contact-card {
  background: var(--bg-surface);
  border: var(--border-width) solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  margin-top: 24px;
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
}

.form-control {
  width: 100%;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  border: var(--border-width) solid var(--border-color);
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.95rem;
}

.form-control:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--bg-accent-soft);
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 24px;
  border-radius: var(--radius-sm);
  border: none;
  background: var(--accent);
  color: var(--text-on-accent);
  font-size: 0.94rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.btn-primary:hover {
  background: var(--accent-hover);
}

/* ==========================================
   TEMPLATE STUDIO DRAWER (10 Design Switcher)
   ========================================== */
.theme-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(4px);
  z-index: 900;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.theme-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.theme-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 92vw);
  background: var(--bg-surface);
  color: var(--text-primary);
  border-left: var(--border-width) solid var(--border-color);
  box-shadow: var(--shadow-lg);
  z-index: 950;
  transform: translateX(100%);
  transition: transform 0.3s var(--ease-out);
  display: flex;
  flex-direction: column;
}

.theme-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
}

.drawer-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
}

.drawer-subtitle {
  margin: 2px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.drawer-close-btn {
  background: var(--bg-subtle);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.drawer-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.theme-option-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  background: var(--bg-canvas);
  cursor: pointer;
  text-align: left;
  transition: all 0.16s ease;
}

.theme-option-card:hover {
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.theme-option-card.active {
  border-color: var(--accent);
  background: var(--bg-accent-soft);
}

.theme-option-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.theme-option-name {
  font-weight: 700;
  font-size: 0.96rem;
  color: var(--text-primary);
}

.theme-option-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  border: 1px solid var(--border-color);
}

.theme-option-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

.theme-swatches {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
}

.swatch-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(128, 128, 128, 0.35);
}

.theme-layout-tag {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-muted);
}

/* Lightbox Modal */
.lightbox-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  cursor: zoom-out;
}

.lightbox-modal.open {
  display: flex;
}

.lightbox-modal img {
  max-width: 94vw;
  max-height: 90vh;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
}

/* Footer */
.site-footer {
  margin-top: auto;
  padding: 40px 0;
  border-top: var(--border-width) solid var(--border-color);
  background: var(--bg-subtle);
  color: var(--text-secondary);
  font-size: 0.86rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

@media (max-width: 768px) {
  .header-inner {
    height: auto;
    padding: 12px 0;
    flex-wrap: wrap;
  }
  .main-nav {
    order: 3;
    width: 100%;
    overflow-x: auto;
    padding-top: 6px;
  }
}
