:root {
  --bg: #0b0c10;
  --card: #12141b;
  --soft: #0f1117;
  --text: #f3f4f6;
  --muted: rgba(243, 244, 246, 0.72);
  --line: rgba(243, 244, 246, 0.12);

  /* TWB vibe: cool blue + subtle mint */
  --accent: #60a5fa;
  --accent2: #a7f3d0;

  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  --radius: 18px;
  --max: 1040px;
  --font: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background:
    radial-gradient(1200px 800px at 20% 0%, rgba(96,165,250,0.18), transparent 60%),
    radial-gradient(900px 700px at 80% 20%, rgba(167,243,208,0.14), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
}

a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 18px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 12, 16, 0.72);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 14px;
}

.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark {
  display: inline-flex;
  width: 44px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(96,165,250,0.38), rgba(167,243,208,0.22));
  border: 1px solid var(--line);
  font-weight: 900;
  letter-spacing: 0.4px;
  font-size: 12px;
}
.brand-text { font-weight: 800; letter-spacing: -0.01em; }

.nav { display: flex; gap: 14px; align-items: center; }
.nav a { color: var(--muted); font-weight: 650; }
.nav a:hover { color: var(--text); text-decoration: none; }

.hero { padding: 52px 0 18px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .nav { gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
}

.kicker {
  display: inline-flex;
  border: 1px solid var(--line);
  background: rgba(11, 12, 16, 0.28);
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

h1 {
  margin: 0 0 10px 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}
h2 { margin: 0; font-size: 28px; letter-spacing: -0.01em; }
h3 { margin: 0 0 8px 0; font-size: 20px; }

.lead {
  color: var(--muted);
  font-size: 18px;
  margin: 0 0 18px 0;
}

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 10px 0 12px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 11px 16px;
  border: 1px solid rgba(96,165,250,0.35);
  background: rgba(96,165,250,0.15);
  color: var(--text);
  font-weight: 800;
  box-shadow: var(--shadow);
}
.btn:hover { text-decoration: none; filter: brightness(1.06); }
.btn-ghost {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  box-shadow: none;
}
.btn-small { padding: 9px 12px; font-weight: 750; box-shadow: none; }
.btn-full { width: 100%; }

.mini-note { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: 13px; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent2); box-shadow: 0 0 0 4px rgba(167,243,208,0.10); }

.section { padding: 40px 0; }
.section-soft { background: rgba(18, 20, 27, 0.55); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
}
@media (max-width: 860px) {
  .two-col { grid-template-columns: 1fr; }
}

.card {
  background: rgba(18, 20, 27, 0.82);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.note-card {
  margin-top: 16px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 16, 0.22);
  border-radius: var(--radius);
  padding: 14px;
}
.note-title { font-weight: 850; margin-bottom: 6px; }

.hero-card { padding: 18px; }
.hero-card-top { display: flex; gap: 8px; margin-bottom: 10px; }
.pill {
  font-size: 12px;
  font-weight: 900;
  color: rgba(11, 12, 16, 0.95);
  background: var(--accent);
  padding: 6px 10px;
  border-radius: 999px;
}
.pill-soft { background: var(--accent2); }

.checklist { margin: 10px 0 0; padding-left: 18px; color: var(--muted); }
.checklist li { margin: 8px 0; }

.label { display: block; margin: 10px 0 6px; font-weight: 750; color: var(--muted); }
.input {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 16, 0.35);
  color: var(--text);
  outline: none;
}
.input:focus { border-color: rgba(96,165,250,0.50); box-shadow: 0 0 0 4px rgba(96,165,250,0.14); }
.textarea { resize: vertical; }

.fineprint { margin: 10px 0 0; font-size: 12px; color: var(--muted); }

.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 14px; }
.muted { color: var(--muted); }

.post-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(11, 12, 16, 0.25);
  font-size: 12px;
  font-weight: 900;
  color: var(--muted);
}
.post-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }

.archive-list { padding: 6px; }
.archive-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid transparent;
  color: var(--muted);
}
.archive-item:hover {
  border-color: var(--line);
  background: rgba(11, 12, 16, 0.25);
  text-decoration: none;
  color: var(--text);
}
.archive-title { font-weight: 800; }
.archive-date { color: var(--muted); font-size: 13px; white-space: nowrap; }

.bullets { margin-top: 12px; display: grid; gap: 12px; }
.bullet-title { font-weight: 900; margin-bottom: 2px; }

.footer { padding: 26px 0 50px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 12px; }
.footer-links a { color: var(--muted); font-weight: 750; }
.footer-links a:hover { color: var(--text); text-decoration: none; }
