@import url('https://fonts.googleapis.com/css2?family=Special+Elite&family=Playfair+Display:ital,wght@0,400;0,500;1,400&display=swap');

:root {
  --bg: #ffffff;
  --bg2: #f7f6f4;
  --bg3: #f0ede8;
  --text: #1a1816;
  --text-muted: #7a7570;
  --text-dim: #b0ada8;
  --border: rgba(0,0,0,0.08);
  --border-strong: rgba(0,0,0,0.15);
  --bandcamp: #1DA0C3;
  --spotify: #1DB954;
  --typewriter: 'Special Elite', 'Courier New', monospace;
  --serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--typewriter);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── NAV ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-logo {
  font-family: var(--typewriter);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  letter-spacing: 0.03em;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.site-nav a {
  font-family: var(--typewriter);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s;
}

.site-nav a:hover { color: var(--text); }

.nav-hm {
  display: flex;
  align-items: center;
  gap: 6px;
}

.hm-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #e84040;
  flex-shrink: 0;
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.65); }
}

/* ── HERO (featured post) ── */
.hero {
  max-width: 1200px;
  margin: 2.5rem auto;
  padding: 0 2rem;
}

.hero-inner {
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 500px;
  display: flex;
  align-items: flex-end;
  background: #111;
}

.hero-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0.85;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to top, rgba(0,0,0,0.92) 0%, rgba(0,0,0,0.45) 45%, rgba(0,0,0,0.05) 100%),
    linear-gradient(to right, rgba(0,0,0,0.25) 0%, transparent 65%);
}

.hero-content {
  position: relative;
  z-index: 2;
  padding: 2.5rem 3rem;
  width: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.hero-left { max-width: 580px; }

.hero-tags {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0.85rem;
  flex-wrap: wrap;
}

.hero-tag {
  font-family: var(--typewriter);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.18);
  padding: 3px 8px;
  border-radius: 2px;
}

.hero-title {
  font-family: var(--typewriter);
  font-size: 44px;
  font-weight: 400;
  line-height: 1.18;
  color: #fff;
  margin-bottom: 0.85rem;
}

.hero-excerpt {
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  line-height: 1.75;
  margin-bottom: 1.25rem;
}

.hero-meta {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.35);
  text-transform: uppercase;
  margin-bottom: 1.1rem;
}

.heart { color: #e84040; }

.stream-btns { display: flex; gap: 8px; flex-wrap: wrap; }

.btn-stream {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 3px;
  font-family: var(--typewriter);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
  transition: opacity 0.15s, transform 0.15s;
}

.btn-stream:hover { opacity: 0.82; transform: translateY(-1px); }
.btn-bandcamp { background: var(--bandcamp); }
.btn-spotify  { background: var(--spotify); }

.hero-thumb {
  flex-shrink: 0;
  width: 110px;
  height: 110px;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  display: none;
}

@media (min-width: 700px) { .hero-thumb { display: block; } }

.hero-thumb img { width: 100%; height: 100%; object-fit: cover; }

/* ── CONTAINER ── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── SECTION DIVIDER ── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.section-divider-label {
  font-family: var(--typewriter);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  white-space: nowrap;
}

.section-divider-line { flex: 1; height: 1px; background: var(--border); }

/* ── MAIN LAYOUT ── */
.main-layout {
  display: grid;
  grid-template-columns: minmax(0,1fr) 270px;
  gap: 4rem;
  padding-bottom: 5rem;
}

/* ── POST GRID ── */
.post-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 1.25rem;
  margin-bottom: 2.5rem;
}

.post-card {
  position: relative;
  border-radius: 5px;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 1 / 1.05;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.09);
  background: #111;
}

.post-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0,0,0,0.16);
}

.post-card-art {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.4s ease;
}

.post-card:hover .post-card-art { transform: scale(1.03); }

.post-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.92) 0%,
    rgba(0,0,0,0.55) 38%,
    rgba(0,0,0,0.08) 70%,
    transparent 100%
  );
}

.post-card-body {
  position: relative;
  z-index: 2;
  padding: 1.1rem 1.15rem;
}

.post-card-tag {
  font-family: var(--typewriter);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  display: block;
  margin-bottom: 0.25rem;
}

.post-card-title {
  font-family: var(--typewriter);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.3;
  color: #fff;
  margin-bottom: 0.45rem;
  transition: color 0.2s;
}

.post-card:hover .post-card-title { color: #ffe9a0; }

.post-card-meta {
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.32);
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.post-card-stream { display: flex; gap: 5px; flex-wrap: wrap; }

.mini-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 9px;
  border-radius: 2px;
  font-family: var(--typewriter);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  opacity: 0.88;
  transition: opacity 0.15s;
}

.mini-btn:hover { opacity: 1; }
.mini-btn-bc { background: var(--bandcamp); }
.mini-btn-sp { background: var(--spotify); }

/* ── LOAD MORE / PAGINATION ── */
.load-more-row,
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0 2rem;
}

.btn-load-more,
.pagination a,
.pagination span {
  font-family: var(--typewriter);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 10px 20px;
  border-radius: 2px;
  cursor: pointer;
  background: transparent;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-load-more:hover,
.pagination a:hover {
  color: var(--text);
  background: var(--bg2);
  border-color: var(--text-dim);
}

.pagination .page-number {
  border: none;
  color: var(--text-dim);
  cursor: default;
  padding: 10px 8px;
}

/* ── POST DETAIL PAGE ── */
.post-header {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem 0;
}

.post-header-inner {
  display: grid;
  grid-template-columns: minmax(0,1fr) 320px;
  gap: 4rem;
  align-items: start;
  padding-bottom: 3rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.post-header-art {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 5px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

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

.post-tags { display: flex; gap: 0.5rem; margin-bottom: 0.8rem; flex-wrap: wrap; }

.post-tag {
  font-family: var(--typewriter);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  border: 1px solid var(--border-strong);
  padding: 3px 8px;
  border-radius: 2px;
}

.post-title {
  font-family: var(--typewriter);
  font-size: 38px;
  font-weight: 400;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.post-meta {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.5rem;
}

.post-excerpt {
  font-size: 16px;
  line-height: 1.8;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.post-stream-header {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* ── POST BODY ── */
.post-body {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 2rem 4rem;
}

.post-body p {
  font-size: 16px;
  line-height: 1.85;
  color: #3a3630;
  margin-bottom: 1.25rem;
}

.post-body em { font-style: italic; }

.post-body a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 0.15s;
}

.post-body a:hover { border-color: var(--text); }

.post-body h2 {
  font-family: var(--typewriter);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: 2rem 0 0.75rem;
}

.post-footer-credit {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
  border-top: 1px solid var(--border);
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── SIDEBAR ── */
.sidebar-widget { margin-bottom: 2.5rem; }

.sidebar-widget-title {
  font-family: var(--typewriter);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1rem;
}

.sidebar-post {
  display: flex;
  gap: 10px;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: opacity 0.2s;
}

.sidebar-post:hover { opacity: 0.6; }
.sidebar-post:last-child { border-bottom: none; }

.sidebar-thumb {
  width: 46px;
  height: 46px;
  border-radius: 3px;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
  overflow: hidden;
}

.sidebar-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sidebar-post-title {
  font-family: var(--typewriter);
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.35;
  margin-bottom: 2px;
}

.sidebar-post-meta {
  font-family: var(--typewriter);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }

.tag-pill {
  font-family: var(--typewriter);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
}

.tag-pill:hover { border-color: var(--text); color: var(--text); background: var(--bg2); }

.about-widget {
  font-family: var(--typewriter);
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.7;
}

.about-widget a {
  color: var(--text);
  border-bottom: 1px solid var(--border-strong);
  transition: border-color 0.15s;
}

.about-widget a:hover { border-color: var(--text); }

/* ── TAG / AUTHOR ARCHIVE ── */
.archive-header {
  max-width: 1200px;
  margin: 3rem auto 0;
  padding: 0 2rem 2rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 3rem;
}

.archive-title {
  font-family: var(--typewriter);
  font-size: 32px;
  font-weight: 400;
  color: var(--text);
  margin-bottom: 0.4rem;
}

.archive-count {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

/* ── ERROR PAGE ── */
.error-page {
  max-width: 600px;
  margin: 8rem auto;
  padding: 0 2rem;
  text-align: center;
}

.error-code {
  font-family: var(--typewriter);
  font-size: 80px;
  color: var(--text-dim);
  line-height: 1;
  margin-bottom: 1rem;
}

.error-message {
  font-family: var(--typewriter);
  font-size: 18px;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.error-link {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
  border: 1px solid var(--border-strong);
  padding: 10px 24px;
  border-radius: 2px;
  display: inline-block;
  transition: background 0.2s;
}

.error-link:hover { background: var(--bg2); }

/* ── FOOTER ── */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg2);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-logo {
  font-family: var(--typewriter);
  font-size: 14px;
  color: var(--text-muted);
}

.footer-nav {
  font-family: var(--typewriter);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-dim);
  display: flex;
  gap: 1.5rem;
  align-items: center;
  flex-wrap: wrap;
  list-style: none;
}

.footer-nav a { color: var(--text-dim); transition: color 0.15s; }
.footer-nav a:hover { color: var(--text-muted); }

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-content { animation: fadeUp 0.5s ease forwards; }

.post-card {
  opacity: 0;
  animation: fadeUp 0.4s ease forwards;
}

.post-card:nth-child(1) { animation-delay: 0.05s; }
.post-card:nth-child(2) { animation-delay: 0.10s; }
.post-card:nth-child(3) { animation-delay: 0.15s; }
.post-card:nth-child(4) { animation-delay: 0.20s; }
.post-card:nth-child(5) { animation-delay: 0.25s; }
.post-card:nth-child(6) { animation-delay: 0.30s; }

/* ── RESPONSIVE ── */
@media (max-width: 960px) {
  .main-layout { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .post-header-inner { grid-template-columns: 1fr; }
  .post-header-art { max-width: 260px; }
}

@media (max-width: 640px) {
  .post-grid { grid-template-columns: 1fr; }
  .hero-title { font-size: 28px; }
  .hero-content { padding: 1.75rem; }
  .nav-inner { padding: 0 1rem; }
  .container { padding: 0 1rem; }
  .hero { padding: 0 1rem; margin: 1.5rem auto; }
  .post-title { font-size: 26px; }
}

/* ── GHOST REQUIRED CARD CLASSES ── */
.kg-width-wide {
  margin-left: calc(50% - 45vw);
  margin-right: calc(50% - 45vw);
  max-width: 90vw;
}

.kg-width-full {
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
}

.kg-image { max-width: 100%; height: auto; }

.kg-image-card { margin: 1.5rem 0; }
.kg-image-card img { border-radius: 4px; }

.kg-gallery-container { display: flex; flex-direction: column; }
.kg-gallery-row { display: flex; gap: 8px; margin-bottom: 8px; }
.kg-gallery-image { flex: 1; }
.kg-gallery-image img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }

.kg-bookmark-card {
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.kg-bookmark-container {
  display: flex;
  text-decoration: none;
  color: var(--text);
}

.kg-bookmark-content { padding: 1rem; flex: 1; }
.kg-bookmark-title { font-weight: 500; margin-bottom: 0.25rem; }
.kg-bookmark-description { font-size: 13px; color: var(--text-muted); }
.kg-bookmark-thumbnail { width: 160px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

.kg-video-card { margin: 1.5rem 0; }
.kg-video-card video { width: 100%; border-radius: 4px; }

.kg-audio-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  margin: 1.5rem 0;
}

.kg-embed-card { margin: 1.5rem 0; }
.kg-embed-card iframe { width: 100%; }

.kg-callout-card {
  background: var(--bg2);
  border-left: 3px solid var(--border-strong);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  border-radius: 0 4px 4px 0;
  display: flex;
  gap: 0.75rem;
}

.kg-callout-emoji { font-size: 20px; flex-shrink: 0; }

.kg-toggle-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  margin: 1.5rem 0;
  overflow: hidden;
}

.kg-toggle-heading {
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 500;
}

.kg-toggle-content { padding: 0.75rem 1rem; border-top: 1px solid var(--border); }

.kg-button-card { margin: 1.5rem 0; text-align: center; }
.kg-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid var(--border-strong);
  border-radius: 3px;
  font-family: var(--typewriter);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text);
  transition: background 0.2s;
}
.kg-btn:hover { background: var(--bg2); }
.kg-btn-accent { background: var(--text); color: #fff; }
.kg-btn-accent:hover { opacity: 0.85; }

blockquote {
  border-left: 3px solid var(--border-strong);
  margin: 1.5rem 0;
  padding: 0.5rem 1.25rem;
  color: var(--text-muted);
  font-style: italic;
}

pre {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem;
  overflow-x: auto;
  margin: 1.5rem 0;
  font-size: 13px;
}

code {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1px 5px;
  font-size: 0.9em;
}
