@charset "UTF-8";
:root {
  --bg: #fafaf7;
  --surface: #ffffff;
  --surface-2: #f3f2ee;
  --border: #e6e4dd;
  --border-strong: #cfccc1;
  --text: #1d1c1a;
  --text-muted: #6b6a64;
  --accent: #2d6a4f;
  --accent-soft: #d8e9df;
  --accent-strong: #1f4d39;
  --shadow-sm: 0 1px 2px rgba(20, 20, 18, 0.04);
  --shadow-md: 0 8px 24px rgba(20, 20, 18, 0.08);
  --radius: 10px;
  --radius-sm: 6px;
  --max-width: 1100px;
  --font-sans: "Inter", "Jomolhari", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  --font-serif: "Jomolhari", serif;
  --font-mono: ui-monospace, SFMono-Regular, "JetBrains Mono", Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 250, 247, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-weight: 600;
  font-size: 1.05rem;
  white-space: nowrap;
}

.brand:hover {
  color: var(--accent);
}

.brand-mark {
  color: var(--accent);
  font-size: 1.1rem;
}

.site-nav {
  display: flex;
  gap: 18px;
  margin-right: auto;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 0.92rem;
  font-weight: 500;
}

.site-nav a:hover {
  color: var(--text);
}

.search-wrap {
  position: relative;
  flex: 1;
  max-width: 360px;
}

.search-input,
.hero-search-input {
  width: 100%;
  padding: 10px 36px 10px 14px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-family: inherit;
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input::placeholder,
.hero-search-input::placeholder {
  color: var(--text-muted);
}

.search-input:focus,
.hero-search-input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.search-hint {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 4px;
  pointer-events: none;
}

/* Search results dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  max-height: 70vh;
  overflow-y: auto;
  z-index: 60;
}

.search-results[hidden] {
  display: none;
}

.search-result {
  display: block;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.search-result:last-child {
  border-bottom: none;
}

.search-result:hover,
.search-result.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.search-result h4 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 600;
}

.search-result p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.search-result mark {
  background: rgba(45, 106, 79, 0.18);
  color: inherit;
  padding: 0 2px;
  border-radius: 2px;
}

.search-result .result-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.search-empty {
  padding: 18px 14px;
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
}

/* Hero */
.hero {
  background: linear-gradient(180deg, var(--surface-2) 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--border);
  padding: 64px 0 56px;
  text-align: center;
}

.hero h1 {
  font-size: 2.6rem;
  font-weight: 700;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.hero-sub {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto 32px;
}

.hero-search {
  position: relative;
  max-width: 560px;
  margin: 0 auto;
}

.hero-search-input {
  font-size: 1rem;
  padding: 14px 18px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.hero-results {
  text-align: left;
}

/* Sections */
.content-section {
  padding: 48px 0 64px;
}

.section-title {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 40px 0 16px;
}

.section-title:first-child {
  margin-top: 0;
}

/* Category list */
.category-list {
  list-style: none;
  margin: 0 0 8px;
  padding: 0;
  border-top: 1px solid var(--border);
}

.category-line a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  color: var(--text);
}

.category-line a:hover {
  color: var(--accent-strong);
  background: var(--surface-2);
}

.category-name {
  font-size: 1rem;
  font-weight: 500;
}

.category-count {
  color: var(--text-muted);
  font-size: 0.85rem;
}

/* Article list */
.article-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.article-item a {
  display: block;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.article-item a:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-sm);
  color: var(--text);
}

.article-item h3 {
  margin: 0 0 4px;
  font-size: 1.02rem;
  font-weight: 600;
}

.article-item p {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* Tags / meta */
.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font-size: 0.8rem;
}

.tag {
  display: inline-block;
  padding: 2px 8px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 0.76rem;
}

.tag-cat {
  background: var(--accent-soft);
  border-color: transparent;
  color: var(--accent-strong);
  font-weight: 500;
}

.meta-date {
  color: var(--text-muted);
  font-size: 0.8rem;
  margin-left: auto;
}

/* Article shell */
.article-shell {
  padding: 40px 24px 80px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.breadcrumbs {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.breadcrumbs a {
  color: var(--text-muted);
}

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

.crumb-current {
  color: var(--text);
}

.article-header {
  margin-bottom: 32px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.article-header h1 {
  font-family: var(--font-serif);
  font-size: 2.4rem;
  font-weight: 600;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.article-description {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin: 0 0 16px;
}

/* Article body — typography for markdown */
.article-body {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  line-height: 1.7;
}

.article-body h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.article-body h3 {
  font-size: 1.18rem;
  font-weight: 600;
  margin: 28px 0 8px;
}

.article-body h4 {
  font-size: 1rem;
  font-weight: 600;
  margin: 22px 0 6px;
}

.article-body p {
  margin: 0 0 16px;
}

.article-body ul,
.article-body ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.article-body li {
  margin-bottom: 6px;
}

.article-body code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--border);
  padding: 1px 6px;
  border-radius: 4px;
}

.article-body pre {
  background: #1d1c1a;
  color: #f3f2ee;
  padding: 16px 18px;
  border-radius: var(--radius);
  overflow-x: auto;
  font-size: 0.88rem;
  line-height: 1.55;
  margin: 0 0 18px;
}

.article-body pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
}

.article-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 0 0 18px;
  padding: 4px 16px;
  color: var(--text-muted);
  background: var(--surface-2);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 0.95rem;
}

.article-body th,
.article-body td {
  text-align: left;
  padding: 8px 12px;
  border: 1px solid var(--border);
}

.article-body th {
  background: var(--surface-2);
  font-weight: 600;
}

.article-body img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

.article-body hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* Browse page */
.page-shell {
  padding: 48px 0 80px;
  max-width: 880px;
  margin: 0 auto;
}

.page-shell h1 {
  font-size: 2rem;
  margin: 0 0 12px;
}

.page-intro {
  color: var(--text-muted);
  margin-bottom: 24px;
}

.browse-section {
  margin-top: 36px;
}

.browse-section h2 {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 14px;
  scroll-margin-top: 80px;
}

.muted {
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.85em;
}

.page-content h2 {
  font-size: 1.4rem;
  margin: 32px 0 12px;
}

.page-content p {
  margin: 0 0 14px;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: 48px;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

/* Responsive */
@media (max-width: 880px) {
  .article-shell {
    padding: 24px 24px 48px;
  }
  .hero h1 {
    font-size: 2rem;
  }
  .header-inner {
    flex-wrap: wrap;
  }
  .search-wrap {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }
  .site-nav {
    gap: 14px;
  }
  .search-hint {
    display: none;
  }
}
@media (max-width: 560px) {
  .header-inner {
    gap: 12px;
  }
  .site-nav {
    font-size: 0.88rem;
  }
  .hero {
    padding: 48px 0 40px;
  }
  .hero h1 {
    font-size: 1.7rem;
  }
}

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