:root {
  --bg: #fafafa;
  --text: #2a2a2a;
  --muted: #8a8a8a;
  --border: #e5e5e5;
  --link: #2a2a2a;
  --code-bg: #f0f0f0;
  --header-bg: #fafafa;
  --max-width: 600px;
}
[data-theme="dark"] {
  --bg: #141414;
  --text: #d0d0d0;
  --muted: #6a6a6a;
  --border: #2a2a2a;
  --link: #d0d0d0;
  --code-bg: #1f1f1f;
  --header-bg: #141414;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family:
    "Helvetica Neue",
    "Noto Sans KR",
    -apple-system,
    sans-serif;
  font-size: 15px;
  line-height: 1.8;
  font-weight: 300;
  letter-spacing: 0.02em;
  transition:
    background-color 0.5s,
    color 0.5s;
}
a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.3s ease;
}
a:hover {
  opacity: 0.7;
}
.site-header {
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  padding: 2.5rem 0;
  transition: background-color 0.5s;
}
.site-header-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-title-container {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
}
.site-title {
  font-size: 0.8rem;
  font-weight: 400;
  letter-spacing: 0.1em;
  color: var(--text);
}
.profile-image {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  opacity: 0.8;
}
.site-nav .trigger {
  display: flex;
  gap: 1.5rem;
}
.page-link {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 300;
  letter-spacing: 0.05em;
  transition: color 0.3s ease;
}
.page-link:hover {
  color: var(--text);
}
.main-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 4rem 1.5rem;
  min-height: calc(100vh - 200px);
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 400;
  line-height: 1.6;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
h1 {
  font-size: 1.5rem;
}
h2 {
  font-size: 1.25rem;
}
h3 {
  font-size: 1.1rem;
}
h4 {
  font-size: 1rem;
}
p {
  margin: 1rem 0;
  line-height: 1.9;
}
code {
  background: var(--code-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.85em;
  font-weight: 400;
}
pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 2px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
pre code {
  background: 0 0;
  padding: 0;
}
blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-style: italic;
}
ol,
ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}
li {
  margin: 0.4rem 0;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
td,
th {
  border: 1px solid var(--border);
  padding: 0.6rem;
  text-align: left;
}
th {
  background: var(--code-bg);
  font-weight: 400;
}
hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.site-footer {
  border-top: 1px solid transparent;
  padding: 1.5rem 0;
  margin-top: 3rem;
}
.footer-content {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  text-align: center;
}
.footer-content p {
  margin: 0;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 300;
  letter-spacing: 0.05em;
}
.theme-toggle-container {
  position: fixed;
  bottom: 1.5rem;
  right: 1.5rem;
}
.theme-toggle {
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all 0.3s ease;
}
.theme-toggle:hover {
  background: var(--code-bg);
}
.post-list {
  list-style: none;
  padding: 0;
}
.post-list li {
  margin: 1.25rem 0;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
}
.post-list li:last-child {
  border-bottom: none;
}
.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 300;
}
.page-content {
  max-width: var(--max-width);
  margin: 0 auto;
}
.page-title {
  font-size: 1.5rem;
  font-weight: 400;
  margin-bottom: 2rem;
}
.page-body h1,
.page-body h2,
.page-body h3,
.page-body h4,
.page-body h5,
.page-body h6 {
  font-weight: 400;
  line-height: 1.6;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.page-body h1 {
  font-size: 1.5rem;
}
.page-body h2 {
  font-size: 1.25rem;
}
.page-body h3 {
  font-size: 1.1rem;
}
.page-body p {
  margin: 1rem 0;
}
.page-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.page-body code {
  background: var(--code-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.85em;
}
.page-body pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 2px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.page-body pre code {
  background: 0 0;
  padding: 0;
}
.page-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-style: italic;
}
.page-body ol,
.page-body ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}
.page-body li {
  margin: 0.4rem 0;
}
.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.page-body td,
.page-body th {
  border: 1px solid var(--border);
  padding: 0.6rem;
  text-align: left;
}
.page-body th {
  background: var(--code-bg);
}
.page-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.post-content {
  max-width: var(--max-width);
  margin: 0 auto;
}
.post-header {
  margin-bottom: 2.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}
.post-title {
  font-size: 1.4rem;
  font-weight: 400;
  margin: 0 0 0.75rem 0;
  line-height: 1.5;
}
.post-meta {
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.4rem;
  font-weight: 300;
}
.post-meta span {
  margin-right: 0.75rem;
}
.post-body {
  line-height: 1.9;
}
.post-body h1,
.post-body h2,
.post-body h3,
.post-body h4,
.post-body h5,
.post-body h6 {
  font-weight: 400;
  line-height: 1.6;
  margin-top: 2rem;
  margin-bottom: 0.75rem;
}
.post-body h1 {
  font-size: 1.5rem;
}
.post-body h2 {
  font-size: 1.25rem;
}
.post-body h3 {
  font-size: 1.1rem;
}
.post-body p {
  margin: 1rem 0;
}
.post-body a {
  text-decoration: underline;
  text-underline-offset: 2px;
}
.post-body code {
  background: var(--code-bg);
  padding: 0.1rem 0.3rem;
  border-radius: 2px;
  font-family: "SF Mono", Consolas, monospace;
  font-size: 0.85em;
}
.post-body pre {
  background: var(--code-bg);
  padding: 1rem;
  border-radius: 2px;
  overflow-x: auto;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.post-body pre code {
  background: 0 0;
  padding: 0;
}
.post-body blockquote {
  margin: 1.5rem 0;
  padding-left: 1rem;
  border-left: 1px solid var(--border);
  color: var(--muted);
  font-style: italic;
}
.post-body ol,
.page-body ul {
  margin: 1rem 0;
  padding-left: 1.25rem;
}
.page-body li {
  margin: 0.4rem 0;
}
.page-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
.page-body td,
.page-body th {
  border: 1px solid var(--border);
  padding: 0.6rem;
  text-align: left;
}
.page-body th {
  background: var(--code-bg);
}
.post-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}
.post-navigation {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}
.post-navigation a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 300;
  transition: color 0.3s ease;
}
.post-navigation a:hover {
  color: var(--text);
}
@media (max-width: 768px) {
  .site-header-content {
    flex-direction: column;
    gap: 1rem;
  }
  .site-nav .trigger {
    gap: 1.25rem;
  }
  .main-content {
    padding: 3rem 1.25rem;
  }
  .theme-toggle-container {
    bottom: 1rem;
    right: 1rem;
  }
}
@media print {
  .site-footer,
  .site-header,
  .theme-toggle-container {
    display: none;
  }
  body {
    background: #fff;
    color: #000;
  }
  .main-content {
    max-width: 100%;
  }
}
