/* ============================================================
   KENNEY MYERS THEME — Main Stylesheet
   Covers: front page, blog index, single post, page, archive,
   search, 404, sidebar, comments, footer — fully responsive
   ============================================================ */

:root {
  --bg: #ffffff;
  --bg-band: #3a3a3a;
  --bg-band-2: #2c2c2c;
  --bg-grey: #f5f5f5;
  --bg-grey-2: #ededed;
  --ink: #1a1a1a;
  --ink-bold: #000000;
  --ink-soft: #5a5a5a;
  --ink-light: #a8a8a8;
  --ink-lighter: #c8c8c8;
  --ink-card: #6a6a6a;
  --blue: #5fb4e8;
  --blue-dark: #4a9fd5;
  --rule: #e6e6e6;
  --rule-soft: #f0f0f0;
  --font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --maxw: 1280px;
  --content-w: 760px;
}

/* ---------- RESET & BASE ---------- */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-decoration: none; transition: color .25s ease; }
a:hover { color: var(--blue-dark); }

button { font-family: var(--font); cursor: pointer; }
input, textarea, select { font-family: var(--font); font-size: 15px; }

h1, h2, h3, h4, h5, h6 {
  margin: 0 0 0.6em;
  color: var(--ink-bold);
  font-weight: 600;
  line-height: 1.25;
}

p { margin: 0 0 1.2em; }

::selection { background: var(--blue); color: #fff; }

/* Top blue accent line */
body::before {
  content: "";
  display: block;
  height: 3px;
  background: var(--blue);
  width: 100%;
}

/* Accessibility */
.screen-reader-text {
  border: 0; clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%); height: 1px; margin: -1px;
  overflow: hidden; padding: 0; position: absolute;
  width: 1px; word-wrap: normal !important;
}
.km-skip-link:focus {
  background: #fff; color: var(--ink-bold);
  padding: 12px 18px; position: absolute;
  top: 7px; left: 7px; z-index: 999;
}

/* ---------- HEADER ---------- */

.km-site-header {
  background: var(--bg);
  position: relative;
  z-index: 50;
}
.km-header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 26px 50px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}
.km-brand-logo {
  font-size: 28px;
  line-height: 1;
  flex-shrink: 0;
  color: var(--ink-bold);
}
.km-brand-logo:hover { color: var(--ink-bold); }
.km-brand-first { font-weight: 300; color: var(--ink-light); letter-spacing: 0.02em; }
.km-brand-last { font-weight: 800; color: var(--ink-bold); letter-spacing: 0.01em; }
.km-brand-logo-image img { max-height: 50px; width: auto; }

.km-desktop-nav .km-nav-list,
.km-desktop-nav .menu {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  gap: 28px;
}
.km-desktop-nav a {
  font-weight: 400; font-size: 12px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.km-desktop-nav a:hover { color: var(--blue); }

.km-menu-toggle {
  display: none;
  background: none; border: none;
  padding: 10px; cursor: pointer;
  flex-direction: column; gap: 5px;
}
.km-menu-toggle span {
  display: block;
  width: 26px; height: 3px;
  background: var(--ink-soft);
  border-radius: 1px;
  transition: all .25s;
}

/* Mobile menu */
.km-mobile-menu {
  position: fixed; inset: 0;
  background: var(--bg);
  z-index: 200;
  transform: translateX(100%);
  transition: transform .3s ease;
  visibility: hidden;
}
.km-mobile-menu.open {
  transform: translateX(0);
  visibility: visible;
}
.km-mobile-menu-inner {
  padding: 22px;
  height: 100%;
  display: flex; flex-direction: column;
}
.km-mobile-menu-top {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px; padding-bottom: 22px;
  border-bottom: 2px solid var(--blue);
}
.km-mobile-close {
  background: none; border: none; cursor: pointer;
  font-size: 32px; color: var(--ink-soft);
  padding: 6px 12px; line-height: 1;
}
.km-mobile-nav-list, .km-mobile-nav .menu {
  list-style: none;
  margin: 0; padding: 0;
}
.km-mobile-nav-list li, .km-mobile-nav .menu li {
  border-bottom: 1px solid var(--rule);
}
.km-mobile-nav-list a, .km-mobile-nav .menu a {
  display: block;
  padding: 20px 4px;
  font-weight: 500; font-size: 14px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-soft);
}
.km-mobile-nav-list a:hover, .km-mobile-nav .menu a:hover { color: var(--blue); }

/* ---------- HERO ---------- */

.km-hero {
  width: 100%;
  background: var(--bg);
  overflow: hidden;
  display: flex;
  align-items: stretch;
}
.km-hero-photo {
  width: 50%;
  clip-path: polygon(0 0, 100% 0, calc(100% - 120px) 100%, 0 100%);
  background: #1a1a1a;
  overflow: hidden;
  min-height: 600px;
  max-height: 720px;
}
.km-hero-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 22%;
}
.km-hero-right {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center; align-items: center;
  padding: 50px 60px;
  text-align: center;
}
.km-hero-name { margin-bottom: 20px; }
.km-first-name {
  font-weight: 300;
  font-size: clamp(36px, 4.8vw, 64px);
  letter-spacing: 0.12em;
  color: var(--ink-light);
  line-height: 1;
  margin-bottom: 8px;
}
.km-last-name {
  font-weight: 800;
  font-size: clamp(48px, 7.6vw, 108px);
  letter-spacing: 0.005em;
  color: var(--blue);
  line-height: 0.95;
}
.km-hero-tag {
  font-weight: 400; font-size: 13px;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 26px;
  width: 100%; max-width: 420px;
}
.km-hero-welcome {
  font-weight: 400; font-size: 14px;
  line-height: 1.65; color: var(--ink-soft);
  max-width: 460px; margin-bottom: 18px;
}
.km-hero-welcome p { margin-bottom: 8px; }
.km-hero-welcome p:last-child { margin-bottom: 0; }
.km-hero-signoff {
  font-weight: 600; font-size: 13px;
  color: var(--ink-soft);
}

/* ---------- NEWSLETTER ---------- */

.km-newsletter {
  background: var(--bg-band);
  padding: 32px 50px;
}
.km-newsletter-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 36px;
}
.km-newsletter-label {
  font-weight: 400; font-size: 18px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #fff;
  flex-shrink: 0;
}
.km-newsletter-form {
  flex: 1;
  display: flex;
  gap: 14px;
  align-items: center;
}
.km-newsletter-form input {
  flex: 1;
  background: #fff;
  border: none;
  padding: 16px 24px;
  color: var(--ink);
  font-size: 14px;
  outline: none;
  border-radius: 50px;
}
.km-newsletter-form input:focus {
  box-shadow: 0 0 0 2px var(--blue);
}
.km-newsletter-form button {
  background: var(--blue);
  color: #fff;
  border: none;
  padding: 16px 44px;
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.24em; text-transform: uppercase;
  border-radius: 50px;
  flex-shrink: 0;
  transition: background .25s;
}
.km-newsletter-form button:hover { background: var(--blue-dark); }

/* ---------- FRONT-PAGE SECTIONS ---------- */

.km-section {
  padding: 80px 50px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.km-section-title {
  text-align: center;
  font-weight: 500;
  font-size: 22px;
  letter-spacing: 0.34em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 56px;
}
.km-pillar-band { background: var(--bg-grey); }

/* All Books / Filmography CTA pill */
.km-all-cta {
  text-align: center;
  margin-top: 50px;
}
.km-all-cta a {
  display: inline-block;
  padding: 14px 42px;
  background: var(--blue);
  color: #fff;
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  border-radius: 50px;
  transition: background .25s;
}
.km-all-cta a:hover { background: var(--blue-dark); color: #fff; }

/* ---------- BOOKS ---------- */

.km-books-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  max-width: 1100px;
  margin: 0 auto;
}
.km-books-grid.count-1 { grid-template-columns: minmax(0, 280px); justify-content: center; }
.km-books-grid.count-2 { grid-template-columns: repeat(2, minmax(0, 280px)); justify-content: center; }
.km-books-grid.count-3 { grid-template-columns: repeat(3, 1fr); max-width: 840px; }

.km-book {
  text-align: center;
  display: block;
  color: inherit;
}
.km-book:hover { color: inherit; }
.km-book-cover {
  aspect-ratio: 360 / 570;
  overflow: hidden;
  box-shadow: 0 10px 28px -10px rgba(0,0,0,0.3);
  transition: transform .4s ease, box-shadow .4s ease;
  background: #f0f0f0;
}
.km-book:hover .km-book-cover {
  transform: translateY(-6px);
  box-shadow: 0 18px 40px -10px rgba(0,0,0,0.35);
}
.km-book-cover img { width: 100%; height: 100%; object-fit: cover; }
.km-book-subtitle {
  margin-top: 18px;
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--blue);
}
.km-book-title {
  margin-top: 6px;
  font-weight: 700; font-size: 15px;
  letter-spacing: 0.06em; color: var(--ink-bold);
  text-transform: uppercase;
}

/* ---------- FILMS ---------- */

.km-films-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.km-film {
  background: #fff;
  overflow: hidden;
  display: block;
  color: inherit;
  transition: transform .3s ease, box-shadow .3s ease;
}
.km-film:hover {
  color: inherit;
  transform: translateY(-3px);
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.15);
}
.km-film-poster {
  aspect-ratio: 16 / 10;
  background: var(--bg-grey-2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.km-film-poster img { width: 100%; height: 100%; object-fit: cover; }
.km-film-placeholder {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  width: 100%; height: 100%;
  padding: 20px; text-align: center;
  background: linear-gradient(135deg, #2a4055 0%, #1a2a3a 100%);
  color: #d8e6f2;
}
.km-film-placeholder-icon {
  width: 36px; height: 36px;
  border: 1.5px solid var(--blue);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 12px;
}
.km-film-placeholder-icon::before {
  content: "▶";
  color: var(--blue);
  font-size: 12px;
  margin-left: 2px;
}
.km-film-placeholder-label {
  font-weight: 600; font-size: 10px;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--blue);
}
.km-film-meta { padding: 18px 20px 22px; }
.km-film-year {
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--blue); text-transform: uppercase;
}
.km-film-title {
  font-weight: 600; font-size: 15px;
  color: var(--ink-bold);
  margin-top: 5px; line-height: 1.3;
  letter-spacing: 0.02em;
}
.km-film-role {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-card);
}

/* ---------- MUSIC ---------- */

.km-music-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  max-width: 1000px;
  margin: 0 auto;
}
.km-album-art {
  aspect-ratio: 1 / 1;
  overflow: hidden;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,0.35);
  background: var(--bg-grey-2);
}
.km-album-art img { width: 100%; height: 100%; object-fit: cover; }
.km-music-label {
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 14px;
}
.km-music-title {
  font-weight: 600; font-size: 28px;
  letter-spacing: 0.02em; line-height: 1.2;
  color: var(--ink-bold);
  margin-bottom: 18px;
}
.km-music-desc {
  margin-bottom: 26px;
  color: var(--ink-card);
  line-height: 1.7;
  font-size: 14px;
}
.km-stream-row { display: flex; flex-direction: column; gap: 10px; }
.km-stream-link {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 22px;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 50px;
  transition: all .25s ease;
  color: var(--ink-soft);
}
.km-stream-link:hover {
  border-color: var(--blue);
  background: #fafdff;
  color: var(--ink-soft);
}
.km-stream-link svg {
  width: 22px; height: 22px;
  color: var(--blue);
  flex-shrink: 0;
}
.km-stream-link span:not(.km-arrow) {
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.14em; text-transform: uppercase;
  flex-grow: 1;
}
.km-stream-link .km-arrow {
  color: var(--blue);
  font-weight: 600;
  font-size: 16px;
}

/* ---------- BIOGRAPHY BAND ---------- */

.km-bio-band {
  background:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,0.025) 1px, transparent 1px),
    radial-gradient(circle at 60% 70%, rgba(255,255,255,0.02) 1px, transparent 1px),
    var(--bg-band-2);
  background-size: 20px 20px, 30px 30px;
  overflow: hidden;
}
.km-bio-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr;
  align-items: stretch;
  min-height: 480px;
}
.km-bio-text {
  padding: 70px 60px;
  color: #d0d0d0;
}
.km-bio-small-logo {
  font-size: 28px; line-height: 1;
  margin-bottom: 30px;
}
.km-bio-first { font-weight: 200; color: var(--ink-lighter); }
.km-bio-last { font-weight: 700; color: #fff; }
.km-bio-tag {
  font-weight: 500; font-size: 12px;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #fff;
  margin-bottom: 24px;
}
.km-bio-copy p {
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.75;
  color: #d0d0d0;
}
.km-bio-copy em { color: #e8e8e8; }
.km-bio-read-more {
  display: inline-block;
  margin-top: 6px;
  color: var(--blue);
  text-decoration: underline;
  font-weight: 500;
}
.km-bio-photo {
  background: #1a1a1a;
  clip-path: polygon(80px 0, 100% 0, 100% 100%, 0 100%);
  overflow: hidden;
}
.km-bio-photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center 15%;
  filter: grayscale(1) contrast(1.05);
}

/* ============================================================
   BLOG INDEX / ARCHIVE / SEARCH
   ============================================================ */

.km-blog-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 50px;
}

.km-blog-header {
  text-align: center;
  padding: 70px 0 50px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}
.km-archive-label {
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.km-blog-title {
  font-weight: 700;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: 0.01em;
  color: var(--ink-bold);
  margin: 0;
}
.km-blog-title span {
  color: var(--blue);
  font-weight: 400;
  font-style: italic;
}
.km-blog-description {
  margin-top: 16px;
  font-size: 15px;
  color: var(--ink-card);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

/* Blog layout with sidebar */
.km-blog-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  padding-bottom: 90px;
}

/* Blog cards */
.km-posts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
}
.km-post-card {
  background: #fff;
  border: 1px solid var(--rule-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s, box-shadow .3s;
}
.km-post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px -12px rgba(0,0,0,0.15);
}
.km-card-image {
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--bg-grey-2);
}
.km-card-image img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .5s ease;
}
.km-post-card:hover .km-card-image img { transform: scale(1.04); }
.km-card-image-placeholder {
  background: linear-gradient(135deg, #2a4055 0%, #1a2a3a 100%);
  position: relative;
}
.km-placeholder-pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(95,180,232,0.15) 2px, transparent 2px),
    radial-gradient(circle at 60% 70%, rgba(95,180,232,0.1) 2px, transparent 2px);
  background-size: 24px 24px, 32px 32px;
}
.km-card-body { padding: 24px 26px 28px; flex: 1; display: flex; flex-direction: column; }
.km-card-cats {
  font-weight: 600; font-size: 10px;
  letter-spacing: 0.24em; text-transform: uppercase;
  margin-bottom: 12px;
}
.km-card-cats a {
  color: var(--blue);
}
.km-card-cats a:hover { color: var(--blue-dark); }
.km-card-title {
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  margin: 0 0 12px;
}
.km-card-title a {
  color: var(--ink-bold);
}
.km-card-title a:hover { color: var(--blue); }
.km-card-meta {
  font-size: 12px;
  color: var(--ink-card);
  margin-bottom: 14px;
  letter-spacing: 0.04em;
}
.km-card-sep { margin: 0 6px; opacity: 0.5; }
.km-card-excerpt {
  font-size: 14px;
  color: var(--ink-card);
  line-height: 1.65;
  margin-bottom: 18px;
  flex: 1;
}
.km-card-excerpt p { margin: 0; }
.km-card-readmore {
  font-weight: 600; font-size: 12px;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 8px;
  align-self: flex-start;
}
.km-card-readmore .km-arrow { transition: transform .25s; }
.km-card-readmore:hover .km-arrow { transform: translateX(4px); }

/* Pagination */
.pagination, .navigation.pagination {
  margin: 60px 0 0;
  text-align: center;
}
.pagination .nav-links, .navigation.pagination .nav-links {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border: 1px solid var(--rule);
  color: var(--ink-soft);
  font-weight: 600; font-size: 13px;
  letter-spacing: 0.04em;
  transition: all .25s;
}
.page-numbers:hover { border-color: var(--blue); color: var(--blue); }
.page-numbers.current {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}
.page-numbers.dots { border: none; }

/* ============================================================
   SIDEBAR (BLOG)
   ============================================================ */

.km-blog-sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.km-blog-sidebar .widget,
.km-blog-sidebar section {
  background: var(--bg-grey);
  padding: 28px 26px;
}
.km-blog-sidebar .widget-title {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-bold);
  margin: 0 0 18px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--blue);
}
.km-blog-sidebar ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.km-blog-sidebar li {
  padding: 8px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 14px;
}
.km-blog-sidebar li:last-child { border-bottom: none; }
.km-blog-sidebar li a {
  color: var(--ink-soft);
}
.km-blog-sidebar li a:hover { color: var(--blue); }
.km-blog-sidebar li .post-date {
  display: block;
  font-size: 11px;
  color: var(--ink-light);
  margin-top: 2px;
  letter-spacing: 0.04em;
}

/* Search form in sidebar */
.km-search-form {
  display: flex;
  border: 1px solid var(--rule);
  background: #fff;
  border-radius: 50px;
  overflow: hidden;
}
.km-search-field {
  flex: 1;
  border: none;
  padding: 12px 18px;
  outline: none;
  background: transparent;
  font-size: 14px;
  color: var(--ink);
  min-width: 0;
}
.km-search-submit {
  background: var(--blue);
  border: none;
  padding: 0 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .25s;
}
.km-search-submit:hover { background: var(--blue-dark); }
.km-search-submit svg { width: 16px; height: 16px; }

/* ============================================================
   SINGLE POST
   ============================================================ */

.km-single-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 30px;
}

.km-single-header {
  text-align: center;
  padding: 70px 0 40px;
}
.km-single-header-inner {
  max-width: 760px;
  margin: 0 auto;
}
.km-single-cats {
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.3em; text-transform: uppercase;
  margin-bottom: 18px;
}
.km-single-cats a {
  color: var(--blue);
}
.km-single-title {
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-bold);
  margin: 0 0 24px;
}
.km-single-meta {
  font-size: 13px;
  color: var(--ink-card);
  letter-spacing: 0.04em;
}
.km-meta-sep { margin: 0 8px; opacity: 0.5; }
.km-meta-author a { color: inherit; font-weight: 600; }
.km-meta-author a:hover { color: var(--blue); }

.km-single-featured {
  max-width: 1100px;
  margin: 0 auto 50px;
}
.km-single-featured img,
.km-featured-img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: cover;
}

.km-single-body {
  max-width: var(--content-w);
  margin: 0 auto;
}

/* Content typography */
.km-single-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}
.km-single-content > * { margin-bottom: 1.5em; }
.km-single-content p { margin-bottom: 1.4em; }
.km-single-content h2 {
  font-size: 28px;
  font-weight: 700;
  margin-top: 1.8em;
  margin-bottom: 0.6em;
  line-height: 1.25;
  color: var(--ink-bold);
}
.km-single-content h3 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  line-height: 1.3;
  color: var(--ink-bold);
}
.km-single-content h4 {
  font-size: 18px;
  font-weight: 700;
  margin-top: 1.5em;
  color: var(--ink-bold);
}
.km-single-content a { color: var(--blue); text-decoration: underline; }
.km-single-content a:hover { color: var(--blue-dark); }
.km-single-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 12px 0 12px 28px;
  margin: 30px 0;
  font-style: italic;
  font-size: 19px;
  color: var(--ink-soft);
  line-height: 1.6;
}
.km-single-content ul, .km-single-content ol {
  margin: 0 0 1.4em 1.4em;
  padding-left: 1em;
}
.km-single-content li { margin-bottom: 0.4em; }
.km-single-content code {
  background: var(--bg-grey-2);
  padding: 2px 8px;
  border-radius: 3px;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.9em;
  color: #d6336c;
}
.km-single-content pre {
  background: #1a1a1a;
  color: #f0f0f0;
  padding: 22px 26px;
  border-radius: 4px;
  overflow-x: auto;
  font-family: "SF Mono", Menlo, Consolas, monospace;
  font-size: 14px;
  line-height: 1.6;
}
.km-single-content pre code { background: transparent; color: inherit; padding: 0; }
.km-single-content img {
  margin: 24px auto;
  border-radius: 2px;
}
.km-single-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
}
.km-single-content th,
.km-single-content td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}
.km-single-content th {
  background: var(--bg-grey);
  font-weight: 600;
}
.km-single-content hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 40px 0;
}

/* Single post footer (tags, share) */
.km-single-footer {
  margin-top: 60px;
  padding: 28px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
.km-single-tags {
  margin-bottom: 22px;
  font-size: 13px;
}
.km-tags-label, .km-share-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 11px;
  color: var(--ink-card);
  margin-right: 10px;
}
.km-single-tags a {
  display: inline-block;
  padding: 4px 12px;
  margin: 0 4px 4px 0;
  background: var(--bg-grey);
  color: var(--ink-soft);
  font-size: 12px;
  border-radius: 50px;
  text-decoration: none;
}
.km-single-tags a:hover { background: var(--blue); color: #fff; }
.km-single-share {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.km-single-share a {
  width: 38px; height: 38px;
  border: 1px solid var(--rule);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  transition: all .25s;
}
.km-single-share a:hover {
  border-color: var(--blue);
  background: var(--blue);
  color: #fff;
}
.km-single-share svg { width: 15px; height: 15px; }

/* Author bio */
.km-author-bio {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  padding: 32px 30px;
  background: var(--bg-grey);
  margin: 50px 0 40px;
  max-width: var(--content-w);
  margin-left: auto;
  margin-right: auto;
}
.km-author-avatar img { border-radius: 50%; }
.km-author-info { flex: 1; }
.km-author-label {
  font-weight: 600; font-size: 11px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 6px;
}
.km-author-name { font-size: 20px; margin: 0 0 8px; color: var(--ink-bold); }
.km-author-desc {
  margin: 0;
  font-size: 14px;
  color: var(--ink-card);
  line-height: 1.7;
}

/* Post navigation */
.km-post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  max-width: var(--content-w);
  margin: 40px auto 80px;
}
.km-post-nav .nav-links {
  display: contents;
}
.km-post-nav .nav-previous,
.km-post-nav .nav-next {
  padding: 22px 24px;
  border: 1px solid var(--rule);
  transition: all .25s;
}
.km-post-nav .nav-previous:hover,
.km-post-nav .nav-next:hover {
  border-color: var(--blue);
  background: var(--bg-grey);
}
.km-post-nav .nav-next { text-align: right; }
.km-post-nav a {
  display: block;
  color: var(--ink-bold);
  text-decoration: none;
}
.km-post-nav .km-nav-label {
  display: block;
  font-weight: 600; font-size: 10px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.km-post-nav .km-nav-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
}

/* ============================================================
   STATIC PAGES
   ============================================================ */

.km-page-template {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 30px;
}
.km-page-header {
  text-align: center;
  padding: 70px 0 40px;
}
.km-page-header-inner {
  max-width: var(--content-w);
  margin: 0 auto;
}
.km-page-title {
  font-weight: 700;
  font-size: clamp(30px, 4.5vw, 48px);
  line-height: 1.2;
  letter-spacing: -0.01em;
  color: var(--ink-bold);
  margin: 0;
}
.km-page-featured {
  max-width: 1100px;
  margin: 0 auto 50px;
}
.km-page-featured img {
  width: 100%; height: auto;
  max-height: 480px;
  object-fit: cover;
}
.km-page-body {
  max-width: var(--content-w);
  margin: 0 auto 80px;
}
.km-page-content {
  font-size: 17px;
  line-height: 1.8;
  color: var(--ink);
}
.km-page-content > * { margin-bottom: 1.5em; }
.km-page-content h2 {
  font-size: 28px; font-weight: 700;
  margin-top: 1.8em; margin-bottom: 0.6em;
  color: var(--ink-bold);
}
.km-page-content h3 {
  font-size: 22px; font-weight: 700;
  margin-top: 1.6em; color: var(--ink-bold);
}
.km-page-content a { color: var(--blue); text-decoration: underline; }
.km-page-content blockquote {
  border-left: 3px solid var(--blue);
  padding: 12px 0 12px 28px;
  margin: 30px 0;
  font-style: italic;
  color: var(--ink-soft);
}
.km-page-content ul, .km-page-content ol {
  margin: 0 0 1.4em 1.4em;
  padding-left: 1em;
}

/* ============================================================
   COMMENTS
   ============================================================ */

.km-comments-area {
  max-width: var(--content-w);
  margin: 60px auto 80px;
}
.km-comments-title {
  font-size: 22px;
  font-weight: 700;
  margin: 0 0 32px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--blue);
}
.km-comment-list,
.comment-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.km-comment-list .comment,
.comment-list .comment,
.km-comment-list li.comment,
.comment-list li.comment {
  margin-bottom: 28px;
  list-style: none;
}
.km-comment-list .comment-body,
.comment-list .comment-body {
  padding: 22px 24px;
  background: var(--bg-grey);
  position: relative;
}
.km-comment-list .children,
.comment-list .children {
  list-style: none;
  margin: 22px 0 0 32px;
  padding: 0;
}
.km-comment-list .comment-author,
.comment-list .comment-author {
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.km-comment-list .comment-author .avatar,
.comment-list .comment-author .avatar {
  border-radius: 50%;
}
.km-comment-list .comment-author .fn,
.comment-list .comment-author .fn {
  font-weight: 600;
  font-size: 14px;
  color: var(--ink-bold);
  font-style: normal;
}
.km-comment-list .says,
.comment-list .says { display: none; }
.km-comment-list .comment-metadata,
.comment-list .comment-metadata {
  font-size: 12px;
  color: var(--ink-light);
  margin-bottom: 12px;
}
.km-comment-list .comment-metadata a,
.comment-list .comment-metadata a { color: inherit; }
.km-comment-list .comment-content p,
.comment-list .comment-content p {
  font-size: 15px;
  color: var(--ink);
  line-height: 1.7;
  margin-bottom: 12px;
}
.km-comment-list .reply,
.comment-list .reply {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
}
.km-comment-list .reply a,
.comment-list .reply a {
  color: var(--blue);
}

/* Comment form */
.comment-respond, .km-comment-form {
  margin-top: 40px;
}
.comment-reply-title {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
}
.km-comment-notes, .comment-notes {
  font-size: 13px;
  color: var(--ink-card);
  margin-bottom: 20px;
}
.comment-form p { margin-bottom: 16px; }
.comment-form label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 6px;
  color: var(--ink-soft);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--rule);
  background: #fff;
  font-size: 15px;
  font-family: var(--font);
  color: var(--ink);
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--blue);
}
.comment-form textarea { min-height: 130px; resize: vertical; }
.comment-form .submit,
.km-submit-btn {
  background: var(--blue);
  border: none;
  color: #fff;
  padding: 14px 36px;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 50px;
  cursor: pointer;
  transition: background .25s;
}
.comment-form .submit:hover,
.km-submit-btn:hover { background: var(--blue-dark); }
.comment-form-cookies-consent label {
  display: inline;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin-left: 8px;
  font-size: 13px;
}

/* ============================================================
   404 ERROR PAGE
   ============================================================ */

.km-error-page {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 80px 30px 100px;
}
.km-error-inner {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}
.km-error-code {
  font-size: clamp(80px, 14vw, 160px);
  font-weight: 800;
  color: var(--blue);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 14px;
}
.km-error-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 14px;
}
.km-error-desc {
  font-size: 16px;
  color: var(--ink-card);
  margin-bottom: 36px;
  line-height: 1.7;
}
.km-error-search {
  max-width: 460px;
  margin: 0 auto 36px;
}
.km-error-actions {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
}
.km-error-btn {
  display: inline-block;
  padding: 14px 32px;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  border-radius: 50px;
}
.km-error-btn:hover { background: var(--blue-dark); color: #fff; }
.km-error-btn-outline {
  background: transparent;
  border: 1px solid var(--blue);
  color: var(--blue);
}
.km-error-btn-outline:hover { background: var(--blue); color: #fff; }

/* ============================================================
   FOOTER
   ============================================================ */

.km-site-footer {
  background: var(--ink-bold);
  color: #888;
  padding: 40px 50px 20px;
  text-align: center;
}
.km-footer-widgets {
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 30px;
  padding-bottom: 30px;
}
.km-footer-widgets-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 36px;
  text-align: left;
}
.km-footer-widgets .footer-widget-title {
  color: #fff;
  font-size: 13px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.km-footer-widgets ul {
  list-style: none;
  margin: 0; padding: 0;
}
.km-footer-widgets li {
  padding: 4px 0;
  font-size: 14px;
}
.km-footer-widgets a {
  color: #aaa;
}
.km-footer-widgets a:hover { color: var(--blue); }
.km-footer-socials {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 24px;
}
.km-footer-socials a {
  width: 38px; height: 38px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #aaa;
  transition: all .25s;
}
.km-footer-socials a:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: rgba(95,180,232,0.1);
}
.km-footer-socials svg { width: 15px; height: 15px; }
.km-footer-copy {
  font-size: 12px;
  color: #888;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.km-footer-copy a { color: #888; }
.km-footer-copy a:hover { color: var(--blue); }
.km-footer-sep { margin: 0 8px; opacity: 0.5; }
.km-footer-menu {
  display: inline-flex;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
  vertical-align: middle;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

@media (max-width: 1080px) {
  .km-desktop-nav .km-nav-list,
  .km-desktop-nav .menu { gap: 18px; }
  .km-desktop-nav a { font-size: 11px; letter-spacing: 0.08em; }
  .km-header-inner { padding: 22px 28px; }
  .km-newsletter { padding: 30px 28px; }
  .km-section { padding: 70px 28px; }
  .km-bio-text { padding: 60px 40px; }
  .km-blog-page { padding: 0 28px; }
  .km-single-page { padding: 0 24px; }
  .km-page-template { padding: 0 24px; }
  .km-blog-layout { gap: 40px; grid-template-columns: 1fr 280px; }
}

@media (max-width: 900px) {
  .km-header-inner { padding: 18px 20px; }
  .km-desktop-nav { display: none; }
  .km-menu-toggle { display: flex; }

  /* HERO stacks: portrait on top, name + welcome below */
  .km-hero { flex-direction: column; }
  .km-hero-photo {
    width: 100%;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 50px), 0 100%);
    min-height: 0;
    aspect-ratio: 4 / 5;
    max-height: 75vh;
  }
  .km-hero-photo img { object-position: center top; }
  .km-hero-right { padding: 24px 22px 50px; }

  /* Newsletter stacks */
  .km-newsletter { padding: 32px 20px; }
  .km-newsletter-inner {
    flex-direction: column;
    gap: 18px;
    align-items: stretch;
  }
  .km-newsletter-label {
    text-align: center;
    font-size: 16px;
    letter-spacing: 0.24em;
  }
  .km-newsletter-form { flex-direction: column; gap: 10px; }
  .km-newsletter-form input,
  .km-newsletter-form button { width: 100%; padding: 16px 22px; }

  /* Sections */
  .km-section { padding: 50px 20px; }
  .km-section-title { font-size: 18px; letter-spacing: 0.28em; margin-bottom: 36px; }

  .km-books-grid { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .km-films-grid { grid-template-columns: repeat(2, 1fr); }

  .km-music-layout { grid-template-columns: 1fr; gap: 36px; }
  .km-album-art { max-width: 360px; margin: 0 auto; width: 100%; }

  /* Bio: stack photo on top, text below */
  .km-bio-inner { grid-template-columns: 1fr; }
  .km-bio-photo {
    clip-path: polygon(0 50px, 100% 0, 100% 100%, 0 100%);
    min-height: 320px;
    order: -1;
  }
  .km-bio-text { padding: 40px 22px 50px; }

  /* Blog: sidebar moves below content */
  .km-blog-page { padding: 0 20px; }
  .km-blog-layout {
    grid-template-columns: 1fr;
    gap: 56px;
  }
  .km-blog-header { padding: 50px 0 36px; margin-bottom: 36px; }
  .km-posts-grid { grid-template-columns: 1fr 1fr; gap: 22px; }

  /* Single */
  .km-single-page { padding: 0 20px; }
  .km-single-header { padding: 50px 0 30px; }
  .km-single-content { font-size: 16px; }
  .km-author-bio { flex-direction: column; text-align: center; }
  .km-post-nav { grid-template-columns: 1fr; gap: 14px; }
  .km-post-nav .nav-next { text-align: left; }

  /* Page */
  .km-page-template { padding: 0 20px; }
  .km-page-content { font-size: 16px; }

  /* Footer */
  .km-site-footer { padding: 40px 20px 20px; }
}

@media (max-width: 600px) {
  .km-brand-logo { font-size: 22px; }
  .km-hero-right { padding: 20px 18px 40px; }
  .km-first-name { letter-spacing: 0.1em; }
  .km-hero-tag { letter-spacing: 0.24em; font-size: 11px; }
  .km-books-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
  .km-films-grid { grid-template-columns: 1fr; gap: 16px; }
  .km-stream-link { padding: 14px 18px; }
  .km-stream-link span:not(.km-arrow) { font-size: 11px; letter-spacing: 0.1em; }
  .km-section-title { font-size: 16px; letter-spacing: 0.24em; }

  /* Blog cards: 1 column */
  .km-posts-grid { grid-template-columns: 1fr; }
  .km-card-body { padding: 22px 22px 24px; }
  .km-card-title { font-size: 18px; }
  .km-blog-title { font-size: 28px; }

  /* Single */
  .km-single-title { font-size: 26px; }
  .km-single-content { font-size: 15px; }
  .km-single-content h2 { font-size: 22px; }
  .km-single-content h3 { font-size: 19px; }
  .km-single-content blockquote { font-size: 16px; padding-left: 20px; }

  /* Page */
  .km-page-title { font-size: 26px; }
  .km-page-content { font-size: 15px; }

  /* 404 */
  .km-error-page { padding: 60px 20px 80px; }
  .km-error-title { font-size: 22px; }
  .km-error-actions { flex-direction: column; }
  .km-error-btn { width: 100%; }

  /* Footer */
  .km-site-footer { padding: 36px 18px 18px; font-size: 10px; }
  .km-footer-copy { letter-spacing: 0.08em; line-height: 1.8; }
  .km-footer-sep { display: block; height: 4px; visibility: hidden; }
}

/* WordPress core image alignment classes */
.alignleft { float: left; margin: 0.5em 1.5em 1em 0; }
.alignright { float: right; margin: 0.5em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull {
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
}
.wp-caption {
  max-width: 100%;
  margin: 1.5em auto;
}
.wp-caption img { display: block; }
.wp-caption-text {
  font-size: 13px;
  color: var(--ink-card);
  text-align: center;
  padding: 8px 16px;
  font-style: italic;
}

@media (max-width: 600px) {
  .alignleft, .alignright { float: none; margin: 1em auto; display: block; }
}

/* Prevent body scroll when mobile menu open */
body.km-menu-open { overflow: hidden; }
