/* Dark-only site. --bg and --text come from theme settings (see default.hbs),
   the accent from Settings → Design → Brand. Greys and lines are mixed from bg + text. */
:root {
  --bg: #14161a;
  --text: #e8e6e3;
  --accent: var(--ghost-accent-color, #f0883e);
  --on-accent: #ffffff;
  --muted: color-mix(in srgb, var(--text) 50%, var(--bg));
  --subtle: color-mix(in srgb, var(--text) 70%, var(--bg));
  --line: color-mix(in srgb, var(--text) 15%, var(--bg));
  --line-soft: color-mix(in srgb, var(--text) 8%, var(--bg));
  --surface: color-mix(in srgb, var(--text) 3%, var(--bg));
}

/* Base styles */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
/* Page is at least one screen tall, so the footer always sits at the bottom */
body {
  min-height: 100vh;
  min-height: 100dvh;   /* phones: ignores the browser's collapsing address bar */
  display: flex;
  flex-direction: column;
  margin: 0;
  font-family: var(--gh-font-body, Georgia, "Times New Roman", serif);
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
}
h1, h2, h3, .site-header__title, .section-heading, .button {
  font-family: var(--gh-font-heading, system-ui, -apple-system, "Segoe UI", sans-serif);
}
img { max-width: 100%; height: auto; }
body > .site-main,
body > .site-grid { width: 100%; }  /* keep the centred content column full-width-capable inside the flex page */
a { color: inherit; }
/* Embedded frames (Ghost comments, etc.) must not inherit the page's dark colour-scheme:
   when the two differ, browsers paint the frame solid white, hiding Ghost's light comment text. */
iframe { color-scheme: normal; }

/* Article and page: centred reading column */
.post, .page { max-width: 720px; margin: 0 auto; }

/* Post page */
.post__tag { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); text-decoration: none; }
.post__title { font-size: 2.4rem; line-height: 1.15; margin: 0.3rem 0 0.5rem; }
.post__meta { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.5rem; }
.post__image { margin: 0 0 2rem; }
.post__image figcaption { font-size: 0.85rem; color: var(--muted); text-align: center; margin-top: 0.4rem; }
.post__content { font-size: 1.15rem; }
.post__content a { color: var(--accent); }
.post__content > * + * { margin-top: 1.2em; }

/* Post list (page 2+) */
.post-list__item { padding: 1.25rem 0; border-bottom: 1px solid var(--line-soft); }
.post-list__item h2 { margin: 0 0 0.2rem; }
.post-list__item a { text-decoration: none; }
.post-list__item time { font-size: 0.85rem; color: var(--muted); }
.pagination { display: flex; justify-content: space-between; padding: 1.5rem 0; }

/* Required by Ghost's editor: wide and full-width images */
.gh-content .kg-width-wide { margin-left: -4rem; margin-right: -4rem; }
.gh-content .kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.gh-content .kg-width-full img { width: 100%; }
@media (max-width: 900px) {
  .gh-content .kg-width-wide { margin-left: 0; margin-right: 0; }
}
