:root {
  --bg: #FFFCF0;
  --bg-secondary: #F2F0E5;
  --text: #100F0F;
  --text-secondary: #6F6E69;
  --text-muted: #878580;
  --border: #CECDC3;
  --link: #BC5215;
  --link-hover: #DA702C;
  --accent: #BC5215;
  --code-bg: #F2F0E5;
  --tag-bg: #E6E4D9;
  --tag-text: #575653;
}

.theme-dark {
  --bg: #1C1B1A;
  --bg-secondary: #282726;
  --text: #CECDC3;
  --text-secondary: #878580;
  --text-muted: #6F6E69;
  --border: #403E3C;
  --link: #DA702C;
  --link-hover: #BC5215;
  --accent: #DA702C;
  --code-bg: #282726;
  --tag-bg: #343331;
  --tag-text: #B7B5AC;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: "iA Writer Quattro", "iA Writer Mono", "IBM Plex Sans", "Helvetica Neue", -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 1.125rem;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--link);
  text-decoration: none;
  transition: color 0.15s ease;
}
a:hover {
  color: var(--link-hover);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 4px;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

blockquote {
  border-left: 3px solid var(--border);
  padding-left: 1rem;
  color: var(--text-secondary);
  margin: 1.5rem 0;
  font-style: italic;
}

code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 0.875em;
  background: var(--code-bg);
  padding: 0.15em 0.35em;
  border-radius: 3px;
}

pre {
  background: var(--code-bg);
  padding: 1.25rem;
  border-radius: 6px;
  overflow-x: auto;
  margin: 1.5rem 0;
  line-height: 1.5;
}
pre code {
  background: none;
  padding: 0;
  font-size: 0.85rem;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
}
table th, table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}
table th {
  font-weight: 600;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.025em;
}

::selection {
  background-color: #D0A215;
  color: #100F0F;
}

.site-wrapper {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2rem 0 1rem;
  margin-bottom: 1rem;
}

.site-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
}
.site-title:hover {
  color: var(--link);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.site-nav a {
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
}
.site-nav a:hover, .site-nav a.active {
  color: var(--text);
}

@media (max-width: 520px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .site-nav {
    gap: 1rem;
  }
}
.theme-toggle {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1;
  transition: color 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: inline-flex;
  align-items: center;
}
.theme-toggle:hover {
  color: var(--text);
  transform: scale(1.15);
}
.theme-toggle:active {
  transform: scale(0.9);
}
.theme-toggle .icon-sun,
.theme-toggle .icon-moon {
  transition: opacity 0.3s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: absolute;
}
.theme-toggle .icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}
.theme-toggle .icon-moon {
  opacity: 0;
  transform: rotate(-90deg) scale(0);
}

.theme-dark .theme-toggle .icon-sun {
  opacity: 0;
  transform: rotate(90deg) scale(0);
}
.theme-dark .theme-toggle .icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

html.theme-transition,
html.theme-transition *,
html.theme-transition *::before,
html.theme-transition *::after {
  transition: background-color 0.4s ease, color 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease !important;
}

.site-footer {
  margin-top: 4rem;
  padding: 2rem 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.site-footer a {
  color: var(--text-secondary);
}
.site-footer a:hover {
  color: var(--text);
}

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

.page-content {
  min-height: 60vh;
}

.page-header {
  margin-bottom: 2rem;
}

.page-title {
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.page-meta {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  gap: 1rem;
}

.note-content h1, .note-content h2, .note-content h3, .note-content h4, .note-content h5, .note-content h6,
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 2rem;
  margin-bottom: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--text);
}
.note-content h1:first-child, .note-content h2:first-child, .note-content h3:first-child, .note-content h4:first-child, .note-content h5:first-child, .note-content h6:first-child,
.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child,
.post-content h5:first-child,
.post-content h6:first-child {
  margin-top: 0;
}
.note-content h2,
.post-content h2 {
  font-size: 1.375rem;
}
.note-content h3,
.post-content h3 {
  font-size: 1.15rem;
}
.note-content h4,
.post-content h4 {
  font-size: 1rem;
}
.note-content p,
.post-content p {
  margin-bottom: 1.25rem;
}
.note-content ul, .note-content ol,
.post-content ul,
.post-content ol {
  margin-bottom: 1.25rem;
  padding-left: 1.5rem;
}
.note-content ul li, .note-content ol li,
.post-content ul li,
.post-content ol li {
  margin-bottom: 0.35rem;
}
.note-content ul,
.post-content ul {
  list-style-type: disc;
}
.note-content ol,
.post-content ol {
  list-style-type: decimal;
}

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

.post-list-item {
  margin-bottom: 0.5rem;
}
.post-list-item a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}
.post-list-item a:hover {
  color: var(--link);
}

.post-list-title {
  flex: 1;
}

.post-list-date {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
}

.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  background: var(--tag-bg);
  color: var(--tag-text);
  border-radius: 3px;
  font-size: 0.8rem;
  text-decoration: none;
  transition: background-color 0.15s ease;
}
.tag:hover {
  background: var(--border);
  color: var(--text);
}

.backlinks {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}
.backlinks h2 {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.backlink-list {
  list-style: none;
  padding: 0;
}

.backlink-item {
  margin-bottom: 0.75rem;
}
.backlink-item a {
  font-weight: 500;
}

.backlink-excerpt {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.section-title {
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.home-intro {
  margin-bottom: 2.5rem;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--text-secondary);
}

.featured-post {
  display: block;
  padding: 1.5rem 0;
  margin-bottom: 2rem;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.featured-post-link {
  text-decoration: none;
  color: var(--text);
}
.featured-post-link:hover .featured-post-title {
  color: var(--link);
}

.featured-post-title {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.3;
  margin-bottom: 0.35rem;
  transition: color 0.15s ease;
}

.featured-post-meta {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.featured-post-excerpt {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-secondary);
  margin: 0 0 0.75rem;
}

.featured-post-cta {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.15s ease;
}
.featured-post-cta:hover {
  color: var(--link);
}

.reading-time {
  color: var(--text-muted);
}

.wiki-link {
  color: var(--link);
  text-decoration: none;
}
.wiki-link:hover {
  color: var(--link-hover);
  text-decoration: underline;
}
.wiki-link.unresolved {
  color: var(--text-muted);
  border-bottom: 1px dashed var(--text-muted);
  cursor: help;
}

/*# sourceMappingURL=main.css.map */