:root {
  --site-paper: #1b1b1b;
  --site-ink: #f2eee7;
  --site-muted: #aaa49b;
  --site-line: #3b3a38;
  --site-acid: #c7f36b;
  --site-acid-deep: #9fc34d;
  --site-white: #242423;
  --site-max: 1180px;
}

* { box-sizing: border-box; }
html { background: var(--site-paper); }
body {
  margin: 0;
  color: var(--site-ink);
  background: var(--site-paper);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Hiragino Sans GB", sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  opacity: 0;
  transform: translateY(-12px);
  border: 0;
  background: transparent;
  box-shadow: none;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.8,.2,1);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 1;
  background: linear-gradient(to bottom, rgba(27, 27, 27, .76) 0%, rgba(27, 27, 27, .52) 62%, rgba(27, 27, 27, 0) 100%);
  -webkit-backdrop-filter: blur(18px) saturate(115%);
  backdrop-filter: blur(18px) saturate(115%);
  transition: opacity .2s ease;
}
html.site-ready .site-header { opacity: 1; transform: none; }
.site-header-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  min-height: 76px;
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  transition: width .45s cubic-bezier(.2,.8,.2,1), min-height .45s cubic-bezier(.2,.8,.2,1), padding .45s cubic-bezier(.2,.8,.2,1), border-radius .45s cubic-bezier(.2,.8,.2,1), background .35s ease, border-color .35s ease, box-shadow .35s ease;
}
.site-header.is-compact::before { opacity: 0; }
.site-header.is-compact .site-header-inner {
  width: min(540px, calc(100% - 32px));
  min-height: 52px;
  margin-top: 16px;
  padding: 0 21px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(118deg, rgba(114, 116, 105, .46), rgba(74, 76, 70, .56) 48%, rgba(45, 46, 44, .66));
  box-shadow: 0 18px 48px rgba(0, 0, 0, .36), 0 2px 10px rgba(0, 0, 0, .16);
  -webkit-backdrop-filter: blur(28px) saturate(145%) brightness(110%);
  backdrop-filter: blur(28px) saturate(145%) brightness(110%);
}
.site-brand { font: 700 13px/1 monospace; letter-spacing: .1em; }
.site-compact-nav { display: flex; align-items: center; gap: 24px; margin-left: auto; color: var(--site-muted); font: 11px/1 monospace; letter-spacing: .08em; text-transform: uppercase; }
.site-compact-nav a { padding: 8px 0; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.site-compact-nav a:hover, .site-compact-nav a.is-active { color: var(--site-acid); border-color: var(--site-acid); }
.site-main { min-height: calc(100vh - 145px); padding-top: 76px; }
.site-footer {
  width: min(var(--site-max), calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 34px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: var(--site-muted);
  border-top: 1px solid var(--site-line);
  font: 11px/1.5 monospace;
}

.blog-page, .post-page, .generic-page, .error-page {
  width: min(var(--site-max), calc(100% - 48px));
  margin: 0 auto;
}
.blog-page { padding: clamp(76px, 10vw, 132px) 0 110px; }
.blog-intro { display: flex; justify-content: space-between; align-items: end; gap: 48px; padding-bottom: 48px; border-bottom: 1px solid var(--site-line); }
.blog-kicker { margin: 0 0 14px; color: var(--site-acid-deep); font: 600 11px/1 monospace; letter-spacing: .13em; }
.blog-intro h1, .post-header h1, .error-page h1 { margin: 0; font-size: clamp(58px, 10vw, 124px); line-height: .86; letter-spacing: -.08em; }
.blog-description { max-width: 370px; margin: 0; color: var(--site-muted); font-size: 15px; line-height: 1.7; }
.post-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin-top: 36px; background: var(--site-line); border: 1px solid var(--site-line); }
.post-card { min-height: 380px; display: flex; flex-direction: column; background: var(--site-white); transition: background .25s, color .25s; }
.post-card:hover { color: var(--site-paper); background: var(--site-acid); }
.post-card-image { display: block; aspect-ratio: 16 / 8; overflow: hidden; border-bottom: 1px solid var(--site-line); }
.post-card-image img { display: block; width: 100%; height: 100%; object-fit: cover; filter: saturate(.75); transition: transform .5s, filter .5s; }
.post-card:hover .post-card-image img { transform: scale(1.04); filter: saturate(1); }
.post-card-body { display: flex; flex: 1; flex-direction: column; padding: 26px 25px 24px; }
.post-card-meta, .post-meta { display: flex; align-items: center; gap: 14px; color: var(--site-muted); font: 11px/1.4 monospace; letter-spacing: .06em; }
.post-card h2 { margin: 40px 0 14px; font-size: clamp(25px, 3vw, 43px); line-height: .98; letter-spacing: -.06em; }
.post-card p { max-width: 480px; margin: 0; color: var(--site-muted); font-size: 14px; line-height: 1.65; }
.post-card:hover .post-card-meta, .post-card:hover p { color: rgba(27, 27, 27, .7); }
.post-card-link { display: inline-flex; align-items: center; gap: 9px; width: max-content; margin-top: auto; padding-top: 28px; font: 12px/1 monospace; }
.post-card-link span { transition: transform .2s; }
.post-card-link:hover span { transform: translate(3px, -3px); }
.empty-state { margin-top: 36px; padding: 54px 26px; border: 1px solid var(--site-line); color: var(--site-muted); line-height: 1.7; }
.pagination { display: flex; justify-content: space-between; gap: 20px; margin-top: 34px; color: var(--site-acid); font: 12px/1 monospace; }
.pagination a { padding: 12px 0; border-bottom: 1px solid var(--site-acid); }

.post-page, .generic-page { padding: clamp(68px, 9vw, 120px) 0 110px; }
.post-header { max-width: 850px; padding-bottom: 40px; border-bottom: 1px solid var(--site-line); }
.post-header h1 { font-size: clamp(44px, 7vw, 92px); line-height: .95; }
.post-meta { margin-top: 26px; }
.post-feature-image { margin: 44px 0 0; }
.post-feature-image img { display: block; width: 100%; max-height: 680px; object-fit: cover; }
.post-content { width: min(760px, 100%); margin: 54px auto 0; color: #ded8ce; font-size: 18px; line-height: 1.85; }
.post-content > * { margin-top: 0; margin-bottom: 1.35em; }
.post-content .kg-card { width: 100%; }
.post-content .kg-width-wide { width: min(100%, 1060px); max-width: 1060px; margin-left: 50%; transform: translateX(-50%); }
.post-content .kg-width-full { width: 100vw; max-width: none; margin-left: 50%; transform: translateX(-50%); }
.post-content .kg-image-card img { display: block; height: auto; }
.post-content .kg-gallery-container, .post-content .kg-gallery-row { display: flex; gap: 8px; }
.post-content .kg-gallery-image { flex: 1; min-width: 0; }
.post-content .kg-gallery-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-content h2, .post-content h3 { color: var(--site-ink); line-height: 1.15; letter-spacing: -.04em; }
.post-content h2 { margin-top: 2em; font-size: 32px; }
.post-content h3 { margin-top: 1.7em; font-size: 24px; }
.post-content a { color: var(--site-acid); text-decoration: underline; text-underline-offset: 3px; }
.post-content img { max-width: 100%; height: auto; }
.post-content blockquote { margin-left: 0; padding: 4px 0 4px 20px; border-left: 2px solid var(--site-acid); color: var(--site-muted); }
.post-content pre { overflow-x: auto; padding: 18px; color: var(--site-ink); background: var(--site-white); border: 1px solid var(--site-line); font-size: 14px; line-height: 1.6; }
.post-footer { display: flex; justify-content: space-between; gap: 20px; width: min(760px, 100%); margin: 58px auto 0; padding-top: 18px; border-top: 1px solid var(--site-line); color: var(--site-muted); font: 12px/1.5 monospace; }
.post-footer a { color: var(--site-acid); }
.error-page { padding: 18vh 0; }
.error-page h1 { max-width: 780px; margin-bottom: 42px; font-size: clamp(44px, 7vw, 86px); }

@media (max-width: 760px) {
  .blog-page, .post-page, .generic-page, .error-page, .site-footer { width: min(var(--site-max), calc(100% - 32px)); }
  .site-header-inner { padding: 0 16px; }
  .site-header-inner { min-height: 60px; }
  .site-header.is-compact .site-header-inner { width: calc(100% - 24px); min-height: 48px; margin-top: 10px; padding: 0 14px; }
  .site-compact-nav { gap: 12px; font-size: 10px; }
  .site-main { padding-top: 60px; }
  .site-brand { font-size: 11px; }
  .blog-page { padding-top: 62px; }
  .blog-intro { display: block; }
  .blog-description { margin-top: 25px; }
  .post-grid { grid-template-columns: 1fr; }
  .post-card { min-height: 320px; }
  .post-content { font-size: 17px; }
  .post-footer, .site-footer { flex-direction: column; }
}
