/* ─── Shared feed page styles ────────────────────────────────────────────────
   To add a new block: copy any <div class="block">…</div> and fill it in.
   For a highlighted block add class "block-highlight" alongside "block".
──────────────────────────────────────────────────────────────────────────── */
:root {
  --bg:             #F2F2F2;
  --accent:         #3D79F2;
  --border-regular: #F29C50;
  --border-luigi:   #F2784B;
  --text:           #2a2a2a;
  --text-muted:     #8a8a8a;
  --block-bg:       #ffffff;
  --block-shadow:   0 2px 12px rgba(0,0,0,0.07);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  color: var(--text);
  min-height: 100vh;
  padding: 0 0 5rem;
}

/* ─── Top bar (back + lang toggle) ────────────────────────────────────────── */
.top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 740px;
  margin: 0 auto;
  padding: 1.4rem 1.5rem;
}

.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  text-decoration: none;
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 0.35rem 0.9rem;
  border: 2px solid var(--border-regular);
  border-radius: 20px;
  background: white;
  transition: background 0.2s, color 0.2s;
}
.back-btn:hover { background: var(--border-regular); color: white; }

.lang-btn {
  background: white;
  border: 2px solid var(--border-regular);
  color: var(--text);
  padding: 0.35rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.8rem;
  font-weight: 600;
  font-family: inherit;
  transition: background 0.2s, color 0.2s;
}
.lang-btn:hover { background: var(--border-regular); color: white; }

/* ─── Feed header ──────────────────────────────────────────────────────────── */
.feed-header {
  max-width: 740px;
  margin: 0 auto 2.5rem;
  padding: 0 1.5rem;
}

.feed-title {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -0.025em;
  line-height: 1.1;
}

.feed-subtitle {
  margin-top: 0.45rem;
  font-size: 1rem;
  color: var(--text-muted);
}

/* ─── Blocks container ─────────────────────────────────────────────────────── */
.blocks {
  max-width: 740px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.2rem;
}

/* ─── Block ────────────────────────────────────────────────────────────────── */
.block {
  background: var(--block-bg);
  border-radius: 14px;
  padding: 1.5rem 1.6rem;
  box-shadow: var(--block-shadow);
  border: 5px solid #F2BA52;
}

/* variant: highlighted — same weight, blue instead of yellow */
.block-highlight {
  border-color: var(--accent);
}
.block-highlight .block-tag { color: var(--accent); }

/* ─── Block sub-elements ────────────────────────────────────────────────────── */
.block-tag {
  display: inline-block;
  font-size: 0.70rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--border-regular);
  margin-bottom: 0.45rem;
}

.block-title {
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.65rem;
  line-height: 1.3;
}

.block-body {
  font-size: 0.95rem;
  line-height: 1.7;
  color: #444;
}
.block-body p + p    { margin-top: 0.75rem; }
.block-body ul,
.block-body ol       { padding-left: 1.4rem; margin-top: 0.5rem; }
.block-body li       { margin-bottom: 0.35rem; }

.block-date {
  margin-top: 0.85rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  letter-spacing: 0.03em;
}

/* ─── Article link list (used in nerd-stuff deep dives block) ─────────────── */
.article-list {
  padding-left: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.article-list a {
  color: #3D79F2;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
}
.article-list a:hover { text-decoration: underline; }

/* ─── Footnote ─────────────────────────────────────────────────────────────── */
.footnote {
  position: fixed;
  bottom: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.7rem;
  color: rgba(0,0,0,0.28);
  white-space: nowrap;
  pointer-events: none;
  letter-spacing: 0.02em;
}

/* ─── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 600px) {
  .feed-title  { font-size: 2rem; }
  .block       { padding: 1.2rem 1.1rem; }
}

/* ─── Language visibility (flash-free) ───────────────────────────────────── */
html:not(.lang-vec) .lang-vec  { display: none; }
html.lang-vec .lang-en         { display: none; }
