/* --- Design tokens ------------------------------------------------------- */
:root{
    --bg: #2e3033;
    --text: #ffffff;
    --muted: #979797;
    --accent: #6287ff;            /* from your SVG */
    --card: #383838;
    --border: #1b2330;
    --accent-weak: rgba(58,149,254,.18);
  }
  

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 system-ui, -apple-system, Segoe UI, Roboto, Inter, Arial, sans-serif;
}

a{ color: var(--accent); text-decoration: underline; }

/* --- Navigation ------------------------------------------------------------ */
.nav{
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
  margin-bottom: 32px;
}

.nav a{
  position: relative;
  width: 120px;
  text-align: center;
  padding: 8px 0;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  color: var(--text);
  opacity: .8;
}

.nav a span{
  display: inline-block;
  transition: transform .2s ease, opacity .2s ease;
}

.nav a:hover{
  opacity: 1;
}

.nav a:hover span{
  transform: scale(1.1);
}

/* Add dividers between nav items */
.nav a:not(:last-child)::after{
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 1px;
  height: 16px;
  background: var(--border);
}

/* --- Layout -------------------------------------------------------------- */
.container{
  max-width: 920px;
  padding: 24px 20px 80px;
  margin-inline: auto;
}

/* --- Page header --------------------------------------------------------- */
.page-head{
  margin-bottom: 28px;
  position: relative;
}
.page-title{
  margin: 0 0 6px 0;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}
.page-subtitle{
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* --- Blog list grid ------------------------------------------------------ */
.blog-list{
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Each post card */
.post-card{
  background: linear-gradient(0deg, var(--card), var(--card));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow:
    0 1px 0 rgba(0,0,0,0.02),
    0 6px 16px rgba(12,17,22,0.06);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  overflow: clip;
}

/* Clickable area */
.post-link{
  display: flex;
  flex-direction: column;
  padding: 18px 18px 16px;
  color: inherit;
  text-decoration: none;
  position: relative;
  isolation: isolate;
}

/* Meta line: tags */
.post-meta{
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  align-self: flex-start;
  margin-bottom: 24px;
  z-index: 1;
}
.post-tag{
  padding: 2px 8px;
  background: var(--border);
  border-radius: 4px;
  font-size: 10px;
  letter-spacing: 0.02em;
  transition: background-color .2s ease;
}
.post-tag:hover{
  background: color-mix(in oklab, var(--border) 85%, var(--accent));
}

.post-tag.draft{
  background: color-mix(in oklab, var(--accent) 15%, var(--border));
  color: var(--accent);
  font-weight: 500;
}

/* Title & summary */
.post-title{
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  text-align: left;
  margin-bottom: 8px;
  max-width: 80%;
  z-index: 1;
}
.post-summary{
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  text-align: left;
  z-index: 1;
  font-style: italic;
}

/* CTA arrow */
.post-cta{
  margin-top: 3px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  opacity: .95;
  z-index: 1;
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
}

/* Hover state: lift + stronger accent border */
.post-card:hover{
  transform: translateY(-2px);
  border-color: color-mix(in oklab, var(--accent) 32%, var(--border));
  box-shadow:
    0 2px 0 rgba(0,0,0,0.02),
    0 10px 22px rgba(12,17,22,0.10);
}

/* Empty state */
.post-empty{
  grid-column: 1/-1;
  color: var(--muted);
  text-align: center;
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius);
}

/* Table styles ------------------------------------------------------------ */
.table-wrapper {
  max-width: 100%;
  overflow-x: auto;
  margin: 2rem 0;
}

.booktabs {
  width: 100%;
  border-spacing: 0;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.booktabs th,
.booktabs td {
  padding: 8px 16px;
  text-align: left;
}

/* Column alignments */
.booktabs th.l,
.booktabs td.l { text-align: left; }
.booktabs th.c,
.booktabs td.c,
.booktabs th.cmid,
.booktabs td.cmid { text-align: center; }
.booktabs th.r,
.booktabs td.r { text-align: right; }

/* Horizontal rules */
.booktabs thead tr:first-child th { border-top: 2px solid var(--text); }
.booktabs thead tr:last-child th { border-bottom: 1px solid var(--text); }
.booktabs tbody tr:last-child td { border-bottom: 2px solid var(--text); }

/* Utilities you were using */
.list{ padding-left: 0; list-style: none; }
.list-item{ margin: 0 0 10px; }
.muted{ color: var(--muted); }
