/*
Theme Name: Bootstrap Mafia Dispatch
Theme URI: https://dispatch.bootstrap-mafia.com/
Author: Bootstrap Mafia
Author URI: https://bootstrap-mafia.com/
Description: A black and gold publication theme foundation for Bootstrap Mafia Dispatch.
Version: 0.1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bootstrap-mafia-dispatch
Tags: blog, news, entertainment, custom-menu, featured-images
*/

:root {
  --bam-black: #000000;
  --bam-gold: #D29E2F;
  --bam-cream: #D4D0C7;
  --bam-charcoal: #403E39;
  --bam-deep: #010001;
  --bam-surface: #0a0908;
  --bam-surface-raised: #131210;
  --bam-border: #2a2823;
  --bam-muted: #8a8680;
  --bam-gold-dim: #9e7520;
  --bam-max-width: 1120px;
  --bam-content-width: 720px;
}

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

html {
  background: var(--bam-black);
  color: var(--bam-cream);
  font-size: 16px;
  line-height: 1.55;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(210, 158, 47, 0.07), transparent 18rem),
    var(--bam-black);
  color: var(--bam-cream);
  font-family: "Space Grotesk", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
}

body.admin-bar .site-header {
  top: 32px;
}

a {
  color: var(--bam-gold);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.22em;
}

a:hover,
a:focus {
  color: #f0c84e;
}

img,
svg,
video,
iframe {
  display: block;
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

::selection {
  background: var(--bam-gold);
  color: var(--bam-black);
}

.skip-link {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100;
  transform: translateY(-150%);
  background: var(--bam-gold);
  color: var(--bam-black);
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  padding: 0.75rem 1rem;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid var(--bam-cream);
  outline-offset: 2px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(1, 0, 1, 0.96);
  border-bottom: 1px solid var(--bam-border);
  box-shadow: 0 1px 0 rgba(210, 158, 47, 0.12);
}

.site-header::after,
.site-footer__ticker {
  background: linear-gradient(90deg, transparent, var(--bam-gold), transparent);
}

.site-header::after {
  content: "";
  display: block;
  height: 1px;
  opacity: 0.35;
}

.site-header__inner,
.site-footer__inner,
.site-main {
  width: min(calc(100% - 2rem), var(--bam-max-width));
  margin-inline: auto;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 1.5rem;
}

.site-branding {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--bam-cream);
  text-decoration: none;
}

.site-branding__mark {
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(210, 158, 47, 0.55);
  color: var(--bam-gold);
  font-family: "Space Mono", "Courier New", monospace;
  font-size: 1rem;
  font-weight: 700;
}

.site-branding__name,
.site-footer__brand,
.site-nav a,
.fallback-nav a,
.post-card__meta,
.entry-meta,
.site-footer a,
.site-footer__meta {
  font-family: "Space Mono", "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-branding__name {
  display: grid;
  gap: 0.1rem;
  font-size: 0.7rem;
  line-height: 1.1;
}

.site-branding__name span:first-child {
  color: var(--bam-gold);
}

.site-nav ul,
.fallback-nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.site-nav a,
.fallback-nav a {
  color: rgba(212, 208, 199, 0.72);
  font-size: 0.72rem;
  text-decoration: none;
}

.site-nav a:hover,
.site-nav a:focus,
.fallback-nav a:hover,
.fallback-nav a:focus {
  color: var(--bam-cream);
}

.site-main {
  padding-block: clamp(2.5rem, 5.5vw, 4.75rem);
}

.dispatch-hero {
  max-width: 800px;
  margin-bottom: clamp(2.25rem, 5.5vw, 4rem);
  border-bottom: 1px solid var(--bam-border);
  padding-bottom: clamp(1.75rem, 4vw, 2.75rem);
}

.dispatch-hero__eyebrow,
.section-header h2,
.nav-links,
.page-links,
.empty-state__link {
  font-family: "Space Mono", "Courier New", monospace;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.dispatch-hero__eyebrow {
  margin-bottom: 0.85rem;
  color: var(--bam-gold);
  font-size: 0.72rem;
}

.dispatch-hero__title {
  max-width: 13ch;
  margin: 0;
  color: var(--bam-cream);
  font-size: clamp(3rem, 8.5vw, 6.4rem);
  line-height: 0.94;
}

.dispatch-hero__dek {
  max-width: 36rem;
  margin: 1.25rem 0 0;
  color: rgba(212, 208, 199, 0.76);
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.6;
}

.page-header,
.archive-header {
  max-width: var(--bam-content-width);
  margin-bottom: clamp(2rem, 5vw, 4rem);
  border-bottom: 1px solid var(--bam-border);
  padding-bottom: 1.5rem;
}

.page-title,
.archive-title,
.entry-title {
  margin: 0 0 1rem;
  color: var(--bam-cream);
  font-size: clamp(2.2rem, 5.8vw, 4.35rem);
  line-height: 1;
  letter-spacing: 0;
}

.entry-title a {
  color: inherit;
  text-decoration: none;
}

.entry-title a:hover,
.entry-title a:focus {
  color: var(--bam-gold);
}

.archive-description,
.entry-summary,
.entry-content {
  color: rgba(212, 208, 199, 0.78);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.15rem;
}

.latest-dispatches {
  display: grid;
  gap: 1.15rem;
}

.section-header {
  border-bottom: 1px solid var(--bam-border);
  padding-bottom: 0.8rem;
}

.section-header h2 {
  margin: 0;
  color: var(--bam-gold);
  font-size: 0.78rem;
}

.post-card,
.hentry {
  border: 1px solid var(--bam-border);
  background: var(--bam-surface);
}

.post-card {
  display: grid;
  min-height: 100%;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.post-card:hover,
.post-card:focus-within {
  border-color: rgba(210, 158, 47, 0.75);
  box-shadow: 0 0 22px rgba(210, 158, 47, 0.1);
  transform: translateY(-2px);
}

.post-card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bam-deep);
}

.post-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card__body,
.entry-content,
.entry-footer {
  padding: clamp(1.1rem, 2.4vw, 1.45rem);
}

.post-card__meta,
.entry-meta {
  margin-bottom: 0.85rem;
  color: rgba(210, 158, 47, 0.72);
  font-size: 0.68rem;
  line-height: 1.55;
}

.post-card__meta a,
.entry-meta a {
  color: var(--bam-gold);
  text-decoration: none;
}

.post-card__meta a:hover,
.post-card__meta a:focus,
.entry-meta a:hover,
.entry-meta a:focus {
  color: var(--bam-cream);
}

.post-card__taxonomy,
.entry-taxonomy {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.post-card__title {
  margin: 0 0 0.9rem;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  line-height: 1.12;
}

.post-card__excerpt,
.entry-content p,
.entry-summary p {
  line-height: 1.7;
}

.post-card__excerpt {
  color: rgba(212, 208, 199, 0.84);
  font-size: 0.98rem;
}

.post-card__excerpt p {
  margin-block: 0;
}

.post-card__tags,
.entry-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.3rem;
}

.entry-tags {
  margin-top: 1.5rem;
}

.post-card__tags a,
.entry-tags a {
  border: 1px solid rgba(210, 158, 47, 0.35);
  color: var(--bam-gold);
  padding: 0.3rem 0.5rem;
  text-decoration: none;
}

.post-card__tags a:hover,
.post-card__tags a:focus,
.entry-tags a:hover,
.entry-tags a:focus {
  border-color: var(--bam-gold);
  color: var(--bam-cream);
}

.hentry {
  max-width: var(--bam-content-width);
  margin-inline: auto;
}

.entry-header {
  padding: clamp(1.35rem, 2.8vw, 1.85rem) clamp(1.1rem, 2.4vw, 1.45rem) 0;
}

.entry-featured-image {
  margin-top: clamp(1rem, 3vw, 2rem);
}

.entry-featured-image img {
  width: 100%;
  height: auto;
}

.entry-content > *:first-child {
  margin-top: 0;
}

.entry-content > *:last-child {
  margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  color: var(--bam-cream);
  line-height: 1.1;
}

.entry-content {
  font-size: clamp(1rem, 1.15vw, 1.08rem);
}

.entry-content h2 {
  margin-top: 1.8rem;
  margin-bottom: 0.65rem;
  font-size: clamp(1.55rem, 2.4vw, 2rem);
}

.entry-content h3 {
  margin-top: 1.55rem;
  margin-bottom: 0.55rem;
  font-size: clamp(1.25rem, 1.8vw, 1.55rem);
}

.entry-content blockquote {
  margin: 2rem 0;
  border-left: 2px solid var(--bam-gold);
  padding-left: 1rem;
  color: var(--bam-cream);
}

.entry-content code,
.entry-content pre {
  background: var(--bam-deep);
  color: var(--bam-cream);
  font-family: "Space Mono", "Courier New", monospace;
}

.entry-content pre {
  overflow-x: auto;
  padding: 1rem;
}

.entry-footer {
  border-top: 1px solid var(--bam-border);
}

.pagination,
.posts-navigation,
.post-navigation {
  margin-top: clamp(2rem, 5vw, 3.5rem);
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-size: 0.72rem;
}

.nav-links a,
.nav-links .current,
.page-links a,
.page-links .current,
.empty-state__link {
  border: 1px solid var(--bam-border);
  padding: 0.7rem 0.9rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a:focus,
.page-links a:hover,
.page-links a:focus,
.empty-state__link:hover,
.empty-state__link:focus {
  border-color: var(--bam-gold);
  color: var(--bam-cream);
}

.nav-links .current,
.page-links .current {
  background: var(--bam-gold);
  border-color: var(--bam-gold);
  color: var(--bam-black);
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 2rem;
  font-size: 0.72rem;
}

.empty-state {
  max-width: var(--bam-content-width);
  border: 1px solid var(--bam-border);
  background: var(--bam-surface);
  padding: clamp(1.5rem, 4vw, 2.5rem);
}

.empty-state h1,
.empty-state h2 {
  margin: 0 0 0.75rem;
  color: var(--bam-cream);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 0.98;
}

.empty-state p {
  max-width: 34rem;
  color: rgba(212, 208, 199, 0.72);
}

.empty-state__link {
  display: inline-flex;
  margin-top: 0.75rem;
  color: var(--bam-gold);
  font-size: 0.72rem;
}

.site-footer {
  margin-top: clamp(3rem, 6vw, 5.5rem);
  border-top: 1px solid var(--bam-border);
  background: var(--bam-deep);
}

.site-footer__ticker {
  height: 2px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 2rem;
  padding-block: clamp(2rem, 5vw, 4rem);
}

.site-footer__brand {
  color: var(--bam-gold);
  font-size: 0.78rem;
}

.site-footer p {
  max-width: 34rem;
  color: rgba(212, 208, 199, 0.58);
}

.site-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.9rem 1.2rem;
}

.site-footer a {
  color: rgba(212, 208, 199, 0.62);
  font-size: 0.72rem;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer a:focus {
  color: var(--bam-gold);
}

.site-footer__meta {
  grid-column: 1 / -1;
  border-top: 1px solid var(--bam-border);
  padding-top: 1.2rem;
  color: rgba(212, 208, 199, 0.36);
  font-size: 0.68rem;
}

@media (max-width: 782px) {
  body.admin-bar .site-header {
    top: 46px;
  }
}

@media (max-width: 900px) {
  .site-header__inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    padding-block: 1rem;
  }

  .site-nav ul,
  .fallback-nav {
    flex-wrap: wrap;
    gap: 0.8rem 1rem;
  }

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

  .site-footer__inner {
    grid-template-columns: 1fr;
  }

  .site-footer__links {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .site-header__inner,
  .site-footer__inner,
  .site-main {
    width: min(calc(100% - 1.25rem), var(--bam-max-width));
  }

  .post-grid {
    grid-template-columns: 1fr;
  }

  .page-title,
  .archive-title,
  .entry-title {
    font-size: clamp(2rem, 11vw, 3.1rem);
  }

  .dispatch-hero__title {
    font-size: clamp(2.75rem, 13vw, 4rem);
  }
}
