/* Self-contained on purpose -- doesn't rely on theme.json's global-styles
   pipeline (--wp--preset--* custom properties, registered @font-face)
   since that visibly isn't running under Blocksy the way it does on a
   default/block theme. Same hex values and font files as theme.json,
   just declared directly here so this stylesheet works regardless. */

@font-face {
  font-family: 'Fraunces';
  src: url('../fonts/fraunces-variable.woff2') format('woff2');
  font-weight: 500 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Inter';
  src: url('../fonts/inter-variable.woff2') format('woff2');
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'IBM Plex Mono';
  src: url('../fonts/plex-mono-500.woff2') format('woff2');
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

:root {
  --acs-ink: #14213D;
  --acs-ledger-blue: #2F5D8A;
  --acs-signal-gold: #C9973A;
  --acs-paper: #F5F6F8;
  --acs-slate: #46536B;
  --acs-divider: #DBE1EA;
  --acs-white: #FFFFFF;
  --acs-font-display: "Fraunces", ui-serif, Georgia, serif;
  --acs-font-body: "Inter", ui-sans-serif, system-ui, sans-serif;
  --acs-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* .acs-post-wrap is the single width/padding boundary for the whole
   template -- breadcrumb, title, and the 3-column row below all sit
   inside it. Without this, only .acs-post-layout had a max-width, so the
   breadcrumb+title ran full viewport width above it. */
.acs-post-wrap { max-width: 1200px; margin: 0 auto; padding: 40px 24px; }

.acs-breadcrumb { font-family: var(--acs-font-body); font-size: 0.875rem; color: var(--acs-slate); margin-bottom: 16px; }
.acs-breadcrumb a { color: var(--acs-ledger-blue); text-decoration: none; }
.acs-breadcrumb a:hover { text-decoration: underline; }
.acs-post-title { font-family: var(--acs-font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.75rem); line-height: 1.15; color: var(--acs-ink); margin: 0 0 32px; }

.acs-post-layout { display: flex; gap: 40px; align-items: flex-start; }
.acs-toc { flex: 0 0 220px; position: sticky; top: 24px; align-self: flex-start; font-family: var(--acs-font-body); font-size: 0.875rem; }
.acs-toc__title { font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--acs-slate); margin-bottom: 8px; }
.acs-toc__list { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--acs-divider); }
.acs-toc__list a { display: block; padding: 6px 0 6px 14px; color: var(--acs-slate); text-decoration: none; border-left: 2px solid transparent; margin-left: -2px; }
.acs-toc__list a.is-active { color: var(--acs-ink); border-left-color: var(--acs-signal-gold); font-weight: 600; }

.acs-post-body { flex: 1 1 auto; min-width: 0; font-family: var(--acs-font-body); line-height: 1.7; color: var(--acs-ink); }
.acs-post-featured-image { width: 100%; height: auto; border-radius: 12px; margin-bottom: 24px; }
.acs-post-body h2 { font-family: var(--acs-font-display); font-weight: 600; margin-top: 40px; }

.acs-post-sidebar { flex: 0 0 260px; }
.acs-sidebar-cta { background: var(--acs-ink); border-radius: 12px; padding: 28px 24px; }
.acs-sidebar-cta__eyebrow { font-family: var(--acs-font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--acs-paper); margin: 0 0 8px; }
.acs-sidebar-cta__title { font-family: var(--acs-font-display); font-weight: 600; color: var(--acs-paper); font-size: 1.25rem; margin: 0 0 16px; }
.acs-sidebar-cta__btn { display: inline-block; background: var(--acs-signal-gold); color: var(--acs-ink); font-family: var(--acs-font-body); font-weight: 600; padding: 12px 22px; border-radius: 6px; text-decoration: none; }

@media (max-width: 900px) {
  .acs-post-layout { flex-direction: column; }
  .acs-toc { display: none; }
  .acs-post-sidebar { flex-basis: auto; width: 100%; }
}

.acs-archive-masthead { background: var(--acs-ink); padding: 64px 24px; text-align: center; }
.acs-archive-masthead__kicker { font-family: var(--acs-font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--acs-signal-gold); margin: 0 0 12px; }
.acs-archive-masthead__title { font-family: var(--acs-font-display); font-weight: 600; font-size: clamp(2rem, 4vw, 2.75rem); color: var(--acs-paper); margin: 0; }
.acs-pillbar { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 24px; }
.acs-pill { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.25); color: var(--acs-paper); text-decoration: none; font-family: var(--acs-font-body); font-size: 0.875rem; }
.acs-pill.is-active { background: var(--acs-signal-gold); border-color: var(--acs-signal-gold); color: var(--acs-ink); font-weight: 600; }
.acs-pill__count { opacity: 0.7; font-size: 0.8em; }

.acs-archive-main { max-width: 1200px; margin: 0 auto; padding: 48px 24px; }
.acs-archive-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.acs-post-card { border: 1px solid var(--acs-divider); border-radius: 12px; overflow: hidden; }
.acs-post-card__cover { display: block; aspect-ratio: 4 / 3; background: var(--acs-paper); }
.acs-post-card__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acs-post-card__body { padding: 18px 20px 22px; }
.acs-post-card__cat { font-family: var(--acs-font-mono); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--acs-signal-gold); margin: 0 0 8px; }
.acs-post-card__title { font-family: var(--acs-font-display); font-weight: 600; font-size: 1.25rem; margin: 0 0 10px; }
.acs-post-card__title a { color: var(--acs-ink); text-decoration: none; }
.acs-post-card__excerpt { font-family: var(--acs-font-body); color: var(--acs-slate); font-size: 0.9375rem; line-height: 1.6; margin: 0 0 12px; }
.acs-post-card__meta { font-family: var(--acs-font-body); color: var(--acs-slate); font-size: 0.8125rem; margin: 0; }
.acs-archive-pagination { text-align: center; margin-top: 40px; }
.acs-archive-empty { text-align: center; color: var(--acs-slate); padding: 60px 0; }

@media (max-width: 900px) {
  .acs-archive-grid { grid-template-columns: 1fr; }
}
