/*
Theme Name: AMVEN Blog
Theme URI: https://amven.co.uk/
Author: AMVEN
Description: Minimal classic theme for blog.amven.co.uk. Carries no design of its own: it loads the main site's stylesheet from amven.co.uk so the blog and the site cannot drift apart, and adds only the rules the main site has no equivalent for (post lists, article meta, pagination, comments).
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 8.0
License: Proprietary
Text Domain: amven-blog
*/

/* ---------------------------------------------------------------------------
   Everything below assumes the main site's stylesheet has already loaded and
   defined the design tokens (--s-*, --gutter, --page-max, --measure, colours).
   functions.php enqueues it first, so these rules can use them directly.
   If that stylesheet ever fails to load, the page degrades to unstyled HTML
   rather than to a half-brand: that is deliberate, and obvious in testing.
   --------------------------------------------------------------------------- */

/* Post list ---------------------------------------------------------------- */

.posts { margin: 0; padding: 0; list-style: none; }

.post-card {
  padding-block: var(--s-6);
  border-bottom: 1px solid var(--rule-on-light);
}
.post-card:last-child { border-bottom: 0; }

.post-card__title { margin: 0 0 var(--s-2); }
.post-card__title a { text-decoration: none; }
.post-card__title a:hover,
.post-card__title a:focus-visible { text-decoration: underline; }

.post-card__meta,
.post-meta {
  margin: 0 0 var(--s-3);
  font-size: 0.875rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.post-card__excerpt { max-width: var(--measure); }

/* Single post -------------------------------------------------------------- */

.entry-head { margin-bottom: var(--s-6); }
.post-content { max-width: var(--measure); }
.post-content h2 { margin-top: var(--s-7); }
.post-content h3 { margin-top: var(--s-6); }

/* Post bodies come from WordPress, so they can contain any markup an editor
   produced. These keep a wide image or table from breaking the layout rather
   than trying to style every possibility. */
.post-content img,
.post-content iframe,
.post-content video {
  max-width: 100%;
  height: auto;
}
.post-content figure { margin-inline: 0; max-width: 100%; }
.post-content figcaption { font-size: 0.875rem; }
.post-content table { width: 100%; border-collapse: collapse; }
.post-content pre { overflow-x: auto; }
.post-content blockquote {
  margin-inline: 0;
  padding-left: var(--s-4);
  border-left: 3px solid var(--rule-on-light);
}

/* Pagination --------------------------------------------------------------- */

.pagination { margin-top: var(--s-7); display: flex; gap: var(--s-3); flex-wrap: wrap; }
.pagination .page-numbers { padding: var(--s-2) var(--s-3); text-decoration: none; }
.pagination .page-numbers.current { font-weight: 700; text-decoration: underline; }

/* WordPress's own alignment and caption classes. Without these, editor
   alignments silently do nothing. */
.alignleft  { float: left;  margin: 0 var(--s-4) var(--s-3) 0; }
.alignright { float: right; margin: 0 0 var(--s-3) var(--s-4); }
.aligncenter { display: block; margin-inline: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 0.875rem; }
.screen-reader-text {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* ---------------------------------------------------------------------------
   Why this theme avoids the class names .post-header, .post-head, .title,
   .post-title, .entry-title and .single-title on a single post's heading.

   The mu-plugin "Amven Blog SEO, GEO, Social Sharing & GEOBlog Importer"
   injects ~6.5KB of inline CSS on every page that hides all of them with
   `display:none !important`, along with author boxes, comments and post
   footers. It was written to suppress BeTheme's duplicate chrome and it still
   runs now BeTheme is gone, so a theme using those names loses its post title
   silently — the heading is in the HTML, renders at 64px, and is invisible.

   Found on 20 Nov 2026 by inspecting the computed style of a heading that was
   present in the markup but absent from the page. Fighting it with !important
   would be a specificity race against a stylesheet injected after this one;
   not borrowing the names costs nothing and cannot be lost in a cascade.

   The real fix is removing that mu-plugin, which is a separate decision: it
   also auto-activates plugins and syncs articles.
   --------------------------------------------------------------------------- */
