:root {
  --fg: #161616;
  --muted: #60646c;
  --soft: #858994;
  --line: #e7e8ec;

  --accent: #ED7728;
  --accent-dark: #c45f1d;
  --accent-soft: #fff3ea;
  --accent-border: #f5c8a9;

  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-soft: #fbfbfd;

  --shadow-sm: 0 8px 22px rgba(20, 24, 33, 0.06);
  --shadow-md: 0 18px 46px rgba(20, 24, 33, 0.09);

  --radius: 22px;
  --radius-sm: 14px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 18% 0%, rgba(237,119,40,.12), transparent 28rem),
    linear-gradient(180deg, #fafbfe 0%, var(--bg) 320px, var(--bg) 100%);
  color: var(--fg);
  font: 16px/1.55 system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

a {
  color: inherit;
}

.page {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0 34px;
}

/* Header */

.site-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  margin-bottom: 28px;
  padding: 14px 4px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--fg);
  text-decoration: none;
  font-weight: 850;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 13px;
  background: var(--accent);
  color: #fff;
  font-size: 0.84rem;
  font-weight: 900;
  box-shadow: 0 0 0 5px rgba(237,119,40,.13);
}

.header-links {
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 750;
}

.header-links a {
  text-decoration: none;
}

.header-links a:hover {
  color: var(--accent-dark);
}

/* Layout */

.main-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 24px;
  align-items: start;
}

.content-column {
  display: grid;
  gap: 22px;
}

.sidebar {
  display: grid;
  gap: 16px;
  align-content: start;
}

@media (min-width: 921px) {
  .sidebar {
    position: sticky;
    top: 22px;
  }
}

/* Shared cards */

.featured,
.blog-feed,
.profile-card,
.side-card,
.single-post {
  border: 1px solid rgba(231, 232, 236, 0.95);
  border-radius: var(--radius);
  background: rgba(255,255,255,.92);
  box-shadow: var(--shadow-sm);
}

.featured,
.blog-feed,
.profile-card,
.side-card {
  padding: 24px;
}

/* Featured */

.featured {
  position: relative;
  overflow: hidden;
  min-height: 290px;
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(237,119,40,.14), rgba(255,255,255,0) 48%),
    linear-gradient(180deg, #fff, #fff);
  box-shadow: var(--shadow-md);
}

.featured::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.featured > * {
  position: relative;
}

.featured-top {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 14px;
}

.eyebrow,
.side-label {
  margin: 0;
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.featured-top .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border: 1px solid var(--accent-border);
  border-radius: 999px;
  background: var(--accent-soft);
}

.featured-top .eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}

.meta,
.topic-date {
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 750;
}

.featured h1 {
  max-width: 790px;
  margin: 0 0 16px;
  color: var(--fg);
  font-size: clamp(2.3rem, 5.2vw, 4.6rem);
  line-height: .98;
  letter-spacing: -0.055em;
}

.featured .muted {
  max-width: 760px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.7;
}

.text-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  color: var(--accent-dark);
  font-weight: 900;
  text-decoration: none;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* Blog feed */

.blog-feed {
  padding: 26px;
}

.section-heading {
  margin-bottom: 18px;
}

.section-heading .eyebrow {
  margin-bottom: 6px;
}

.section-heading h2 {
  margin: 0 0 6px;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.section-intro,
.muted {
  color: var(--muted);
}

.section-intro {
  margin: 0;
}

.topic-list {
  display: grid;
  gap: 14px;
}

.topic-item {
  display: block;
  position: relative;
  padding: 18px 18px 18px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--fg);
  text-decoration: none;
  transition:
    border-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease,
    background .16s ease;
}

.topic-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 4px;
  border-radius: 999px;
  background: rgba(237,119,40,.28);
  transition: background .16s ease;
}

.topic-item:hover {
  border-color: rgba(237,119,40,.32);
  box-shadow: 0 12px 28px rgba(20, 24, 33, 0.08);
  transform: translateY(-1px);
  background: #fffdfb;
}

.topic-item:hover::before {
  background: var(--accent);
}

.topic-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  margin-bottom: 8px;
}

.topic-item h3 {
  margin: 0 0 7px;
  color: var(--fg);
  font-size: 1.12rem;
  line-height: 1.28;
  letter-spacing: -0.025em;
}

.topic-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.topic-category,
.source-badge,
.tag,
.mini-tags span {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 850;
}

.topic-category {
  color: var(--accent-dark);
}

.topic-category::before {
  content: "•";
  margin-right: 7px;
  color: #c9cbd2;
}

.source-badge {
  padding: 3px 7px;
}

.source-badge.langenoten {
  border: 1px solid #dddfe5;
  background: #f8f8fa;
  color: var(--muted);
}

.source-badge.personal {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.tags,
.mini-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tags {
  margin-top: 12px;
}

.tag,
.mini-tags span {
  padding: 4px 8px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.personal-post {
  cursor: default;
}

/* Sidebar */

.profile-card {
  padding: 26px;
  background:
    linear-gradient(135deg, rgba(237,119,40,.10), rgba(255,255,255,0) 45%),
    #fff;
}

.profile-card h2 {
  margin: 4px 0 6px;
  color: var(--fg);
  font-size: 1.6rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.profile-card .tagline {
  margin: 0 0 14px;
  color: var(--muted);
  font-weight: 750;
}

.profile-card .intro {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.profile-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 900;
}

.button.primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 18px rgba(237,119,40,.22);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.secondary {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
}

.side-card {
  padding: 20px;
}

.side-label {
  margin-bottom: 12px;
}

.profile-row {
  display: flex;
  gap: 12px;
  align-items: center;
}

.profile-link {
  color: inherit;
  text-decoration: none;
  border-radius: 16px;
  transition:
    background .16s ease,
    transform .16s ease;
}

.profile-link:hover {
  background: rgba(237,119,40,.055);
  transform: translateY(-1px);
}

.profile-link:hover h3 {
  color: var(--accent-dark);
}

.avatar-img {
  display: block;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
}

.profile-row h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.profile-row p,
.side-card p {
  margin: 0;
  color: var(--muted);
  font-size: .93rem;
}

.mini-tags span {
  border-color: #e5e6eb;
  background: #fafafd;
  color: var(--muted);
}

/* Footer */

.footer {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 24px 4px 0;
  color: var(--soft);
  font-size: .9rem;
  font-weight: 750;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(237,119,40,.16);
}

/* Detail post */

.post-page {
  width: min(900px, calc(100% - 32px));
}

.single-post {
  position: relative;
  overflow: hidden;
  padding: 38px;
  box-shadow: var(--shadow-md);
}

.single-post::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 7px;
  background: linear-gradient(180deg, var(--accent), var(--accent-dark));
}

.single-post > * {
  position: relative;
}

.single-post h1 {
  max-width: 780px;
  margin: 12px 0 22px;
  color: var(--fg);
  font-size: clamp(2.25rem, 5vw, 4rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.single-post-tags {
  margin: -6px 0 26px;
}

.single-post-body {
  color: var(--fg);
  font-size: 1.065rem;
  line-height: 1.82;
}

.single-post-body p {
  margin: 0 0 1.18em;
}

.single-post-body h2,
.single-post-body h3,
.single-post-body h4 {
  color: var(--fg);
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.single-post-body h2 {
  margin: 2.1rem 0 .8rem;
  font-size: 1.75rem;
}

.single-post-body h3 {
  margin: 1.65rem 0 .7rem;
  font-size: 1.35rem;
}

.single-post-body ul,
.single-post-body ol {
  margin: 0 0 1.35em;
  padding-left: 1.45em;
}

.single-post-body li {
  margin: .36em 0;
}

.single-post-body a {
  color: var(--accent-dark);
  font-weight: 750;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.single-post-body blockquote {
  margin: 1.5em 0;
  padding: .2em 0 .2em 1em;
  border-left: 4px solid rgba(237,119,40,.45);
  color: var(--muted);
  background: linear-gradient(90deg, rgba(237,119,40,.06), transparent);
}

.single-post-body code {
  padding: .14em .36em;
  border: 1px solid var(--accent-border);
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .92em;
}

.single-post-body pre {
  overflow-x: auto;
  margin: 1.45em 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #f7f7fa;
}

.single-post-body pre code {
  display: block;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--fg);
  line-height: 1.65;
}

.single-post-body hr {
  margin: 2em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.single-post-body img {
  max-width: 100%;
  border-radius: 16px;
}

/* Responsive */

@media (max-width: 960px) {
  .main-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }
}

@media (max-width: 680px) {
  body {
    font-size: 15px;
  }

  .page,
  .post-page {
    width: min(100% - 18px, 1180px);
    padding-top: 10px;
  }

  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
  }

  .header-links {
    flex-wrap: wrap;
  }

  .main-layout {
    gap: 16px;
  }

  .featured,
  .blog-feed,
  .profile-card,
  .side-card {
    padding: 20px;
    border-radius: 18px;
  }

  .featured {
    min-height: auto;
  }

  .featured h1,
  .single-post h1 {
    letter-spacing: -0.045em;
  }

  .topic-item {
    padding: 16px 16px 16px 18px;
  }

  .single-post {
    padding: 24px;
    border-radius: 18px;
  }

  .footer {
    padding-bottom: 8px;
  }
}
.type-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 900;
}

.type-badge.article {
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.type-badge.discussion {
  border: 1px solid #d9dde6;
  background: #f5f6f9;
  color: var(--muted);
}

.type-badge.topic {
  border: 1px solid #d9dde6;
  background: #fafafd;
  color: var(--soft);
}

.type-badge.personal {
  border: 1px solid #d8e6dc;
  background: #f0faf3;
  color: #2f6f3e;
}
.topic-item:has(.type-badge.discussion) {
  background: #fbfbfd;
}

.topic-item:has(.type-badge.discussion)::before {
  background: #d3d6de;
}

.topic-item:has(.type-badge.discussion):hover::before {
  background: var(--accent);
}

.profile-identity {
  display: flex;
  gap: 14px;
  align-items: center;
  margin: 12px 0 18px;
}

.profile-portrait {
  display: block;
  flex: 0 0 82px;
  width: 82px;
  height: 82px;
  border: 1px solid var(--accent-border);
  border-radius: 50%;
  object-fit: cover;
  background: var(--accent-soft);
  box-shadow: 0 10px 24px rgba(237,119,40,.14);
}

.profile-identity h2 {
  margin: 0 0 5px;
}

.profile-identity .tagline {
  margin: 0;
}

/* Online als: strakker naast elkaar */
.profile-row {
  gap: 10px;
  align-items: center;
}

.profile-row .avatar-img {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
}

.profile-link > div {
  display: grid;
  gap: 1px;
}

.profile-row h3 {
  margin: 0;
  line-height: 1.05;
  font-size: 1rem;
}

.profile-row p {
  margin: 0;
  line-height: 1.3;
  font-size: 0.92rem;
}
