/*
Theme Name: M.K. Arsenault - Ruined Saints
Theme URI: https://mkarsenault.com
Author: M.K. Arsenault
Description: A custom block theme for M.K. Arsenault and The Book of Ruined Saints.
Version: 1.5.0
Requires at least: 6.5
Tested up to: 6.9
Requires PHP: 7.4
Text Domain: mk-ruined-saints
*/

:root {
  --mk-night: #050305;
  --mk-bruised: #211020;
  --mk-violet: #4c0550;
  --mk-bone: #eae4d8;
  --mk-ash: #c9c6c6;
  --mk-blood: #6b0404;
  --mk-rule: rgba(234, 228, 216, 0.2);
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, Arial, sans-serif;
  background: var(--mk-night);
  color: var(--mk-bone);
  margin: 0;
}

a { text-underline-offset: 0.22em; }

.wp-site-blocks { overflow: hidden; }

.mk-site-header {
  background: rgba(5, 3, 5, 0.96);
  border-bottom: 1px solid var(--mk-rule);
  position: relative;
  z-index: 20;
}

.mk-site-header__inner {
  min-height: 92px;
}

.mk-author-mark {
  color: var(--mk-bone);
  display: inline-flex;
  flex-direction: column;
  font-family: Georgia, Arial, sans-serif;
  font-size: clamp(1.05rem, 2vw, 1.45rem);
  letter-spacing: 0.25em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.mk-author-mark::after {
  background: var(--mk-violet);
  content: '';
  height: 2px;
  margin-top: 0.55rem;
  width: 58%;
}

.mk-site-header .wp-block-navigation {
  font-family: 'Courier New', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.mk-site-header .wp-block-navigation a { text-decoration: none; }
.mk-site-header .wp-block-navigation a:hover,
.mk-site-header .wp-block-navigation a:focus-visible { color: var(--mk-ash); }

.mk-hero {
  background-color: var(--mk-night);
  border-bottom: 1px solid var(--mk-rule);
  min-height: clamp(610px, 76vh, 820px);
  overflow: hidden;
  position: relative;
}

.mk-hero::before {
  background:
    linear-gradient(90deg, var(--mk-night) 0%, var(--mk-night) 41%, rgba(5,3,5,0.48) 61%, rgba(5,3,5,0.08) 100%),
    linear-gradient(0deg, var(--mk-night) 0%, transparent 28%),
    url('assets/images/mk-portrait.png') 82% 33% / min(54vw, 760px) auto no-repeat;
  content: '';
  inset: 0;
  position: absolute;
}

.mk-hero::after {
  border: 2px solid rgba(76, 5, 80, 0.92);
  border-radius: 50%;
  content: '';
  height: min(38vw, 540px);
  opacity: 0.78;
  position: absolute;
  right: clamp(4%, 8vw, 13%);
  top: 12%;
  transform: rotate(-7deg);
  width: min(38vw, 540px);
}

.mk-hero__inner {
  align-items: flex-start;
  display: flex;
  min-height: clamp(610px, 76vh, 820px);
  position: relative;
  z-index: 2;
}

.mk-hero__copy {
  max-width: 790px;
  padding-bottom: clamp(5rem, 9vw, 9rem);
  padding-top: clamp(5rem, 9vw, 9rem);
}

.mk-eyebrow,
.mk-evidence-label,
.mk-post-meta {
  font-family: 'Courier New', Arial, sans-serif;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mk-eyebrow { color: var(--mk-ash); }

.mk-hero h1 {
  color: var(--mk-bone);
  font-family: Impact, Arial, sans-serif;
  font-size: clamp(4.4rem, 9.2vw, 9.4rem);
  font-stretch: condensed;
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 0.76;
  margin: 1.4rem 0 1.8rem;
  max-width: 760px;
  position: relative;
  text-transform: uppercase;
}

.mk-hero h1::after {
  background: var(--mk-violet);
  content: '';
  height: clamp(8px, 1vw, 14px);
  left: -2%;
  position: absolute;
  top: 58%;
  transform: rotate(-2.8deg);
  width: 103%;
  z-index: 2;
}

.mk-pressure-line {
  color: var(--mk-bone);
  font-family: Georgia, Arial, sans-serif;
  font-size: clamp(1.2rem, 2vw, 1.8rem);
  font-style: italic;
  letter-spacing: 0.04em;
  margin-bottom: 2.2rem;
}

.mk-status-line { color: var(--mk-ash); display: flex; flex-wrap: wrap; font-family: 'Courier New', Arial, sans-serif; font-size: 0.68rem; font-weight: 700; gap: 0.6rem; letter-spacing: 0.12em; margin: -0.65rem 0 1.8rem; text-transform: uppercase; }
.mk-status-line span,
.mk-story-badges span { border: 1px solid rgba(234, 228, 216, 0.34); padding: 0.38rem 0.55rem; }

.mk-button .wp-block-button__link,
.wp-element-button {
  background: transparent;
  border: 1px solid var(--mk-bone);
  border-radius: 0;
  color: var(--mk-bone);
  font-family: 'Courier New', Arial, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  padding: 1rem 1.55rem;
  text-transform: uppercase;
}

.mk-button .wp-block-button__link:hover,
.mk-button .wp-block-button__link:focus-visible,
.wp-element-button:hover,
.wp-element-button:focus-visible {
  background: var(--mk-violet);
  border-color: var(--mk-violet);
  color: var(--mk-bone);
}

.mk-button--primary .wp-block-button__link,
.mk-inline-button--primary { background: var(--mk-violet); border-color: var(--mk-violet); }

.mk-latest {
  background: var(--mk-bruised);
  border-bottom: 1px solid var(--mk-rule);
  border-top: 1px solid var(--mk-rule);
}

.mk-latest__grid {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 6vw, 6rem);
  grid-template-columns: minmax(150px, 0.55fr) minmax(0, 1.45fr);
}

.mk-catalog {
  background: var(--mk-night);
  border-bottom: 1px solid var(--mk-rule);
}

.mk-catalog-grid {
  display: grid;
  gap: clamp(0.9rem, 1.5vw, 1.35rem);
  grid-template-columns: repeat(12, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.mk-substack-feed {
  display: grid;
  gap: clamp(0.9rem, 1.5vw, 1.35rem);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 2.5rem;
}

.mk-catalog-card,
.mk-feed-card {
  background: #0b080b;
  border: 1px solid var(--mk-rule);
  color: var(--mk-bone);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: clamp(1.5rem, 2.4vw, 2.25rem);
  text-decoration: none;
  transition: border-color 160ms ease, transform 160ms ease;
}

.mk-catalog-card--featured {
  grid-column: span 6;
  min-height: 360px;
}

.mk-catalog-card--wide {
  align-items: start;
  grid-column: 1 / -1;
  min-height: 250px;
  padding-right: clamp(2rem, 12vw, 10rem);
}

.mk-catalog-card--utility {
  grid-column: span 4;
  min-height: 230px;
}

.mk-feed-card { min-height: 260px; }

.mk-catalog-card:hover,
.mk-catalog-card:focus-visible,
.mk-feed-card:hover,
.mk-feed-card:focus-within {
  border-color: var(--mk-violet);
  transform: translateY(-4px);
}

.mk-catalog-card h3,
.mk-feed-card h3 {
  font-family: Impact, Arial, sans-serif;
  font-size: clamp(1.9rem, 2.5vw, 3.15rem);
  line-height: 0.92;
  margin: 1.1rem 0 0.9rem;
  overflow-wrap: anywhere;
  text-transform: uppercase;
}

.mk-catalog-card--featured h3 { font-size: clamp(2.5rem, 4.6vw, 5.2rem); }
.mk-catalog-card--wide h3 { font-size: clamp(2.6rem, 5.2vw, 5.8rem); }
.mk-catalog-card--long h3 { font-size: clamp(1.65rem, 2.25vw, 2.7rem); }

.mk-catalog-card p,
.mk-feed-card p {
  color: var(--mk-ash);
  font-family: Georgia, Arial, sans-serif;
  font-size: clamp(0.96rem, 1.05vw, 1.08rem);
  line-height: 1.55;
  margin-bottom: 0;
  max-width: 42ch;
}

.mk-catalog-card--wide p { max-width: 66ch; }

.mk-catalog-card__cta,
.mk-feed-card__meta {
  color: var(--mk-ash);
  font-family: 'Courier New', Arial, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  margin-top: auto;
  padding-top: 1.5rem;
  text-transform: uppercase;
}

.mk-feed-card h3 a { color: var(--mk-bone); text-decoration: none; }

.mk-about {
  background: var(--mk-bruised);
  border-bottom: 1px solid var(--mk-rule);
}

.mk-about__grid {
  align-items: start;
  display: grid;
  gap: clamp(2.5rem, 7vw, 7rem);
  grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
}

.mk-about__copy {
  font-family: Georgia, Arial, sans-serif;
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
  line-height: 1.7;
}

.mk-about__copy strong { color: var(--mk-bone); }

.mk-evidence-label {
  background: var(--mk-bone);
  box-shadow: 8px 8px 0 var(--mk-violet);
  color: var(--mk-night);
  display: inline-block;
  padding: 0.85rem 1.15rem;
  transform: rotate(-1deg);
}

.mk-section-title,
.mk-entry-title,
.mk-archive-title {
  font-family: Impact, Arial, sans-serif;
  font-weight: 800;
  letter-spacing: 0.01em;
  line-height: 0.9;
  text-transform: uppercase;
}

.mk-section-title { font-size: clamp(2.8rem, 6vw, 6.4rem); }
.mk-entry-title { font-size: clamp(3.4rem, 7vw, 7.6rem); }
.mk-archive-title { font-size: clamp(3rem, 6vw, 6.5rem); }

.mk-story-index { background: var(--mk-night); }

.mk-story-index .wp-block-post-template {
  display: grid;
  gap: 1px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mk-story-card {
  background: #0b080b;
  border: 1px solid var(--mk-rule);
  height: 100%;
  padding: clamp(1.5rem, 3vw, 2.6rem);
  transition: border-color 160ms ease, transform 160ms ease;
}

.mk-story-card:hover {
  border-color: var(--mk-violet);
  transform: translateY(-4px);
}

.mk-story-card .wp-block-post-title {
  font-family: Impact, Arial, sans-serif;
  font-size: clamp(2rem, 3vw, 3.6rem);
  line-height: 0.95;
  text-transform: uppercase;
}

.mk-story-card .wp-block-post-title a { text-decoration: none; }

.mk-newsletter {
  background: var(--mk-bone);
  color: var(--mk-night);
  position: relative;
}

.mk-newsletter::before {
  border: 2px solid var(--mk-violet);
  border-radius: 50%;
  content: '';
  height: 180px;
  left: 6%;
  opacity: 0.35;
  position: absolute;
  top: 12%;
  transform: rotate(12deg);
  width: 180px;
}

.mk-newsletter .wp-element-button {
  border-color: var(--mk-night);
  color: var(--mk-night);
}

.mk-start { background: var(--mk-bruised); border-bottom: 1px solid var(--mk-rule); }
.mk-start__grid,
.mk-section-intro,
.mk-story-notes { align-items: start; display: grid; gap: clamp(2.5rem, 7vw, 7rem); grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); }
.mk-dossier-number { color: rgba(234, 228, 216, 0.08); font-family: Impact, Arial, sans-serif; font-size: clamp(7rem, 14vw, 13rem); line-height: 0.68; margin-bottom: -1.2rem; }
.mk-start__copy h3,
.mk-access-grid h3 { font-family: Impact, Arial, sans-serif; font-size: clamp(2.4rem, 4.5vw, 4.8rem); line-height: 0.92; margin: 1.25rem 0; text-transform: uppercase; }
.mk-start__copy > p { font-family: Georgia, Arial, sans-serif; font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.65; max-width: 48ch; }
.mk-muted { color: var(--mk-ash); }
.mk-story-badges { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.mk-story-badges span { color: var(--mk-ash); font-family: 'Courier New', Arial, sans-serif; font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }

.mk-trailer { background: #080608; border-bottom: 1px solid var(--mk-rule); }
.mk-section-intro { align-items: end; grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr); margin-bottom: 2.5rem; }
.mk-section-intro p:last-child { color: var(--mk-ash); font-size: 1.05rem; margin: 0 0 0.5rem; max-width: 34ch; }
.mk-video-frame { background: #000; border: 1px solid var(--mk-rule); box-shadow: 14px 14px 0 rgba(76, 5, 80, 0.55); margin-right: 14px; }
.mk-trailer-card { aspect-ratio: 16 / 9; display: block; overflow: hidden; position: relative; }
.mk-trailer-card img { display: block; height: 100%; object-fit: cover; transition: filter 180ms ease, transform 180ms ease; width: 100%; }
.mk-trailer-card::after { background: linear-gradient(0deg, rgba(5,3,5,0.88), transparent 58%); content: ''; inset: 0; position: absolute; }
.mk-trailer-card__play { align-items: center; background: rgba(76,5,80,0.9); border: 1px solid var(--mk-bone); border-radius: 50%; color: var(--mk-bone); display: flex; font-size: 1.5rem; height: 5rem; justify-content: center; left: 50%; padding-left: 0.25rem; position: absolute; top: 50%; transform: translate(-50%, -50%); width: 5rem; z-index: 2; }
.mk-trailer-card__label { bottom: 1.4rem; color: var(--mk-bone); font-family: 'Courier New', Arial, sans-serif; font-size: 0.72rem; font-weight: 700; left: 1.4rem; letter-spacing: 0.14em; position: absolute; text-transform: uppercase; z-index: 2; }
.mk-trailer-card:hover img { filter: brightness(0.8); transform: scale(1.015); }

.mk-catalog-card .mk-story-badges { margin-top: 1.15rem; }
.mk-explore-strip { border-bottom: 1px solid var(--mk-rule); border-top: 1px solid var(--mk-rule); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 2.2rem; }
.mk-explore-strip a { color: var(--mk-bone); font-family: Impact, Arial, sans-serif; font-size: clamp(1.45rem, 2.6vw, 2.6rem); line-height: 1; padding: 1.4rem; text-decoration: none; text-transform: uppercase; }
.mk-explore-strip a + a { border-left: 1px solid var(--mk-rule); }
.mk-explore-strip a:hover { background: var(--mk-bruised); }
.mk-explore-strip span { color: var(--mk-ash); display: block; font-family: 'Courier New', Arial, sans-serif; font-size: 0.6rem; letter-spacing: 0.12em; margin-bottom: 0.7rem; }

.mk-access-grid { display: grid; gap: 1px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 2.5rem 0 1.5rem; }
.mk-access-grid > div { background: rgba(5, 3, 5, 0.06); border: 1px solid rgba(5, 3, 5, 0.3); padding: clamp(1.5rem, 4vw, 3rem); }
.mk-access-grid .mk-eyebrow { color: #4c4146; }
.mk-access-grid h3 { color: var(--mk-night); font-size: clamp(2rem, 3.7vw, 3.7rem); }
.mk-access-grid li { margin-bottom: 0.6rem; }
.mk-access-card--paid { box-shadow: inset 8px 0 0 var(--mk-violet); }

.mk-story-landing { background: var(--mk-night); }
.mk-story-hero,
.mk-story-guide,
.mk-story-notes,
.mk-story-next { padding: clamp(4rem, 9vw, 8rem) clamp(1.25rem, 4vw, 4rem); }
.mk-story-hero { background: linear-gradient(125deg, var(--mk-night) 38%, var(--mk-bruised)); border-bottom: 1px solid var(--mk-rule); }
.mk-story-hero__inner,
.mk-story-guide__inner,
.mk-story-notes { margin: 0 auto; max-width: 1280px; }
.mk-story-hero__inner { align-items: end; display: grid; gap: clamp(3rem, 8vw, 8rem); grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr); }
.mk-story-hero h1,
.mk-story-guide h2,
.mk-story-notes h2,
.mk-story-next h2 { font-family: Impact, Arial, sans-serif; font-weight: 800; line-height: 0.84; text-transform: uppercase; }
.mk-story-hero h1 {
  font-size: clamp(3.75rem, 7.2vw, 6.5rem);
  hyphens: none;
  letter-spacing: -0.025em;
  margin: 1.2rem 0 0;
  max-width: 100%;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: normal;
}
.mk-story-hero h1.mk-story-title--long { font-size: clamp(3.75rem, 6.8vw, 6.25rem); }
.mk-story-subtitle {
  color: var(--mk-ash);
  font-family: 'Courier New', Arial, sans-serif;
  font-size: clamp(0.78rem, 1.2vw, 1rem);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.5;
  margin: 1rem 0 0;
  max-width: 34ch;
  text-transform: uppercase;
}
.mk-story-hero__brief { border-left: 1px solid var(--mk-violet); padding-left: clamp(1.5rem, 3vw, 3rem); }
.mk-story-hero__brief > p { color: var(--mk-ash); font-size: 1.08rem; line-height: 1.65; }
.mk-story-hero__brief .mk-release-line { border-bottom: 1px solid var(--mk-rule); border-top: 1px solid var(--mk-rule); color: var(--mk-bone); font-family: 'Courier New', Arial, sans-serif; font-size: 0.72rem; font-style: normal; font-weight: 700; letter-spacing: 0.12em; margin: 1.4rem 0 0; padding: 0.85rem 0; text-transform: uppercase; }
.mk-pullquote { color: var(--mk-bone) !important; font-size: clamp(1.35rem, 2.2vw, 2rem) !important; font-style: italic; }
.mk-inline-button { border: 1px solid var(--mk-bone); color: var(--mk-bone); display: inline-block; font-family: 'Courier New', Arial, sans-serif; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; margin-top: 1rem; padding: 1rem 1.4rem; text-decoration: none; text-transform: uppercase; }
.mk-story-guide { background: #0b080b; }
.mk-story-guide__inner { display: grid; gap: clamp(3rem, 7vw, 7rem); grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr); }
.mk-story-guide h2,
.mk-story-notes h2 { font-size: clamp(3rem, 6vw, 6rem); margin: 1rem 0; }
.mk-chapter-list { list-style: none; margin: 0; padding: 0; }
.mk-chapter-list li { border-top: 1px solid var(--mk-rule); }
.mk-chapter-list li:last-child { border-bottom: 1px solid var(--mk-rule); }
.mk-chapter-list a { align-items: center; color: var(--mk-bone); display: grid; gap: 1rem; grid-template-columns: 3rem 1fr auto; padding: 1.15rem 0; text-decoration: none; }
.mk-chapter-list span,
.mk-chapter-list em { color: var(--mk-ash); font-family: 'Courier New', Arial, sans-serif; font-size: 0.7rem; font-style: normal; letter-spacing: 0.1em; text-transform: uppercase; }
.mk-chapter-list a:hover strong { color: #b267b8; }
.mk-story-notes { background: var(--mk-bruised); }
.mk-story-notes > div:last-child { font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.7; }
.mk-story-next { background: var(--mk-bone); color: var(--mk-night); text-align: center; }
.mk-story-next h2 { color: var(--mk-night); font-size: clamp(2.8rem, 6vw, 6rem); margin: 1rem auto; max-width: 900px; }
.mk-inline-button--dark { border-color: var(--mk-night); color: var(--mk-night); }

.mk-free-library { background: #0b080b; padding: clamp(4rem, 8vw, 7rem) clamp(1.25rem, 4vw, 4rem); }
.mk-free-library__inner { margin: 0 auto; max-width: 1180px; }
.mk-free-library header { display: grid; gap: clamp(1rem, 4vw, 4rem); grid-template-columns: minmax(0, 1.2fr) minmax(240px, 0.8fr); margin-bottom: clamp(3rem, 7vw, 6rem); }
.mk-free-library header .mk-eyebrow { grid-column: 1 / -1; margin-bottom: -2rem; }
.mk-free-library h2 { font-family: Impact, Arial, sans-serif; font-size: clamp(3.5rem, 7vw, 7rem); line-height: 0.86; margin: 0; text-transform: uppercase; }
.mk-free-library header > p:last-child { color: var(--mk-ash); font-size: 1.08rem; line-height: 1.65; margin: 0; }
.mk-free-collection { border-top: 1px solid var(--mk-rule); display: grid; gap: clamp(2rem, 6vw, 6rem); grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr); padding: clamp(2.5rem, 5vw, 4.5rem) 0; }
.mk-free-collection:last-child { border-bottom: 1px solid var(--mk-rule); }
.mk-free-collection__title h3 { font-family: Impact, Arial, sans-serif; font-size: clamp(2.3rem, 4vw, 4rem); line-height: 0.9; margin: 0.9rem 0; text-transform: uppercase; }
.mk-free-collection__title > a { color: var(--mk-ash); font-family: 'Courier New', Arial, sans-serif; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.mk-relicbound-preview { align-self: start; }
.mk-relicbound-preview .mk-trailer-card { min-height: 280px; }
.mk-story-landing > .mk-trailer .mk-story-guide__inner { align-items: center; display: grid; gap: clamp(3rem, 7vw, 7rem); grid-template-columns: minmax(240px, 0.65fr) minmax(0, 1.35fr); }
.mk-story-landing > .mk-trailer h2 { font-family: Impact, Arial, sans-serif; font-size: clamp(2.8rem, 5vw, 5rem); line-height: 0.88; margin: 1rem 0; text-transform: uppercase; }

.mk-site-footer {
  background: #020102;
  border-top: 1px solid var(--mk-rule);
}

.mk-site-footer .wp-block-site-title {
  font-family: Georgia, Arial, sans-serif;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.mk-reading-shell { background: var(--mk-night); }
.mk-reading-shell .wp-block-post-content { font-family: Georgia, Arial, sans-serif; }
.mk-reading-shell .wp-block-post-content > * { max-width: 760px; }
.mk-reading-shell .wp-block-post-content > .alignwide { max-width: 1180px; }
.mk-reading-shell .wp-block-post-content > .alignfull { max-width: none; }

.mk-reading-shell blockquote {
  border-left: 6px solid var(--mk-violet);
  color: var(--mk-ash);
  font-style: italic;
  margin-left: 0;
  padding-left: 1.5rem;
}

.mk-not-found { min-height: 60vh; }

@media (max-width: 960px) {
  .mk-hero::before {
    background:
      linear-gradient(90deg, var(--mk-night) 0%, rgba(5,3,5,0.86) 62%, rgba(5,3,5,0.3) 100%),
      linear-gradient(0deg, var(--mk-night) 0%, transparent 30%),
      url('assets/images/mk-portrait.png') 92% 20% / auto 88% no-repeat;
  }
  .mk-hero::after { height: 54vw; right: -4%; top: 17%; width: 54vw; }
  .mk-story-index .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-catalog-card--featured,
  .mk-catalog-card--utility { grid-column: span 6; }
  .mk-catalog-card--wide { grid-column: 1 / -1; }
  .mk-substack-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-story-hero__inner { gap: 3rem; grid-template-columns: 1fr; }
  .mk-story-hero__brief { max-width: 680px; }
  .mk-story-guide__inner { gap: 3rem; }
	.mk-story-landing > .mk-trailer .mk-story-guide__inner { gap: 3rem; }
}

@media (max-width: 680px) {
  .mk-site-header__inner { min-height: 74px; }
  .mk-site-header .wp-block-navigation { font-size: 0.7rem; }
  .mk-hero { min-height: 650px; }
  .mk-hero::before {
    background:
      linear-gradient(0deg, var(--mk-night) 12%, rgba(5,3,5,0.7) 50%, rgba(5,3,5,0.12) 100%),
      url('assets/images/mk-portrait.png') 64% 2% / auto 54% no-repeat;
  }
  .mk-hero::after { height: 64vw; right: -4%; top: 2%; width: 64vw; }
  .mk-hero__inner { align-items: flex-end; min-height: 650px; }
  .mk-hero__copy { padding-bottom: 2.5rem; padding-top: 15rem; }
  .mk-hero h1 { font-size: clamp(3.25rem, 14vw, 4.7rem); line-height: 0.86; margin: 1rem 0 1.15rem; overflow: visible; }
  .mk-pressure-line { font-size: 1.05rem; margin-bottom: 1.5rem; }
  .mk-status-line { margin-bottom: 1.25rem; }
  .mk-hero .wp-block-buttons { gap: 0.65rem; }
  .mk-hero .wp-block-button { width: 100%; }
  .mk-hero .wp-block-button__link { box-sizing: border-box; text-align: center; width: 100%; }
  .mk-latest__grid { grid-template-columns: 1fr; }
  .mk-story-index .wp-block-post-template { grid-template-columns: 1fr; }
  .mk-catalog-grid { gap: 0.85rem; }
  .mk-catalog-card--featured,
  .mk-catalog-card--wide,
  .mk-catalog-card--utility { grid-column: 1 / -1; min-height: 0; padding: 1.45rem; }
  .mk-catalog-card h3,
  .mk-catalog-card--featured h3,
  .mk-catalog-card--wide h3,
  .mk-catalog-card--long h3 { font-size: clamp(2.15rem, 12vw, 3.25rem); }
  .mk-catalog-card--long h3 { font-size: clamp(1.85rem, 9.5vw, 2.5rem); }
  .mk-catalog-card p { font-size: 1rem; max-width: none; }
  .mk-catalog-card__cta { padding-top: 1.25rem; }
  .mk-substack-feed,
  .mk-about__grid,
  .mk-start__grid,
  .mk-section-intro,
  .mk-access-grid,
  .mk-story-hero__inner,
  .mk-story-guide__inner,
  .mk-story-notes { grid-template-columns: 1fr; }
  .mk-dossier-number { font-size: 7rem; }
  .mk-section-intro { gap: 0.5rem; }
  .mk-video-frame { box-shadow: 7px 7px 0 rgba(76, 5, 80, 0.55); margin-right: 7px; }
  .mk-explore-strip { grid-template-columns: 1fr; }
  .mk-explore-strip a + a { border-left: 0; border-top: 1px solid var(--mk-rule); }
  .mk-story-hero,
  .mk-story-guide,
  .mk-story-notes,
  .mk-story-next { padding-bottom: 4rem; padding-top: 4rem; }
  .mk-story-hero__inner { gap: 2.5rem; }
  .mk-story-hero h1,
  .mk-story-hero h1.mk-story-title--long { font-size: clamp(3.15rem, 14.5vw, 3.75rem); line-height: 0.86; }
  .mk-story-hero__brief { border-left-width: 4px; }
  .mk-chapter-list a { grid-template-columns: 2.25rem 1fr; }
  .mk-chapter-list em { grid-column: 2; }
  .mk-free-library header,
  .mk-free-collection { grid-template-columns: 1fr; }
	.mk-story-landing > .mk-trailer .mk-story-guide__inner { grid-template-columns: 1fr; }
  .mk-free-library header .mk-eyebrow { grid-column: 1; margin-bottom: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mk-story-card { transition: none; }
}


/* Membership account: readable dark cards in the Ruined Saints palette. */
body.pmpro-account .pmpro {
  --pmpro--color--base: #211020;
  --pmpro--color--contrast: #eae4d8;
  --pmpro--color--border: rgba(234, 228, 216, 0.2);
  color: var(--mk-bone);
}
body.pmpro-account .pmpro .pmpro_card {
  background: var(--mk-bruised);
  color: var(--mk-bone);
  border: 1px solid var(--mk-rule);
}
body.pmpro-account .pmpro .pmpro_card_actions {
  background: var(--mk-night);
  border-top: 1px solid var(--mk-rule);
  color: var(--mk-ash);
}
body.pmpro-account .pmpro :is(.pmpro_card_title, .pmpro_card_content, .pmpro_list, .pmpro_list_item, .pmpro_card_action, .pmpro_card_action_separator) { color: var(--mk-bone); }
body.pmpro-account .pmpro a { color: var(--mk-bone); text-decoration: underline; }
body.pmpro-account .pmpro a:hover { color: #fff; }
body.pmpro-account .pmpro a:focus-visible { outline: 2px solid var(--mk-bone); outline-offset: 4px; }
body.pmpro-account .pmpro :is(.pmpro_table, .pmpro_table th, .pmpro_table td) {
  background: var(--mk-bruised);
  color: var(--mk-bone);
  border-color: var(--mk-rule);
}


/* BEGIN MK READER EXPERIENCE 2026-10-02 */
/* BORS brand guide: Night Ink, Bruise, Bone, Ash Silver, Ruined Violet. */
.mkre-card, .mkre-signup, .mkre-paywall, .mkre-series-navigation, .mkre-catalog {
  --mkre-night: #050305; --mkre-bruise: #211020; --mkre-bone: #eae4d8;
  --mkre-ash: #c9c6c6; --mkre-violet: #4c0550; --mkre-rule: rgba(234,228,216,.24);
  color: var(--mkre-bone); background: var(--mkre-bruise); border: 1px solid var(--mkre-rule);
}
.mkre-card, .mkre-signup, .mkre-paywall { padding: clamp(1.25rem,4vw,2rem); overflow-wrap: anywhere; }
.mkre-latest { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,250px),1fr)); gap: 1rem; margin: 1.5rem 0; }
.mkre-card h3, .mkre-signup h2, .mkre-membership-page h2 { font-family: Impact, Arial, sans-serif; font-size: clamp(1.8rem,4vw,2.6rem); line-height: 1.1; margin: 0; }
.mkre-card p, .mkre-signup p { margin: .5rem 0; }
.mkre-price { font-size: 1.25rem; line-height: 1.6; }
.mkre-eyebrow, .mkre-access-badge { font: 700 .75rem/1.5 'Courier New',monospace; letter-spacing: .08em; text-transform: uppercase; }
.mkre-access-badge { display: inline-block; border: 1px solid currentColor; padding: .2rem .5rem; }
.mkre-button { display: inline-block; box-sizing: border-box; min-height: 44px; background: #4c0550; color: #eae4d8; border: 1px solid #c9c6c6; padding: .8rem 1rem; text-decoration: none; line-height: 1.5; text-align: center; font-family: 'Courier New', Arial, sans-serif; }
.mkre-button:hover { background: #211020; color: #fff; }
.mkre-signup { border-top: 4px solid #4c0550; margin: 2rem auto; max-width: 760px; }
.mkre-signup input[type=email], .mkre-signup input[type=text] { box-sizing: border-box; max-width: 100%; min-height: 44px; background: #050305; color: #eae4d8; border: 1px solid #c9c6c6; padding: .7rem; font-family: 'Courier New', Arial, sans-serif; }
.mkre-signup input[type=submit], .mkre-signup button[type=submit] { background: #4c0550; color: #eae4d8; border: 1px solid #c9c6c6; min-height: 44px; font-family: 'Courier New', Arial, sans-serif; }
.mkre-note { font-size: .9rem; color: #c9c6c6; }
.mkre-paywall .pmpro_card { background: #211020; color: #eae4d8; }
.mkre-paywall .pmpro_card_actions { background: #050305; color: #eae4d8; }
.mkre-paywall a, .mkre-card a, .mkre-catalog a, .mkre-series-navigation a { color: #eae4d8; text-underline-offset: .22em; }
.mkre-paywall :is(h2,h3,p,div,li) { color: #eae4d8; }
.mkre-membership-page { margin-bottom: 2rem; }
.mkre-membership-page .pmpro_table { margin-top: 2rem; }
.mkre-levels { color: #eae4d8; }
.mkre-levels { overflow-x: auto; }
.mkre-levels table { width: 100%; border-collapse: collapse; background: #211020; color: #eae4d8; }
.mkre-levels table :is(td,th) { background: transparent; color: #eae4d8; border: 1px solid rgba(234,228,216,.24); padding: 1rem; text-align: left; }
.mkre-levels table thead { background: #050305; }
.mkre-levels a, .mkre-levels .pmpro_btn { color: #eae4d8; }
.mkre-levels .pmpro_btn { background: #4c0550; border: 1px solid #c9c6c6; min-height: 44px; font-family: 'Courier New', Arial, sans-serif; }
.mkre-price-list { padding-left: 1.5rem; }
.mkre-price-list li + li { margin-top: .75rem; }
.mkre-series-navigation { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; margin: 2.5rem 0; padding: 1.25rem; }
.mkre-series-navigation > :is(a,span) { display: flex; flex-direction: column; align-items: flex-start; gap: .5rem; min-height: 44px; padding: .65rem; overflow-wrap: anywhere; }
.mkre-series-navigation > :is(a,span) > span:first-child { font: 700 .75rem/1.5 'Courier New',monospace; text-transform: uppercase; }
.mkre-series-navigation__boundary { color: #c9c6c6; }
.mkre-chapter-list { padding: 0; list-style: none; }
.mkre-chapter-list li { border-bottom: 1px solid rgba(234,228,216,.24); }
.mkre-chapter-list a { display: flex; align-items: center; gap: 1rem; padding: .85rem .5rem; min-height: 44px; }
.mkre-chapter-title { flex: 1; }
.mkre-chapter-number { font: 700 .75rem/1.5 'Courier New',monospace; }
.mkre-catalog { padding: 1.5rem; }
.mkre-catalog section + section { margin-top: 2rem; }
.mkre-signup :is(a,input,button):focus-visible, .mkre-button:focus-visible, .mkre-series-navigation a:focus-visible, .mkre-card a:focus-visible, .mkre-catalog a:focus-visible, .mkre-levels a:focus-visible, .mkre-paywall a:focus-visible { outline: 2px solid #eae4d8; outline-offset: 4px; }
@media(max-width:600px) { .mkre-series-navigation { grid-template-columns: 1fr; } .mkre-chapter-list a { align-items: flex-start; flex-wrap: wrap; } .mkre-levels table :is(td,th) { padding: .65rem; } }

.mkre-membership-page h2, .mkre-signup h2 { font-weight: 700; text-transform: uppercase; }
.mkre-series-navigation strong, .mkre-chapter-title { font-family: Georgia, Arial, sans-serif; }

/* Keep native paywall headings readable on narrow screens. */
.mkre-paywall .pmpro_card_title { padding: 1rem 1rem 0; font-family: Impact, Arial, sans-serif; font-size: clamp(1.1rem,4vw,1.5rem); line-height: 1.2; overflow-wrap: normal; word-break: normal; }
.mkre-paywall .pmpro_card_content { padding: 0 1rem 1rem; }
.mkre-paywall .pmpro_btn { box-sizing: border-box; width: 100%; max-width: 100%; min-height: 44px; padding: .75rem .5rem; font-size: .85rem; line-height: 1.5; letter-spacing: .03em; font-family: 'Courier New', Arial, sans-serif; }

/* Override PMPro's native light card defaults within this membership page. */
.mkre-membership-page .pmpro { --pmpro--color--base: #211020; --pmpro--color--contrast: #eae4d8; --pmpro--color--border: rgba(234,228,216,.24); color: #eae4d8; }
.mkre-membership-page .pmpro .pmpro_card, .mkre-membership-page .pmpro .pmpro_table, .mkre-membership-page .pmpro .pmpro_table :is(th,td) { background: #211020; color: #eae4d8; border-color: rgba(234,228,216,.24); }
.mkre-membership-page .pmpro a { color: #eae4d8; }
.mkre-membership-page .mk-reader-access-help { background: #211020; color: #eae4d8; border: 1px solid rgba(234,228,216,.24); border-left: 3px solid #4c0550; }
.mkre-membership-page .mk-reader-access-help a { color: #eae4d8; }

.mkre-membership-page .pmpro_table, .mkre-membership-page .pmpro_table :is(th,td,div,span,strong), .mkre-membership-page .pmpro_table :is(th,td)::before { color: #eae4d8 !important; }

.mk-reading-shell .mkre-membership-page #pmpro_levels .pmpro_table.pmpro_levels_table, .mk-reading-shell .mkre-membership-page #pmpro_levels .pmpro_table.pmpro_levels_table :is(th,td,div,span,strong), .mk-reading-shell .mkre-membership-page #pmpro_levels .pmpro_table.pmpro_levels_table :is(th,td)::before { color: #eae4d8 !important; }

/* END MK READER EXPERIENCE 2026-10-02 */


/* Existing series artwork in the story heroes. Keep faces and cover typography uncropped. */
.mk-series-art { margin: 1.75rem 0 0; border: 1px solid var(--mk-rule); background: var(--mk-night); }
.mk-series-art img { display: block; width: 100%; height: auto; }
.mk-story-hero__inner:has(.mk-series-art) { align-items: center; }
.mk-dallas-section > .mk-series-art { margin-bottom: 2rem; }
@media (max-width: 680px) {
  .mk-series-art { margin-top: 1.25rem; }
}


/* Dallas uses the shared series layout inside its standard page template. */
.page-id-990010089 .mk-reading-shell:has(.mk-dallas-landing) { padding-top: 0 !important; padding-bottom: 0 !important; }
.page-id-990010089 .mk-reading-shell:has(.mk-dallas-landing) > .wp-block-group { max-width: none; }
.page-id-990010089 .mk-reading-shell:has(.mk-dallas-landing) .wp-block-post-title { display: none; }
.page-id-990010089 .mk-reading-shell:has(.mk-dallas-landing) .wp-block-post-content { max-width: none; margin-top: 0; }
.page-id-990010089 .mk-reading-shell .wp-block-post-content > .mk-dallas-landing { max-width: none; }
.mk-dallas-landing .mk-story-hero h1 { font-size: clamp(2.5rem, 5.25vw, 5rem); line-height: 0.9; white-space: normal; }
.mk-dallas-landing .mk-story-next .mk-eyebrow { color: var(--mk-night); }

.mk-dallas-landing .mk-story-guide h2 { font-size: clamp(2.6rem, 4.4vw, 4.2rem); }

/* BEGIN MK READER LIBRARY UPGRADE 2026-10-02 */
/* Homepage proposal only. Append after the active theme CSS once reconciled.
 * Existing published GIFs retain their original frames and aspect ratios.
 * No typography or layout selectors reach manuscript pages. */
.mku-home {
  --mku-night: #050305;
  --mku-bruise: #211020;
  --mku-bone: #eae4d8;
  --mku-ash: #c9c6c6;
  --mku-violet: #4c0550;
  --mku-rule: rgba(234, 228, 216, .22);
  background: var(--mku-night);
  color: var(--mku-bone);
  margin-top: 0;
}
.mku-home .mku-section :is(h2,h3,p,figure) { margin-top: 0; }
.mku-home .mku-section :is(h2,h3) { color: inherit; font-family: Impact, Arial, sans-serif; font-weight: 800; line-height: 1; text-transform: uppercase; }
.mku-home .mku-section h2 { font-size: clamp(2.5rem,5.5vw,4.8rem); letter-spacing: -.025em; margin-bottom: 1rem; }
.mku-home .mku-section h3 { font-size: clamp(1.8rem,3.2vw,3.3rem); letter-spacing: -.025em; }
.mku-home .mku-section p:not(.mku-eyebrow):not(.mku-release):not(.mku-small) { font-family: Georgia, Arial, sans-serif; line-height: 1.65; }
.mku-home a { color: inherit; text-underline-offset: .22em; }
.mku-home :is(a,button,video):focus-visible { outline: 2px solid var(--mku-bone); outline-offset: 5px; }
.mku-home .mku-eyebrow,
.mku-home .mku-release,
.mku-home .mku-small { color: var(--mku-ash); font-family: 'Courier New', Arial, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .1em; line-height: 1.6; }
.mku-home .mku-eyebrow, .mku-home .mku-release { text-transform: uppercase; }
.mku-home .mku-eyebrow { margin-bottom: 1.1rem; }
.mku-home .mku-small { letter-spacing: 0; margin: 1rem 0 0; }
.mku-home .mku-muted { color: var(--mku-ash); }
.mku-home .mku-section { box-sizing: border-box; margin: 0 auto; max-width: 1280px; padding: clamp(3rem,6vw,5.5rem) clamp(1.25rem,4vw,3.5rem); }
.mku-home .mku-hero-status { color: var(--mku-ash); display: flex; flex-wrap: wrap; font-family: 'Courier New', Arial, sans-serif; font-size: .68rem; font-weight: 700; gap: .6rem; letter-spacing: .12em; margin: -.65rem 0 1.8rem; text-transform: uppercase; }
.mku-hero-status span { border: 1px solid rgba(234,228,216,.34); padding: .38rem .55rem; }
.mku-home .mku-continue { border-bottom: 1px solid var(--mku-rule); padding-top: 2rem; padding-bottom: 2rem; }
.mku-actions { align-items: center; display: flex; flex-wrap: wrap; gap: .7rem; }
.mku-home .mku-button { background: transparent; border: 1px solid currentColor; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; font-family: 'Courier New', Arial, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .08em; line-height: 1.5; min-height: 48px; padding: .9rem 1.2rem; text-decoration: none; text-transform: uppercase; }
.mku-home .mku-button--primary { background: var(--mku-violet); border-color: var(--mku-violet); color: var(--mku-bone); }
.mku-home .mku-button:hover { background: var(--mku-bruise); color: var(--mku-bone); }
.mku-story-card__art { aspect-ratio: 16 / 9; background: var(--mku-night); display: flex; align-items: center; justify-content: center; }
.mku-story-card__art img { display: block; height: 100%; width: 100%; object-fit: contain; }
.mku-home .mku-story-card h3 a { text-decoration: none; }
.mku-home .mku-text-link { display: inline-flex; align-items: center; gap: .6rem; min-height: 44px; font-family: 'Courier New', Arial, sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .07em; line-height: 1.6; text-decoration: underline; text-transform: uppercase; }
.mku-text-link span { flex-shrink: 0; }
.mku-entry { border-bottom: 1px solid var(--mku-rule); display: grid; gap: clamp(2rem,4vw,3rem); grid-template-columns: minmax(0,.95fr) minmax(0,1.3fr); }
.mku-home .mku-entry h2 { font-size: clamp(2.7rem,4.5vw,4.2rem); }
.mku-entry__copy p { font-size: 1.08rem; }
.mku-section-intro { align-items: end; display: flex; justify-content: space-between; gap: 2rem; margin-bottom: 2.2rem; }
.mku-section-intro h2 { margin-bottom: 0; }
.mku-section-intro > p { color: var(--mku-ash); max-width: 30ch; margin-bottom: .3rem; }
.mku-story-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.mku-story-card { background: var(--mku-night); border: 1px solid var(--mku-rule); display: flex; flex-direction: column; }
.mku-story-card__art { min-height: 0; }
.mku-story-card__copy { display: flex; flex: 1; flex-direction: column; padding: clamp(1.3rem,3vw,2rem); }
.mku-home .mku-story-card h3 { margin: 0 0 1rem; }
.mku-story-card__copy > p:not(.mku-eyebrow):not(.mku-release) { color: var(--mku-ash); font-size: 1.05rem; }
.mku-home .mku-story-card .mku-release { margin-top: auto; padding-top: .8rem; }
.mku-story-card .mku-text-link { align-self: flex-start; }
.mku-apocrypha { background: var(--mku-bone); color: var(--mku-night); display: grid; gap: 2.5rem; grid-template-columns: 1fr 1fr; margin-top: 1.5rem; padding: clamp(1.5rem,3.5vw,2.8rem); }
.mku-home .mku-apocrypha .mku-eyebrow { color: var(--mku-night); }
.mku-home .mku-apocrypha h3 { font-size: clamp(2.2rem,4vw,3.8rem); margin-bottom: 0; }
.mku-home .mku-apocrypha :is(a,button):focus-visible { outline-color: var(--mku-night); }
.mku-latest { border-top: 1px solid var(--mku-rule); border-bottom: 1px solid var(--mku-rule); }
.mku-latest .mk-substack-feed { display: grid; gap: 1rem; grid-template-columns: repeat(3,minmax(0,1fr)); margin-bottom: 1.6rem; }
.mku-latest .mk-feed-card { min-width: 0; }
.mku-home .mku-latest .mk-feed-card h3 { font-family: Impact, Arial, sans-serif; font-size: clamp(1.5rem,2.8vw,2.4rem); line-height: 1.1; }
.mku-screening { display: grid; align-items: center; gap: 3rem; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
.mku-screening video { display: block; width: 100%; height: auto; background: var(--mku-night); border: 1px solid var(--mku-rule); }
.mku-about { border-top: 1px solid var(--mku-rule); display: grid; gap: 3rem; grid-template-columns: minmax(0,.75fr) minmax(0,1.25fr); }
.mku-about p { font-size: 1.13rem; }
.mku-access { background: var(--mku-bruise); border-top: 1px solid var(--mku-rule); display: grid; gap: 3rem; grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
.mku-access p { font-size: 1.15rem; }
@media (max-width: 960px) {
  .mku-entry { grid-template-columns: 1fr 1fr; }
  .mku-screening, .mku-about, .mku-access { grid-template-columns: 1fr; gap: 2rem; }
  .mku-latest .mk-substack-feed { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .mku-home .mku-section h2 { font-size: clamp(2.2rem,10vw,3.2rem); }
  .mku-entry, .mku-story-grid, .mku-apocrypha, .mku-latest .mk-substack-feed { grid-template-columns: 1fr; }
  .mku-section-intro { display: block; }
  .mku-section-intro > p { margin-top: 1rem; }
  .mku-home .mku-story-card h3 { font-size: clamp(1.8rem,8.5vw,2.6rem); }
  .mku-home .mku-story-card h3 br { display: none; }
  .mku-apocrypha { gap: 1rem; }
  .mku-actions { align-items: stretch; }
  .mku-actions .mku-button { flex: 1 1 auto; }
}

/* Verified membership-module.php markup. Native checkout/state markup remains intact. */
.mkru-membership { color: #eae4d8; }
.mkru-membership :is(h2,h3) { color: #eae4d8; font-family: Impact, Arial, sans-serif; font-weight: 800; line-height: 1.08; text-transform: uppercase; }
.mkru-membership h2 { font-size: clamp(2rem,5vw,3.6rem); margin: .7rem 0 1.25rem; }
.mkru-membership h3 { font-size: clamp(1.5rem,3.4vw,2.25rem); margin: .5rem 0 1rem; }
.mkru-membership p { font-family: Georgia, Arial, sans-serif; font-size: 1.05rem; line-height: 1.65; }
.mkru-membership :is(a,button):focus-visible { outline: 2px solid #eae4d8; outline-offset: 4px; }
.mkru-membership-showcase { background: #211020; border: 1px solid rgba(234,228,216,.24); border-top: 4px solid #4c0550; padding: clamp(1.3rem,4vw,2.5rem); }
.mkru-membership-showcase > p:not(.mkre-eyebrow) { color: #c9c6c6; max-width: 58ch; }
.mkru-membership .mkre-eyebrow { color: #c9c6c6; font-family: 'Courier New', Arial, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .1em; line-height: 1.6; text-transform: uppercase; }
.mkru-native-membership-plans { margin: 2rem 0 3rem; }
.mkru-native-membership-plans .pmpro_table { width: 100%; border-collapse: collapse; }
.mkru-native-membership-plans .pmpro_table :is(th,td) { background: #211020; border-color: rgba(234,228,216,.24); color: #eae4d8 !important; padding: 1rem; }
.mkru-native-membership-plans .pmpro_table thead :is(th,td) { background: #050305; }
.mkru-native-membership-plans .pmpro_btn { box-sizing: border-box; min-height: 44px; line-height: 1.5; font-family: 'Courier New', Arial, sans-serif; }
.mkru-membership-inventory { border-top: 1px solid rgba(234,228,216,.24); margin-top: 2rem; padding-top: 2rem; }
.mkru-membership-series-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2,minmax(0,1fr)); }
.mkru-membership-series { background: #211020; border: 1px solid rgba(234,228,216,.24); display: flex; flex-direction: column; min-width: 0; padding: clamp(1.25rem,3vw,2rem); }
.mkru-membership-series h3 a { text-decoration: none; }
.mkru-membership-series .mkru-series-count { color: #c9c6c6; margin: 0 0 1rem; }
.mkru-membership-access { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.25rem; }
.mkru-membership-access .mkre-access-badge { font-family: 'Courier New', Arial, sans-serif; }
.mkru-series-link { align-self: flex-start; display: inline-flex; align-items: center; min-height: 44px; margin-top: auto; font-family: 'Courier New', Arial, sans-serif; font-size: .73rem; font-weight: 700; letter-spacing: .04em; text-underline-offset: .2em; text-transform: uppercase; }
.mkru-membership-art { aspect-ratio: 16 / 9; background: #050305; display: flex; align-items: center; justify-content: center; margin: 0 0 1.25rem; }
.mkru-membership-art img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-width: 600px) {
  .mkru-membership-series-grid { grid-template-columns: 1fr; }
  .mkru-native-membership-plans .pmpro_table :is(th,td) { padding: .7rem; }
}

/* Keep the additional My Library header link inside WordPress's native mobile menu. */
@media (min-width: 600px) and (max-width: 1100px) {
  .mk-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) { display: none !important; }
  .mk-site-header .wp-block-navigation__responsive-container-open { display: flex !important; }
  .mk-site-header .wp-block-navigation__responsive-container.is-menu-open { display: flex !important; }
}

/* Reader library: scoped presentation; manuscripts and native membership UI stay intact. */
.mk-reader-library { color: var(--mk-bone, #eae4d8); background: var(--mk-bruised, #211020); border: 1px solid var(--mk-rule, rgba(234,228,216,.2)); }
.mk-reader-library { padding: clamp(1.5rem,4vw,3rem); margin-block: 2rem; }
.mk-reader-library > header h2 { font-family: Impact, Arial, sans-serif; text-transform: uppercase; font-size: clamp(2.6rem,6vw,4.5rem); line-height: .95; margin: .6rem 0 1rem; }
.mk-reader-library [data-mk-reader-disclosure], .mk-reader-controls [data-mk-reader-disclosure] { color: var(--mk-ash,#c9c6c6); font-size: .88rem; line-height: 1.55; }
.mk-reader-resume, .mk-reader-empty { padding: clamp(1.25rem,3vw,2rem); background: var(--mk-night,#050305); border-left: 4px solid var(--mk-violet,#4c0550); margin-block: 1.5rem; }
.mk-reader-resume h3 { font-family: Impact, Arial, sans-serif; font-size: clamp(1.7rem,4vw,2.5rem); line-height: 1.1; margin: .5rem 0; }
.mk-reader-resume > p:not(.mk-eyebrow) { color: var(--mk-ash,#c9c6c6); line-height: 1.5; }
.mk-reader-shelf { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1.4rem; margin-block: 1.75rem; }
.mk-reader-series { min-width: 0; background: var(--mk-night,#050305); border: 1px solid var(--mk-rule,rgba(234,228,216,.2)); }
.mk-reader-series.is-saved { border-color: var(--mk-ash,#c9c6c6); }
.mk-reader-series__art { width: 100%; height: auto; aspect-ratio: 16/9; object-fit: contain; display: block; background: #050305; border-bottom: 1px solid var(--mk-rule,rgba(234,228,216,.2)); }
.mk-reader-series__content { padding: clamp(1.15rem,2.5vw,1.7rem); }
.mk-reader-series h3 { font-family: Impact, Arial, sans-serif; font-size: clamp(1.8rem,3.5vw,2.5rem); font-weight: 700; line-height: 1.05; margin: .5rem 0 1rem; text-transform: uppercase; overflow-wrap: anywhere; }
.mk-reader-series h3 a { color: var(--mk-bone,#eae4d8); text-decoration: none; }
.mk-reader-series__count, .mk-reader-caught-up { color: var(--mk-ash,#c9c6c6); font-size: .9rem; line-height: 1.5; }
.mk-reader-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1rem; }
.mk-reader-button, .mk-reader-actions button { color: var(--mk-bone,#eae4d8); background: var(--mk-violet,#4c0550); border: 1px solid var(--mk-ash,#c9c6c6); padding: .85rem 1rem; min-height: 44px; font-family: 'Courier New', Arial, sans-serif; font-size: .75rem; font-weight: 700; letter-spacing: .04em; line-height: 1.4; text-decoration: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box; }
.mk-reader-actions button[aria-pressed="true"] { background: #211020; }
.mk-reader-text-link, .mk-reader-series__index, .mk-reader-library-link { color: var(--mk-bone,#eae4d8); font-size: .9rem; line-height: 1.5; text-decoration: underline; text-underline-offset: .22em; }
.mk-reader-series__index { display: inline-block; margin-top: 1.2rem; }
.mk-reader-access { display: inline-block; padding: .3rem .5rem; border: 1px solid var(--mk-rule,rgba(234,228,216,.2)); color: var(--mk-ash,#c9c6c6); font-family: 'Courier New', Arial, sans-serif; font-size: .7rem; margin-bottom: .9rem; }
.mk-reader-clear { display: block; border: 0; background: transparent; color: var(--mk-ash,#c9c6c6); text-decoration: underline; text-underline-offset: .22em; cursor: pointer; padding: .75rem 0; min-height: 44px; font-size: .85rem; }
.mk-reader-status { font-size: .88rem; line-height: 1.5; color: var(--mk-ash,#c9c6c6); min-height: 1.5em; }
.mk-reader-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1rem; width: 100%; max-width: 760px; box-sizing: border-box; padding: .25rem 0 .6rem; margin-block: 1rem 1.5rem; margin-inline: auto; color: var(--mk-bone,#eae4d8); background: transparent; border: 0; border-bottom: 1px solid var(--mk-rule,rgba(234,228,216,.2)); }
.mk-reader-controls__position { flex: 1 1 12rem; min-width: 0; font-family: 'Courier New', Arial, sans-serif; font-size: .72rem; font-weight: 700; line-height: 1.4; margin: 0; }
.mk-reader-controls [data-mk-reader-disclosure] { flex-basis: 100%; margin: 0; font-size: .75rem; line-height: 1.4; }
.mk-reader-controls .mk-reader-actions, .mk-reader-completion .mk-reader-actions { min-width: 0; gap: .1rem .75rem; margin-left: auto; align-items: center; }
.mk-reader-controls .mk-reader-actions button, .mk-reader-completion .mk-reader-actions button { flex: 0 1 auto; min-width: 44px; min-height: 44px; max-width: 100%; width: auto; padding: .5rem .15rem; color: var(--mk-bone,#eae4d8); background: transparent; border: 0; font-size: .72rem; line-height: 1.4; white-space: normal; text-decoration: underline; text-decoration-color: rgba(234,228,216,.45); text-underline-offset: .22em; }
.mk-reader-controls .mk-reader-actions button:hover, .mk-reader-completion .mk-reader-actions button:hover { color: var(--mk-ash,#c9c6c6); text-decoration-color: currentColor; }
.mk-reader-controls .mk-reader-status, .mk-reader-completion .mk-reader-status { flex-basis: 100%; min-height: 0; margin: 0; font-size: .75rem; line-height: 1.4; }
.mk-reader-controls [data-mk-reader-disclosure]:empty, .mk-reader-controls .mk-reader-status:empty, .mk-reader-completion .mk-reader-status:empty { display: none; }
.mk-reader-controls button:disabled { opacity: .55; cursor: default; }
.mk-reader-completion { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem 1rem; width: 100%; max-width: 760px; box-sizing: border-box; padding: .65rem 0 .25rem; margin-block: 2rem 1rem; margin-inline: auto; color: var(--mk-bone,#eae4d8); background: transparent; border: 0; border-top: 1px solid var(--mk-rule,rgba(234,228,216,.2)); }
.mk-reader-completion > div:first-child { flex: 1 1 16rem; min-width: 0; }
.mk-reader-completion .mk-eyebrow { margin: 0 0 .1rem; font-size: .65rem; }
.mk-reader-completion [data-mk-reader-completion-state] { margin: 0; color: var(--mk-ash,#c9c6c6); font-size: .83rem; line-height: 1.4; }
.mk-reader-completion button:disabled { opacity: .55; cursor: default; }
.mk-reader-reading { max-width: none; }
.mk-reader-library :is(a,button):focus-visible, .mk-reader-controls button:focus-visible, .mk-reader-completion button:focus-visible { outline: 3px solid #eae4d8; outline-offset: 4px; }
.mk-reader-library [hidden], .mk-reader-controls [hidden] { display: none !important; }
@media(max-width:700px) { .mk-reader-shelf { grid-template-columns: 1fr; } .mk-reader-library { padding: 1.25rem; } .mk-reader-actions { align-items: stretch; } .mk-reader-actions button { flex: 1 1 150px; } }
@media(max-width:700px) { .mk-reader-controls__position { flex-basis: 100%; } .mk-reader-controls .mk-reader-actions, .mk-reader-completion .mk-reader-actions { margin-left: 0; } }

.mk-reader-library-page .mk-reading-shell .wp-block-post-content { max-width: 1180px; }
.mk-reader-library-page .mk-reading-shell .wp-block-post-content > .mk-reader-library { max-width: none; }
.mku-home .mk-reader-library--compact { background: transparent; border: 0; padding: 0; margin: 0; }
.mku-home .mk-reader-library--compact > header h2 { font-size: clamp(1.6rem,3vw,2.3rem); margin-bottom: .65rem; }
.mku-home .mk-reader-library--compact .mk-reader-resume { margin-block: 1rem; }
.mku-home .mk-reader-library--compact .mk-reader-empty { margin-block: 1rem; padding: 1rem 1.25rem; }
.mku-home .mk-reader-library--compact .mk-reader-status:empty { display: none; }
/* Append after design-css.css. Adjust only the existing site header.
 * Full desktop navigation starts above 1200px; wide-screen typography remains intact. */
.mk-site-header .mk-site-header__inner {
  gap: 1rem;
}
.mk-site-header .mk-author-mark {
  flex-shrink: 0;
}

/* Fit the logo plus seven navigation items in the measured 1280px layout. */
@media (min-width: 1201px) and (max-width: 1440px) {
  .mk-site-header .mk-author-mark,
  .mk-site-header .mk-author-mark a {
    font-size: 1.2rem;
    letter-spacing: .18em;
    white-space: nowrap;
  }
  .mk-site-header .wp-block-navigation {
    font-size: .72rem;
    letter-spacing: .14em;
  }
  .mk-site-header .wp-block-navigation__container {
    column-gap: 1rem;
    row-gap: .75rem;
  }
  .mk-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) .wp-block-navigation__container,
  .mk-site-header .wp-block-navigation > .wp-block-navigation__container {
    flex-wrap: nowrap;
  }
}

/* Extend WordPress's native mobile menu to 1200px without hiding its open panel. */
@media (min-width: 600px) and (max-width: 1200px) {
  .mk-site-header .wp-block-navigation__responsive-container:not(.is-menu-open) {
    display: none !important;
  }
  .mk-site-header .wp-block-navigation__responsive-container-open {
    display: flex !important;
  }
  .mk-site-header .wp-block-navigation__responsive-container.is-menu-open {
    display: flex !important;
  }
}

/* Leave room for the native menu button on narrow phones. */
@media (max-width: 600px) {
  .mk-site-header .mk-author-mark,
  .mk-site-header .mk-author-mark a {
    font-size: clamp(.88rem, 3.6vw, 1.05rem);
    letter-spacing: .12em;
    white-space: nowrap;
  }
  .mk-site-header .mk-site-header__inner {
    gap: .75rem;
  }
  .mk-site-header .wp-block-navigation {
    flex-shrink: 0;
  }
}

/* Brand the native open overlay, including nested menus; keep WordPress admin-bar offsets. */
.mk-site-header .wp-block-navigation__responsive-container.is-menu-open {
  background: #050305 !important;
  color: #eae4d8 !important;
  box-sizing: border-box;
  padding: clamp(1.25rem, 4vw, 3rem) !important;
}
.mk-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
  gap: 1rem;
}
.mk-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
  gap: 1rem;
}
.mk-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__submenu-container {
  background: transparent !important;
  color: inherit !important;
  border-color: rgba(234,228,216,.22) !important;
  gap: .65rem;
}
.mk-site-header .wp-block-navigation__responsive-container.is-menu-open :is(a,button,.wp-block-navigation__submenu-icon) {
  color: inherit !important;
}
.mk-site-header .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
/* END MK READER LIBRARY UPGRADE 2026-10-02 */


/* Legacy MK shared heading scale — presentation only, 2026-10-17.
   Append after existing active theme rules; retain the original block for rollback. */
body.wp-theme-mk-ruined-saints .mk-entry-title.wp-block-post-title {
  font-size: clamp(32px, 3.2vw, 48px) !important;
  line-height: 1.14 !important;
  margin-top: 16px !important;
  margin-bottom: 24px !important;
}
body.wp-theme-mk-ruined-saints main.mk-reading-shell {
  padding-top: clamp(28px, 3vw, 48px) !important;
}
body.wp-theme-mk-ruined-saints .mk-hero__copy > h1 {
  font-size: clamp(34px, 3.6vw, 56px) !important;
  line-height: 1.05 !important;
}
body.wp-theme-mk-ruined-saints .mku-section h2,
body.wp-theme-mk-ruined-saints .mk-reader-library > header h2 {
  font-size: clamp(26px, 2.4vw, 36px) !important;
  line-height: 1.18 !important;
}
body.wp-theme-mk-ruined-saints .mku-story-card h3,
body.wp-theme-mk-ruined-saints .mku-apocrypha h3,
body.wp-theme-mk-ruined-saints .mk-reader-series__content h3,
body.wp-theme-mk-ruined-saints .mk-reader-resume h3,
body.wp-theme-mk-ruined-saints .mk-feed-card h3 {
  font-size: clamp(23px, 2vw, 30px) !important;
  line-height: 1.22 !important;
}
body.wp-theme-mk-ruined-saints .mk-reading-shell .mk-archive-navigation__title {
  font-size: clamp(25px, 2.2vw, 32px) !important;
  line-height: 1.2 !important;
}
/* Direct narrative headings only. Membership card typography and paragraphs stay intact. */
body.wp-theme-mk-ruined-saints .entry-content > h2 {
  font-size: clamp(24px, 2.1vw, 28px) !important;
  line-height: 1.25 !important;
}
@media (max-width: 600px) {
  body.wp-theme-mk-ruined-saints .mk-entry-title.wp-block-post-title { font-size: 32px !important; }
  body.wp-theme-mk-ruined-saints .mk-hero__copy > h1 { font-size: 34px !important; }
}


/* Legacy nested heading fallback — 2026-10-17. Specific chapter/home rules retain precedence. */
body.wp-theme-mk-ruined-saints main h2 {
  font-size: clamp(24px, 2.5vw, 36px) !important;
  line-height: 1.2 !important;
}
body.wp-theme-mk-ruined-saints main h3 {
  font-size: clamp(21px, 2vw, 28px) !important;
  line-height: 1.25 !important;
}

/* Legacy native login text controls; observed public PMPro form only. */
body.pmpro-login #pmpro_login #loginform :is(input[type="text"],input[type="password"],input[type="submit"],button,label) { font-family: 'Courier New', Arial, sans-serif; }

/* Legacy font roles: override confirmed inline global families in public reader contexts. */
body.wp-theme-mk-ruined-saints .mk-reading-shell .pmpro .pmpro_card_title {
  font-family: Impact, Arial, sans-serif !important;
}
body.wp-theme-mk-ruined-saints .mk-reading-shell .mk-archive-navigation__title {
  font-family: Impact, Arial, sans-serif;
}
body.wp-theme-mk-ruined-saints .mk-reading-shell .pmpro .pmpro_btn {
  font-family: 'Courier New', Arial, sans-serif !important;
}
body.wp-theme-mk-ruined-saints .mk-reading-shell .mk-archive-navigation__eyebrow,
body.wp-theme-mk-ruined-saints .mk-reading-shell .mk-archive-navigation .wp-block-post-navigation-link a,
body.wp-theme-mk-ruined-saints .mk-reading-shell .mk-archive-navigation .post-navigation-link-previous::before,
body.wp-theme-mk-ruined-saints .mk-reading-shell .mk-archive-navigation .post-navigation-link-next::before,
body.wp-theme-mk-ruined-saints .mk-reading-shell .mk-archive-navigation__index {
  font-family: 'Courier New', Arial, sans-serif;
}
body.wp-theme-mk-ruined-saints .mk-reading-shell .pmpro .pmpro_card_content,
body.wp-theme-mk-ruined-saints .mk-reading-shell .pmpro .pmpro_card_content p,
body.wp-theme-mk-ruined-saints .mk-chapter-discussion .wp-block-comment-content,
body.wp-theme-mk-ruined-saints .mk-chapter-discussion .wp-block-comment-content p {
  font-family: Georgia, Arial, sans-serif;
}
