/*
Theme Name: Metal and Hockey
Theme URI: https://example.com/metal-and-hockey
Author: Metal and Hockey
Author URI: https://example.com
Description: A dark editorial WordPress theme for metal music, hockey, concert reviews, interviews, and embedded video posts.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.6
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: metal-hockey
*/

:root {
  --mh-bg: #08070d;
  --mh-panel: #12101a;
  --mh-panel-2: #181222;
  --mh-text: #f7f3ff;
  --mh-muted: #b8aec9;
  --mh-purple: #8b5cf6;
  --mh-purple-2: #c084fc;
  --mh-line: rgba(255, 255, 255, 0.12);
  --mh-red: #ff3d5a;
  --mh-max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--mh-bg);
}

body {
  margin: 0;
  color: var(--mh-text);
  background: var(--mh-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

.site-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: transparent;
}

.header-inner,
.container {
  width: min(var(--mh-max), calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  display: flex;
  min-height: 72px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  overflow: hidden;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(9, 7, 13, 0.46);
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  content: "";
  transition: transform 220ms ease, opacity 220ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before,
.menu-toggle-lines::after {
  position: absolute;
  left: 0;
}

.menu-toggle-lines::before {
  top: -6px;
}

.menu-toggle-lines::after {
  top: 6px;
}

.menu-open .menu-toggle-lines {
  transform: rotate(45deg);
}

.menu-open .menu-toggle-lines::before {
  opacity: 0;
}

.menu-open .menu-toggle-lines::after {
  transform: translateY(-6px) rotate(-90deg);
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: var(--mh-muted);
  font-size: 0.86rem;
  font-weight: 720;
}

.primary-menu,
.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav li {
  margin: 0;
}

.primary-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  overflow: hidden;
  padding: 8px 12px;
  border-radius: 999px;
  color: rgba(247, 243, 255, 0.72);
  transition: color 220ms ease, transform 220ms ease;
}

.primary-nav a::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(139, 92, 246, 0.18);
  border-radius: inherit;
  content: "";
  opacity: 0;
  transform: scale(0.86);
  transition: opacity 220ms ease, transform 220ms ease;
}

.primary-nav a::after {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 5px;
  height: 2px;
  background: var(--mh-purple-2);
  border-radius: 999px;
  content: "";
  opacity: 0;
  transform: scaleX(0);
  transform-origin: center;
  transition: opacity 220ms ease, transform 220ms ease;
}

.primary-nav a:hover,
.primary-nav .current-menu-item > a {
  color: var(--mh-text);
  transform: translateY(-1px);
}

.primary-nav a:hover::before,
.primary-nav .current-menu-item > a::before {
  opacity: 1;
  transform: scale(1);
}

.primary-nav a:hover::after,
.primary-nav .current-menu-item > a::after {
  opacity: 1;
  transform: scaleX(1);
}

.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  padding: 124px 0 80px;
  overflow: hidden;
  background-image:
    linear-gradient(90deg, rgba(8, 7, 13, 0.9), rgba(8, 7, 13, 0.68)),
    var(--mh-hero-image);
  background-position: center;
  background-size: cover;
}

.hero-grid {
  position: relative;
  display: grid;
  min-height: calc(100vh - 204px);
  min-height: calc(100svh - 204px);
  align-items: center;
}

.hero-info {
  width: min(100%, 760px);
  margin: 0 auto;
  text-align: center;
}

.hero-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.2em 0.34em;
  margin: 0 auto;
  max-width: 18ch;
  color: #fff;
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.96;
  text-transform: none;
}

.hero-title span {
  display: inline-block;
  opacity: 0;
  transform: translateY(22px);
  animation: hero-word-in 700ms cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}

.hero-title span:nth-child(2) {
  color: #a855f7;
  animation-delay: 140ms;
}

.hero-title span:nth-child(3) {
  animation-delay: 280ms;
}

.hero-info p {
  animation: hero-copy-in 720ms ease forwards;
  animation-delay: 460ms;
  opacity: 0;
  transform: translateY(12px);
}

.hero-info p {
  max-width: 660px;
  margin: 22px auto 0;
  color: rgba(247, 243, 255, 0.7);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 650;
  line-height: 1.55;
}

@keyframes hero-word-in {
  from {
    opacity: 0;
    transform: translateY(22px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes hero-copy-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-title span,
  .hero-info p {
    animation: none;
    opacity: 1;
    transform: none;
  }
}

.hero-shell {
  position: relative;
  width: min(100%, 920px);
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(10, 9, 16, 0.76);
  border-radius: 8px;
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
  overflow: hidden;
}

.hero-slide {
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  min-height: 300px;
  opacity: 0;
  pointer-events: none;
  position: absolute;
  inset: 0 0 auto;
  transform: translateX(22px) scale(0.985);
  transition: opacity 520ms ease, transform 620ms cubic-bezier(0.22, 1, 0.36, 1);
}

.hero-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  position: relative;
  transform: translateX(0) scale(1);
  z-index: 2;
}

.hero-slide.is-exiting {
  opacity: 0;
  position: absolute;
  transform: translateX(-22px) scale(0.985);
  z-index: 1;
}

.hero-image {
  min-height: 300px;
  background: #15111e;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  transition: transform 1400ms ease;
}

.hero-slide.is-active .hero-image img {
  transform: scale(1);
}

.hero-slide.is-active .hero-copy > * {
  animation: heroCopyIn 560ms ease both;
}

.hero-slide.is-active .hero-copy > *:nth-child(2) {
  animation-delay: 70ms;
}

.hero-slide.is-active .hero-copy > *:nth-child(3) {
  animation-delay: 120ms;
}

.hero-slide.is-active .hero-copy > *:nth-child(4) {
  animation-delay: 170ms;
}

.hero-slide.is-active .hero-copy > *:nth-child(5) {
  animation-delay: 220ms;
}

@keyframes heroCopyIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: clamp(24px, 4vw, 42px);
}

.eyebrow {
  color: var(--mh-purple-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.hero-copy h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(1.75rem, 3.8vw, 3.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.hero-copy p {
  max-width: 42rem;
  margin: 0;
  color: var(--mh-muted);
  font-size: 1rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  color: #dfd7eb;
  font-size: 0.82rem;
  font-weight: 750;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 999px;
  padding: 7px 10px;
}

.button {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: var(--mh-purple);
  border-radius: 6px;
  color: #fff;
  font-size: 0.9rem;
  font-weight: 800;
  padding: 11px 16px;
}

.button-secondary {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(247, 243, 255, 0.86);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--mh-line);
  padding: 16px 18px;
}

.hero-dots {
  display: flex;
  gap: 8px;
}

.hero-dot {
  width: 34px;
  height: 4px;
  border: 0;
  background: rgba(255, 255, 255, 0.24);
  border-radius: 99px;
  cursor: pointer;
}

.hero-dot.is-active {
  background: var(--mh-purple-2);
}

.hero-arrows {
  display: flex;
  gap: 8px;
}

.hero-arrow {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border: 1px solid var(--mh-line);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
}

.section {
  padding: 72px 0;
}

.blog-feature-section {
  background: #09070d;
}

.section-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 28px;
}

.section-header h2,
.archive-title,
.page-title {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2.35rem);
  line-height: 1.08;
}

.section-header p {
  max-width: 38rem;
  margin: 0;
  color: var(--mh-muted);
}

.blog-feature-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.section-kicker {
  margin-bottom: 6px;
  color: var(--mh-purple-2);
  font-size: 0.86rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-transform: none;
}

.blog-feature-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3.6vw, 3rem);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 1.04;
  text-transform: none;
}

.blog-feature-header a {
  color: rgba(247, 243, 255, 0.62);
  font-size: 0.9rem;
  font-weight: 750;
  letter-spacing: 0;
  text-transform: none;
}

.blog-feature-header a:hover {
  color: var(--mh-purple-2);
}

.blog-feature-layout {
  display: grid;
  gap: clamp(30px, 5vw, 62px);
}

.blog-feature-actions {
  display: flex;
  justify-content: center;
  margin-top: clamp(34px, 5vw, 58px);
}

.lead-story {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(320px, 1fr);
  gap: clamp(28px, 5vw, 58px);
  align-items: center;
  min-height: 420px;
  padding: clamp(4px, 1vw, 10px) 0;
}

.lead-story::before {
  position: absolute;
  inset: 12% 18% 8% -5%;
  background: rgba(139, 92, 246, 0.12);
  content: "";
  pointer-events: none;
}

.lead-story-copy {
  position: relative;
  z-index: 2;
  display: grid;
  gap: 18px;
  padding: clamp(22px, 4vw, 46px);
  background: rgba(9, 7, 13, 0.66);
  backdrop-filter: blur(12px);
}

.story-tag {
  width: fit-content;
  background: #8b3ffc;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  padding: 7px 10px;
  text-transform: none;
}

.lead-story h3,
.compact-story h3 {
  margin: 0;
  color: #fff;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.12;
  text-transform: none;
}

.lead-story h3 {
  max-width: 16ch;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.lead-story p,
.compact-story p {
  margin: 0;
  color: rgba(247, 243, 255, 0.56);
  font-weight: 650;
}

.lead-story p {
  max-width: 33rem;
  font-size: 1.05rem;
}

.story-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 13px;
  color: rgba(247, 243, 255, 0.36);
  font-size: 0.82rem;
  font-weight: 750;
}

.story-meta span + span::before {
  content: "·";
  margin-right: 13px;
}

.story-link {
  color: var(--mh-purple-2);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.lead-story-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 11;
  background: var(--mh-panel-2);
  box-shadow: 0 34px 95px rgba(0, 0, 0, 0.5);
  overflow: hidden;
}

.lead-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.lead-story:hover .lead-story-image img {
  transform: scale(1.04);
}

.compact-story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
  align-items: stretch;
}

.compact-story {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 0;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.24);
  transition: transform 300ms ease, box-shadow 300ms ease;
}

.compact-story + .compact-story {
  border-left: 0;
}

.compact-story::after {
  position: absolute;
  inset: auto 0 0;
  height: 4px;
  background: var(--mh-purple);
  content: "";
  transform: scaleX(0.28);
  transform-origin: left;
  transition: transform 300ms ease;
}

.compact-story:hover {
  box-shadow: 0 34px 85px rgba(0, 0, 0, 0.34);
  transform: translateY(-6px);
}

.compact-story:hover::after {
  transform: scaleX(1);
}

.compact-story h3 {
  font-size: clamp(1.12rem, 1.8vw, 1.45rem);
}

.compact-story p {
  font-size: 0.95rem;
}

.compact-story-image {
  display: block;
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--mh-panel-2);
  overflow: hidden;
}

.compact-story-image::after {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 13, 0.24);
  content: "";
  opacity: 0.75;
  transition: opacity 300ms ease;
}

.compact-story:nth-child(2) {
  margin-top: 0;
}

.compact-story:nth-child(3) {
  margin-top: 0;
}

.compact-story:nth-child(2) .compact-story-image {
  aspect-ratio: 16 / 10;
}

.compact-story:nth-child(3) .compact-story-image {
  aspect-ratio: 16 / 10;
}

.compact-story-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.compact-story:hover .compact-story-image img {
  transform: scale(1.04);
}

.compact-story:hover .compact-story-image::after {
  opacity: 0.95;
}

.video-play-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(8, 7, 13, 0.72);
  border-radius: 999px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.42);
  transform: translate(-50%, -50%);
}

.video-play-icon::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 4px;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 15px solid #fff;
}

.compact-story-copy {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-height: 260px;
  padding: clamp(18px, 2.6vw, 28px);
}

.compact-story-copy .story-tag {
  top: -40px;
  position: relative;
  z-index: 2;
  background: rgba(139, 63, 252, 0.86);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
}


.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 34px);
}

.entry-summary {
  margin: 0;
  color: var(--mh-muted);
}

.archive-story {
  min-height: 100%;
}

.post-meta {
  color: var(--mh-purple-2);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: none;
}

.about-author-section {
  position: relative;
  overflow: hidden;
  background: #0d0a14;
}

.about-author-section::before {
  display: none;
}

.about-author {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: center;
  max-width: 1080px;
  padding: 0;
}

.about-author::after {
  display: none;
}

.about-author-media {
  position: relative;
  min-height: 360px;
  overflow: hidden;
  background: var(--mh-panel-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
}

.about-author-media::after {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 13, 0.2);
  content: "";
}

.about-author-media img {
  width: 100%;
  height: 100%;
  min-height: 360px;
  object-fit: cover;
}

.about-author-copy {
  display: grid;
  gap: 14px;
  max-width: 680px;
  padding: 0;
  background: transparent;
  backdrop-filter: none;
}

.about-author-kicker {
  color: var(--mh-purple-2);
  font-size: 0.9rem;
  font-weight: 750;
}

.about-author h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 780;
  line-height: 1.08;
}

.about-author-meta {
  color: var(--mh-purple-2);
  font-size: 0.9rem;
  font-weight: 750;
}

.about-author p {
  max-width: 640px;
  margin: 0;
  color: rgba(247, 243, 255, 0.68);
  font-weight: 620;
}

.about-author a {
  width: fit-content;
  margin-top: 8px;
  color: var(--mh-purple-2);
  font-size: 0.92rem;
  font-weight: 800;
}

.editorial-band {
  border-top: 1px solid var(--mh-line);
  border-bottom: 1px solid var(--mh-line);
  background: #100d18;
}

.split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 42px;
  align-items: center;
}

.split h2 {
  margin: 0;
  font-size: clamp(1.7rem, 3.5vw, 2.8rem);
  line-height: 1.08;
}

.split p {
  margin: 0 0 18px;
  color: var(--mh-muted);
}

.single-hero {
  padding: 148px 0 48px;
  background: #09070d;
}

.single-hero-inner {
  display: grid;
  gap: 18px;
  justify-items: center;
  text-align: center;
}

.single-title {
  max-width: 930px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.15rem, 5vw, 4.7rem);
  font-weight: 820;
  line-height: 1.02;
}

.single-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  color: rgba(247, 243, 255, 0.58);
  font-size: 0.95rem;
  font-weight: 700;
}

.single-meta span + span {
  position: relative;
}

.single-meta span + span::before {
  position: absolute;
  left: -10px;
  color: rgba(168, 85, 247, 0.9);
  content: "/";
}

.featured-media {
  position: relative;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  aspect-ratio: 16 / 8.4;
  overflow: hidden;
  background: var(--mh-panel-2);
  box-shadow: 0 34px 95px rgba(0, 0, 0, 0.38);
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-media::after {
  position: absolute;
  inset: 0;
  background: rgba(8, 7, 13, 0.12);
  content: "";
}

.featured-media .video-play-icon {
  z-index: 2;
}

.entry-content {
  width: min(760px, calc(100% - 32px));
  margin: 0 auto;
  padding: 30px 0;
  color: rgba(238, 232, 248, 0.88);
  font-size: clamp(1.04rem, 1.5vw, 1.16rem);
  line-height: 1.82;
}

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

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

.entry-content p,
.entry-content ul,
.entry-content ol {
  margin: 0 0 1.35em;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 2em 0 0.65em;
  color: #fff;
  font-weight: 780;
  line-height: 1.12;
}

.entry-content h2 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
}

.entry-content h3 {
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
}

.entry-content a {
  color: var(--mh-purple-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.entry-content blockquote {
  margin: 2.2em 0;
  padding: 6px 0 6px 24px;
  border-left: 4px solid var(--mh-purple);
  color: #fff;
  font-size: clamp(1.22rem, 2vw, 1.55rem);
  font-weight: 720;
  line-height: 1.45;
}

.entry-content figure {
  margin: 2.2em 0;
}

.entry-content figcaption {
  margin-top: 10px;
  color: var(--mh-muted);
  font-size: 0.9rem;
  text-align: center;
}

.entry-content iframe,
.entry-content embed,
.entry-content object {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.entry-content .wp-block-embed,
.entry-content .wp-block-image {
  width: min(960px, calc(100vw - 32px));
  margin-left: 50%;
  transform: translateX(-50%);
}

.wp-block-embed__wrapper {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--mh-panel-2);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.32);
}

.post-navigation {
  padding: 26px 0 82px;
}

.post-navigation-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.post-navigation-links a {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: center;
  padding: clamp(20px, 3vw, 30px);
  background: rgba(255, 255, 255, 0.035);
  color: #fff;
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  font-weight: 780;
  line-height: 1.18;
  transition: background 220ms ease, transform 220ms ease;
}

.post-navigation-links a span {
  color: var(--mh-purple-2);
  font-size: 0.86rem;
  font-weight: 760;
}

.post-navigation-links a:hover {
  background: rgba(139, 92, 246, 0.14);
  transform: translateY(-3px);
}

.archive-layout {
  padding: 132px 0 72px;
  background: #09070d;
}

.archive-header {
  margin-bottom: clamp(32px, 5vw, 58px);
}

.archive-header p {
  max-width: 34rem;
  margin: 0;
  color: var(--mh-muted);
}

.not-found-layout {
  display: grid;
  min-height: 72vh;
  place-items: center;
}

.not-found {
  max-width: 680px;
  text-align: center;
}

.not-found h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.06;
}

.not-found p {
  margin: 18px auto 0;
  color: var(--mh-muted);
  font-size: 1.05rem;
}

.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: center;
  margin-top: 34px;
  color: var(--mh-muted);
}

.pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: rgba(247, 243, 255, 0.72);
  font-weight: 750;
}

.pagination .page-numbers:hover,
.pagination .page-numbers.current {
  background: rgba(139, 92, 246, 0.22);
  color: #fff;
}

.site-footer {
  border-top: 1px solid var(--mh-line);
  padding: 28px 0;
  color: var(--mh-muted);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--mh-purple-2);
  font-weight: 750;
}

.site-footer a:hover {
  color: #fff;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

@media (max-width: 860px) {
  .header-inner,
  .container {
    width: min(100% - 24px, var(--mh-max));
  }

  .header-inner,
  .section-header,
  .blog-feature-header,
  .footer-inner {
    align-items: center;
    flex-direction: column;
  }

  .brand {
    gap: 8px;
    font-size: 0.98rem;
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .header-inner {
    position: relative;
    align-items: center;
    flex-direction: row;
    gap: 14px;
    min-height: 68px;
    padding: 10px 0;
  }

  .menu-toggle {
    display: grid;
    flex: 0 0 auto;
  }

  .primary-nav {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    display: grid;
    width: 100%;
    max-height: 0;
    overflow: hidden;
    justify-content: stretch;
    justify-items: stretch;
    padding: 0;
    background: rgba(9, 7, 13, 0.94);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
    opacity: 0;
    transform: translateY(-8px);
    transition: max-height 260ms ease, opacity 220ms ease, transform 220ms ease, padding 220ms ease;
  }

  .menu-open .primary-nav {
    max-height: 420px;
    padding: 12px;
    opacity: 1;
    transform: translateY(0);
  }

  .primary-menu,
  .primary-nav ul {
    display: grid;
    width: 100%;
    max-width: none;
    gap: 6px;
    justify-content: stretch;
    justify-items: stretch;
    margin: 0;
    padding: 0;
    text-align: center;
  }

  .primary-nav li,
  .primary-nav .primary-menu > li {
    display: block;
    width: 100%;
    text-align: center;
  }

  .primary-nav a,
  .primary-nav .primary-menu > li > a {
    display: flex;
    width: 100%;
    min-height: 44px;
    justify-content: center;
    text-align: center;
    padding: 10px 14px;
    background: rgba(255, 255, 255, 0.035);
    border-radius: 6px;
    color: rgba(247, 243, 255, 0.86);
    white-space: normal;
  }

  .primary-nav a::before,
  .primary-nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 138px 0 72px;
    background-image:
      linear-gradient(180deg, rgba(8, 7, 13, 0.5) 0%, rgba(8, 7, 13, 0.72) 48%, rgba(8, 7, 13, 0.88) 100%),
      var(--mh-hero-image);
    background-position: center center;
    background-size: auto 100%;
  }

  .hero-grid {
    min-height: auto;
  }

  .hero-info {
    width: min(100%, 620px);
  }

  .hero-title {
    max-width: 10ch;
    font-size: clamp(2.85rem, 14vw, 4.3rem);
    line-height: 0.94;
  }

  .hero-info p {
    margin-top: 18px;
    font-size: 1rem;
  }

  .hero-slide,
  .split,
  .lead-story,
  .compact-story-grid,
  .post-grid,
  .post-navigation-links {
    grid-template-columns: 1fr;
  }

  .single-hero {
    padding: 136px 0 36px;
  }

  .single-hero-inner {
    gap: 14px;
  }

  .single-title {
    font-size: clamp(2rem, 11vw, 3.3rem);
    line-height: 1.04;
  }

  .single-meta {
    gap: 6px 14px;
    font-size: 0.88rem;
  }

  .featured-media {
    width: min(100% - 24px, 1120px);
    aspect-ratio: 4 / 3;
  }

  .entry-content {
    width: min(100% - 28px, 760px);
    padding-top: 38px;
    font-size: 1.02rem;
    line-height: 1.76;
  }

  .entry-content .wp-block-embed,
  .entry-content .wp-block-image {
    width: min(100vw - 24px, 960px);
  }

  .post-navigation {
    padding-bottom: 58px;
  }

  .post-navigation-links a {
    min-height: 112px;
  }

  .lead-story {
    min-height: 0;
  }

  .lead-story::before {
    display: none;
  }

  .lead-story-copy {
    order: 2;
    padding: 24px;
  }

  .lead-story h3 {
    max-width: 100%;
  }

  .lead-story-image {
    order: 1;
    aspect-ratio: 16 / 10;
    box-shadow: 0 20px 55px rgba(0, 0, 0, 0.34);
  }

  .compact-story-grid,
  .post-grid {
    gap: 22px;
  }

  .compact-story:nth-child(2),
  .compact-story:nth-child(3) {
    margin-top: 0;
  }

  .compact-story-copy {
    min-height: 0;
    padding: 20px;
  }

  .compact-story-copy .story-tag {
    top: -34px;
  }

  .about-author {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .about-author::after {
    display: none;
  }

  .about-author-copy {
    margin-left: 0;
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    text-align: left;
  }

  .about-author-media {
    min-height: 260px;
    clip-path: none;
  }

  .about-author-media img {
    min-height: 260px;
  }

  .archive-layout {
    padding: 116px 0 54px;
  }

  .archive-header {
    text-align: center;
  }

  .archive-header p {
    margin: 0 auto;
  }

  .pagination {
    gap: 8px;
  }

  .footer-inner {
    align-items: center;
    text-align: center;
  }
}

@media (max-width: 560px) {
  .header-inner,
  .container {
    width: min(100% - 20px, var(--mh-max));
  }

  .brand {
    font-size: 0.94rem;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .hero {
    padding: 132px 0 66px;
    background-size: auto 105%;
    background-position: center center;
  }

  .hero-title {
    max-width: 9ch;
    font-size: clamp(2.5rem, 16vw, 3.65rem);
  }

  .section {
    padding: 54px 0;
  }

  .blog-feature-header {
    margin-bottom: 26px;
    text-align: center;
  }

  .blog-feature-header h2,
  .archive-title,
  .page-title {
    font-size: clamp(1.65rem, 9vw, 2.25rem);
  }

  .lead-story-copy {
    padding: 20px;
  }

  .story-meta,
  .single-meta {
    line-height: 1.35;
  }

  .featured-media {
    width: min(100% - 20px, 1120px);
  }

  .entry-content {
    width: min(100% - 24px, 760px);
  }

  .entry-content blockquote {
    padding-left: 18px;
    font-size: 1.18rem;
  }

  .not-found-actions,
  .blog-feature-actions {
    width: 100%;
  }

  .not-found-actions .button,
  .blog-feature-actions .button {
    width: 100%;
  }

  .footer-inner {
    gap: 10px;
  }
}
