:root {
  --panel: #fbfbfb;
  --line: #dfdfdf;
  --text: #62676c;
  --muted: #a6aab0;
  --dark: #363a40;
  --blue: #4a97c8;
  --green: #8abf5d;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  background: #140b0b;
  font-size: 11px;
}

body {
  margin: 0;
  background: linear-gradient(180deg, var(--dark) 0 156px, #140b0b 156px);
  color: var(--text);
  font-family: "Roboto Condensed", "Noto Sans KR", sans-serif;
}

a {
  color: inherit;
  text-decoration: none;
}

.site-shell {
  max-width: 1396px;
  margin: 0 auto;
  padding: 0 4px 24px;
}

.masthead {
  min-height: 112px;
  display: flex;
  align-items: center;
  color: var(--white);
}

.masthead-brand {
  display: flex;
  align-items: baseline;
  gap: 18px;
  flex-wrap: wrap;
}

.masthead-brand a {
  font-family: "Ubuntu Mono", monospace;
  font-size: clamp(3.8rem, 4.6vw, 5.5rem);
  font-weight: 700;
  letter-spacing: -0.06em;
}

.masthead-brand p {
  margin: 0;
  color: #a8afb8;
  font-size: 1.24rem;
  font-style: italic;
}

.header-strip,
.content-shell {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr) 260px;
}

.header-panel {
  min-height: 60px;
  display: flex;
  align-items: center;
  padding: 0 28px;
  overflow: hidden;
}

.header-follow {
  background: var(--blue);
  color: var(--white);
  justify-content: flex-start;
  gap: 24px;
}

.header-center {
  background: #f9f9f9;
  border-left: 1px solid rgba(0, 0, 0, 0.05);
  border-right: 1px solid rgba(0, 0, 0, 0.05);
}

.header-more {
  background: var(--green);
  color: var(--white);
}

.header-title {
  font-family: "Oswald", "Noto Sans KR", sans-serif;
  font-size: 1.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.header-blog-title {
  color: #7b8085;
}

.header-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  color: #7b8085;
  font-family: "Oswald", "Noto Sans KR", sans-serif;
  font-size: 1.55rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.header-breadcrumb a {
  color: inherit;
}

.header-breadcrumb-sep {
  color: #b8bdc2;
}

.follow-links {
  display: flex;
  align-items: center;
  gap: 8px;
}

.social-link {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f4f7fa;
}

.social-link svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.social-link .social-fill {
  fill: currentColor;
  stroke: none;
}

.social-git {
  width: 24px;
  height: 24px;
}

.social-git circle,
.social-git path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.social-mail rect,
.social-mail path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
}

.sidebar,
.main-column {
  min-height: 680px;
}

.sidebar {
  background: #f2f2f2;
  padding: 28px 30px 40px;
}

.sidebar-left {
  border-right: 1px solid #e1e1e1;
}

.sidebar-right {
  border-left: 1px solid #e1e1e1;
  min-width: 0;
}

.main-column {
  background: #fcfcfc;
  padding: 30px 28px 40px;
}

.panel {
  border: 1px solid var(--line);
  background: var(--panel);
}

.page-banner {
  margin-bottom: 18px;
  padding: 17px 18px;
  background: #fbfbfb;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #61666c;
  font-family: "Oswald", "Noto Sans KR", sans-serif;
  font-size: 1.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.page-banner-category .section-label {
  font-size: 1.95rem;
}

.page-banner-category .section-label::before {
  content: "";
  width: 14px;
  height: 10px;
  display: inline-block;
  background: linear-gradient(180deg, #70757b 0%, #5b6065 100%);
  clip-path: polygon(0 30%, 22% 30%, 28% 0, 100% 0, 100% 100%, 0 100%);
}

.section-prefix {
  color: #4f545a;
}

.section-value {
  color: #aab0b6;
}

.widget {
  margin-bottom: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.widget:first-child {
  border-top: none;
  padding-top: 0;
}

.widget h2 {
  margin: 0 0 14px;
  color: #7a7f85;
  font-family: "Roboto Condensed", "Noto Sans KR", sans-serif;
  font-size: 1.24rem;
  font-weight: 400;
}

.search-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.search-form input,
.search-form button {
  min-height: 40px;
  border: 1px solid #aeb5bc;
  background: #fff;
  padding: 0 12px;
  font: inherit;
  font-size: 1.08rem;
}

.search-form button {
  cursor: pointer;
}

.search-page-panel {
  margin-bottom: 24px;
  padding: 22px 24px;
}

.search-page-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 0 0 14px;
}

.search-page-form input,
.search-page-form button {
  min-height: 44px;
  border: 1px solid #aeb5bc;
  background: #fff;
  padding: 0 14px;
  font: inherit;
  font-size: 1.12rem;
}

.search-page-form button {
  cursor: pointer;
}

.search-page-status {
  margin: 0;
  color: #70757b;
  font-size: 1.08rem;
  line-height: 1.6;
}

.search-results {
  display: grid;
  gap: 18px;
}

.taxonomy-list,
.recent-list,
.tag-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.category-tree-nested {
  margin-top: 2px;
  padding-left: 18px;
}

.category-node {
  border-bottom: 1px solid #e6e6e6;
}

.category-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
  padding: 6px 0 6px 18px;
}

.category-row::before {
  content: "";
  position: absolute;
  left: 0;
  top: 11px;
  width: 9px;
  height: 7px;
  background: linear-gradient(180deg, #d7dbe0 0%, #cfd4d9 100%);
  border-radius: 1px;
}

.category-row a {
  display: inline-block;
  line-height: 1.55;
}

.category-row span {
  color: var(--muted);
}

.taxonomy-list li,
.recent-list li {
  position: relative;
  padding: 11px 0 11px 18px;
  border-bottom: 1px solid #e6e6e6;
}

.folder-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 17px;
  width: 9px;
  height: 7px;
  background: linear-gradient(180deg, #d7dbe0 0%, #cfd4d9 100%);
  border-radius: 1px;
}

.taxonomy-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.taxonomy-list a,
.recent-list a {
  display: inline-block;
  line-height: 1.55;
  font-size: 1.1rem;
}

.taxonomy-list span,
.recent-list span,
.widget-note {
  color: var(--muted);
  font-size: 1.06rem;
}

.taxonomy-list.compact li {
  padding-top: 11px;
  padding-bottom: 11px;
}

.recent-list li {
  padding-left: 0;
}

.recent-list li::before {
  display: none;
}

.recent-list a {
  display: block;
  margin-bottom: 3px;
  color: #5d6166;
  font-size: 1.1rem;
}

.recent-comments-widget .widget-note {
  line-height: 1.6;
}

.about-widget p,
.widget-note {
  color: #70757b;
  font-size: 1.1rem;
  line-height: 1.85;
}

.hero-post,
.single-post {
  position: relative;
  padding: 26px 26px 22px;
  background: #fff;
}

.hero-post {
  margin-bottom: 28px;
}

.hero-thumb,
.post-thumb {
  position: relative;
  display: block;
  overflow: hidden;
  background: #d6d6d6;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.hero-thumb.has-thumb,
.post-thumb.has-thumb {
  background-color: #f4f4f4;
  background-size: contain;
}

.hero-thumb {
  min-height: 338px;
  margin-bottom: 18px;
}

.post-thumb {
  min-height: 208px;
}

.entry-meta-row,
.hero-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.entry-taxonomy {
  color: var(--blue);
  font-family: "Roboto Condensed", "Noto Sans KR", sans-serif;
  font-size: 1.35rem;
  font-weight: 400;
  text-transform: uppercase;
}

.entry-date {
  color: #acb1b6;
  font-size: 1.24rem;
}

.hero-title,
.single-title,
.post-title {
  margin: 0;
  color: #4b5056;
  font-family: "Ubuntu Mono", "Noto Sans KR", monospace;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 1.18;
}

.hero-title {
  font-size: clamp(2.6rem, 3vw, 3.8rem);
}

.single-title {
  font-size: clamp(2.3rem, 3.2vw, 3.6rem);
  margin-bottom: 20px;
}

.post-title {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  margin-bottom: 3px;
}

.hero-summary,
.post-summary,
.single-content {
  color: #7b8086;
  font-size: 1.45rem;
  line-height: 1.8;
}

.post-summary,
.hero-summary {
  margin: 4px 0 0;
}

.hero-summary {
  display: none;
}

.post-feed {
  display: grid;
  gap: 18px;
}

.pagination-nav {
  margin-top: 24px;
  padding: 20px 24px;
}

.pagination-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pagination-link {
  min-width: 42px;
  padding: 9px 14px;
  border: 1px solid #d7dde5;
  color: #58708b;
  font-family: "Roboto Condensed", "Noto Sans KR", sans-serif;
  font-size: 1rem;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  background: #fff;
}

.pagination-link:hover {
  border-color: #7eb95b;
  color: #3c536c;
}

.pagination-link.is-current {
  border-color: #7eb95b;
  background: #8bc05d;
  color: #fff;
}

.pagination-link.is-disabled {
  color: #a9b6c3;
  background: #f3f5f8;
}

.post-card {
  position: relative;
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 24px;
  padding: 20px 0;
  border: none;
  border-top: 1px solid var(--line);
  background: transparent;
}

.post-card:first-child {
  border-top: none;
  padding-top: 0;
}

.post-body {
  padding-right: 10px;
}

.hero-comment-badge,
.post-comment-badge {
  position: absolute;
  top: 9px;
  right: -1px;
  min-width: 34px;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--green);
  color: var(--white);
  font-size: 1.06rem;
  font-weight: 700;
}

.hero-comment-badge::before,
.post-comment-badge::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 0;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-right: 8px solid var(--green);
}

.single-content > *:first-child {
  margin-top: 0;
}

.single-content h2,
.single-content h3 {
  color: #4b5056;
  font-family: "Oswald", "Noto Sans KR", sans-serif;
}

.single-content figure,
.single-content .wp-block-image,
.single-content .wp-block-embed {
  max-width: 100%;
  margin: 24px 0;
}

.single-content img,
.single-content figure img,
.single-content .wp-block-image img {
  display: block;
  max-width: 100%;
  height: auto;
}

.single-content figure {
  margin-left: 0;
  margin-right: 0;
}

.single-content .wp-block-image.aligncenter,
.single-content .wp-block-image.is-style-default {
  margin-left: 0;
  margin-right: 0;
}

.single-content figcaption {
  margin-top: 10px;
  color: #8a9097;
  font-size: 1.2rem;
  line-height: 1.6;
}

.single-content a {
  color: #4a97c8;
  text-decoration: none;
}

.single-content a:visited {
  color: #5f88b7;
}

.single-content a:hover,
.single-content a:focus-visible {
  color: #2f78aa;
  text-decoration: underline;
}

.legacy-pullquote {
  margin: 24px 0;
  padding: 18px 22px;
  border-left: 4px solid #c8d2dc;
  background: #f6f8fa;
}

.legacy-pullquote p:last-child {
  margin-bottom: 0;
}

.legacy-embed-video {
  margin: 24px 0;
}

.legacy-embed-video-frame {
  position: relative;
  padding-top: 56.25%;
  background: #101317;
}

.legacy-embed-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.legacy-embed-video figcaption {
  margin-top: 10px;
  color: #8a9097;
  font-size: 1.2rem;
  line-height: 1.6;
}

.single-content pre {
  overflow-x: auto;
  margin: 0;
  padding: 12px 16px;
  font-family: "Ubuntu Mono", "Noto Sans KR", monospace;
  font-size: 1.25rem;
  line-height: 1.6;
  background: #282c34;
}

.legacy-code-block {
  position: relative;
  margin: 28px 0;
}

.legacy-code-block figcaption {
  margin: 0;
  padding: 10px 14px;
  background: #2f3439;
  color: #f1f2f3;
  font-family: "Roboto Condensed", "Noto Sans KR", sans-serif;
  font-size: 1.25rem;
  line-height: 1.4;
}

.legacy-code-block::after {
  content: attr(data-lang);
  position: absolute;
  top: 8px;
  right: 12px;
  color: #a6b0ba;
  font-size: 1.05rem;
  font-family: "Roboto Condensed", "Noto Sans KR", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legacy-code-block pre {
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  overflow-x: auto;
  background: #282c34;
}

.legacy-code-block code {
  display: block;
  font-family: "Ubuntu Mono", "Noto Sans KR", monospace;
  font-size: 1.25rem;
  line-height: 1.6;
  white-space: pre;
}

.single-content p > code,
.single-content li > code,
.single-content blockquote > code,
.single-content td > code {
  padding: 0.1em 0.35em;
  background: #f2f4f7;
  color: #51565c;
  font-family: "Ubuntu Mono", "Noto Sans KR", monospace;
  font-size: 0.95em;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 30px;
}

.tag-list a {
  display: inline-flex;
  padding: 7px 11px;
  border: 1px solid #ccd8e1;
  background: #f4f8fb;
  color: var(--blue);
}

.comments-panel {
  margin-top: 42px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.comments-panel h2 {
  margin: 0 0 18px;
  font-family: "Oswald", "Noto Sans KR", sans-serif;
  font-size: 2rem;
}

.empty-state {
  padding: 42px 32px;
}

.empty-state h1 {
  margin: 0 0 12px;
  color: #4b5056;
  font-family: "Oswald", "Noto Sans KR", sans-serif;
  font-size: 2.2rem;
  font-weight: 500;
}

.empty-state p {
  margin: 0;
  color: #70757b;
  font-size: 1.45rem;
  line-height: 1.8;
}

.site-footer {
  display: none;
}

.recent-comments-list,
.recent-comments-list * {
  font-size: 1.06rem;
}

.recent-comments-items {
  list-style: none;
  margin: 0;
  padding: 0;
}

.recent-comments-items li {
  margin: 0;
  padding: 0 0 14px;
  border-bottom: 1px solid #e8edf2;
  min-width: 0;
}

.recent-comments-items li:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.recent-comments-items a {
  display: block;
  margin-bottom: 5px;
  color: #42474d;
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.55;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.recent-comments-items span {
  display: block;
  color: #9ea6af;
  font-size: 0.98rem;
  line-height: 1.45;
}

.recent-comment-excerpt {
  margin: 7px 0 0;
  color: #767d86;
  font-size: 1rem;
  line-height: 1.7;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  overflow: hidden;
}

.sidebar .widget h2 {
  font-size: 2.4rem;
}

.sidebar .search-form input,
.sidebar .search-form button {
  font-size: 2rem;
}

.sidebar .taxonomy-list a,
.sidebar .recent-list a,
.sidebar .category-row a {
  font-size: 2rem;
  line-height: 1.55;
}

.sidebar .taxonomy-list span,
.sidebar .recent-list span,
.sidebar .category-row span,
.sidebar .widget-note {
  font-size: 1.8rem;
}

.sidebar .category-row a {
  font-size: 1.35rem;
}

.sidebar .category-row span {
  font-size: 1.2rem;
}

.sidebar .about-widget p,
.sidebar .widget-note,
.sidebar .recent-comments-list,
.sidebar .recent-comments-list * {
  font-size: 1.9rem;
  line-height: 1.8;
}

.sidebar-right .widget h2 {
  font-size: 1.55rem;
}

.sidebar-right .recent-list a {
  font-size: 1.35rem;
  line-height: 1.6;
}

.sidebar-right .recent-list span,
.sidebar-right .widget-note {
  font-size: 1.18rem;
}

.sidebar-right .about-widget p,
.sidebar-right .recent-comments-list,
.sidebar-right .recent-comments-list * {
  font-size: 1.28rem;
  line-height: 1.85;
}

.sidebar-right .recent-comments-items a,
.sidebar-right .recent-comment-excerpt {
  max-width: 100%;
}

.sidebar-right .recent-comments-items a {
  color: #3f4650;
  font-weight: 700;
}

.sidebar-right .recent-comments-items span {
  color: #a7afb9;
}

.sidebar-right .recent-comment-excerpt {
  color: #727983;
}

@media (max-width: 1160px) {
  .header-strip,
  .content-shell {
    grid-template-columns: 280px minmax(0, 1fr);
  }

  .sidebar-right,
  .header-more {
    display: none;
  }
}

@media (max-width: 820px) {
  body {
    background: var(--dark);
  }

  .site-shell {
    padding: 0;
  }

  .masthead,
  .header-panel,
  .sidebar,
  .main-column {
    padding-left: 18px;
    padding-right: 18px;
  }

  .header-strip,
  .content-shell,
  .post-card,
  .search-form {
    grid-template-columns: 1fr;
  }

  .header-center {
    border-left: none;
    border-right: none;
  }

  .sidebar-left {
    border-right: none;
  }

  .hero-thumb {
    min-height: 220px;
  }

  .post-thumb {
    min-height: 180px;
  }
}
