:root {
  --bg: #f5efe6;
  --bg-accent: #efe0c8;
  --surface: rgba(255, 250, 242, 0.88);
  --text: #1f1b16;
  --muted: #6a5c4d;
  --line: rgba(31, 27, 22, 0.12);
  --accent: #bf5b04;
  --accent-deep: #7f3200;
  --shadow: 0 24px 80px rgba(84, 55, 19, 0.12);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.8), transparent 32%),
    linear-gradient(180deg, var(--bg-accent), var(--bg));
  font-family: "Victor Mono", "Noto Sans KR", monospace;
  font-size: 15px;
  line-height: 1.7;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

.page-shell {
  width: min(1040px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0 4rem;
}

.site-footer,
.panel,
.post {
  backdrop-filter: blur(16px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
}

.site-header {
  margin-bottom: 1.5rem;
  padding-left: 0;
  padding-right: 0;
}

.brand {
  font-size: 1.65rem;
  text-decoration: none;
  font-weight: 700;
}

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

.site-nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 0.95rem;
}

.content {
  display: grid;
  gap: 1.5rem;
}

.panel,
.post {
  padding: clamp(1.25rem, 2vw, 2rem);
}

.post h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 3.2rem);
  line-height: 1;
}

.summary,
.panel-header p,
.card p,
.site-footer,
.post-body {
  color: var(--muted);
}

.summary,
.panel-header p,
.card p,
.site-footer p,
.post-body p,
.post-body li,
.post-body blockquote {
  max-width: 70ch;
}

.post-body p,
.post-body li,
.post-body blockquote {
  max-width: 104ch;
}

.eyebrow {
  margin: 0 0 0.75rem;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.panel-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.panel-header h1,
.panel-header h2,
.card h2,
.card h3 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
}

.post-list {
  display: grid;
  gap: 1rem;
}

.sub-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.sub-nav a {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
}

.sub-nav a:hover {
  color: var(--accent-deep);
}

.sub-nav a.is-active {
  color: var(--accent-deep);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pagination-link {
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  text-decoration: none;
}

.pagination-link:hover {
  border-color: rgba(191, 91, 4, 0.35);
  color: var(--accent-deep);
}

.pagination-link.is-active {
  border-color: rgba(191, 91, 4, 0.35);
  background: rgba(191, 91, 4, 0.1);
  color: var(--accent-deep);
}

.category-groups {
  display: grid;
  gap: 1.5rem;
}

.category-section {
  display: grid;
  gap: 0.85rem;
  scroll-margin-top: 6rem;
}

.category-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
}

.category-header h2,
.category-header p {
  margin: 0;
}

.card {
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  transition: transform 180ms ease, border-color 180ms ease;
}

.card:hover {
  transform: translateY(-2px);
  border-color: rgba(191, 91, 4, 0.35);
}

.card a {
  text-decoration: none;
}

.card-empty {
  border-style: dashed;
}

.about-copy {
  display: grid;
  gap: 0.85rem;
}

.resume-grid {
  display: grid;
  gap: 1rem;
}

.resume-section {
  padding: 1.1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
}

.resume-section h2,
.resume-section h3,
.resume-section p,
.resume-list {
  margin-top: 0;
}

.resume-section h2,
.resume-section h3 {
  margin-bottom: 0.75rem;
}

.resume-list {
  margin-bottom: 0;
  padding-left: 1.25rem;
}

.resume-detail-list {
  display: grid;
  gap: 0.5rem;
}

.resume-detail-list li {
  margin: 0;
}

.resume-item + .resume-item {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}

.resume-meta {
  color: var(--muted);
}

.post-body h2,
.post-body h3 {
  margin-top: 2rem;
  color: var(--text);
}

.post-body a {
  color: var(--accent-deep);
}

.post-header,
.post-body {
  text-align: left;
}

.post-body pre,
.post-body code {
  font-family: "Victor Mono", monospace;
}

.code-block {
  overflow: hidden;
  margin: 1.5rem 0;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 16px;
  background: #201a14;
  color: #f7f2eb;
}

.code-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.code-block-language {
  color: #d6cbbd;
  font-size: 0.85rem;
  text-transform: lowercase;
}

.code-copy {
  padding: 0.2rem 0.55rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: transparent;
  color: #f7f2eb;
  cursor: pointer;
}

.code-copy:hover {
  border-color: rgba(255, 255, 255, 0.28);
}

.post-body .code-block pre {
  overflow-x: auto;
  margin: 0;
  padding: 1rem;
  border-radius: 0;
  background: transparent;
  color: inherit;
}

.post-body .code-block code {
  background: transparent;
  color: inherit;
  padding: 0;
  border-radius: 0;
}

.hljs {
  color: #f7f2eb;
}

.hljs-keyword,
.hljs-selector-tag,
.hljs-literal {
  color: #f3a76f;
}

.hljs-string,
.hljs-attr,
.hljs-template-tag,
.hljs-template-variable {
  color: #d7d787;
}

.hljs-title,
.hljs-title.function_,
.hljs-section {
  color: #8cd3c6;
}

.hljs-number,
.hljs-symbol,
.hljs-bullet {
  color: #eaa0c0;
}

.hljs-comment,
.hljs-quote {
  color: #9b8e7d;
}

.hljs-variable,
.hljs-property,
.hljs-params {
  color: #f0d8bf;
}

.post-body :not(pre) > code {
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  background: rgba(191, 91, 4, 0.12);
  color: var(--accent-deep);
}

.post-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 3px solid rgba(191, 91, 4, 0.35);
}

.post-body p:has(> img) {
  display: flex;
  justify-content: center;
  margin: 1.75rem 0;
}

.post-body img {
  display: block;
  width: auto;
  max-width: min(100%, 68ch);
  height: auto;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(84, 55, 19, 0.12);
}

.site-footer {
  margin-top: 1.5rem;
}

.footer-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.copy-toast {
  position: fixed;
  left: 50%;
  bottom: 1.25rem;
  max-width: min(420px, calc(100vw - 2rem));
  padding: 0.8rem 1rem;
  border: 1px solid rgba(191, 91, 4, 0.24);
  border-radius: 14px;
  background: rgba(32, 26, 20, 0.94);
  box-shadow: 0 18px 40px rgba(20, 14, 9, 0.28);
  color: #f7f2eb;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
  text-align: center;
}

.copy-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 720px) {
  .site-header,
  .site-footer,
  .panel-header,
  .category-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .site-nav {
    flex-wrap: wrap;
  }

  .page-shell {
    width: min(100% - 1rem, 1040px);
    padding-top: 0.75rem;
  }
}
