/* ────────────────────────────────────────────────────────────────────────
   Sovereign Terminal — main.css
   Design: Formal finance editorial. White canvas, amber brand ("Terminal
   Amber"), warm umber dark contrast sections. Sora (headlines) + Plus
   Jakarta Sans (body). Brand tokens keep the --blue-* variable names for
   compatibility but now hold amber/orange values — see "Brand amber" below.
   ──────────────────────────────────────────────────────────────────────── */

/* ── 1. Design Tokens ──────────────────────────────────────────────────── */
:root {
  /* Light surfaces */
  --bg: #ffffff;
  --bg-alt: #f4f7fc;
  --surface: #ffffff;
  --surface-alt: #f4f7fc;
  --surface-raised: #ffffff;
  --border: #e4eaf3;
  --border-strong: #cddaee;

  /* Dark surfaces (header, footer, topic showcase) */
  --ink-950: #0d0906;
  --ink-900: #17110a;
  --ink-800: #241a10;
  --ink-700: #332415;
  --on-dark: #eef3fc;
  --on-dark-muted: #96a8c7;
  --on-dark-border: rgba(255, 255, 255, 0.1);
  --on-dark-surface: rgba(255, 255, 255, 0.06);
  --on-dark-surface-hi: rgba(255, 255, 255, 0.1);

  /* Text on light */
  --text: #0f1a2e;
  --text-muted: #5b6b85;
  --text-faint: #8b97ac;

  /* Brand amber — "Terminal Amber" */
  --blue-50: #fff4e8;
  --blue-100: #ffe4c2;
  --blue-200: #ffc98a;
  --blue-300: #ffab52;
  --blue-500: #e8720c;
  --blue-600: #c25c08;
  --blue-700: #954606;
  --on-blue: #ffffff;

  /* Red accent — small details only */
  --red-500: #e0424b;
  --red-100: #fdeaec;

  /* Positive / negative (finance convention) */
  --green-500: #12a565;
  --green-100: #e1f7ec;
  --down-500: var(--red-500);
  --down-100: var(--red-100);

  /* Fonts */
  --font-head: "Sora", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  /* Spacing */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;

  /* Radius */
  --radius-sm: 0.5rem;
  --radius: 0.875rem;
  --radius-lg: 1.25rem;
  --radius-xl: 1.75rem;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 2px 10px rgba(15, 26, 46, 0.06);
  --shadow-md: 0 14px 34px rgba(15, 26, 46, 0.09);
  --shadow-lg: 0 26px 64px rgba(15, 26, 46, 0.14);
  --shadow-dark: 0 24px 60px rgba(2, 6, 16, 0.45);

  /* Layout */
  --container-max: 1400px;
  --header-gap: 1.25rem;
  --header-h: 72px;
  --content-offset: 148px;
}

/* ── 2. Reset & Base ──────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  background-color: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img,
video {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul,
ol {
  list-style: none;
}

h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-head);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

:focus-visible {
  outline: 2px solid var(--blue-500);
  outline-offset: 3px;
}

/* ── 3. Layout Utilities ──────────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
}

.container--narrow {
  max-width: 860px;
}

.site-main {
  background: var(--bg);
}

.section-kicker {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-3);
}

.section-kicker--dark {
  color: var(--blue-300);
}

.section-title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: var(--text);
}

.section-title--dark {
  color: var(--on-dark);
}

.section-header-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-10);
  flex-wrap: wrap;
}

.section-explore-link {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--blue-600);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: gap 0.2s, color 0.15s;
}

.section-explore-link:hover {
  gap: var(--space-3);
  color: var(--blue-700);
}

.no-posts,
.no-results {
  color: var(--text-muted);
  font-size: 0.9375rem;
  padding-block: var(--space-10);
}

/* ── 4. Buttons & Chips ───────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.85rem;
  border-radius: var(--radius-full);
  transition: opacity 0.15s, transform 0.15s, box-shadow 0.15s;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--blue-500);
  color: var(--on-blue);
  box-shadow: 0 10px 26px rgba(232, 114, 12, 0.28);
}

.btn--primary:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
  color: var(--on-blue);
}

.btn--ghost {
  background: var(--surface-alt);
  color: var(--text);
  border: 1.5px solid var(--border-strong);
}

.btn--ghost:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.btn--ghost-dark {
  background: var(--on-dark-surface);
  color: var(--on-dark);
  border: 1.5px solid var(--on-dark-border);
}

.btn--ghost-dark:hover {
  background: var(--on-dark-surface-hi);
  color: var(--on-dark);
}

.chip {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0.3rem 0.8rem;
  background: var(--blue-50);
  color: var(--blue-700);
  border-radius: var(--radius-full);
  transition: background-color 0.15s;
}

.chip:hover {
  background: var(--blue-100);
  color: var(--blue-700);
}

/* ── 5. Header (floating) ─────────────────────────────────────────────── */
.site-header {
  position: fixed;
  top: var(--header-gap);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  width: calc(100% - var(--space-8));
  max-width: var(--container-max);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-lg);
  transition: box-shadow 0.3s, top 0.3s, border-radius 0.3s;
}

.site-header--scrolled {
  box-shadow: 0 18px 44px rgba(15, 26, 46, 0.16);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
  padding-inline: var(--space-6);
  gap: var(--space-6);
}

/* Logo */
.site-logo,
.custom-logo-link {
  font-family: var(--font-head);
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text);
  flex-shrink: 0;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  text-decoration: none;
  white-space: nowrap;
}

.site-logo::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red-500);
  margin-right: 0.55rem;
  box-shadow: 0 0 0 4px rgba(224, 66, 75, 0.18);
}

.site-logo:hover,
.custom-logo-link:hover {
  color: var(--text);
}

.custom-logo {
  max-height: 34px;
  width: auto;
}

/* Desktop nav */
.nav-menu--overlay {
  display: none !important;
}

.nav-menu {
  flex: 1;
  display: flex;
  justify-content: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.nav-list a {
  position: relative;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text-muted);
  transition: color 0.2s, background-color 0.2s;
  text-decoration: none;
  padding: 0.55rem 1rem;
  border-radius: var(--radius-full);
  display: block;
}

.nav-list a:hover {
  color: var(--text);
  background: var(--surface-alt);
}

.nav-list li.current-menu-item > a {
  color: var(--blue-700);
  background: var(--blue-50);
  font-weight: 700;
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  flex-shrink: 0;
}

.nav-icon-btn {
  background: var(--blue-500);
  border: none;
  cursor: pointer;
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--on-blue);
  border-radius: var(--radius-full);
  transition: background-color 0.15s, transform 0.15s;
}

.nav-icon-btn:hover {
  background: var(--blue-600);
  transform: translateY(-1px);
}

/* Mobile hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 100%;
  height: 2px;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile nav overlay */
@media (max-width: 1023px) {
  .nav-toggle {
    display: flex;
  }

  .nav-menu--desktop {
    display: none !important;
  }

  .nav-menu--overlay {
    display: flex !important;
  }

  .nav-menu {
    position: fixed;
    inset: 0;
    top: 0;
    background: var(--bg);
    padding: calc(var(--header-h) + var(--header-gap) * 2) var(--space-6) var(--space-8);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s;
    z-index: 150;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    overflow-y: auto;
  }

  .nav-menu.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
    gap: var(--space-3);
    width: 100%;
  }

  .nav-list a {
    position: relative;
    font-size: 1rem;
    font-weight: 600;
    padding: 1.1rem 2.75rem 1.1rem 1.25rem;
    border-radius: var(--radius-lg);
    background: var(--surface-raised);
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
  }

  .nav-list a::after {
    content: "arrow_forward";
    font-family: "Material Symbols Outlined";
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
    font-size: 1.15rem;
    line-height: 1;
    position: absolute;
    right: 1.15rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-faint);
  }

  .nav-list a:hover,
  .nav-list a:active {
    background: var(--blue-50);
    border-color: var(--blue-200);
  }

  .nav-list a:hover::after {
    color: var(--blue-600);
  }

  .nav-list li.current-menu-item > a {
    border-color: var(--blue-300);
  }
}

/* ── 6. Home: Blog Hero (dark) ────────────────────────────────────────── */
.blog-hero-section {
  position: relative;
  padding-top: var(--content-offset);
  padding-bottom: var(--space-20);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  overflow: hidden;
}

.blog-hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    var(--on-dark-border) 0,
    var(--on-dark-border) 1px,
    transparent 1px,
    transparent 64px
  );
  opacity: 0.5;
  pointer-events: none;
}

.blog-hero-section::after {
  content: "";
  position: absolute;
  top: -22%;
  right: -8%;
  width: 560px;
  height: 560px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 114, 12, 0.3), transparent 70%);
  pointer-events: none;
}

.blog-hero-section .container {
  position: relative;
  z-index: 1;
}

.blog-hero-wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 100%;
  line-height: 0;
  color: var(--bg);
  pointer-events: none;
}

.blog-hero-wave svg {
  display: block;
  width: 100%;
  height: 56px;
}

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

.blog-hero__feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 420px;
  background: var(--on-dark-surface);
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
  transition: box-shadow 0.25s, transform 0.25s;
}

.blog-hero__feature:hover {
  transform: translateY(-3px);
}

.blog-hero__media {
  position: relative;
  display: block;
  height: 100%;
  overflow: hidden;
  background: var(--on-dark-surface-hi);
}

.blog-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-hero__img--placeholder {
  background: linear-gradient(135deg, var(--blue-700), var(--ink-800));
}

.blog-hero__media:hover .blog-hero__img {
  transform: scale(1.04);
}

.blog-hero__cat {
  position: absolute;
  left: var(--space-5);
  bottom: var(--space-5);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-blue);
  background: var(--blue-500);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
}

.blog-hero__body {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-4);
}

.blog-hero__title {
  font-size: clamp(1.6rem, 3.2vw, 2.5rem);
  line-height: 1.18;
  color: var(--on-dark);
}

.blog-hero__title a:hover {
  color: var(--blue-300);
}

.blog-hero__excerpt {
  font-size: 1.0625rem;
  color: var(--on-dark-muted);
  line-height: 1.7;
}

.blog-hero__meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.blog-hero__actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-top: var(--space-2);
}

.hero-latest-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-5);
}

.hero-latest-card {
  display: flex;
  flex-direction: column;
  background: var(--on-dark-surface);
  border: 1px solid var(--on-dark-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: background-color 0.2s, transform 0.2s;
}

.hero-latest-card:hover {
  background: var(--on-dark-surface-hi);
  transform: translateY(-2px);
}

.hero-latest-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--on-dark-surface-hi);
}

.hero-latest-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-latest-card__img--placeholder {
  background: linear-gradient(135deg, var(--blue-700), var(--ink-800));
}

.hero-latest-card__cat {
  position: absolute;
  left: var(--space-3);
  bottom: var(--space-3);
  font-family: var(--font-body);
  font-size: 0.5625rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--on-blue);
  background: var(--blue-500);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.hero-latest-card__body {
  padding: var(--space-4);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.hero-latest-card__title {
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-dark);
}

.hero-latest-card__title a:hover {
  color: var(--blue-300);
}

.hero-latest-card__meta {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--on-dark-muted);
  margin-top: auto;
}

/* ── 7. Home: Content Feed (main feed + sidebar) ──────────────────────── */
.content-feed-section {
  padding-block: var(--space-8) var(--space-20);
}

.content-feed-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

.content-feed-main {
  min-width: 0;
}

.content-feed {
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

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

.feed-feature-post {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

.feed-feature-post:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.feed-feature-post__media {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 220px;
  background: var(--surface-alt);
}

.feed-feature-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feed-feature-post__img--placeholder {
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}

.feed-feature-post__cat {
  position: absolute;
  left: var(--space-4);
  bottom: var(--space-4);
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-blue);
  background: var(--blue-500);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.feed-feature-post__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-3);
}

.feed-feature-post__title {
  font-size: clamp(1.15rem, 2vw, 1.5rem);
  line-height: 1.3;
}

.feed-feature-post__title a:hover {
  color: var(--blue-600);
}

.feed-feature-post__excerpt {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.feed-feature-post__meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

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

.sidebar-panel.sidebar-panel--subscribe {
  background: linear-gradient(155deg, var(--ink-900), var(--ink-800));
  border-color: var(--on-dark-border);
}

.sidebar-panel--subscribe .sidebar-panel__heading {
  color: var(--blue-300);
  border-bottom-color: var(--on-dark-border);
}

.sidebar-panel__desc {
  font-size: 0.8125rem;
  color: var(--on-dark-muted);
  line-height: 1.6;
  margin-bottom: var(--space-4);
}

.sidebar-categories {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.sidebar-category-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-2);
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: background-color 0.15s, border-color 0.15s, transform 0.15s;
}

.sidebar-category-row:hover {
  background: var(--blue-50);
  border-color: var(--blue-200);
  transform: translateX(3px);
}

.sidebar-category-row__name {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
}

.sidebar-category-row:hover .sidebar-category-row__name {
  color: var(--blue-700);
}

.sidebar-category-row__count {
  flex-shrink: 0;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-faint);
  background: var(--surface-alt);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-full);
}

.sidebar-category-row:hover .sidebar-category-row__count {
  color: var(--blue-700);
  background: var(--blue-100);
}

.side-markets {
  display: flex;
  flex-direction: column;
}

.side-market-row {
  display: grid;
  grid-template-columns: 22px 1fr auto auto;
  align-items: center;
  gap: var(--space-2);
  padding-block: var(--space-2);
  border-bottom: 1px solid var(--border);
}

.side-market-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-market-row__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-600);
  font-size: 1rem;
}

.side-market-row__sym {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text);
}

.side-market-row__val {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text);
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.intel-row__pct {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.intel-row__pct--up {
  color: var(--green-500);
}

.intel-row__pct--down {
  color: var(--down-500);
}

/* ── 8. Home: Newsletter / Subscribe (light) ──────────────────────────── */
.subscribe-section {
  padding-block: var(--space-24);
  background: var(--bg);
}

.subscribe-panel {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-12);
  align-items: center;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-10);
  box-shadow: var(--shadow-md);
}

.subscribe-panel__title {
  font-size: clamp(1.65rem, 3vw, 2.35rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--space-4);
}

.subscribe-panel__sub {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 46ch;
  margin-bottom: var(--space-8);
}

.subscribe-panel__stats {
  display: flex;
  align-items: baseline;
  gap: var(--space-8);
  flex-wrap: wrap;
}

.subscribe-panel__stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.subscribe-panel__stat-val {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
}

.subscribe-panel__stat-label {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.subscribe-panel__form-box {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.subscribe-panel__form-head {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.subscribe-panel__form-icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
}

.subscribe-panel__form-icon .material-symbols-outlined {
  font-size: 1.3rem;
}

.subscribe-panel__form-copy {
  min-width: 0;
}

.subscribe-panel__form-title {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.subscribe-panel__form-desc {
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* Light-context overrides for the CF7 form (shared with the dark sidebar
   subscribe widget below — these win via the extra .subscribe-panel scope) */
.subscribe-panel .newsletter-form-shell .wpcf7-email {
  background: var(--bg);
  border: 1.5px solid var(--border-strong);
  color: var(--text);
}

.subscribe-panel .newsletter-form-shell .wpcf7-email:focus {
  border-color: var(--blue-500);
}

.subscribe-panel .newsletter-form-shell .form-privacy .wpcf7-list-item-label {
  color: var(--text-muted);
}

.subscribe-panel .newsletter-form-shell .wpcf7-list-item-label a {
  color: var(--blue-600);
}

.subscribe-panel .newsletter-form-shell .wpcf7-not-valid-tip {
  color: var(--red-500);
}

/* CF7 form shared by the sidebar subscribe widget and the newsletter panel */
.newsletter-form-shell .wpcf7-form p {
  margin: 0;
}

.newsletter-form-shell .hidden-fields-container {
  display: none;
}

.newsletter-form-shell .form-fields p {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 100%;
}

.newsletter-form-shell .form-fields p br {
  display: none;
}

.newsletter-form-shell .wpcf7-form-control-wrap {
  display: block;
}

.newsletter-form-shell .wpcf7-email {
  width: 100%;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1.5px solid transparent;
  color: var(--text);
  border-radius: var(--radius-full);
  padding: 0.9rem 1.5rem;
  transition: border-color 0.2s;
  -webkit-appearance: none;
}

.form-privacy {
  margin-top: 15px;
}

.newsletter-form-shell .wpcf7-email::placeholder {
  color: var(--text-faint);
}

.newsletter-form-shell .wpcf7-email:focus {
  outline: none;
  border-color: var(--blue-500);
}

.newsletter-form-shell .wpcf7-email.wpcf7-not-valid {
  border-color: var(--red-500);
}

.newsletter-form-shell .wpcf7-submit {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--blue-500);
  color: var(--on-blue);
  border-radius: var(--radius-full);
  border: none;
  cursor: pointer;
  padding: 0.9rem 1.5rem;
  width: 100%;
  transition: background-color 0.15s;
  position: relative;
}

.newsletter-form-shell .wpcf7-submit:hover {
  background: var(--blue-600);
}

.newsletter-form-shell .wpcf7-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.newsletter-form-shell .wpcf7-spinner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  margin: 0;
}

.newsletter-form-shell .wpcf7-not-valid-tip {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffb4b8;
  display: block;
  margin-top: 0.4rem;
}

.newsletter-form-shell .form-privacy .wpcf7-list-item-label {
  color: var(--on-dark-muted);
}

.newsletter-form-shell .wpcf7-list-item {
  display: block;
  margin: 0;
}

.newsletter-form-shell .wpcf7-list-item label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
  font-size: 0.8125rem;
  line-height: 1.55;
}

.newsletter-form-shell .wpcf7-list-item input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 0.2em;
  accent-color: var(--blue-500);
  cursor: pointer;
}

.newsletter-form-shell .wpcf7-list-item-label a {
  color: var(--blue-300);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.newsletter-form-shell .wpcf7-response-output {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-sm);
  border: none !important;
  margin: 0 !important;
  width: 100%;
  text-align: left;
}

.newsletter-form-shell .wpcf7-response-output[aria-hidden="true"] {
  display: none;
}

.newsletter-form-shell .wpcf7-form.sent .wpcf7-response-output {
  background: var(--green-100);
  color: #065f46;
}

.newsletter-form-shell .wpcf7-form.invalid .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.unaccepted .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.spam .wpcf7-response-output,
.newsletter-form-shell .wpcf7-form.failed .wpcf7-response-output {
  background: var(--red-100);
  color: #991b1b;
}

/* ── 9. Home: Why Read Us ─────────────────────────────────────────────── */
.why-us-section {
  padding-block: var(--space-24);
  background: var(--surface-alt);
}

.why-us-head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.why-us-head__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-top: var(--space-4);
}

.why-us-grid {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: var(--space-12);
  align-items: start;
}

.why-us-reasons {
  display: flex;
  flex-direction: column;
}

.reason-row {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.reason-row:first-child {
  padding-top: 0;
}

.reason-row:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.reason-row__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--blue-100);
  color: var(--blue-600);
}

.reason-row__icon .material-symbols-outlined {
  font-size: 1.15rem;
}

.reason-row__title {
  font-size: 1.0625rem;
  margin-bottom: var(--space-2);
}

.reason-row__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.why-us-checklist {
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-10);
  box-shadow: var(--shadow-sm);
}

.why-us-checklist__title {
  font-size: 1.3rem;
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-5);
  border-bottom: 1px solid var(--border-strong);
}

.tip-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.tip-list li {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: 1rem;
  color: var(--text);
  line-height: 1.55;
}

.tip-list .material-symbols-outlined {
  flex-shrink: 0;
  color: var(--blue-500);
  font-size: 1.25rem;
  margin-top: 0.05rem;
}

/* ── 10. Home: More From the Desk (dark) ──────────────────────────────── */
.desk-notes-section {
  position: relative;
  padding-block: var(--space-24);
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  overflow: hidden;
}

.desk-notes-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: repeating-linear-gradient(
    135deg,
    var(--on-dark-border) 0,
    var(--on-dark-border) 1px,
    transparent 1px,
    transparent 64px
  );
  opacity: 0.4;
  pointer-events: none;
}

.desk-notes-section .container {
  position: relative;
  z-index: 1;
}

.desk-notes-head {
  max-width: 640px;
  margin-bottom: var(--space-12);
}

.desk-notes-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: var(--space-8);
  align-items: stretch;
}

.desk-cover {
  position: relative;
  min-height: 480px;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-dark);
}

.desk-cover__media {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
}

.desk-cover__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.desk-cover:hover .desk-cover__img {
  transform: scale(1.04);
}

.desk-cover__img--placeholder {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--blue-700), var(--ink-800));
}

.desk-cover__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.15) 55%, transparent 100%);
}

.desk-cover__content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1;
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.desk-cover__cat {
  align-self: flex-start;
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--on-blue);
  background: var(--blue-500);
  padding: 0.4rem 0.9rem;
  border-radius: var(--radius-full);
}

.desk-cover__title {
  font-size: clamp(1.4rem, 2.6vw, 2rem);
  color: var(--on-dark);
  line-height: 1.2;
}

.desk-cover__meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
}

.desk-list {
  display: flex;
  flex-direction: column;
}

.desk-list-item {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  padding-block: var(--space-5);
  border-bottom: 1px solid var(--on-dark-border);
  transition: padding-left 0.2s ease;
}

.desk-list-item:first-child {
  padding-top: 0;
}

.desk-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.desk-list-item:hover {
  padding-left: var(--space-2);
}

.desk-list-item__index {
  flex-shrink: 0;
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--blue-300);
  opacity: 0.55;
}

.desk-list-item__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.desk-list-item__cat {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-300);
}

.desk-list-item__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.35;
  color: var(--on-dark);
  transition: color 0.15s;
}

.desk-list-item:hover .desk-list-item__title {
  color: var(--blue-300);
}

.desk-list-item__meta {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--on-dark-muted);
}

.desk-list-item__arrow {
  flex-shrink: 0;
  color: var(--on-dark-muted);
  transition: transform 0.2s, color 0.2s;
}

.desk-list-item:hover .desk-list-item__arrow {
  color: var(--blue-300);
  transform: translateX(3px);
}

.no-posts--dark {
  color: var(--on-dark-muted);
}

/* ── 11. Shared: Post Grid / Post Tile ────────────────────────────────── */
.post-grid {
  display: grid;
  gap: var(--space-6);
}

.post-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

.post-tile {
  display: flex;
  flex-direction: column;
  background: var(--surface-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.2s, transform 0.2s;
}

.post-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.post-tile__thumb-link {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--surface-alt);
}

.post-tile__thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.post-tile__thumb-link:hover .post-tile__thumb {
  transform: scale(1.05);
}

.post-tile__body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  flex: 1;
}

.post-tile__chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.post-tile__title {
  font-size: 1.0625rem;
  line-height: 1.35;
  color: var(--text);
}

.post-tile__title a:hover {
  color: var(--blue-600);
}

.post-tile__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
}

.post-tile__meta {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: auto;
}

/* ── 12. Archive Page ──────────────────────────────────────────────────── */
.archive-main {
  padding-top: var(--content-offset);
  padding-bottom: var(--space-20);
  background: var(--bg);
  min-height: 100vh;
}

.archive-header {
  padding-bottom: var(--space-8);
  margin-bottom: var(--space-10);
  max-width: 720px;
  border-bottom: 1px solid var(--border);
}

.archive-header__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.archive-header__icon {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-600);
}

.archive-header__icon .material-symbols-outlined {
  font-size: 1.05rem;
}

.archive-header__kicker {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
}

.archive-header__count {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-faint);
  padding-left: var(--space-3);
  border-left: 1px solid var(--border-strong);
}

.archive-header__title {
  font-size: clamp(1.5rem, 3.4vw, 2.15rem);
  color: var(--text);
  line-height: 1.2;
  margin-bottom: var(--space-3);
}

.archive-header__desc {
  font-size: 0.9375rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 540px;
}

.archive-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--space-12);
  align-items: start;
}

.archive-main-col {
  min-width: 0;
}

.archive-main-col .feed-feature-post {
  margin-bottom: var(--space-10);
}

.archive-list {
  display: flex;
  flex-direction: column;
}

.archive-list-item {
  display: flex;
  gap: var(--space-5);
  padding-block: var(--space-6);
  border-bottom: 1px solid var(--border);
}

.archive-list-item:first-child {
  padding-top: 0;
}

.archive-list-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.archive-list-item__thumb {
  flex-shrink: 0;
  display: block;
  width: 160px;
  height: 110px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface-alt);
}

.archive-list-item__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.archive-list-item__img--placeholder {
  display: block;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}

.archive-list-item__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.archive-list-item__title {
  font-size: 1.1rem;
  line-height: 1.3;
  color: var(--text);
}

.archive-list-item__title a:hover {
  color: var(--blue-600);
}

.archive-list-item__excerpt {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.archive-list-item__meta {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-top: auto;
}

/* ── 13. Pagination ────────────────────────────────────────────────────── */
.pagination {
  margin-top: var(--space-12);
}

.pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.pagination .page-numbers {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 700;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-full);
  color: var(--text);
  background: var(--surface-alt);
  transition: background-color 0.15s, color 0.15s;
  text-decoration: none;
}

.pagination .page-numbers:hover {
  background: var(--blue-50);
  color: var(--blue-700);
}

.pagination .page-numbers.current {
  background: var(--blue-500);
  color: var(--on-blue);
  pointer-events: none;
}

.pagination .prev,
.pagination .next {
  width: auto;
  padding: 0 var(--space-5);
  font-weight: 700;
}

/* ── 14. Single Post ──────────────────────────────────────────────────── */
.single-main {
  padding-top: var(--content-offset);
  background: var(--bg);
  min-height: 100vh;
}

.single-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: var(--space-16);
  align-items: start;
  padding-bottom: var(--space-16);
}

.single-main-col {
  min-width: 0;
}

.single-article {
  max-width: 100%;
}

.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background: var(--blue-500);
  z-index: 300;
  transition: width 0.05s linear;
}

.article-header {
  margin-bottom: var(--space-8);
}

.article-header__chips {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.article-header__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text);
  line-height: 1.18;
  margin-bottom: var(--space-5);
}

.article-header__meta {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.article-hero {
  margin-bottom: var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.article-hero__img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.article-hero__caption {
  font-family: var(--font-body);
  font-size: 0.8125rem;
  color: var(--text-faint);
  padding: var(--space-3) 0;
}

.article-content {
  font-size: 1.0625rem;
  line-height: 1.78;
  color: var(--text);
}

.article-content p {
  margin-bottom: var(--space-6);
}
.article-content h2 {
  margin-top: var(--space-10);
  margin-bottom: var(--space-4);
  font-size: 1.6rem;
}
.article-content h3 {
  margin-top: var(--space-8);
  margin-bottom: var(--space-3);
  font-size: 1.3rem;
}
.article-content h4 {
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
  font-size: 1.1rem;
}

.article-content a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.article-content a:hover {
  color: var(--blue-700);
}

.article-content blockquote {
  border-left: 3px solid var(--red-500);
  padding-left: var(--space-6);
  margin-block: var(--space-8);
  font-size: 1.2rem;
  color: var(--text-muted);
  font-style: italic;
}

.article-content ul,
.article-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-6);
  list-style: disc;
}

.article-content ol {
  list-style: decimal;
}
.article-content li {
  margin-bottom: var(--space-2);
}

.article-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.article-nav__label {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--blue-600);
  display: block;
  margin-bottom: var(--space-2);
}

.article-nav__link {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
  transition: color 0.15s;
}

.article-nav__link:hover {
  color: var(--blue-600);
}

.article-nav__next {
  text-align: right;
}

.related-posts {
  margin-top: var(--space-12);
  padding-top: var(--space-8);
  border-top: 1px solid var(--border);
}

.related-posts__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-8);
}

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

.sidebar-panel {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
}

.sidebar-panel__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border-strong);
}

.side-article {
  padding-block: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.side-article:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.side-article__title {
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 4px;
  color: var(--text);
}

.side-article__title a:hover {
  color: var(--blue-600);
}

.side-article__time {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── 15. Static Page Template ──────────────────────────────────────────── */
.page-main {
  padding-top: var(--content-offset);
  background: var(--bg);
  min-height: 82vh;
}

.static-page {
  padding-bottom: var(--space-24);
}

.page-header {
  margin-bottom: var(--space-10);
  padding-bottom: var(--space-8);
  border-bottom: 1px solid var(--border);
}

.page-header__title {
  font-size: clamp(2rem, 5vw, 3.25rem);
  color: var(--text);
  line-height: 1.1;
  margin: 0 0 var(--space-3);
}

.page-hero {
  margin: 0 0 var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 7;
}

.page-hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.page-content {
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text);
}

.page-content > * + * {
  margin-top: 1.5em;
}

.page-content h2,
.page-content h3,
.page-content h4 {
  color: var(--text);
  line-height: 1.25;
  margin-top: 2.5em;
  margin-bottom: 0.5em;
}

.page-content h2 {
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
}
.page-content h3 {
  font-size: clamp(1.1rem, 2vw, 1.35rem);
}
.page-content h4 {
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.page-content a {
  color: var(--blue-600);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-content a:hover {
  color: var(--blue-700);
}

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

.page-content ul {
  list-style: disc;
}

.page-content ol {
  list-style: decimal;
}

.page-content li + li {
  margin-top: 0.4em;
}

.page-content blockquote {
  border-left: 3px solid var(--blue-500);
  margin-left: 0;
  padding: var(--space-4) var(--space-6);
  background: var(--surface-alt);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  color: var(--text-muted);
}

.page-content pre {
  background: var(--ink-900);
  color: var(--on-dark);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  overflow-x: auto;
  font-size: 0.875rem;
  line-height: 1.6;
}

.page-content code {
  font-size: 0.875em;
  background: var(--surface-alt);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.page-content pre code {
  background: none;
  padding: 0;
  color: inherit;
}

.page-content img {
  max-width: 100%;
  border-radius: var(--radius-sm);
}

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

.page-content table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

.page-content th,
.page-content td {
  text-align: left;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.page-content th {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
}

/* ── 16. 404 Page ──────────────────────────────────────────────────────── */
.error-main {
  padding-top: var(--content-offset);
  background: var(--bg);
  min-height: 100svh;
  display: flex;
  align-items: center;
}

.error-page {
  text-align: center;
  padding-block: var(--space-20);
  max-width: 600px;
  margin-inline: auto;
}

.error-page__code {
  font-size: clamp(5rem, 15vw, 9rem);
  font-weight: 800;
  color: var(--border-strong);
  line-height: 1;
  margin-bottom: var(--space-4);
  letter-spacing: -0.03em;
  pointer-events: none;
  user-select: none;
}

.error-page__title {
  font-size: clamp(1.75rem, 4vw, 2.75rem);
  color: var(--text);
  margin-bottom: var(--space-5);
  line-height: 1.2;
}

.error-page__desc {
  font-size: 1.0625rem;
  color: var(--text-muted);
  max-width: 460px;
  margin-inline: auto;
  line-height: 1.7;
  margin-bottom: var(--space-10);
}

.error-page__actions {
  margin-bottom: var(--space-16);
  display: flex;
  justify-content: center;
}

.error-recent {
  text-align: left;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  margin-top: var(--space-6);
}

.error-recent__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-600);
  margin-bottom: var(--space-5);
}

.error-recent__list {
  display: flex;
  flex-direction: column;
}

.error-recent__list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--border);
}

.error-recent__list li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.error-recent__list a {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
}

.error-recent__list a:hover {
  color: var(--blue-600);
}

.error-recent__list time {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-faint);
  flex-shrink: 0;
}

/* ── 17. Footer (dark, full-width, 3-column) ──────────────────────────── */
.site-footer {
  width: 100%;
  background: linear-gradient(180deg, var(--ink-900), var(--ink-950));
  border-top: 1px solid var(--on-dark-border);
  padding-block: var(--space-16) var(--space-8);
}

.footer-inner {
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--space-8);
  display: flex;
  flex-direction: column;
  gap: var(--space-12);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr 1fr;
  gap: var(--space-10);
}

.footer-col--brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-col__desc {
  font-size: 0.875rem;
  color: var(--on-dark-muted);
  line-height: 1.6;
  max-width: 32ch;
}

.footer-col__heading {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--blue-300);
  margin-bottom: var(--space-5);
}

.footer-brand-logo {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--on-dark);
  text-decoration: none;
  letter-spacing: -0.02em;
  display: flex;
  align-items: center;
  line-height: 1;
}

.footer-brand-logo::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--red-500);
  margin-right: 0.55rem;
}

.footer-brand-logo:hover {
  color: var(--on-dark);
}

.footer-inner .custom-logo {
  max-height: 44px;
  width: auto;
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
}

.footer-logo-img {
  max-height: 44px;
  width: auto;
}

.footer-posts {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-post {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.footer-post__thumb {
  flex-shrink: 0;
  display: block;
  width: 72px;
  height: 52px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--on-dark-surface-hi);
}

.footer-post__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.footer-post__img--placeholder {
  background: linear-gradient(135deg, var(--blue-700), var(--ink-800));
}

.footer-post__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.footer-post__title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--on-dark-muted);
  line-height: 1.4;
  transition: color 0.15s;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.footer-post__title:hover {
  color: var(--on-dark);
}

.footer-post__meta {
  font-family: var(--font-body);
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--on-dark-muted);
  opacity: 0.7;
}

.footer-nav .footer-col__list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-nav .footer-col__list a {
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--on-dark-muted);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-nav .footer-col__list a:hover {
  color: var(--on-dark);
}

.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}

.footer-divider {
  width: 100%;
  max-width: 480px;
  height: 1px;
  background: var(--on-dark-border);
}

.footer-copy {
  font-family: var(--font-body);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--on-dark-muted);
}

/* ── 18. Utility ───────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
  vertical-align: middle;
  font-style: normal;
  line-height: 1;
}

/* ── 19. Responsive ────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .blog-hero__feature {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .blog-hero__media {
    height: auto;
    aspect-ratio: 16 / 9;
  }
  .hero-latest-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .hero-latest-card:nth-child(-n+3) {
    grid-column: span 2;
  }
  .hero-latest-card:nth-child(n+4) {
    grid-column: span 3;
  }
  .content-feed-grid {
    grid-template-columns: 1fr;
  }
  .archive-layout {
    grid-template-columns: 1fr;
  }
  .why-us-grid {
    grid-template-columns: 1fr;
  }
  .subscribe-panel {
    grid-template-columns: 1fr;
  }
  .desk-notes-grid {
    grid-template-columns: 1fr;
  }
  .desk-cover,
  .desk-cover__media {
    min-height: 320px;
  }
  .home .sidebar-panel--subscribe {
    display: none;
  }
}

@media (max-width: 900px) {
  .single-layout {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }
  .feed-pair-grid {
    grid-template-columns: 1fr;
  }
  .feed-feature-post {
    grid-template-columns: 1fr;
  }
  .feed-feature-post__media {
    min-height: 200px;
  }
  .post-grid--3 {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-col--brand {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  :root {
    --content-offset: 118px;
    --header-h: 62px;
    --header-gap: 0.75rem;
  }

  .container {
    padding-inline: var(--space-5);
  }

  .nav-inner {
    padding-inline: var(--space-4);
  }

  .post-grid--3 {
    grid-template-columns: 1fr;
  }
  .archive-list-item {
    flex-direction: column;
    gap: var(--space-3);
  }
  .archive-list-item__thumb {
    width: 100%;
    height: 160px;
  }
  .article-nav {
    grid-template-columns: 1fr;
  }
  .article-nav__next {
    text-align: left;
  }
  .blog-hero__body {
    padding: var(--space-6);
  }
  .hero-latest-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
  }
  .hero-latest-card {
    flex-direction: row;
    align-items: center;
    padding: var(--space-3);
    gap: var(--space-4);
  }
  .hero-latest-card__media {
    flex-shrink: 0;
    width: 88px;
    height: 88px;
    aspect-ratio: auto;
    border-radius: var(--radius);
  }
  .hero-latest-card__cat {
    display: none;
  }
  .hero-latest-card__body {
    padding: 0;
  }
  .feed-feature-post__body {
    padding: var(--space-5);
  }
  .site-footer {
    padding-block: var(--space-10) var(--space-6);
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .footer-col--brand {
    grid-column: auto;
  }
  .subscribe-panel {
    padding: var(--space-8) var(--space-5);
  }
  .why-us-checklist {
    padding: var(--space-6);
  }
  .desk-cover,
  .desk-cover__media {
    min-height: 260px;
  }
  .desk-cover__content {
    padding: var(--space-5);
  }
  .desk-list-item__index {
    font-size: 1.15rem;
  }
}
