/* dennismoons.com — één stylesheet voor de hele site */

@font-face {
  font-family: "Inter";
  src: url("/fonts/Inter-VariableFont_slntwght.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("/fonts/cardo_normal_400.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Cardo";
  src: url("/fonts/cardo_italic_400.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

:root {
  --text: #111111;
  --muted: #636363;
  --line: #dcdcdc;
  --bg: #f9f9f9;
  --content: 620px;
  --gutter: clamp(1rem, 4vw, 2.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
}

a { color: inherit; text-underline-offset: 0.15em; }
a:hover { text-decoration: none; }

/* Header */
.site-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 1.25rem var(--gutter);
  font-size: 1rem;
}
.site-title { font-weight: 600; text-decoration: none; }
.site-nav { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; }
.site-nav a { text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { text-decoration: underline; }

/* Content */
main {
  max-width: calc(var(--content) + 2 * var(--gutter));
  margin: 0 auto;
  padding: clamp(2.5rem, 8vw, 5rem) var(--gutter) 4rem;
}

h1, h2, h3 {
  font-family: "Cardo", Georgia, serif;
  font-weight: 400;
  line-height: 1.2;
}
h1 { font-size: clamp(2.2rem, 1.6rem + 2.4vw, 3rem); margin: 0 0 1rem; }
h2 { font-size: clamp(1.6rem, 1.4rem + 0.8vw, 2.1rem); margin: 2.5rem 0 1rem; }
h3 { font-size: clamp(1.3rem, 1.2rem + 0.5vw, 1.6rem); margin: 2rem 0 0.75rem; }

p, ul, ol { margin: 0 0 1.2em; }
ul, ol { padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

blockquote {
  margin: 2rem 0;
  padding-left: 1.25rem;
  border-left: 2px solid var(--text);
  font-family: "Cardo", Georgia, serif;
  font-size: 1.3rem;
  line-height: 1.4;
}
blockquote p:last-child { margin-bottom: 0.5em; }
blockquote cite { display: block; font-family: "Inter", system-ui, sans-serif; font-size: 0.85rem; font-style: normal; color: var(--muted); }

hr { border: 0; border-top: 1px solid var(--line); margin: 2.5rem 0; }

.meta { font-size: 0.85rem; color: var(--muted); margin: 0 0 2.5rem; }

figure { margin: 2rem 0; }
figure img { display: block; max-width: 100%; height: auto; }
figcaption { font-size: 0.85rem; color: var(--muted); margin-top: 0.5rem; }

.gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 0.75rem; margin: 2rem 0; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }

.video { position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 2rem 0; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Lijst met berichten */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { border-top: 1px solid var(--line); padding: 1.1rem 0; margin: 0; }
.post-list li:last-child { border-bottom: 1px solid var(--line); }
.post-list a { font-family: "Cardo", Georgia, serif; font-size: clamp(1.35rem, 1.2rem + 0.6vw, 1.7rem); text-decoration: none; line-height: 1.2; }
.post-list a:hover { text-decoration: underline; }
.post-list time { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 0.3rem; }

/* Vorig / volgend bericht */
.post-nav {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  border-top: 1px solid var(--line);
  margin-top: 3rem;
  padding-top: 1.5rem;
  font-size: 1rem;
}
.post-nav .next { margin-left: auto; text-align: right; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem var(--gutter);
  font-size: 1rem;
  color: var(--muted);
}
