/* ============================================================
   Personal blog stylesheet
   Edit freely — colours, fonts and spacing are all here.
   ============================================================ */

/* --- Typefaces -------------------------------------------- */
@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400&family=Source+Sans+3:wght@400;600&family=Source+Code+Pro:wght@400&display=swap');

/* Lora       → headings and post titles (warm, literary serif)
   Source Sans → body text (open, readable humanist sans)
   Source Code → code snippets                               */

/* --- Tokens ----------------------------------------------- */
:root {
  --ink:        #1c1c1c;
  --ink-soft:   #555;
  --ink-faint:  #888;
  --paper:      #faf9f7;
  --rule:       #ddd8d0;
  --accent:     #2a5f8f;   /* steel blue — document/standards world */
  --accent-warm:#b85c38;   /* terracotta for hover / visited */
  --max-w:      680px;
  --wide-w:     820px;
}

/* --- Reset ------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 18px; }

body {
  font-family: 'Source Sans 3', 'Segoe UI', sans-serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.7;
  padding: 0 1rem;
}

/* --- Site header ------------------------------------------ */
.site-header {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 2.2rem 0 1.4rem;
  border-bottom: 2px solid var(--ink);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.site-title-block {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.site-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.site-title:hover { color: var(--accent); }

.site-subtitle {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-style: italic;
}

.site-nav {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.site-nav a {
  font-size: 0.9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  text-decoration: none;
  margin-left: 1.4rem;
}
.site-nav a:hover { color: var(--accent); }

/* --- Main content container ------------------------------ */
main {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem 0 4rem;
}

/* --- Article page ---------------------------------------- */
.post-header { margin-bottom: 2.2rem; }

.post-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 2rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.post-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}

.post-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
  letter-spacing: 0.02em;
}

.post-meta .tag {
  display: inline-block;
  background: var(--rule);
  border-radius: 2px;
  padding: 0.1em 0.45em;
  margin-left: 0.4em;
  font-size: 0.78rem;
  color: var(--ink-soft);
  text-decoration: none;
}
.post-meta .tag:hover { background: var(--accent); color: #fff; }

/* --- Body prose ------------------------------------------ */
.post-body p {
  margin-bottom: 1.3rem;
}

.post-body h2 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  margin: 2.4rem 0 0.8rem;
  padding-bottom: 0.3rem;
  border-bottom: 1px solid var(--rule);
  color: var(--ink);
}

.post-body h3 {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 1.8rem 0 0.5rem;
  color: var(--ink);
}

.post-body a { color: var(--accent); }
.post-body a:visited { color: var(--accent-warm); }
.post-body a:hover { text-decoration: underline; }

.post-body ul, .post-body ol {
  margin: 0.4rem 0 1.3rem 1.5rem;
}
.post-body li { margin-bottom: 0.35rem; }

.post-body blockquote {
  border-left: 3px solid var(--accent);
  margin: 1.5rem 0;
  padding: 0.6rem 1.2rem;
  color: var(--ink-soft);
  font-style: italic;
}

.post-body code {
  font-family: 'Source Code Pro', monospace;
  font-size: 0.88rem;
  background: #eeecea;
  padding: 0.1em 0.35em;
  border-radius: 2px;
}

.post-body pre {
  background: #eeecea;
  padding: 1rem 1.2rem;
  overflow-x: auto;
  border-radius: 3px;
  margin-bottom: 1.3rem;
}
.post-body pre code { background: none; padding: 0; }

/* Edit-flag markers — bright so they're impossible to miss  */
.edit-flag {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 2px;
  padding: 0.1em 0.4em;
  font-size: 0.85rem;
  font-style: normal;
  color: #7a5000;
}

/* --- Post footer ----------------------------------------- */
.post-footer {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  font-size: 0.9rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.post-footer a { color: var(--accent); text-decoration: none; }
.post-footer a:hover { text-decoration: underline; }

/* --- Principles definition list -------------------------- */
.principles-list {
  margin: 1.4rem 0;
}

.principles-list dt {
  font-family: 'Lora', Georgia, serif;
  font-weight: 600;
  font-size: 1.05rem;
  margin-top: 1.4rem;
  color: var(--ink);
}

.principles-list dd {
  margin: 0.3rem 0 0 0;
  padding-left: 1.1rem;
  border-left: 2px solid var(--rule);
  color: var(--ink-soft);
  font-style: italic;
}

/* dividers on the principles page */
.post-body hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 2.5rem 0;
}

/* --- Index page ------------------------------------------ */
.index-intro {
  margin-bottom: 2.5rem;
  padding-bottom: 1.8rem;
  border-bottom: 1px solid var(--rule);
}

.index-intro p {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 0.9rem;
}

.index-intro p:last-child { margin-bottom: 0; }

.post-list { list-style: none; }

.post-list-item {
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--rule);
}

.post-list-item:last-child { border-bottom: none; }

.post-list-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.3rem;
}
.post-list-title a {
  color: var(--ink);
  text-decoration: none;
}
.post-list-title a:hover { color: var(--accent); }

.post-list-subtitle {
  font-family: 'Lora', Georgia, serif;
  font-style: italic;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
  font-size: 0.98rem;
}

.post-list-meta {
  font-size: 0.82rem;
  color: var(--ink-faint);
}

/* --- Site footer ----------------------------------------- */
.site-footer {
  max-width: var(--wide-w);
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--rule);
  font-size: 0.82rem;
  color: var(--ink-faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

/* --- Post provenance note --------------------------------- */
.post-provenance {
  font-size: 0.82rem;
  color: var(--ink-faint);
  font-style: italic;
  margin-top: 0.6rem;
  margin-bottom: 0;
}

.preview-note {
  color: #b85c00;
  font-style: normal;
  font-weight: 600;
}

/* --- Preview build banner --------------------------------- */
.preview-banner {
  width: 100%;
  text-align: center;
  background: #fff3cd;
  border-top: 1px solid #ffc107;
  padding: 0.3rem 0;
  font-size: 0.8rem;
  color: #7a5000;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

/* --- Status badge in index -------------------------------- */
.status-badge {
  display: inline-block;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 2px;
  padding: 0.05em 0.4em;
  font-size: 0.72rem;
  font-weight: 600;
  color: #7a5000;
  vertical-align: middle;
  margin-left: 0.5em;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* --- Post list pubdate ------------------------------------ */
.post-list-pubdate {
  color: var(--ink-soft);
  font-size: 0.82rem;
}


/* --- Home page cards ------------------------------------- */
.home-intro {
  margin-bottom: 2.2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--rule);
}
.home-intro p {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink-soft);
  font-style: italic;
  line-height: 1.75;
  margin-bottom: 0.6rem;
}

.home-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.home-card {
  display: block;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 1.2rem 1.4rem;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.home-card:hover {
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(42,95,143,0.08);
}
.home-card-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
}
.home-card-title {
  font-family: 'Lora', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.5rem;
  line-height: 1.3;
}
.home-card-desc {
  font-size: 0.88rem;
  color: var(--ink-soft);
  line-height: 1.6;
}

/* --- Blog list (bobdc-style) ----------------------------- */
/* Compact: one line per post — date | title — subtitle      */

.blog-list {
  list-style: none;
  margin-top: 1.8rem;
  border-top: 1px solid var(--rule);
}

.blog-list-item {
  display: flex;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--rule);
  flex-wrap: wrap;
  line-height: 1.5;
  column-gap: 0;
  row-gap: 0;
}

.blog-list-date {
  flex-shrink: 0;
  width: 11rem;
  font-size: 0.82rem;
  color: var(--ink-faint);
}

.blog-list-title {
  font-weight: 600;
}
.blog-list-title a {
  color: var(--ink);
  text-decoration: none;
}
.blog-list-title a:hover { color: var(--accent); text-decoration: underline; }

.blog-list-subtitle {
  font-style: italic;
  color: var(--ink-soft);
  font-size: 0.9rem;
  font-weight: 400;
}

/* --- Talks page ------------------------------------------ */
.talk { margin-bottom: 3rem; }

.talk-meta {
  font-size: 0.85rem;
  color: var(--ink-faint);
  font-style: italic;
  margin: -0.3rem 0 1rem;
}

.talk-links {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin: 1.2rem 0;
}

.talk-link {
  display: inline-block;
  background: var(--accent);
  color: #fff !important;
  text-decoration: none !important;
  padding: 0.4rem 0.9rem;
  border-radius: 2px;
  font-size: 0.88rem;
  font-weight: 600;
}
.talk-link:hover { background: var(--accent-warm) !important; }

hr.talk-divider {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 1.8rem 0 1.2rem;
}

.post-body h4 {
  font-family: 'Source Sans 3', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ink-faint);
  margin: 1.8rem 0 0.2rem;
}

/* --- Responsive ------------------------------------------ */
@media (max-width: 600px) {
  html { font-size: 16px; }
  .post-title { font-size: 1.6rem; }
  .site-header { flex-direction: column; }
  .home-sections { grid-template-columns: 1fr; }
  .blog-list-date { width: 100%; }
}

/* --- Images ------------------------------------------ */

img {
    max-width: 100%;
    height: auto;
    display: block; /* Voorkomt ongewenste witruimte onder de foto */
}
