@import url("https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #ffffff;
  --panel: #ffffff;
  --text: #0a0a0a;
  --muted: #4b5563;
  --line: #e5e7eb;
  --point: #2563eb;
  --point-strong: #1d4ed8;
  --point-soft: #eff6ff;
  --code-font: ui-monospace, SFMono-Regular, SF Mono, Consolas, "Liberation Mono", Menlo, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Plus Jakarta Sans", "Noto Sans KR", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
}

a {
  color: var(--point);
  text-decoration: none;
}

a:hover {
  color: var(--point-strong);
}

.container {
  max-width: 1040px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

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

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand-kicker {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--point);
}

.site-title {
  margin: 0.22rem 0 0;
  font-size: 1.35rem;
  line-height: 1.2;
}

.site-title a {
  color: var(--text);
}

.site-description {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.45rem 0.8rem;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #111827;
  font-weight: 700;
  font-size: 0.9rem;
}

.nav-link:hover {
  border-color: #bfdbfe;
  background: var(--point-soft);
  color: var(--point-strong);
  text-decoration: none;
}

.nav-link.is-active {
  background: var(--point);
  color: #ffffff;
}

.page-shell {
  padding-top: 2.2rem;
  padding-bottom: 1.5rem;
}

.hero-card {
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 2rem;
  background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%);
  box-shadow: 0 16px 28px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.25rem;
}

.hero-card-sub {
  padding: 1.5rem 1.7rem;
}

.hero-label {
  margin: 0;
  color: var(--point);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.75rem;
}

.hero-card h2 {
  margin: 0.45rem 0 0;
  line-height: 1.3;
  font-size: 1.75rem;
}

.hero-text {
  margin: 0.75rem 0 0;
  color: var(--muted);
}

.hero-actions {
  margin-top: 1.05rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  font-size: 0.92rem;
}

.btn-primary {
  background: var(--point);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--point-strong);
  color: #ffffff;
}

.btn-ghost {
  border: 1px solid #93c5fd;
  background: var(--point-soft);
  color: var(--point-strong);
}

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

.hero-metrics {
  list-style: none;
  margin: 1.2rem 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
}

.hero-metrics li {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  padding: 0.8rem 0.9rem;
}

.hero-metrics strong {
  display: block;
  font-size: 1.4rem;
  line-height: 1.1;
}

.hero-metrics span {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 600;
}

.section-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1rem 1.2rem;
  margin: 1rem 0 1.2rem;
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.04);
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.section-head h2 {
  margin: 0.2rem 0 0.5rem;
}

.text-link {
  font-size: 0.9rem;
  font-weight: 700;
}

.post-list {
  list-style: none;
  padding: 0;
  margin: 0.4rem 0 0;
}

.post-item {
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--line);
}

.post-item:last-child {
  border-bottom: 0;
}

.post-item[hidden] {
  display: none;
}

.post-link {
  font-size: 1.02rem;
  font-weight: 700;
  color: #111827;
}

.post-link:hover {
  color: var(--point-strong);
}

.post-list-date {
  margin-left: 0.45rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.post-summary {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.post-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.post-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: #f8fbff;
  border: 1px solid #d7e8ff;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 700;
}

.post-search-card {
  background:
    radial-gradient(circle at top right, rgba(37, 99, 235, 0.12), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  border-color: #dbe7f5;
}

.post-search-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.post-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 1rem;
  align-items: end;
}

.post-search-copy h2 {
  margin: 0.1rem 0 0.45rem;
}

.post-search-text {
  margin: 0;
  color: var(--muted);
}

.post-search-label {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.88rem;
  font-weight: 700;
  color: #0f172a;
}

.post-search-input-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #bfdbfe;
  border-radius: 16px;
  padding: 0.35rem 0.4rem 0.35rem 0.8rem;
  background: #ffffff;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.post-search-input {
  width: 100%;
  border: 0;
  padding: 0.52rem 0;
  font: inherit;
  color: var(--text);
  background: #ffffff;
}

.post-search-input:focus,
.post-search-input-wrap:focus-within {
  outline: 0;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

.post-search-reset {
  border: 0;
  border-radius: 999px;
  border: 1px solid #bfdbfe;
  padding: 0.55rem 0.9rem;
  background: var(--point-soft);
  color: var(--point-strong);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  appearance: none;
  -webkit-appearance: none;
}

.post-search-reset:hover {
  border-color: var(--point);
  background: #dbeafe;
}

.post-search-reset:focus-visible {
  outline: 0;
  border-color: var(--point);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.post-search-chip-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 1rem;
}

.post-search-chip-title,
.post-search-chip-help {
  margin: 0;
}

.post-search-chip-title {
  font-size: 0.9rem;
  font-weight: 800;
  color: #0f172a;
}

.post-search-chip-help {
  color: var(--muted);
  font-size: 0.84rem;
}

.post-search-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.post-search-chip {
  border: 1px solid #d7e8ff;
  background: #ffffff;
  color: #1d4ed8;
  border-radius: 999px;
  padding: 0.38rem 0.72rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.post-search-chip:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.post-search-chip.is-active {
  background: var(--point);
  border-color: var(--point);
  color: #ffffff;
}

.post-search-status {
  margin: 0;
  color: var(--point-strong);
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.post-search-empty {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.post {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 1.4rem;
}

.post-header h1 {
  margin: 0.1rem 0 0.35rem;
  line-height: 1.3;
}

.post-meta {
  margin: 0 0 0.7rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.post-content h2,
.post-content h3 {
  letter-spacing: -0.02em;
}

.post-content p,
.post-content li {
  font-size: 1rem;
}

.post-content code {
  background: #f3f6fb;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  padding: 0.12rem 0.38rem;
  font-size: 0.92em;
  font-family: var(--code-font);
}

.post-content pre {
  background: #0f172a;
  color: #e5eefc;
  border-radius: 16px;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  font-family: var(--code-font);
  font-size: 0.94rem;
  line-height: 1.7;
}

.post-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0 1.4rem;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.post-content thead th {
  background: linear-gradient(180deg, #f8fbff 0%, #eef6ff 100%);
  color: #0f172a;
  font-weight: 800;
}

.post-content th,
.post-content td {
  padding: 0.85rem 0.95rem;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.post-content tbody tr:nth-child(even) {
  background: #fbfdff;
}

.post-content tbody tr:last-child td {
  border-bottom: 0;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.86rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

@media (max-width: 900px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-card h2 {
    font-size: 1.5rem;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .post-search-topline,
  .post-search-chip-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .post-search-layout {
    grid-template-columns: 1fr;
  }

  .post-search-status {
    white-space: normal;
  }

  .post-content table,
  .post-content thead,
  .post-content tbody,
  .post-content tr,
  .post-content th,
  .post-content td {
    display: block;
  }

  .post-content thead {
    display: none;
  }

  .post-content table {
    border-radius: 14px;
  }

  .post-content tr {
    padding: 0.35rem 0;
    border-bottom: 1px solid var(--line);
  }

  .post-content tr:last-child {
    border-bottom: 0;
  }

  .post-content td {
    border-bottom: 0;
    padding: 0.45rem 0.9rem;
  }
}

