body {
  margin: 0;
  background: #07111f;
  color: #e5edf8;
  font-family: Arial, "Noto Sans KR", sans-serif;
}

a {
  color: #8bd3ff;
}

.theme-toggle {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 10;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, .45);
  border-radius: 8px;
  color: #e5edf8;
  background: rgba(15, 23, 42, .88);
  font-weight: 800;
  cursor: pointer;
}

.post-container {
  width: min(940px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0 64px;
}

.post-back {
  display: inline-flex;
  margin-bottom: 26px;
  color: #bfdbfe;
  font-weight: 800;
  text-decoration: none;
}

.post-header {
  padding: 34px 0 26px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  color: #b6c8df;
  font-size: 14px;
}

.post-meta span,
.post-meta time {
  padding: 5px 9px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 999px;
  background: rgba(15, 23, 42, .72);
}

.post-header h1 {
  margin: 0 0 14px;
  color: #ffffff;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0;
}

.post-subtitle {
  max-width: 760px;
  margin: 0;
  color: #cbd5e1;
  font-size: 18px;
  line-height: 1.65;
}

.hero-figure,
.inline-image,
.content-figure {
  margin: 26px 0;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: #0f172a;
}

.hero-figure img,
.inline-image img,
.content-figure img {
  display: block;
  width: 100%;
  height: auto;
}

.hero-figure figcaption,
.inline-image figcaption,
.content-figure figcaption {
  padding: 10px 14px;
  color: #b6c8df;
  font-size: 13px;
  line-height: 1.55;
}

.post-content {
  color: #dde7f4;
  font-size: 17px;
  line-height: 1.85;
}

.post-content h2 {
  margin: 42px 0 14px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.35;
  letter-spacing: 0;
}

.post-content h3 {
  margin: 26px 0 10px;
  color: #f8fafc;
  font-size: 20px;
  letter-spacing: 0;
}

.lede {
  font-size: 19px;
  color: #f8fafc;
}

.highlight,
mark {
  color: #fde68a;
  background: rgba(180, 83, 9, .28);
  padding: 0 4px;
  border-radius: 4px;
}

.key-point,
.note-box,
.source-box,
.quote {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(125, 211, 252, .32);
  border-radius: 8px;
  background: rgba(8, 47, 73, .45);
}

.quote {
  border-color: rgba(251, 191, 36, .36);
  background: rgba(69, 26, 3, .34);
}

.warning {
  border-color: rgba(248, 113, 113, .38);
  background: rgba(69, 10, 10, .34);
}

.content-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.content-card {
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: rgba(15, 23, 42, .78);
}

.content-card strong {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
}

.quick-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 24px 0;
}

.summary-item {
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: rgba(15, 23, 42, .78);
}

.summary-item span {
  display: block;
  margin-bottom: 7px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
}

.summary-item strong {
  color: #ffffff;
  font-size: 16px;
  line-height: 1.45;
}

.toc-box {
  margin: 22px 0;
  padding: 18px 20px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 8px;
  background: rgba(15, 23, 42, .64);
}

.toc-box ol {
  margin: 8px 0 0;
  padding-left: 22px;
}

.toc-box a {
  font-weight: 800;
  text-decoration: none;
}

.timeline {
  margin: 22px 0;
  padding-left: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  margin: 0 0 12px;
  padding: 14px 16px 14px 42px;
  border: 1px solid rgba(148, 163, 184, .25);
  border-radius: 8px;
  background: rgba(15, 23, 42, .68);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 16px;
  top: 20px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7dd3fc;
  box-shadow: 0 0 0 5px rgba(125, 211, 252, .14);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin: 22px 0;
}

.faq-item {
  padding: 16px 18px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 8px;
  background: rgba(15, 23, 42, .72);
}

.faq-item h3 {
  margin-top: 0;
}

.update-box {
  margin: 24px 0;
  padding: 18px 20px;
  border: 1px solid rgba(74, 222, 128, .34);
  border-radius: 8px;
  background: rgba(20, 83, 45, .26);
}

.update-box ul {
  margin: 8px 0 0;
  padding-left: 22px;
}

.table-wrap {
  overflow-x: auto;
  margin: 22px 0;
}

.model-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: rgba(15, 23, 42, .72);
}

.model-table th,
.model-table td {
  padding: 12px 14px;
  border: 1px solid rgba(148, 163, 184, .22);
  text-align: left;
  vertical-align: top;
}

.model-table th {
  color: #ffffff;
  background: rgba(30, 41, 59, .92);
}

.inline-search-link {
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-list,
.source-list {
  padding-left: 22px;
}

.tag-section {
  margin-top: 42px;
  padding-top: 24px;
  border-top: 1px solid rgba(148, 163, 184, .28);
}

.google-search-btn {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  margin: 8px 0 18px;
  padding: 8px 13px;
  border: 1px solid rgba(125, 211, 252, .45);
  border-radius: 8px;
  color: #07111f;
  background: #7dd3fc;
  font-weight: 900;
  text-decoration: none;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.tag-cloud a {
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 999px;
  color: #dbeafe;
  background: rgba(15, 23, 42, .88);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.post-footer,
.site-footer {
  color: #9fb2ca;
  text-align: center;
}

html:not([data-theme="dark"]) body {
  background: #f4f7fb;
  color: #172033;
}

html:not([data-theme="dark"]) .post-content,
html:not([data-theme="dark"]) .post-subtitle {
  color: #26364d;
}

html:not([data-theme="dark"]) .post-header h1,
html:not([data-theme="dark"]) .post-content h2,
html:not([data-theme="dark"]) .post-content h3,
html:not([data-theme="dark"]) .lede {
  color: #0f172a;
}

html:not([data-theme="dark"]) .content-card,
html:not([data-theme="dark"]) .summary-item,
html:not([data-theme="dark"]) .toc-box,
html:not([data-theme="dark"]) .timeline li,
html:not([data-theme="dark"]) .faq-item,
html:not([data-theme="dark"]) .model-table,
html:not([data-theme="dark"]) .hero-figure,
html:not([data-theme="dark"]) .inline-image,
html:not([data-theme="dark"]) .content-figure {
  background: #ffffff;
}

html:not([data-theme="dark"]) .model-table th {
  color: #0f172a;
  background: #eaf1fb;
}

@media (max-width: 760px) {
  .post-container {
    width: min(100% - 22px, 940px);
    padding-top: 32px;
  }

  .theme-toggle {
    position: static;
    margin: 12px 0 0 12px;
  }

  .content-card-grid {
    grid-template-columns: 1fr;
  }

  .quick-summary {
    grid-template-columns: 1fr 1fr;
  }

  .post-header h1 {
    font-size: 31px;
  }
}

@media (max-width: 520px) {
  .quick-summary {
    grid-template-columns: 1fr;
  }
}
