@charset "utf-8";

:root {
  --bg: #1e2436;
  --bg-header: rgba(30, 36, 54, 0.92);
  --panel: #252c41;
  --text: #e7e8ee;
  --text-soft: rgba(231, 232, 238, 0.82);
  --text-faint: rgba(231, 232, 238, 0.62);
  --accent: #f28b33;
  --accent-soft: rgba(242, 139, 51, 0.14);
  --border: rgba(242, 139, 51, 0.68);
  --border-soft: rgba(231, 232, 238, 0.14);
  --font-body: "IBM Plex Sans KR", sans-serif;
  --font-mono: "IBM Plex Mono", monospace;
}

html[data-theme="light"] {
  --bg: #f4efe5;
  --bg-header: rgba(244, 239, 229, 0.92);
  --panel: #fbf7ef;
  --text: #182032;
  --text-soft: rgba(24, 32, 50, 0.82);
  --text-faint: rgba(24, 32, 50, 0.6);
  --accent: #c2671d;
  --accent-soft: rgba(194, 103, 29, 0.12);
  --border: rgba(194, 103, 29, 0.72);
  --border-soft: rgba(24, 32, 50, 0.14);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.62;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

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

a:hover {
  color: var(--accent);
}

p,
ul,
ol,
blockquote,
pre,
table {
  margin: 0 0 1.2rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-family: var(--font-mono);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h1 {
  font-size: clamp(1.8rem, 4vw, 2.7rem);
}

h2 {
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
}

h3 {
  font-size: clamp(1.05rem, 2.1vw, 1.35rem);
}

code,
pre,
tt,
kbd {
  font-family: var(--font-mono);
}

code {
  padding: 0.15rem 0.35rem;
  background: var(--accent-soft);
  border-radius: 0.3rem;
  font-size: 0.92em;
}

pre {
  padding: 1rem 1.1rem;
  overflow-x: auto;
  border: 1px solid var(--border-soft);
  border-radius: 0.5rem;
  background: rgba(0, 0, 0, 0.16);
}

pre code {
  padding: 0;
  background: transparent;
}

blockquote {
  padding-left: 1rem;
  border-left: 2px solid var(--accent);
  color: var(--text-soft);
}

hr {
  border: 0;
  border-top: 1px solid var(--border-soft);
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  padding: 0.75rem;
  border-bottom: 1px solid var(--border-soft);
  text-align: left;
}

.hidden {
  display: none !important;
}

.site-frame {
  min-height: 100vh;
}

.shell {
  width: min(100%, 820px);
  margin: 0 auto;
  padding: 0 1.6rem;
}

.shell-wide {
  width: min(100%, 820px);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: var(--bg-header);
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 5rem;
  border-bottom: 1px solid var(--border);
}

.site-brand,
.site-nav a,
.theme-toggle-button,
.site-menu-toggle,
.article-breadcrumb,
.hero-panel-kicker,
.section-kicker,
.article-kicker,
.author-card-kicker,
.post-feed-meta,
.article-meta,
.pagination a,
.site-footer-note,
.site-footer-links a,
.section-heading-row > a {
  font-family: var(--font-mono);
}

.site-brand {
  font-size: 0.94rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a,
.theme-toggle-button,
.site-menu-toggle {
  border: 0;
  background: transparent;
  color: var(--text-soft);
  font: inherit;
  cursor: pointer;
  padding: 0.45rem 0.6rem;
  border-radius: 999px;
  transition: color 180ms ease, background-color 180ms ease;
  font-size: 0.94rem;
  font-weight: 600;
}

.site-nav a:hover,
.theme-toggle-button:hover,
.site-menu-toggle:hover {
  color: var(--text);
  background: var(--accent-soft);
}

.site-nav .active-nav {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-style: wavy;
  text-decoration-color: var(--text);
  text-underline-offset: 0.28em;
  text-decoration-thickness: 1.5px;
}

.site-nav .active-icon,
.site-nav .nav-icon-link:hover {
  color: var(--accent);
}

.site-menu-toggle {
  display: none;
}

.nav-icon-link,
.theme-toggle-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.2rem;
  height: 2.2rem;
}

.theme-toggle-icon-moon {
  display: none;
}

html[data-theme="light"] .theme-toggle-icon-sun {
  display: none;
}

html[data-theme="light"] .theme-toggle-icon-moon {
  display: inline-flex;
}

.site-main {
  padding-top: 1.35rem;
  padding-bottom: 4rem;
}

.page-shell {
  padding-top: 2rem;
}

.hero-panel,
.content-card,
.author-card {
  background: transparent;
  border: 0;
  box-shadow: none;
}

.hero-panel::before,
.content-card::before,
.author-card::before {
  display: none;
}

.hero-panel {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 1.15rem;
  align-items: center;
  padding: 0.8rem 0 1.45rem;
}

.hero-panel-about {
  padding-top: 0;
}

.hero-panel-avatar {
  width: 148px;
  height: 148px;
  border-radius: 50%;
  overflow: hidden;
}

.hero-panel-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-title-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.hero-title-row h1 {
  margin-bottom: 0;
  font-size: clamp(1.95rem, 4.2vw, 2.95rem);
  font-weight: 700;
}

.hero-rss-link {
  color: var(--accent);
  font-size: 1.2rem;
}

.hero-panel-copy {
  max-width: 34rem;
  color: var(--text-soft);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.5;
}

.hero-panel-copy-primary {
  margin-bottom: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.86rem;
  font-weight: 700;
}

.hero-panel-kicker,
.section-kicker,
.article-kicker,
.author-card-kicker {
  margin-bottom: 0.6rem;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-width: 1.8rem;
  color: var(--text-soft);
  font-size: 1.28rem;
}

.social-links a span {
  font-size: 0.9rem;
}

.section-rule,
.site-divider {
  height: 1px;
  background: var(--border);
}

.section-rule-bleed {
  width: calc(100% + 3.2rem);
  margin-inline: -1.6rem;
}

.post-section {
  padding-top: 1.45rem;
}

.section-heading-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.section-heading-row-compact {
  justify-content: flex-end;
  margin-bottom: 0.2rem;
}

.section-heading-row > a {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 600;
}

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

.post-feed-item + .post-feed-item {
  margin-top: 1.75rem;
}

.post-feed-card {
  padding: 0;
  border: 0;
}

.post-feed-title {
  display: inline-block;
  margin-bottom: 0.25rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: clamp(1.08rem, 2.2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.28;
}

.post-feed-title:hover {
  color: #ffad67;
}

.post-feed-meta,
.article-meta,
.page_meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  color: var(--text-faint);
  font-size: 0.78rem;
  font-weight: 700;
}

.meta-sep::before {
  content: "•";
}

.post-feed-excerpt,
.article-deck,
.site-footer-note,
.results-search p,
.list-item .post-card-meta,
.list-item .page_meta-date,
.list-item .page_meta-readtime {
  color: var(--text-soft);
  font-weight: 600;
}

.article-shell {
  padding-top: 1.2rem;
}

.article-breadcrumb {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
  color: var(--text-faint);
  font-size: 0.76rem;
}

.article-hero {
  padding-bottom: 1.4rem;
  border-bottom: 1px solid var(--border);
}

.article-title {
  max-width: 18ch;
  font-size: clamp(1.65rem, 3.6vw, 2.35rem);
}

.article-deck {
  max-width: 44rem;
  font-size: 0.88rem;
  font-weight: 600;
}

.article-body {
  padding-top: 1.5rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.article-body a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.article-body img {
  margin: 2rem auto;
  border-radius: 0.6rem;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.tag-row-large .tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.tag-row-large .tags li {
  margin: 0;
}

.tag-chip,
.tag-row-large .tag {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}

.author-card {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 1rem;
  padding-top: 1.8rem;
  margin-top: 1.2rem;
  border-top: 1px solid var(--border);
}

.author-card-avatar {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
}

.author-card h2 {
  font-size: 1.2rem;
}

.listing-page h1 {
  font-size: clamp(1.65rem, 3.5vw, 2.3rem);
}

.archive-header {
  padding: 0.35rem 0 1.6rem;
}

.archive-header h1 {
  margin-bottom: 0.35rem;
}

.archive-intro {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 0.86rem;
  font-weight: 600;
}

.archive-year-group {
  margin-bottom: 1.7rem;
}

.archive-year-heading,
.archive-month-heading {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}

.archive-year-heading {
  margin-bottom: 0.8rem;
}

.archive-year-heading h2,
.archive-month-heading h3 {
  margin-bottom: 0;
}

.archive-year-heading span,
.archive-month-heading span {
  color: var(--text-faint);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}

.archive-month-group {
  padding-top: 1.45rem;
}

.archive-month-heading {
  margin-bottom: 0.9rem;
}

.archive-month-heading h3 {
  font-size: 1.35rem;
}

.archive-post-feed .post-feed-item + .post-feed-item {
  margin-top: 1.7rem;
}

.about-header {
  padding: 0.35rem 0 1rem;
}

.about-hero-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(0, 1.25fr);
  gap: 1.4rem;
  align-items: start;
}

.about-media {
  min-height: 390px;
  margin: 0;
  border-radius: 0.7rem;
  border: 1px solid var(--border-soft);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
}

.about-media img {
  width: 100%;
  min-height: 390px;
  object-fit: cover;
  object-position: center;
}

.about-copy {
  padding-top: 0.35rem;
}

.about-copy p {
  max-width: 26rem;
  margin-bottom: 1.35rem;
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.65;
}

.about-inline-link {
  color: var(--text);
  text-decoration-line: underline;
  text-decoration-style: dashed;
  text-underline-offset: 0.22em;
}

.search-form {
  margin: 1rem 0 1.2rem;
}

.search-page {
  min-height: calc(100vh - 14rem);
}

.search-header {
  padding: 0.35rem 0 1.15rem;
}

.search-intro {
  color: var(--text-soft);
  font-family: var(--font-mono);
  font-style: italic;
  font-size: 0.9rem;
  font-weight: 600;
}

.search-form-prominent {
  margin-top: 0.85rem;
}

.search-input-wrap {
  position: relative;
}

.search-input-icon {
  position: absolute;
  top: 50%;
  left: 1rem;
  transform: translateY(-50%);
  color: var(--text-faint);
  pointer-events: none;
}

.search {
  width: 100%;
  padding: 0.95rem 1rem;
  border: 1px solid var(--border-soft);
  border-radius: 0.55rem;
  background: rgba(0, 0, 0, 0.14);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  font-weight: 700;
}

.search-form-prominent .search {
  padding-left: 2.7rem;
  border-color: var(--border);
  font-family: var(--font-mono);
}

.search:focus {
  outline: 0;
  border-color: var(--accent);
}

.results-search {
  list-style: none;
  padding: 0;
  margin: 0 0 1.2rem;
}

.results-search li,
.list-group,
.pagination {
  border-top: 1px solid var(--border);
}

.results-search li {
  padding: 0.95rem 0;
}

.results-search-spacious {
  margin-top: 2rem;
}

.list-group {
  padding: 1rem 0;
}

.list-group-title {
  margin-bottom: 0.75rem;
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.list-item {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.65rem 1rem;
  padding: 0.45rem 0;
}

.list-item a {
  font-family: var(--font-mono);
  font-weight: 700;
}

.content-card {
  padding: 1.2rem 0;
}

.pagination {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.5rem;
  padding-top: 1rem;
}

.pagination a {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 600;
}

.site-footer {
  margin-top: 3rem;
  padding-top: 1rem;
  padding-bottom: 2rem;
}

.site-footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.7rem;
  padding-top: 1rem;
}

.site-footer-links {
  display: flex;
  gap: 1rem;
}

.site-footer-links a,
.site-footer-note {
  color: var(--text-faint);
  font-size: 0.8rem;
  font-weight: 600;
}

.comment-area {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .site-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    right: 1.6rem;
    left: 1.6rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 0.25rem;
    padding: 0.65rem;
    border: 1px solid var(--border-soft);
    border-radius: 0.7rem;
    background: var(--panel);
  }

  html[data-theme="light"] .site-nav {
    background: var(--panel);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a,
  .theme-toggle-button,
  .nav-icon-link {
    justify-content: center;
    width: auto;
    height: auto;
  }

  .hero-panel {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .hero-panel-avatar {
    width: 124px;
    height: 124px;
  }

  .section-heading-row {
    flex-direction: column;
    align-items: flex-start;
  }

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

  .about-media {
    min-height: 320px;
  }

  .about-media img {
    min-height: 320px;
  }

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

@media (max-width: 520px) {
  .shell {
    padding: 0 1rem;
  }

  .site-header-inner {
    min-height: 4.4rem;
  }

  .hero-title-row {
    align-items: flex-start;
    gap: 0.45rem;
  }

  .section-rule-bleed {
    width: calc(100% + 2rem);
    margin-inline: -1rem;
  }
}
