/*
Theme Name: GP Dan DB Child
Theme URI:
Description: Custom child theme of GeneratePress for the developer blog.
Author: JV
Template: generatepress
Version: 0.1.0
*/

/* ============================================================
   1. Self-hosted fonts
   ============================================================ */

/* Inter — body */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/inter-v20-latin-regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/inter-v20-latin-600.woff2') format('woff2');
}

/* Source Serif 4 — headings */
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/source-serif-4-v14-latin-600.woff2') format('woff2');
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('fonts/source-serif-4-v14-latin-700.woff2') format('woff2');
}

/* ============================================================
   2. Typography — body + headings
   ============================================================ */

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  font-size: 19px;
  line-height: 1.6;
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.entry-title,
.site-title {
  font-family: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.2;
}

/* Slightly lighter weight for smaller headings reads cleaner */
h3, h4, h5, h6 {
  font-weight: 600;
}

/* Comfortable spacing between paragraphs in article body */
.entry-content p {
  margin-bottom: 1.5em;
}

/* ============================================================
   3. Layout — narrow reading measure, single column
   ============================================================ */

/* Constrain the main content container to a comfortable line length */
.site-content .content-area {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

/* Let the header/nav stay full but align inner content */
.inside-article,
.entry-content,
.page-content {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ============================================================
   4. Polish — color, links, heading rhythm, featured images
   ============================================================ */

/* Accent color — used for links and small highlights.
   Slate-blue to match the image palette from the plan. */
:root {
  --accent: #3a5a78;
  --accent-hover: #2b4257;
  --ink: #1a1a1a;
  --muted: #6b6b6b;
}

body {
  color: var(--ink);
}

/* Links: accent color, underline only on hover for a clean read */
.entry-content a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
.entry-content a:hover {
  color: var(--accent-hover);
}

/* Heading rhythm — more space above than below, so headings
   group with the text they introduce */
.entry-content h2 {
  margin-top: 2em;
  margin-bottom: 0.6em;
  font-size: 1.6em;
}
.entry-content h3 {
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  font-size: 1.3em;
}

/* Post meta (date, author) — quiet, small, muted */
.entry-meta {
  font-size: 0.85em;
  color: var(--muted);
}

/* Featured images — full column width, gentle rounding,
   breathing room below. Sized for your 1200×630 covers. */
.post-image img,
.wp-post-image {
  width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1.5em;
}

/* Article title spacing on single posts */
.entry-header .entry-title {
  margin-bottom: 0.3em;
}
