/* =============================================================================
   SL Blog — Main Stylesheet
   Ghost 6.x | Mobile First | Inter (Google Fonts)
   =============================================================================
   TABLE OF CONTENTS
   1. Google Fonts Import
   2. CSS Custom Properties (:root)
   3. Modern CSS Reset
   4. Base Typography
   5. Layout & Container
   6. Grid System
   7. Utilities
   ============================================================================= */


/* =============================================================================
   1. GOOGLE FONTS
   Inter is loaded via a non-blocking <link> in default.hbs (with preconnect),
   not via @import here — @import blocks rendering until the CSS is fetched.
   ============================================================================= */


/* =============================================================================
   2. CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
  /* --- Colors --- */
  --color-accent:       #0EB392;
  --color-accent-hover: #0a9478;      /* darkened 10% for hover states */
  --color-accent-2:     #30DAB7;      /* bright mint — gradients, secondary accents */
  --color-btn-dark:     #242424;      /* dark pill buttons (Read Now, See more) */
  --color-text:         #000000;
  --color-text-muted:   #6b6b6b;      /* secondary text, meta info */
  --color-text-light:   #9a9a9a;      /* placeholders, disabled */
  --color-bg:           #ffffff;
  --color-bg-soft:      #f3f3f3;      /* tag pill inactive, card bg variant */
  --color-dark:         #0d0d0d;      /* dark sections, footer */
  --color-dark-surface: #1a1a1a;      /* cards inside dark sections */
  --color-border:       #e8e8e8;      /* dividers, card borders */
  --color-white:        #ffffff;

  /* --- Typography --- */
  --font-base:    'Inter', system-ui, -apple-system, sans-serif;
  --font-size-xs: 0.75rem;    /*  12px */
  --font-size-sm: 0.875rem;   /*  14px */
  --font-size-md: 1rem;       /*  16px */
  --font-size-lg: 1.125rem;   /*  18px */
  --font-size-xl: 1.25rem;    /*  20px */
  --font-size-2xl: 1.5rem;    /*  24px */
  --font-size-3xl: 1.875rem;  /*  30px */
  --font-size-4xl: 2.25rem;   /*  36px */
  --font-size-5xl: 3rem;      /*  48px */
  --font-size-6xl: 3.75rem;   /*  60px */

  --font-weight-regular:   400;
  --font-weight-medium:    500;
  --font-weight-semibold:  600;
  --font-weight-bold:      700;
  --font-weight-extrabold: 800;

  --line-height-tight:  1.2;
  --line-height-snug:   1.35;
  --line-height-base:   1.6;
  --line-height-relaxed:1.75;

  --letter-spacing-tight: -0.02em;
  --letter-spacing-normal: 0;
  --letter-spacing-wide:  0.04em;
  --letter-spacing-caps:  0.08em;

  /* --- Spacing --- */
  --space-1:  0.25rem;   /*  4px */
  --space-2:  0.5rem;    /*  8px */
  --space-3:  0.75rem;   /* 12px */
  --space-4:  1rem;      /* 16px */
  --space-5:  1.25rem;   /* 20px */
  --space-6:  1.5rem;    /* 24px */
  --space-8:  2rem;      /* 32px */
  --space-10: 2.5rem;    /* 40px */
  --space-12: 3rem;      /* 48px */
  --space-16: 4rem;      /* 64px */
  --space-20: 5rem;      /* 80px */
  --space-24: 6rem;      /* 96px */

  /* --- Border Radius --- */
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-card: 16px;   /* blog cards */
  --radius-pill: 124px;  /* tag pills */
  --radius-full: 9999px; /* circles, avatars */

  /* --- Shadows --- */
  --shadow-sm:  0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md:  0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-lg:  0 10px 30px rgba(0, 0, 0, 0.10), 0 4px 8px rgba(0, 0, 0, 0.05);
  --shadow-card:0 2px 8px rgba(0, 0, 0, 0.06);

  /* --- Transitions --- */
  --transition-fast:   150ms ease;
  --transition-base:   250ms ease;
  --transition-slow:   400ms ease;
  --transition-spring: 300ms cubic-bezier(0.34, 1.56, 0.64, 1);

  /* --- Layout --- */
  --container-max:     1400px;
  --container-wide:    1400px;
  --container-narrow:  720px;
  --navbar-height:     64px;
  --announcement-height: 40px;

  /* --- Padding (responsive, updated via media queries) --- */
  --page-padding-x:    var(--space-4);   /* 16px mobile */
}

@media (min-width: 768px) {
  :root {
    --page-padding-x: var(--space-8);    /* 32px tablet */
  }
}

@media (min-width: 1024px) {
  :root {
    --page-padding-x: var(--space-10);   /* 40px desktop */
  }
}


/* =============================================================================
   3. MODERN CSS RESET
   ============================================================================= */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  hanging-punctuation: first last;
}

body {
  font-family: var(--font-base);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-base);
  color: var(--color-text);
  background-color: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100dvh;
}

/* Remove list styles when list has role="list" */
ul[role='list'],
ol[role='list'] {
  list-style: none;
}

ul,
ol {
  list-style: none;
}

/* Reset links */
a {
  color: inherit;
  text-decoration: none;
}

a:hover {
  color: inherit;
}

/* Images and media */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* Form elements */
input,
button,
textarea,
select {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

/* Headings */
h1, h2, h3, h4, h5, h6 {
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  letter-spacing: var(--letter-spacing-tight);
  overflow-wrap: break-word;
}

/* Paragraphs */
p {
  overflow-wrap: break-word;
}

/* Tables */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* Remove animations for users who prefer it */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* =============================================================================
   4. BASE TYPOGRAPHY
   ============================================================================= */

/* Heading scale — mobile first */
h1 { font-size: var(--font-size-3xl); }
h2 { font-size: var(--font-size-2xl); }
h3 { font-size: var(--font-size-xl); }
h4 { font-size: var(--font-size-lg); }
h5 { font-size: var(--font-size-md); }
h6 { font-size: var(--font-size-sm); }

@media (min-width: 768px) {
  h1 { font-size: var(--font-size-4xl); }
  h2 { font-size: var(--font-size-3xl); }
  h3 { font-size: var(--font-size-2xl); }
  h4 { font-size: var(--font-size-xl); }
}

@media (min-width: 1024px) {
  h1 { font-size: var(--font-size-5xl); }
  h2 { font-size: var(--font-size-4xl); }
  h3 { font-size: var(--font-size-2xl); }
}

/* Section labels / eyebrows */
.text-label {
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-text-muted);
}

/* Meta text (date, reading time, etc.) */
.text-meta {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

/* Excerpt / description text */
.text-excerpt {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-relaxed);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .text-excerpt {
    font-size: var(--font-size-md);
  }
}


/* =============================================================================
   5. LAYOUT & CONTAINER
   ============================================================================= */

/* Site wrapper */
.site-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* Main content grows to fill space above footer */
.site-main {
  flex: 1;
}

/* Standard container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--page-padding-x);
}

/* Wider container for full-bleed sections */
.container--wide {
  max-width: var(--container-wide);
}

/* Narrow container for article body */
.container--narrow {
  max-width: var(--container-narrow);
}

/* Section vertical spacing */
.section {
  padding-block: var(--space-12);
}

@media (min-width: 768px) {
  .section {
    padding-block: var(--space-16);
  }
}

@media (min-width: 1024px) {
  .section {
    padding-block: var(--space-20);
  }
}

/* Section heading */
.section__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
  text-align: center;
}

@media (min-width: 768px) {
  .section__title {
    font-size: var(--font-size-3xl);
  }
}


/* =============================================================================
   6. GRID SYSTEM — MOBILE FIRST
   ============================================================================= */

/* Base grid: 1 column on mobile */
.post-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
  align-items: start;            /* cards size to content (no empty stretch) */
}

/* 2 columns from tablet */
@media (min-width: 768px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
  }
}

/* 3 columns from desktop */
@media (min-width: 1024px) {
  .post-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
  }
}

/* 2-column layout (e.g. featured articles: image + text) */
.two-col {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-6);
}

@media (min-width: 768px) {
  .two-col {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
}

/* Footer grid: 1 col → 2 → 4 */
.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-8);
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* =============================================================================
   7. UTILITIES
   ============================================================================= */

/* Visually hidden (accessible) */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Aspect ratios */
.aspect-video {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.aspect-square {
  aspect-ratio: 1 / 1;
  overflow: hidden;
}

/* Object fit */
.img-cover {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Transition utility */
.transition {
  transition: all var(--transition-base);
}

/* Truncate text */
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Dark section base */
.section--dark {
  background-color: var(--color-dark);
  color: var(--color-white);
}

/* =============================================================================
   GHOST KOENIG EDITOR — Required card width classes
   Ghost validator requires .kg-width-wide and .kg-width-full to be present.
   Full card styling will be added when post.hbs is built (Block #7).
   ============================================================================= */

.gh-content {
  max-width: var(--container-narrow);
  margin-inline: auto;
}

/* Wide card — bleeds beyond text column */
.kg-width-wide {
  position: relative;
  width: 85vw;
  max-width: 1100px;
  margin-inline: calc(50% - 42.5vw);
}

@media (min-width: 1200px) {
  .kg-width-wide {
    width: 1100px;
    margin-inline: calc(50% - 550px);
  }
}

/* Full-bleed card — edge to edge */
.kg-width-full {
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
}

/* Common card base */
.kg-image-card img,
.kg-gallery-card img {
  width: 100%;
  height: auto;
  display: block;
}

/* Ghost native search trigger */
.gh-search-trigger {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  cursor: pointer;
}


/* =============================================================================
   8. ANNOUNCEMENT BAR
   ============================================================================= */

.announcement-bar {
  background-color: var(--color-accent);
  color: var(--color-white);
  padding-block: 10px;
}

.announcement-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.announcement-bar__text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  line-height: var(--line-height-snug);
}

.announcement-bar__cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  white-space: nowrap;
  flex-shrink: 0;
  color: var(--color-white);
}

.announcement-bar__arrow {
  transition: transform var(--transition-fast);
}

.announcement-bar__cta:hover .announcement-bar__arrow {
  transform: translateX(4px);
}


/* =============================================================================
   9. NAVBAR
   ============================================================================= */

/* Site header wrapper — sticky */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-dark);
}

/* Navbar row */
.navbar {
  height: var(--navbar-height);
  display: flex;
  align-items: center;
}

.navbar__inner {
  width: 100%;
  max-width: var(--container-wide);
  margin-inline: auto;
  padding-inline: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

@media (min-width: 1024px) {
  .navbar__inner {
    padding-inline: var(--space-10);
    gap: var(--space-6);
  }
}

/* ── Logo ── */
.navbar__logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.navbar__logo:hover {
  opacity: 0.85;
}

.navbar__logo img {
  height: 28px;
  width: auto;
}

@media (min-width: 768px) {
  .navbar__logo img {
    height: 32px;
  }
}

.navbar__logo-text {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  color: var(--color-white);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
}

/* ── Desktop nav — hidden below 1024px ── */
.navbar__nav {
  display: none;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

@media (min-width: 1024px) {
  .navbar__nav {
    display: flex;
  }
}

/* Nav item */
.navbar__item {
  position: relative;
}

/* Nav link / button (shared base) */
.navbar__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-2) var(--space-3);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9375rem; /* 15px */
  font-weight: var(--font-weight-medium);
  line-height: 1;
  border-radius: var(--radius-sm);
  transition: color var(--transition-fast);
  background: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
}

.navbar__link:hover,
.navbar__link--active {
  color: var(--color-accent);
}

/* Chevron icon inside link */
.navbar__chevron {
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: rgba(255, 255, 255, 0.5);
}

.navbar__item--has-dropdown:hover .navbar__chevron,
.navbar__item--has-dropdown.is-open .navbar__chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* ── Dropdown panel ── */
.navbar__dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  min-width: 220px;
  background-color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2) 0;
  z-index: 10;

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateX(-50%) translateY(-6px);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    visibility 0s var(--transition-fast);
}

/* Bridge the 10px gap so hover isn't lost moving from button to dropdown */
.navbar__item--has-dropdown::after {
  content: '';
  position: absolute;
  bottom: -10px;
  left: 0;
  right: 0;
  height: 10px;
}

/* Small decorative arrow */
.navbar__dropdown::before {
  content: '';
  position: absolute;
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 10px;
  height: 10px;
  background-color: var(--color-white);
  box-shadow: -1px -1px 3px rgba(0, 0, 0, 0.06);
}

/* Visible state */
.navbar__item--has-dropdown:hover .navbar__dropdown,
.navbar__item--has-dropdown.is-open .navbar__dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
  transition:
    opacity var(--transition-fast),
    transform var(--transition-fast),
    visibility 0s;
}

/* Dropdown links */
.navbar__dropdown-link {
  display: block;
  padding: var(--space-3) var(--space-5);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  transition: color var(--transition-fast), background-color var(--transition-fast);
  white-space: nowrap;
}

.navbar__dropdown-link:hover {
  color: var(--color-accent);
  background-color: var(--color-bg-soft);
}

/* ── Actions group (CTA + Burger) ── */
.navbar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* ── CTA button ── */
.btn--nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px var(--space-5);
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  transition: background-color var(--transition-fast), transform var(--transition-fast);
}

.btn--nav-cta:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
  transform: translateY(-1px);
}

/* ── Burger button — visible only on mobile ── */
.navbar__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  color: var(--color-white);
  transition: background-color var(--transition-fast);
  flex-shrink: 0;
}

.navbar__burger:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

@media (min-width: 1024px) {
  .navbar__burger {
    display: none;
  }
}

/* Burger lines */
.navbar__burger-line {
  display: block;
  width: 22px;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: transform var(--transition-base), opacity var(--transition-base);
  transform-origin: center;
}

/* Burger → X transformation */
.navbar__burger[aria-expanded="true"] .navbar__burger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.navbar__burger[aria-expanded="true"] .navbar__burger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.navbar__burger[aria-expanded="true"] .navbar__burger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}


/* =============================================================================
   10. MOBILE MENU OVERLAY
   ============================================================================= */

/* Prevent body scroll when menu is open */
body.menu-is-open {
  overflow: hidden;
}

.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 99; /* below navbar (100) so navbar stays on top */
  background-color: var(--color-dark);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-top: var(--navbar-height);

  /* Hidden state */
  opacity: 0;
  visibility: hidden;
  transition:
    opacity var(--transition-base),
    visibility 0s var(--transition-base);
}

/* Visible state */
.mobile-menu.is-open {
  opacity: 1;
  visibility: visible;
  transition:
    opacity var(--transition-base),
    visibility 0s;
}

/* Nav list */
.mobile-menu__nav {
  padding: var(--space-4) var(--space-6) var(--space-12);
}

/* Each nav row */
.mobile-menu__item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.mobile-menu__item:first-child {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

/* Link / accordion toggle */
.mobile-menu__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: var(--space-4) 0;
  color: var(--color-white);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-medium);
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.mobile-menu__link:hover,
.mobile-menu__link--active {
  color: var(--color-accent);
}

/* Chevron in mobile menu */
.mobile-menu__chevron {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
  color: rgba(255, 255, 255, 0.4);
}

.mobile-menu__item.is-open .mobile-menu__chevron {
  transform: rotate(180deg);
  color: var(--color-accent);
}

/* Accordion submenu */
.mobile-submenu {
  overflow: hidden;
  max-height: 0;
  transition: max-height var(--transition-slow) cubic-bezier(0.4, 0, 0.2, 1);
  padding-left: var(--space-4);
}

.mobile-menu__item.is-open .mobile-submenu {
  max-height: 500px; /* large enough for any submenu */
}

.mobile-submenu__link {
  display: block;
  padding: var(--space-3) 0;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-regular);
  transition: color var(--transition-fast);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.mobile-submenu__link:last-child {
  border-bottom: none;
  margin-bottom: var(--space-3);
}

.mobile-submenu__link:hover {
  color: var(--color-accent);
}

/* CTA at bottom of mobile menu */
.mobile-menu__cta {
  margin-top: var(--space-8);
}

.btn--mobile-cta {
  display: block;
  width: 100%;
  text-align: center;
  padding: var(--space-4);
  background-color: var(--color-accent);
  color: var(--color-white);
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast);
  text-decoration: none;
}

.btn--mobile-cta:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
}


/* =============================================================================
   12. ARTICLE CARD  (partials/card.hbs)
   Vertical (default) + horizontal variants. Mobile-first.
   ============================================================================= */

.card {
  position: relative;                 /* anchor for the stretched title link */
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-card);
  height: 100%;
  transition: box-shadow var(--transition-base), transform var(--transition-base);
}

.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

/* ── Media ── */
.card__media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  aspect-ratio: 16 / 10;
  background-color: var(--color-dark);
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-slow);
}

.card:hover .card__img {
  transform: scale(1.04);
}

/* ── Body ── */
.card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: var(--space-4) var(--space-3) var(--space-3);
}

.card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

/* ── Tag pills ── */
.card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pill {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-medium);
  line-height: 1.4;
  color: var(--color-text);
  background-color: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.pill--primary {
  color: var(--color-white);
  background-color: var(--color-accent);
  border-color: var(--color-accent);
}

/* ── Title ── */
.card__title {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-snug);
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-3);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__link {
  color: inherit;
}

/* Stretched link makes the whole card clickable */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.card:hover .card__title {
  color: var(--color-accent);
}

/* ── Excerpt ── */
.card__excerpt {
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-5);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── Footer meta row ── */
.card__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: auto;
  font-size: var(--font-size-xs);
  color: var(--color-text-muted);
}

.card__date {
  white-space: nowrap;
}

.card__category {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
}

/* ── Author (horizontal variant) ── */
.card__author {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.card__avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.card__avatar--initial {
  background-color: var(--color-accent);
}

.card__author-name {
  font-size: var(--font-size-sm);
  color: var(--color-text);
}

/* ── "Read Now" CTA (horizontal variant) ── */
.card__cta {
  position: relative;
  z-index: 0;                         /* sits under the stretched link */
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background-color: var(--color-btn-dark);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast);
}

.card:hover .card__cta {
  background-color: var(--color-accent);
}

/* ── Horizontal variant: stacked on mobile, row from tablet ── */
@media (min-width: 768px) {
  .card--horizontal {
    flex-direction: row;
    align-items: stretch;
    gap: var(--space-2);
  }

  .card--horizontal .card__media {
    flex: 0 0 38%;
    max-width: 320px;
    aspect-ratio: auto;
  }

  .card--horizontal .card__body {
    flex: 1 1 auto;
    padding: var(--space-4);
  }
}


/* =============================================================================
   13. SHARED PILL BUTTONS + SECTION HELPERS
   ============================================================================= */

.btn--dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-white);
  background-color: var(--color-btn-dark);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn--dark:hover {
  background-color: #000;
  color: var(--color-white);
}

.btn--accent {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.75rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-wide);
  text-transform: uppercase;
  color: var(--color-white);
  background-color: var(--color-accent);
  border-radius: var(--radius-pill);
  transition: background-color var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
}

.btn--accent:hover {
  background-color: var(--color-accent-hover);
  color: var(--color-white);
}

.section__title--left {
  text-align: left;
}

.section__eyebrow {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}

.section__action {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}

.section__action[hidden] {
  display: none;
}


/* =============================================================================
   14. HERO
   ============================================================================= */

.hero {
  position: relative;
  overflow: hidden;
}

.hero__inner {
  position: relative;
  padding-block: var(--space-10);
}

.hero__content {
  position: relative;
  z-index: 2;
  max-width: 640px;
}

.hero__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-medium);
  line-height: 1.14;
  letter-spacing: var(--letter-spacing-tight);
  margin-bottom: var(--space-5);
}

/* Bold lead line; the rest of the title stays lighter */
.hero__title-strong {
  display: block;
  font-weight: var(--font-weight-extrabold);
}

.hero__subtitle {
  font-size: var(--font-size-md);
  color: var(--color-text-muted);
  max-width: 42ch;
  margin-bottom: var(--space-8);
}

.hero__bg {
  display: none;
}

@media (min-width: 768px) {
  .hero__inner {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    align-items: center;
    gap: var(--space-10);
  }
  .hero__title { font-size: var(--font-size-4xl); }
  .hero__bg {
    display: block;
    width: 100%;
    height: auto;
    justify-self: end;
    pointer-events: none;
    transform: rotate(-90deg);
  }
}

@media (min-width: 1024px) {
  .hero__inner { padding-block: var(--space-16); }
  .hero__title { font-size: var(--font-size-5xl); }
}

/* Subscribe form — Ghost members */
.subscribe-form {
  display: flex;
  align-items: stretch;
  max-width: 440px;
  background: var(--color-bg-soft);
  border-radius: var(--radius-pill);
  padding: 0;
}

.subscribe-form__input {
  flex: 1 1 auto;
  border: none;
  background: transparent;
  padding: 1rem 0.75rem 1rem 1.25rem;
  font-size: var(--font-size-sm);
  color: var(--color-text);
  outline: none;
  min-width: 0;
}

.subscribe-form__input::placeholder {
  color: var(--color-text-light);
}

.subscribe-form .subscribe-form__btn {
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  padding: 1rem 1.5rem;
}

.subscribe-form__alert {
  min-height: 1.25rem;
  margin-top: var(--space-3);
  font-size: var(--font-size-xs);
}

.subscribe-form__msg { display: none; }
.subscribe-form__msg--loading { color: var(--color-text-muted); }
.subscribe-form__msg--success { color: var(--color-accent); }
.subscribe-form__msg--error   { color: #c0392b; }

/* Ghost toggles .loading / .success / .error on the form element */
.subscribe-form.loading + .subscribe-form__alert .subscribe-form__msg--loading,
.subscribe-form.success + .subscribe-form__alert .subscribe-form__msg--success,
.subscribe-form.error   + .subscribe-form__alert .subscribe-form__msg--error {
  display: inline;
}


/* =============================================================================
   15. PILL ROW / TAG LINKS / FILTER PILLS
   ============================================================================= */

.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pill--link,
.filter-pill {
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.pill--link:hover,
.filter-pill:hover {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.filter-pill.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

/* Gap between the tag-pill filter row and the grid below it */
.filter-pills {
  margin-bottom: var(--space-8);
}

/* "Explore by tags" breathing room */
.explore-tags {
  padding-block: var(--space-4) var(--space-6);
}


/* =============================================================================
   16. FILTER TABS (Browse by category)
   ============================================================================= */

.filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--space-2);
  margin-bottom: var(--space-8);
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.5rem 1rem;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-medium);
  color: var(--color-text);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}

.filter-tab__icon { flex: 0 0 auto; }
.filter-tab__icon--img { width: 16px; height: 16px; object-fit: cover; border-radius: 2px; }
.filter-tab.is-active .filter-tab__icon--img { filter: invert(1); }

.filter-tab:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.filter-tab.is-active {
  background: var(--color-btn-dark);
  border-color: var(--color-btn-dark);
  color: var(--color-white);
}

/* Cards filtered out or not yet revealed */
.card.is-hidden { display: none; }


/* =============================================================================
   17. FEATURED PANEL
   ============================================================================= */

.featured {
  background: var(--color-bg-soft);
  border-radius: var(--radius-card);
}

.featured__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

/* On the gray panel, featured cards are white for contrast */
.featured .card {
  background: var(--color-white);
}


/* =============================================================================
   18. CRIMEWALL CTA
   ============================================================================= */

.crimewall {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  min-height: 260px;
  border-radius: var(--radius-card);
  background-color: var(--color-dark);
  padding: var(--space-10) var(--space-6);
}

/* Photo layer — sits on the right; full-bleed on mobile, right half on desktop */
.crimewall__media {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
}

.crimewall__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
}

/* Fade the photo's left edge into the dark panel so the text stays readable */
.crimewall__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #0d0d0d 0%, rgba(13,13,13,0.7) 28%, rgba(13,13,13,0) 65%);
}

.crimewall__content {
  position: relative;
  z-index: 1;
  max-width: 460px;
  color: var(--color-white);
}

.crimewall__brand {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.crimewall__brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.crimewall__brand-text strong {
  font-size: var(--font-size-lg);
  font-weight: var(--font-weight-bold);
  letter-spacing: 0.04em;
}

.crimewall__brand-text small {
  font-size: 0.625rem;
  letter-spacing: 0.18em;
  color: rgba(255, 255, 255, 0.6);
}

.crimewall__heading {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  text-transform: uppercase;
  line-height: 1.05;
  margin-bottom: var(--space-3);
}

.crimewall__subtitle {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-8);
  max-width: 34ch;
}

@media (min-width: 768px) {
  .crimewall { padding: var(--space-16) var(--space-12); min-height: 340px; }
  .crimewall__heading { font-size: var(--font-size-5xl); }
  .crimewall__media { width: 64%; }
  .crimewall__media::after {
    background: linear-gradient(90deg, #0d0d0d 0%, rgba(13,13,13,0.55) 22%, rgba(13,13,13,0) 60%);
  }
}


/* =============================================================================
   19. FOOTER
   ============================================================================= */

.site-footer {
  color: rgba(255, 255, 255, 0.7);
}

.site-footer .container {
  padding-block: var(--space-16) var(--space-10);
}

.footer__top {
  display: flex;
  flex-direction: column;
  gap: var(--space-10);
}

.footer__cols {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
}

.footer__heading {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-4);
}

.footer__links,
.footer__contacts {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer__links a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.65);
  transition: color var(--transition-fast);
}

.footer__links a:hover {
  color: var(--color-white);
}

.footer__contacts {
  font-size: var(--font-size-sm);
}

.footer__contacts span {
  display: block;
  color: rgba(255, 255, 255, 0.45);
}

.footer__contacts a {
  color: var(--color-accent-2);
  transition: color var(--transition-fast);
}

.footer__contacts a:hover {
  color: var(--color-white);
}

.footer__aside {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-6);
}

.footer__social {
  display: flex;
  gap: var(--space-3);
}

.footer__social a {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-white);
  transition: background-color var(--transition-fast);
}

.footer__social a:hover {
  background: var(--color-accent);
}

.footer__bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-8);
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer__addr-title {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  letter-spacing: var(--letter-spacing-caps);
  text-transform: uppercase;
  color: var(--color-white);
  margin-bottom: var(--space-3);
}

.footer__addr p {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.55);
  line-height: var(--line-height-base);
  margin-bottom: var(--space-3);
}

.footer__copyright {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: var(--space-4);
}

.footer__legal ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.footer__legal a {
  font-size: var(--font-size-sm);
  color: rgba(255, 255, 255, 0.55);
  transition: color var(--transition-fast);
}

.footer__legal a:hover {
  color: var(--color-white);
}

@media (min-width: 768px) {
  .footer__top {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: var(--space-12);
  }
  .footer__cols {
    grid-template-columns: repeat(4, 1fr);
    flex: 1 1 auto;
  }
  .footer__aside {
    align-items: flex-end;
    flex: 0 0 auto;
  }
  .footer__bottom {
    grid-template-columns: repeat(4, 1fr);
  }
}


/* =============================================================================
   20. TAG ARCHIVE
   ============================================================================= */

.tag-archive__pills {
  margin-bottom: var(--space-10);
}

.pill--link.is-active {
  background-color: var(--color-accent);
  border-color: var(--color-accent);
  color: var(--color-white);
}

.tag-archive__name {
  text-align: center;
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-8);
}

.tag-archive__desc {
  text-align: center;
  max-width: 60ch;
  margin: calc(-1 * var(--space-4)) auto var(--space-10);
  color: var(--color-text-muted);
}

@media (min-width: 768px) {
  .tag-archive__name { font-size: var(--font-size-3xl); }
}


/* =============================================================================
   21. POST PAGE
   ============================================================================= */

/* ── Header ── */
.post-header {
  max-width: 768px;
  margin-inline: auto;
  padding: var(--space-12) var(--page-padding-x) 0;
  text-align: center;
}

.post-header__tags {
  justify-content: center;
  margin-bottom: var(--space-5);
}

.post-header__meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin-bottom: var(--space-5);
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
}

.post-header__meta-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.post-header__title {
  font-size: var(--font-size-3xl);
  font-weight: var(--font-weight-extrabold);
  line-height: 1.15;
  letter-spacing: var(--letter-spacing-tight);
}

@media (min-width: 768px) {
  .post-header__title { font-size: var(--font-size-4xl); }
}

/* ── Feature image ── */
.post-feature {
  max-width: 1100px;
  margin: var(--space-10) auto;
  padding-inline: var(--page-padding-x);
}

.post-feature__img {
  width: 100%;
  border-radius: var(--radius-card);
}

.post-feature__caption {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* ── Byline ── */
.post-byline {
  max-width: 1100px;
  margin: 0 auto var(--space-10);
  padding-inline: var(--page-padding-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.post-byline__author {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
}

.post-byline__avatar {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  object-fit: cover;
  flex-shrink: 0;
}

.post-byline__avatar--initial {
  background: var(--color-accent);
}

.post-byline__category {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  color: var(--color-text);
  transition: color var(--transition-fast);
}

.post-byline__category:hover {
  color: var(--color-accent);
}

/* ── Article body typography ── */
.gh-content {
  font-size: var(--font-size-lg);
  line-height: var(--line-height-relaxed);
  color: var(--color-text);
}

.gh-content > * + * {
  margin-top: var(--space-6);
}

.gh-content h2 {
  font-size: var(--font-size-2xl);
  margin-top: var(--space-10);
}

.gh-content h3 {
  font-size: var(--font-size-xl);
  margin-top: var(--space-8);
}

.gh-content h4 {
  font-size: var(--font-size-lg);
  margin-top: var(--space-6);
}

.gh-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.gh-content a:hover {
  color: var(--color-accent-hover);
}

.gh-content ul,
.gh-content ol {
  padding-left: 1.4em;
}

.gh-content ul li { list-style: disc; }
.gh-content ol li { list-style: decimal; }
.gh-content li + li { margin-top: var(--space-2); }

.gh-content blockquote {
  border-left: 3px solid var(--color-accent);
  padding-left: var(--space-5);
  color: var(--color-text-muted);
  font-style: italic;
}

.gh-content figure { margin-top: var(--space-8); }
.gh-content img { border-radius: var(--radius-md); }
.gh-content figcaption {
  text-align: center;
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}

.gh-content hr {
  border: none;
  border-top: 1px solid var(--color-border);
  margin-block: var(--space-8);
}

.gh-content pre {
  background: var(--color-dark);
  color: #fff;
  padding: var(--space-4);
  border-radius: var(--radius-md);
  overflow: auto;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
}

.gh-content code { font-size: 0.9em; }

.gh-content :not(pre) > code {
  background: var(--color-bg-soft);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ── FAQ — Ghost toggle cards (scoped under .gh-content to beat card_assets CSS) ── */
.gh-content .kg-toggle-card {
  background: var(--color-bg-soft);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-5);
  margin-top: var(--space-3);
}

.gh-content .kg-toggle-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.gh-content .kg-toggle-heading-text {
  font-size: var(--font-size-md);
  font-weight: var(--font-weight-semibold);
  margin: 0;
}

.gh-content .kg-toggle-card-icon {
  flex: 0 0 auto;
  color: var(--color-text-muted);
}

.gh-content .kg-toggle-content {
  font-size: var(--font-size-md);
  line-height: var(--line-height-base);
  color: var(--color-text-muted);
  margin-top: var(--space-3);
}

/* ── Next article (keep gray card on white section) ── */
.next-article .card { background: var(--color-bg-soft); }

/* ── Newsletter "Improve Your Skills" ── */
.newsletter {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.newsletter__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.newsletter__title {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-extrabold);
  margin-bottom: var(--space-3);
}

.newsletter__subtitle {
  color: var(--color-text-muted);
  max-width: 52ch;
  margin-bottom: var(--space-8);
}

.newsletter .subscribe-form {
  margin-inline: auto;
}

.newsletter__bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 760px;
  max-width: 130%;
  opacity: 0.5;
  z-index: 0;
  pointer-events: none;
}

@media (min-width: 768px) {
  .newsletter__title { font-size: var(--font-size-3xl); }
}


/* =============================================================================
   22. NOTIFICATIONS + AUTHOR + STATIC PAGE
   ============================================================================= */

/* Members toast — bottom-right, hidden by default */
.notifications {
  position: fixed;
  right: var(--space-5);
  bottom: var(--space-5);
  z-index: 200;
  max-width: 360px;
  padding: var(--space-4) var(--space-10) var(--space-4) var(--space-4);
  background: var(--color-dark);
  color: var(--color-white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: none;
}

.notifications.is-visible { display: block; }

.notifications__msg {
  display: none;
  font-size: var(--font-size-sm);
  line-height: var(--line-height-base);
  margin: 0;
}

.notifications__msg.is-active { display: block; }

.notifications__close {
  position: absolute;
  top: 6px;
  right: 10px;
  font-size: 20px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

.notifications__close:hover { color: var(--color-white); }

/* Author archive header */
.author-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto var(--space-12);
}

.author-header__avatar {
  display: block;
  width: 80px;
  height: 80px;
  border-radius: var(--radius-full);
  object-fit: cover;
  margin: 0 auto var(--space-4);
}

.author-header__name {
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-bold);
  margin-bottom: var(--space-3);
}

.author-header__bio { color: var(--color-text-muted); }

@media (min-width: 768px) {
  .author-header__name { font-size: var(--font-size-3xl); }
}

/* Static page */
.page-article {
  padding-block: var(--space-10) var(--space-16);
}

.page-article .post-header { padding-top: var(--space-2); }
.page-article .gh-content { margin-top: var(--space-8); }
