/* Pure static site style (no external dependencies). */

:root{
  --bg: #0b1220;
  --card: rgba(255,255,255,.06);
  --card-2: rgba(255,255,255,.09);
  --text: rgba(255,255,255,.92);
  --muted: rgba(255,255,255,.72);
  --link: #7dd3fc;
  --accent: #60a5fa;
  --border: rgba(255,255,255,.12);
}

* { box-sizing: border-box; }

html, body{
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  line-height: 1.7;
}

body{
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a{ color: var(--link); text-decoration: none; }
a:hover{ text-decoration: underline; }

.container{
  max-width: 980px;
  margin: 0 auto;
  padding: 0 18px;
}

.skip-link{
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 8px 12px;
  border-radius: 8px;
}
.skip-link:focus{
  left: 18px;
  top: 12px;
  z-index: 999;
}

header{
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(8px);
  background: rgba(11, 18, 32, .72);
  border-bottom: 1px solid var(--border);
}

.topbar{
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand{
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.brand-title{
  font-size: 16px;
  font-weight: 800;
  letter-spacing: .2px;
}
.brand-sub{
  font-size: 12px;
  color: var(--muted);
}

nav{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

nav a{
  display: inline-flex;
  padding: 8px 10px;
  border-radius: 10px;
  color: var(--muted);
  border: 1px solid transparent;
}
nav a:hover{
  color: var(--text);
  border-color: var(--border);
  background: rgba(255,255,255,.04);
  text-decoration: none;
}

main{
  flex: 1;
  padding: 28px 0 44px;
}

.hero{
  padding: 22px 0 10px;
}
.hero h1{
  margin: 0 0 10px;
  font-size: 28px;
}
.hero p{
  margin: 0;
  color: var(--muted);
}

.grid{
  margin-top: 18px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.card{
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: 16px;
  padding: 16px;
}

.card h2{
  margin: 0 0 8px;
  font-size: 16px;
}

.post-list{
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.post-item{
  padding: 12px 12px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.03);
  border-radius: 14px;
}
.post-meta{
  color: var(--muted);
  font-size: 12px;
  margin-bottom: 6px;
}
.post-title{
  font-weight: 800;
  margin: 0 0 6px;
}
.post-excerpt{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

/* Article layout */
.article{
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.article h1{
  margin: 0 0 8px;
  font-size: 26px;
}
.article .meta{
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 10px;
}

.prose{
  color: rgba(255,255,255,.88);
  border: 1px solid var(--border);
  background: rgba(255,255,255,.03);
  border-radius: 16px;
  padding: 16px;
}
.prose p{ margin: 10px 0; }
.prose h2{
  margin-top: 18px;
  margin-bottom: 8px;
  font-size: 18px;
}
.prose ul{
  margin: 10px 0;
  padding-left: 20px;
}
.prose li{ margin: 6px 0; }
.prose code{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(255,255,255,.08);
  padding: 2px 6px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.12);
}
.prose pre{
  overflow: auto;
  padding: 12px;
  border-radius: 14px;
  background: rgba(0,0,0,.25);
  border: 1px solid rgba(255,255,255,.10);
}
.prose pre code{
  background: transparent;
  border: none;
  padding: 0;
}

footer{
  border-top: 1px solid var(--border);
  padding: 18px 0 26px;
  color: var(--muted);
  font-size: 13px;
}

.footer-record{
  margin-top: 8px;
  color: var(--muted);
}

.footer-links{
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 10px;
}

@media (min-width: 860px){
  .grid{
    grid-template-columns: 1.2fr .8fr;
    align-items: start;
  }
  .article{
    grid-template-columns: 1fr;
  }
  .post-list{
    grid-template-columns: 1fr 1fr;
  }
}

