/* ─── Variables ─────────────────────────────────────────────────────────── */
:root {
  --bg:        #0d0d0f;
  --bg2:       #141416;
  --bg3:       #18181c;
  --surface:   #18181c;
  --border:    #1e1e24;
  --border2:   #2e2e38;
  --text:      #e8e8f0;
  --muted:     #6a6a7a;
  --dim:       #4a4a55;
  --accent:    #a8c832;
  --accent2:   #80a105;
  --green:     #a8c832;
  --amber:     #f5d442;
  --red:       #f54258;
  --blue:      #42a8f5;
  --purple:    #c542f5;
  --orange:    #f5a142;

  --font-body: 'JetBrains Mono', monospace;
  --font-mono: 'JetBrains Mono', monospace;
  --font-head: 'Syne', sans-serif;

  --max:  760px;
  --wide: 1100px;
  --r:    6px;
}

/* ─── Reset ──────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent2); }

/* ─── Header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,16,.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0 2rem;
}
.header-inner {
  max-width: var(--wide);
  margin: 0 auto;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  height: 38px;
  width: auto;
  display: block;
  /* Logo is zwart op transparant — inverteer voor dark bg */
  filter: invert(1) brightness(0.9);
  transition: opacity .15s;
}
.logo:hover img { opacity: .8; }

nav { display: flex; gap: 2rem; align-items: center; }
nav a {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  letter-spacing: .1em;
  text-transform: uppercase;
  transition: color .15s;
}
nav a:hover, nav a.active { color: var(--accent); }
.nav-dot {
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 1; }
  50%      { opacity: .3; }
}

/* ─── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 6rem 2rem 4rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.hero-sub {
  font-size: 1.05rem;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 2rem;
}
.hero-links { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .6rem 1.2rem;
  border-radius: var(--r);
  font-size: .875rem;
  font-weight: 500;
  transition: all .15s;
  cursor: pointer;
  border: none;
}
.btn-primary {
  background: var(--accent);
  color: #0d0d0f;
  font-weight: 700;
}
.btn-primary:hover { background: var(--accent2); color: #0d0d0f; }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--border);
  font-family: var(--font-mono);
  font-size: .8rem;
  letter-spacing: .05em;
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* Terminal card in hero */
.hero-terminal {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.terminal-bar {
  background: var(--surface);
  padding: .6rem 1rem;
  display: flex;
  align-items: center;
  gap: .5rem;
  border-bottom: 1px solid var(--border);
}
.terminal-bar span {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.t-red   { background: #e05c5c; }
.t-amber { background: #f0a832; }
.t-green { background: #5cc98b; }
.terminal-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
  margin-left: .5rem;
}
.terminal-body {
  padding: 1.2rem 1.4rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  line-height: 1.9;
}
.t-prompt { color: var(--green); }
.t-cmd    { color: var(--text); }
.t-out    { color: var(--muted); }
.t-key    { color: var(--accent); }
.t-val    { color: var(--amber); }

/* ─── Section / Layout ───────────────────────────────────────────────────── */
.section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 4rem 2rem;
}
.section + .section {
  border-top: 1px solid var(--border);
}
.section-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: .75rem;
}
.section-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, #80a105, transparent);
}
h2.section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 2rem;
  letter-spacing: -.02em;
}

/* ─── Blog grid ──────────────────────────────────────────────────────────── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.post-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.5rem;
  transition: border-color .2s, transform .2s;
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}
.post-tags {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.tag {
  font-family: var(--font-mono);
  font-size: .68rem;
  padding: .2rem .5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--dim);
  letter-spacing: .04em;
}
.post-card h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: .5rem;
  line-height: 1.25;
  letter-spacing: -.01em;
}
.post-card p {
  font-size: .9rem;
  color: var(--muted);
  flex: 1;
  margin-bottom: 1.2rem;
}
.post-meta {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
  display: flex;
  align-items: center;
  gap: .75rem;
}
.post-meta .read-more {
  margin-left: auto;
  color: var(--accent);
  font-size: .75rem;
}

/* ─── Article (blog post) ────────────────────────────────────────────────── */
.article-header {
  max-width: var(--max);
  margin: 3rem auto 0;
  padding: 0 2rem;
}
.article-header .post-tags { margin-bottom: 1.2rem; }
.article-header h1 {
  font-family: 'Syne', sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.03em;
  margin-bottom: 1rem;
}
.article-header .post-meta { margin-bottom: 2rem; }

.article-body {
  max-width: var(--max);
  margin: 2rem auto;
  padding: 0 2rem 4rem;
}

/* Prose styles */
.prose h2 {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--accent);
  margin: 2.5rem 0 1rem;
  padding-bottom: .5rem;
  border-bottom: 1px solid var(--border);
  letter-spacing: -.01em;
}
.prose h3 {
  font-family: 'Syne', sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 2rem 0 .75rem;
}
.prose p { margin-bottom: 1.2rem; color: var(--text); }
.prose ul, .prose ol {
  margin: 0 0 1.2rem 1.5rem;
  color: var(--text);
}
.prose li { margin-bottom: .4rem; }
.prose a { border-bottom: 1px solid var(--border2); transition: border-color .15s; }
.prose a:hover { border-color: var(--accent); }
.prose strong { color: var(--text); font-weight: 600; }
.prose blockquote {
  border-left: 3px solid var(--accent);
  padding: .8rem 1.2rem;
  margin: 1.5rem 0;
  background: var(--bg2);
  border-radius: 0 var(--r) var(--r) 0;
  color: var(--muted);
  font-style: italic;
}
.prose hr { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
.prose img { border-radius: var(--r); margin: 1.5rem 0; }

/* Code */
.prose code {
  font-family: var(--font-mono);
  font-size: .83em;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: .15em .4em;
  border-radius: 4px;
  color: var(--accent);
}
.prose pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem 1.4rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  position: relative;
}
.prose pre code {
  background: none;
  border: none;
  padding: 0;
  font-size: .82rem;
  color: var(--text);
  line-height: 1.7;
}
.prose pre .lang-label {
  position: absolute;
  top: .5rem; right: .75rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .08em;
}

/* ─── Skill / stat cards ─────────────────────────────────────────────────── */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}
.stat-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 1.2rem;
}
.stat-card .stat-val {
  font-family: 'Syne', sans-serif;
  font-size: 1.8rem;
  color: var(--accent);
  font-weight: 800;
  letter-spacing: -.02em;
}
.stat-card .stat-label {
  font-size: .8rem;
  color: var(--muted);
  margin-top: .2rem;
}

/* ─── FAQ ────────────────────────────────────────────────────────────────── */
.faq { margin-top: 3rem; border-top: 1px solid var(--border); padding-top: 2rem; }
.faq-title {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
}
details {
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
details summary::after {
  content: '+';
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 1.1rem;
  transition: transform .2s;
}
details[open] summary::after { transform: rotate(45deg); }
details p { margin-top: .75rem; color: var(--muted); font-size: .95rem; }

/* ─── Footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 3rem 2rem 1.5rem;
  background: var(--bg2);
}
.footer-grid {
  max-width: var(--wide);
  margin: 0 auto 2rem;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 3rem;
}
.footer-col-brand .footer-logo img { display: block; margin-bottom: 1rem; }
.footer-tagline {
  font-size: .8rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1rem;
  max-width: 280px;
}
.footer-social {
  display: flex;
  gap: .75rem;
}
.footer-social a {
  color: var(--dim);
  transition: color .15s;
  display: flex;
  align-items: center;
}
.footer-social a:hover { color: var(--accent); }

.footer-col {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.footer-col-title {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--accent);
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: .5rem;
}
.footer-col a {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--muted);
  text-decoration: none;
  transition: color .15s;
  line-height: 1.4;
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: var(--wide);
  margin: 0 auto;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.footer-copy {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
  letter-spacing: .05em;
}

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-col-brand { grid-column: 1 / -1; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ─── Breadcrumb ─────────────────────────────────────────────────────────── */
.breadcrumb {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--dim);
  display: flex;
  gap: .5rem;
  align-items: center;
  padding: 1rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
}
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { color: var(--border2); }

/* ─── Page transitions ───────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeUp .35s ease both; }
.fade-in-delay { animation: fadeUp .35s .1s ease both; }
.fade-in-delay2 { animation: fadeUp .35s .2s ease both; }

/* ─── Responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .hero { grid-template-columns: 1fr; padding: 3rem 1.5rem 2rem; gap: 2rem; }
  .hero-terminal { display: none; }
  .section { padding: 2.5rem 1.5rem; }
  nav { gap: 1.2rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ─── Projects ───────────────────────────────────────────────────────────── */
.projects-group {
  margin-bottom: 3rem;
}
.projects-group-label {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1.25rem;
}
.projects-count {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.project-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  transition: border-color .2s, transform .2s;
  color: inherit;
  text-decoration: none;
}
.project-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}

.project-card-head {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.project-favicon {
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.project-domain {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.project-tech {
  font-family: var(--font-mono);
  font-size: .65rem;
  padding: .15rem .4rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  color: var(--dim);
  text-transform: uppercase;
  letter-spacing: .05em;
}
.project-arrow {
  font-size: .85rem;
  color: var(--border2);
  transition: color .15s, transform .15s;
  flex-shrink: 0;
}
.project-card:hover .project-arrow {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.project-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.project-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.project-tags {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: .2rem;
}

/* Categorie badge kleuren */
.cat-affiliate { background: #1a2a1a; border-color: #2a4a2a; color: var(--green); }
.cat-leadgen   { background: #1a1a2a; border-color: #2a2a4a; color: var(--accent); }
.cat-tool      { background: #2a2010; border-color: #4a3a10; color: var(--amber); }
.cat-other     { background: var(--surface); border-color: var(--border2); color: var(--muted); }
.cat-network   { background: #0e1e2a; border-color: #1a3a4a; color: var(--accent); }
.cat-text      { background: #1a2a1a; border-color: #2a4a2a; color: var(--green); }
.cat-security  { background: #2a1a1a; border-color: #4a2a2a; color: var(--red); }
.cat-calc      { background: #2a2010; border-color: #4a3a10; color: var(--amber); }
.cat-saas      { background: #2a1a2a; border-color: #4a2a4a; color: #c792ea; }
.cat-other     { background: var(--surface); border-color: var(--border); color: var(--muted); }

/* ─── Diagram (draw.io inline SVG) ──────────────────────────────────────── */
.diagram-wrapper {
  position: relative;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin: 1.5rem 0;
  overflow: hidden;
}
.diagram-toolbar {
  position: absolute;
  top: .6rem;
  right: .6rem;
  z-index: 10;
  display: flex;
  gap: .3rem;
}
.diagram-btn {
  background: var(--surface);
  border: 1px solid var(--border2);
  color: var(--muted);
  border-radius: 5px;
  width: 28px;
  height: 28px;
  font-size: .9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .15s;
  font-family: var(--font-mono);
  line-height: 1;
}
.diagram-btn:hover { border-color: var(--accent); color: var(--accent); }
.diagram-btn-expand { width: auto; padding: 0 .5rem; font-size: .75rem; }

.diagram-viewport {
  min-height: 300px;
  max-height: 600px;
  overflow: hidden;
  cursor: grab;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.diagram-viewport:active { cursor: grabbing; }
.diagram-viewport svg {
  max-width: 100%;
  height: auto;
  display: block;
}
/* Fullscreen */
.diagram-wrapper.is-fullscreen {
  position: fixed !important;
  inset: 0;
  z-index: 1000;
  border-radius: 0;
  margin: 0;
}
.diagram-wrapper.is-fullscreen .diagram-viewport {
  max-height: 100vh;
  height: 100vh;
}

/* ─── Callout blocks ─────────────────────────────────────────────────────── */
.callout {
  display: flex;
  gap: .75rem;
  padding: 1rem 1.2rem;
  border-radius: var(--r);
  margin: 1.5rem 0;
  border-left: 3px solid;
}
.callout-note    { background: #1a1a2a; border-color: var(--accent); }
.callout-warning { background: #2a1f10; border-color: var(--amber); }
.callout-tip     { background: #1a2a1a; border-color: var(--green); }
.callout-info    { background: #1a2028; border-color: #5ba3c9; }
.callout-icon    { font-size: 1rem; flex-shrink: 0; margin-top: .15rem; }
.callout-body    { flex: 1; }
.callout-body p  { margin: 0; color: var(--muted); font-size: .9rem; }

/* ─── Status page ────────────────────────────────────────────────────────── */
.status-banner {
  display: flex;
  align-items: center;
  gap: .9rem;
  padding: 1rem 1.4rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 2rem;
  transition: border-color .4s;
}
.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
.status-banner > span:nth-child(2) {
  font-weight: 500;
  font-size: .95rem;
  flex: 1;
}
.status-ts {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
}

.status-groups { display: flex; flex-direction: column; gap: 1.5rem; }

.status-group {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
}
.status-group-header {
  padding: .7rem 1.2rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.status-monitor-list { padding: .4rem 0; }

.status-monitor-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .65rem 1.2rem;
  border-bottom: 1px solid var(--border);
  font-size: .9rem;
  transition: background .15s;
}
.status-monitor-row:last-child { border-bottom: none; }
.status-monitor-row:hover { background: var(--surface); }

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.monitor-name {
  flex: 1;
  color: var(--text);
  font-size: .88rem;
}
.monitor-status-badge {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .04em;
}
.monitor-metric {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  min-width: 48px;
  text-align: right;
}
.monitor-ping { color: var(--dim) !important; min-width: 40px; }

/* Status widget op homepage */
.status-widget {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.4rem;
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s;
  margin-top: 1.5rem;
}
.status-widget:hover { border-color: var(--border2); color: inherit; }
.status-widget-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: pulse 2.5s ease-in-out infinite;
}
.status-widget-label {
  font-size: .85rem;
  color: var(--muted);
  flex: 1;
}
.status-widget-link {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
}

/* ─── Splash / Hero — donker thema ───────────────────────────────── */
.splash {
  min-height: 100vh;
  background: #0a0a0c;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 3rem 2rem 6rem;
}

.splash-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  max-width: 860px;
  width: 100%;
  text-align: center;
}

.splash-tagline {
  font-family: 'Courier New', 'Courier', monospace;
  font-size: .78rem;
  color: #888;
  letter-spacing: .04em;
  max-width: 500px;
  line-height: 1.6;
  margin: 0;
}

.splash-logo {
  display: flex;
  justify-content: center;
  width: 100%;
}
.splash-logo img {
  max-width: 100%;
  width: 760px;
  height: auto;
  filter: none;
  display: block;
  transition: opacity .2s;
}
.splash-logo:hover img { opacity: .85; }

/* Quote rotator */
.quote-rotator {
  width: 100%;
  max-width: 580px;
  min-height: 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 0 1rem;
}

.quote-text {
  font-family: 'JetBrains Mono', monospace;
  font-size: .82rem;
  color: #80a105;
  line-height: 1.85;
  text-align: center;
  margin: 0;
  opacity: 0;
  transition: opacity .5s ease, transform .5s ease;
  min-height: 3.5em;
  max-width: 580px;
  text-shadow: 0 0 20px rgba(128,161,5,.3);
}

.quote-dots {
  display: flex;
  gap: .4rem;
  flex-wrap: wrap;
  justify-content: center;
}
.quote-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2a2a1a;
  cursor: pointer;
  transition: background .2s;
  border: none;
  padding: 0;
}
.quote-dot.active {
  background: #80a105;
  box-shadow: 0 0 6px rgba(128,161,5,.5);
}

/* Scroll indicator */
.scroll-indicator {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
  color: #2a3a00;
  text-decoration: none;
  transition: color .2s;
}
.scroll-indicator:hover { color: #80a105; }

.scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid currentColor;
  border-radius: 11px;
  display: flex;
  justify-content: center;
  padding-top: 5px;
}
.scroll-wheel {
  width: 3px;
  height: 7px;
  background: currentColor;
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0%   { transform: translateY(0); opacity: 1; }
  60%  { transform: translateY(10px); opacity: 0; }
  61%  { transform: translateY(0); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}
.scroll-label {
  font-family: 'Courier New', monospace;
  font-size: .65rem;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Icon nav */
.icon-nav {
  display: flex;
  gap: 1.6rem;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 2rem 1rem;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.icon-nav a {
  color: var(--dim);
  transition: color .15s, transform .15s;
  display: flex;
}
.icon-nav a:hover { color: var(--accent); transform: translateY(-2px); }

/* Home sections */
.home-section {
  max-width: var(--wide);
  margin: 0 auto;
  padding: 3rem 2rem;
  border-bottom: 1px solid var(--border);
}
.home-section:last-child { border-bottom: none; }

.home-section-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.5rem;
  letter-spacing: -.01em;
}

/* Header logo — groen logo op donkere header, geen filter nodig */
.site-header .logo img {
  filter: none;
  transition: opacity .15s;
}
.site-header .logo:hover img { opacity: .8; }

/* Splash logo — zelfde groen logo, groot en prominent */
.splash-logo img {
  filter: none;
}

@media (max-width: 768px) {
  .splash-logo img { width: 90vw; }
  .splash-tagline  { font-size: .72rem; }
  .quote-text      { font-size: .78rem; }
  .icon-nav        { gap: 1rem; }
}

/* ─── Page header (blog / projects / about inner pages) ─────────────────── */
.page-header {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 2rem 2.5rem;
}
.page-header-inner {
  max-width: var(--wide);
  margin: 0 auto;
}
.page-breadcrumb {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
  display: flex;
  gap: .4rem;
  align-items: center;
  margin-bottom: 1rem;
}
.page-breadcrumb a { color: var(--muted); transition: color .15s; }
.page-breadcrumb a:hover { color: var(--accent); }
.crumb-sep { color: var(--border2); }

.page-header-title {
  font-family: 'Syne', sans-serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  color: var(--text);
  line-height: 1.05;
  letter-spacing: -.03em;
  margin: 0 0 .6rem;
}
.page-header-sub {
  font-size: 1rem;
  color: var(--muted);
  max-width: 560px;
  margin: 0;
  line-height: 1.6;
}

/* ─── Forgejo Heatmap ────────────────────────────────────────────────────── */
.heatmap-wrapper {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1rem;
  margin: 1.5rem 0;
}
.heatmap-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--border2) transparent;
}
.heatmap-svg { display: block; min-width: 600px; }
.hm-label {
  font-family: var(--font-mono);
  font-size: 9px;
  fill: var(--dim);
}
.heatmap-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: .75rem;
  flex-wrap: wrap;
  gap: .5rem;
}
.hm-total {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--muted);
}
.heatmap-legend {
  display: flex;
  align-items: center;
  gap: .3rem;
}
.hm-legend-cell {
  width: 11px;
  height: 11px;
  border-radius: 2px;
  border: 0.3px solid var(--border);
  display: inline-block;
}

/* ─── Splash tagline ─────────────────────────────────────────────────────── */
.splash-tagline {
  font-family: 'JetBrains Mono', monospace !important;
  font-size: .72rem !important;
  color: #2a3a10 !important;
  letter-spacing: .08em;
  max-width: 560px;
  line-height: 1.7;
  margin: 0;
  font-weight: 400 !important;
  text-transform: uppercase;
}

/* ─── Language switcher ──────────────────────────────────────────────────── */
.post-header-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1rem;
  flex-wrap: wrap;
  gap: .75rem;
}
.lang-switcher {
  display: flex;
  gap: .3rem;
  align-items: center;
  flex-shrink: 0;
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: .25rem .55rem;
  border-radius: 4px;
  border: 1px solid var(--border2);
  color: var(--muted);
  background: var(--surface);
  cursor: pointer;
  transition: all .15s;
  letter-spacing: .05em;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.lang-btn:hover   { border-color: var(--accent); color: var(--accent); }
.lang-btn-current { border-color: var(--accent); color: var(--accent); cursor: default; }
.lang-btn-active  { color: var(--muted); }

.lang-badge {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--dim);
  margin-left: .5rem;
}
.lang-badge a { color: var(--muted); }

.translate-cta {
  margin-top: 3rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.translate-cta p {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}

/* ─── Hamburger menu ─────────────────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  background: none;
  border: 1px solid var(--border2);
  border-radius: var(--r);
  cursor: pointer;
  padding: 6px;
  transition: border-color .15s;
}
.hamburger:hover { border-color: var(--accent); }
.hamburger span {
  display: block;
  height: 2px;
  background: var(--muted);
  border-radius: 2px;
  transition: all .25s ease;
  transform-origin: center;
}
.hamburger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.is-open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 768px) {
  .hamburger { display: flex; }

  #main-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: rgba(14,14,16,.97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 1rem 0;
    gap: 0;
    z-index: 99;
  }
  #main-nav.is-open { display: flex; }

  #main-nav a {
    padding: .85rem 1.5rem;
    font-size: .95rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .06em;
    font-size: .8rem;
    transition: color .15s, background .15s;
  }
  #main-nav a:last-of-type { border-bottom: none; }
  #main-nav a:hover, #main-nav a.active {
    color: var(--text);
    background: var(--surface);
  }
  .nav-dot { margin: .85rem 1.5rem 0; }
}

/* ─── Tools pagina ───────────────────────────────────────────────────────── */
.tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.tool-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.tool-card:hover {
  border-color: var(--border2);
  transform: translateY(-2px);
  color: inherit;
}
.tool-card-placeholder {
  border-style: dashed;
  opacity: .4;
  cursor: default;
  pointer-events: none;
}

.tool-card-head {
  display: flex;
  align-items: center;
  gap: .6rem;
}
.tool-icon {
  font-size: 1.1rem;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  flex-shrink: 0;
  font-style: normal;
}
.tool-ext {
  margin-left: auto;
  color: var(--border2);
  font-size: .85rem;
  transition: color .15s, transform .15s;
}
.tool-card:hover .tool-ext {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.tool-title {
  font-family: 'Syne', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
  letter-spacing: -.01em;
}
.tool-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}
.tool-tags {
  display: flex;
  gap: .35rem;
  flex-wrap: wrap;
  margin-top: .2rem;
}

/* ─── Tools filter tabs ──────────────────────────────────────────────────── */
.tools-filter {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.tools-filter-btn {
  font-family: var(--font-mono);
  font-size: .72rem;
  padding: .35rem .8rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  color: var(--muted);
  cursor: pointer;
  transition: all .15s;
  display: flex;
  align-items: center;
  gap: .4rem;
  letter-spacing: .03em;
}
.tools-filter-btn:hover {
  border-color: var(--border2);
  color: var(--text);
}
.tools-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #0e0e10;
}
.filter-count {
  background: rgba(0,0,0,.2);
  border-radius: 10px;
  padding: 0 .4rem;
  font-size: .65rem;
}
.tools-filter-btn.active .filter-count {
  background: rgba(0,0,0,.15);
}

/* ─── Nav dropdown ───────────────────────────────────────────────────────── */
.nav-dropdown {
  position: relative;
}
.nav-dropdown-trigger {
  display: flex;
  align-items: center;
  gap: .3rem;
  cursor: pointer;
}
.nav-caret {
  font-size: .6rem;
  transition: transform .2s;
  color: var(--dim);
}
.nav-dropdown:hover .nav-caret,
.nav-dropdown.is-open .nav-caret {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding-top: 12px;  /* gap via padding ipv margin — blijft hoverable */
  background: transparent;
  z-index: 200;
  min-width: 240px;
}
/* Echte dropdown box zit in een inner div */
.nav-dropdown-menu-inner {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  animation: dropIn .15s ease;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
  display: block;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateX(-50%) translateY(-6px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}

/* kleine driehoek bovenaan */
.nav-dropdown-menu-inner::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px; height: 5px;
  background: var(--border);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
}
.nav-dropdown-menu-inner { position: relative; }

.dropdown-section-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--accent);
  letter-spacing: .1em;
  padding: .75rem 1rem .4rem;
  text-transform: uppercase;
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .6rem 1rem;
  color: var(--muted);
  text-decoration: none;
  transition: background .12s, color .12s;
  border-bottom: 1px solid var(--border);
}
.dropdown-item:last-of-type { border-bottom: none; }
.dropdown-item:hover {
  background: var(--surface);
  color: var(--text);
}

.dropdown-icon {
  font-size: .9rem;
  width: 24px;
  text-align: center;
  flex-shrink: 0;
  color: var(--dim);
}
.dropdown-item:hover .dropdown-icon { color: var(--accent); }

.dropdown-text {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex: 1;
}
.dropdown-title {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--text);
  font-weight: 500;
}
.dropdown-desc {
  font-size: .68rem;
  color: var(--dim);
  font-family: var(--font-mono);
}
.dropdown-ext {
  font-size: .75rem;
  color: var(--dim);
  flex-shrink: 0;
}

.dropdown-footer {
  display: block;
  padding: .6rem 1rem;
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--accent);
  text-decoration: none;
  background: var(--surface);
  border-top: 1px solid var(--border);
  transition: background .12s;
  letter-spacing: .04em;
}
.dropdown-footer:hover { background: var(--bg3); color: var(--accent); }

/* Mobiel: dropdown wordt onderdeel van het hamburger menu */
@media (max-width: 768px) {
  .nav-dropdown { position: static; }
  .nav-dropdown-menu {
    position: static;
    transform: none;
    padding-top: 0;
    background: transparent;
    display: none;
  }
  .nav-dropdown-menu-inner {
    border-radius: 0;
    border: none;
    border-left: 2px solid var(--accent);
    margin: 0;
    background: var(--bg3);
    box-shadow: none;
    animation: none;
  }
  .nav-dropdown-menu-inner::before { display: none; }
  .nav-dropdown.is-open .nav-dropdown-menu { display: block; }
  .nav-dropdown-trigger {
    padding: .85rem 1.5rem;
    font-size: .8rem;
    color: var(--muted);
    border-bottom: 1px solid var(--border);
    text-transform: uppercase;
    letter-spacing: .06em;
    width: 100%;
    justify-content: space-between;
  }
  .dropdown-item {
    padding: .6rem 1.5rem;
    border-bottom: 1px solid var(--border);
  }
  .dropdown-footer {
    padding: .6rem 1.5rem;
  }
  .dropdown-section-label { padding: .5rem 1.5rem .3rem; }
}

/* ─── Links pagina ───────────────────────────────────────────────────────── */
.links-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem;
}

.link-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
  text-decoration: none;
  color: inherit;
  transition: border-color .2s, transform .2s;
}
.link-card:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  color: inherit;
}

.link-card-head {
  display: flex;
  align-items: center;
  gap: .5rem;
}
.link-favicon {
  width: 20px; height: 20px;
  display: flex; align-items: center;
  flex-shrink: 0;
}
.link-domain {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.link-cat { flex-shrink: 0; }
.link-ext {
  font-size: .85rem;
  color: var(--dim);
  flex-shrink: 0;
  transition: color .15s, transform .15s;
}
.link-card:hover .link-ext {
  color: var(--accent);
  transform: translate(2px, -2px);
}

.link-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.25;
}
.link-desc {
  font-size: .875rem;
  color: var(--muted);
  line-height: 1.55;
  flex: 1;
}

.link-tip {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  padding: .6rem .75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  font-size: .78rem;
  color: var(--muted);
  font-family: var(--font-mono);
  line-height: 1.5;
}
.link-tip-icon { font-size: .85rem; flex-shrink: 0; }
.link-card:hover .link-tip {
  border-color: var(--accent);
  color: var(--text);
}


/* ─── Home SEO tekst ─────────────────────────────────────────────────────── */
.home-seo-text {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 2rem;
  max-width: 860px;
}
.home-seo-text p {
  font-size: .88rem;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.home-seo-text a { color: var(--accent); }
@media (max-width: 600px) { .home-seo-text { grid-template-columns: 1fr; } }

/* ─── Home links row ─────────────────────────────────────────────────────── */
.home-links-row {
  display: flex;
  flex-wrap: wrap;
  gap: .6rem;
}
.home-link-pill {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .9rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--muted);
  text-decoration: none;
  transition: all .15s;
}
.home-link-pill:hover {
  border-color: var(--accent);
  color: var(--text);
}
.home-link-all {
  color: var(--accent);
  border-color: rgba(168,200,50,.3);
}

/* ─── Nieuwsbrief ────────────────────────────────────────────────────────── */
.newsletter-form { max-width: 520px; }
.newsletter-fields {
  display: flex;
  gap: .6rem;
  flex-wrap: wrap;
}
.newsletter-input {
  background: var(--bg2);
  border: 1px solid var(--border);
  color: var(--text);
  padding: .65rem 1rem;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: .82rem;
  flex: 1;
  min-width: 160px;
  transition: border-color .15s;
}
.newsletter-input:focus { outline: none; border-color: var(--accent); }
.newsletter-btn {
  background: var(--accent);
  color: #0a0a0c;
  border: none;
  padding: .65rem 1.2rem;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .05em;
  cursor: pointer;
  transition: background .15s;
  white-space: nowrap;
}
.newsletter-btn:hover { background: var(--accent2); }
.newsletter-btn:disabled { opacity: .6; cursor: default; }
.newsletter-msg {
  margin-top: .75rem;
  padding: .6rem 1rem;
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: .78rem;
}
.newsletter-ok {
  background: rgba(168,200,50,.08);
  border: 1px solid rgba(168,200,50,.3);
  color: var(--accent);
}
.newsletter-err {
  background: rgba(245,66,88,.08);
  border: 1px solid rgba(245,66,88,.3);
  color: var(--red);
}

/* ─── Reading time ───────────────────────────────────────────────────────── */
.post-reading-time {
  font-family: var(--font-mono);
  font-size: .72rem;
  color: var(--dim);
  display: inline-flex;
  align-items: center;
  gap: .3rem;
}
.post-meta-sep {
  color: var(--border2);
  margin: 0 .1rem;
}

/* ─── Markdown tables ─────────────────────────────────────────────────────── */
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-mono);
  font-size: .82rem;
  margin: 1.5rem 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
}
.prose table th {
  background: var(--bg2);
  padding: .6rem 1rem;
  text-align: left;
  font-size: .65rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--dim);
  border-bottom: 1px solid var(--border);
  font-weight: 500;
}
.prose table td {
  padding: .7rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted);
  vertical-align: top;
}
.prose table tr:last-child td { border-bottom: none; }
.prose table tr:hover td { background: var(--surface); }

/* ─── Highlight.js overrides ─────────────────────────────────────────────── */
.prose pre {
  border-radius: 8px;
  border: 1px solid var(--border);
  margin: 1.25rem 0;
  overflow-x: auto;
}
.prose pre code.hljs {
  font-family: var(--font-mono);
  font-size: .82rem;
  border-radius: 8px;
  padding: 1.25rem;
  background: #0d0f12;
}
.prose code:not(pre code) {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: .15rem .4rem;
  font-family: var(--font-mono);
  font-size: .82em;
  color: var(--accent);
}

/* ─── Home TIL ───────────────────────────────────────────────────────────── */
.home-til-list { display: flex; flex-direction: column; gap: .4rem; }
.home-til-item {
  display: grid;
  grid-template-columns: 90px 1fr auto auto;
  align-items: center;
  gap: .75rem;
  padding: .7rem 1rem;
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  text-decoration: none;
  color: inherit;
  transition: border-color .15s, background .15s;
}
.home-til-item:hover { border-color: var(--accent); background: var(--surface); }
.home-til-date { font-family: var(--font-mono); font-size: .68rem; color: var(--dim); white-space: nowrap; }
.home-til-title { font-family: var(--font-mono); font-size: .85rem; color: var(--text); font-weight: 500; }
.home-til-tags { display: flex; gap: .25rem; }
.home-til-arrow { color: var(--dim); font-size: .8rem; transition: color .15s; }
.home-til-item:hover .home-til-arrow { color: var(--accent); }
@media (max-width: 600px) {
  .home-til-item { grid-template-columns: 1fr auto; }
  .home-til-date { display: none; }
  .home-til-tags { display: none; }
}

/* ─── Now ticker ─────────────────────────────────────────────────────────── */











/* ─── Now ticker ────────────────────────────────────────────────────────── */
.now-ticker-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  overflow: hidden;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
  height: 36px;
  margin: 0;
  user-select: none;
}
.now-ticker-label {
  display: flex;
  align-items: center;
  gap: .45rem;
  padding: 0 1rem;
  font-family: var(--font-mono);
  font-size: .65rem;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: .12em;
  white-space: nowrap;
  border-right: 1px solid var(--border);
  height: 100%;
  background: rgba(168,200,50,.05);
  flex-shrink: 0;
}
.now-ticker-dot-live {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: ticker-pulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
@keyframes ticker-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: .5; transform: scale(.8); }
}
.now-ticker-track {
  flex: 1;
  overflow: hidden;
  height: 100%;
  display: flex;
  align-items: center;
}
.now-ticker-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  white-space: nowrap;
  animation: ticker-scroll 40s linear infinite;
  padding-left: 2rem;
}
.now-ticker-inner:hover { animation-play-state: paused; }
@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}
.now-ticker-item {
  font-family: var(--font-mono);
  font-size: .78rem;
  font-weight: 500;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(168,200,50,.5), 0 0 24px rgba(168,200,50,.2);
  white-space: nowrap;
  letter-spacing: .03em;
}
.now-ticker-sep {
  color: rgba(168,200,50,.3);
  font-family: var(--font-mono);
  margin: 0 1.25rem;
  font-size: .9rem;
}

/* ─── Home weeknote ──────────────────────────────────────────────────────── */
.home-weeknote-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.home-weeknote-badge {
  font-family: var(--font-mono);
  font-size: .68rem;
  color: var(--accent);
  background: rgba(168,200,50,.08);
  border: 1px solid rgba(168,200,50,.25);
  padding: .2rem .65rem;
  border-radius: 20px;
  letter-spacing: .05em;
}
.home-weeknote-card {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 var(--r) var(--r) 0;
  padding: 1.25rem 1.5rem;
}
.home-weeknote-title {
  font-family: 'Syne', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: .5rem;
}
.home-weeknote-title a {
  color: var(--text);
  text-decoration: none;
  transition: color .15s;
}
.home-weeknote-title a:hover { color: var(--accent); }
.home-weeknote-excerpt {
  font-size: .85rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: .85rem;
}
.home-weeknote-link {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: var(--accent);
  text-decoration: none;
  transition: opacity .15s;
}
.home-weeknote-link:hover { opacity: .75; }
.home-weeknote-empty {}
.home-weeknote-empty-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 1.5rem;
  background: var(--bg2);
  border: 1px dashed var(--border);
  border-radius: var(--r);
}
.home-weeknote-empty-icon {
  font-size: 1.1rem;
  opacity: .4;
  flex-shrink: 0;
}

/* ─── Language switch ────────────────────────────────────────────────────── */
.lang-switch {
  display: flex; gap: .3rem;
  margin-top: .75rem;
}
.lang-btn {
  font-family: var(--font-mono);
  font-size: .65rem; font-weight: 700;
  letter-spacing: .08em;
  padding: .2rem .55rem;
  border-radius: 4px;
  border: 1px solid var(--border);
  color: var(--dim);
  text-decoration: none;
  transition: all .15s;
}
.lang-btn:hover { border-color: var(--accent); color: var(--accent); }
.lang-btn-active { border-color: var(--accent); color: var(--accent); background: rgba(168,200,50,.08); }

/* ─── Subscribe pill ─────────────────────────────────────────────────────── */
.subscribe-pill {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: .3rem .8rem;
  text-decoration: none;
  transition: all .15s;
  letter-spacing: .03em;
}
.subscribe-pill:hover {
  color: var(--accent);
  border-color: rgba(168,200,50,.4);
  background: rgba(168,200,50,.06);
}
