/* ── RESET & ROOT ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --charcoal:      #1A1A1A;
  --charcoal-soft: #2e2e2e;
  --beige:         #F5EBDD;
  --beige-dark:    #e8d9c5;
  --crimson:       #D7263D;
}

html { scroll-behavior: smooth; }

body {
  background-color: var(--charcoal);
  color: var(--beige);
  font-family: 'Open Sans', sans-serif;
  font-size: 16px;
  line-height: 1.7;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4, h5, h6 {
  font-family: 'Bebas Neue', sans-serif;
  letter-spacing: 0.04em;
  line-height: 1.05;
  color: var(--beige);
}

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

p { color: rgba(245, 235, 221, 0.85); }

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.accent { color: var(--crimson); }

.container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ── NAV ── */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: rgba(26, 26, 26, 0.93);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid rgba(245, 235, 221, 0.08);
}

.nav-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--beige);
}

.nav-logo span { color: var(--crimson); }

.nav-links {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-links li a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beige);
  opacity: 0.75;
  transition: opacity 0.2s, color 0.2s;
}

.nav-links li a:hover { opacity: 1; color: var(--crimson); }

.nav-hamburger {
  display: none;
  background: none;
  border: none;
  color: var(--beige);
  font-size: 1.4rem;
  cursor: pointer;
}

/* ── BLOG HERO ── */
.blog-hero {
  padding: 10rem 2rem 5rem;
  max-width: 900px;
  margin: 0 auto;
}

.blog-hero h1 {
  font-size: clamp(3.5rem, 9vw, 7rem);
  margin-bottom: 1.2rem;
}

.blog-hero-sub {
  font-size: 1.1rem;
  font-style: italic;
  font-weight: 300;
  color: var(--beige-dark);
  max-width: 560px;
}

/* ── POST FEED ── */
.post-feed-section {
  padding: 2rem 0 6rem;
  background: var(--charcoal);
}

.post-feed-section .container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
  gap: 2.5rem;
}

/* ── POST CARD ── */
.post-card {
  background: var(--charcoal-soft);
  border: 1px solid rgba(245, 235, 221, 0.08);
  border-top: 3px solid var(--crimson);
  border-radius: 2px;
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s;
}

.post-card:hover {
  border-top-color: var(--beige);
  transform: translateY(-2px);
}

.post-card-image-link { display: block; }

.post-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.post-card-content { padding: 1.8rem; }

.post-card-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 0.6rem;
}

.post-card-title {
  font-size: 1.7rem;
  margin-bottom: 0.8rem;
}

.post-card-title a:hover { color: var(--crimson); }

.post-card-excerpt {
  font-size: 0.95rem;
  color: rgba(245, 235, 221, 0.65);
  margin-bottom: 1.2rem;
  line-height: 1.6;
}

.post-card-meta {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(245, 235, 221, 0.45);
  text-transform: uppercase;
}

.post-card-sep { margin: 0 0.4rem; }

/* ── SINGLE POST ── */
.post-header {
  padding: 9rem 0 3rem;
  background: var(--charcoal-soft);
  border-bottom: 1px solid rgba(245, 235, 221, 0.06);
}

.post-tag {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--crimson);
  margin-bottom: 1rem;
}

.post-title {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 1.2rem;
  max-width: 780px;
}

.post-excerpt {
  font-size: 1.15rem;
  font-style: italic;
  font-weight: 300;
  color: var(--beige-dark);
  max-width: 640px;
  margin-bottom: 1.5rem;
}

.post-meta {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 235, 221, 0.45);
}

.post-sep { margin: 0 0.5rem; }

.post-feature-image {
  background: var(--charcoal-soft);
  padding: 2rem 0 0;
}

.post-feature-image img {
  width: 100%;
  max-height: 500px;
  object-fit: cover;
  border-radius: 2px;
}

/* ── POST CONTENT ── */
.post-content {
  padding: 4rem 2rem;
  max-width: 720px;
}

.post-content p {
  font-size: 1.05rem;
  line-height: 1.85;
  margin-bottom: 1.5rem;
  color: rgba(245, 235, 221, 0.88);
}

.post-content h2 {
  font-size: 2.2rem;
  margin: 2.5rem 0 1rem;
}

.post-content h3 {
  font-size: 1.6rem;
  margin: 2rem 0 0.8rem;
}

.post-content h4 {
  font-size: 1.2rem;
  margin: 1.5rem 0 0.6rem;
}

.post-content a {
  color: var(--crimson);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.post-content a:hover { color: var(--beige); }

.post-content blockquote {
  border-left: 4px solid var(--crimson);
  padding: 0.5rem 0 0.5rem 1.5rem;
  margin: 2rem 0;
  font-style: italic;
  font-size: 1.15rem;
  color: var(--beige-dark);
}

.post-content ul, .post-content ol {
  padding-left: 1.8rem;
  margin-bottom: 1.5rem;
  color: rgba(245, 235, 221, 0.88);
}

.post-content li { margin-bottom: 0.4rem; }

.post-content img {
  max-width: 100%;
  border-radius: 2px;
  margin: 1.5rem 0;
}

.post-content hr {
  border: none;
  border-top: 1px solid rgba(245, 235, 221, 0.1);
  margin: 3rem 0;
}

.post-content code {
  background: rgba(245, 235, 221, 0.08);
  padding: 0.15em 0.4em;
  border-radius: 3px;
  font-size: 0.9em;
  color: var(--crimson);
}

.post-content pre {
  background: rgba(245, 235, 221, 0.05);
  border: 1px solid rgba(245, 235, 221, 0.1);
  border-radius: 3px;
  padding: 1.2rem;
  overflow-x: auto;
  margin-bottom: 1.5rem;
}

.post-content pre code {
  background: none;
  padding: 0;
  color: var(--beige);
}

/* ── POST FOOTER ── */
.post-footer {
  padding: 2rem 2rem 5rem;
  max-width: 720px;
}

.post-divider {
  width: 48px;
  height: 3px;
  background: var(--crimson);
  margin-bottom: 2rem;
}

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

.post-tag-pill {
  background: rgba(245, 235, 221, 0.06);
  border: 1px solid rgba(245, 235, 221, 0.12);
  border-radius: 2px;
  padding: 0.3rem 0.8rem;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(245, 235, 221, 0.6);
  transition: all 0.2s;
}

.post-tag-pill:hover {
  border-color: var(--crimson);
  color: var(--beige);
}

.post-author-card {
  display: flex;
  align-items: flex-start;
  gap: 1.2rem;
  background: var(--charcoal-soft);
  border: 1px solid rgba(245, 235, 221, 0.08);
  border-left: 3px solid var(--crimson);
  padding: 1.5rem;
  border-radius: 2px;
}

.author-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.author-name {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.author-bio {
  font-size: 0.9rem;
  color: rgba(245, 235, 221, 0.65);
  line-height: 1.6;
}

/* ── SUBSCRIBE SECTION ── */
.post-subscribe {
  background: var(--crimson);
  padding: 5rem 0;
}

.subscribe-box h2 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  color: var(--beige);
  margin-bottom: 0.8rem;
}

.subscribe-box p {
  color: rgba(245, 235, 221, 0.85);
  margin-bottom: 1.5rem;
}

.subscribe-form {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  max-width: 480px;
}

.subscribe-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.85rem 1.2rem;
  background: rgba(26, 26, 26, 0.3);
  border: 2px solid rgba(245, 235, 221, 0.4);
  border-radius: 2px;
  color: var(--beige);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
}

.subscribe-form input[type="email"]::placeholder { color: rgba(245, 235, 221, 0.5); }
.subscribe-form input[type="email"]:focus { border-color: var(--beige); }

.subscribe-success {
  font-size: 0.9rem;
  color: var(--beige);
  margin-top: 0.5rem;
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  padding: 0.85rem 2rem;
  font-family: 'Open Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 2px solid transparent;
}

.btn-primary {
  background: var(--crimson);
  color: var(--beige);
  border-color: var(--crimson);
}

.btn-primary:hover {
  background: transparent;
  color: var(--crimson);
}

.btn-dark {
  background: var(--charcoal);
  color: var(--beige);
  border-color: var(--charcoal);
}

.btn-dark:hover {
  background: transparent;
  color: var(--charcoal);
}

/* ── PAGINATION ── */
.pagination {
  max-width: 900px;
  margin: 3rem auto 0;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.pagination a {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--beige);
  opacity: 0.6;
  transition: opacity 0.2s, color 0.2s;
}

.pagination a:hover { opacity: 1; color: var(--crimson); }

.pagination .page-number {
  font-size: 0.8rem;
  color: rgba(245, 235, 221, 0.35);
}

/* ── ERROR PAGE ── */
.error-page {
  padding: 12rem 2rem 8rem;
  text-align: center;
}

.error-page h1 {
  font-size: clamp(3rem, 8vw, 6rem);
  margin-bottom: 1rem;
}

.error-page p {
  margin-bottom: 2rem;
  font-style: italic;
}

/* ── AUTHOR HERO AVATAR ── */
.author-hero-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 1rem;
  border: 3px solid var(--crimson);
}

/* ── FOOTER ── */
.site-footer {
  background: #111;
  padding: 3rem 2rem;
  text-align: center;
  border-top: 1px solid rgba(245, 235, 221, 0.06);
}

.footer-inner { max-width: 900px; margin: 0 auto; }

.footer-logo {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.6rem;
  letter-spacing: 0.1em;
  color: var(--beige);
  margin-bottom: 0.4rem;
}

.footer-logo span { color: var(--crimson); }

.footer-tagline {
  font-size: 0.85rem;
  font-style: italic;
  color: rgba(245, 235, 221, 0.4);
  margin-bottom: 1.5rem;
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 2rem;
  flex-wrap: wrap;
  margin-bottom: 1.2rem;
}

.footer-links a {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(245, 235, 221, 0.45);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--crimson); }

.footer-hashtags {
  font-size: 0.8rem;
  color: rgba(215, 38, 61, 0.55);
  margin-bottom: 1.2rem;
}

.footer-copy {
  font-size: 0.75rem;
  color: rgba(245, 235, 221, 0.2);
}

/* ── KOENIG EDITOR CARDS ── */

/* Wide & full width breakouts */
.kg-width-wide {
  position: relative;
  width: 85vw;
  max-width: 1200px;
  margin-left: calc(50% - 42.5vw);
  margin-right: calc(50% - 42.5vw);
}

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

/* Image card */
.kg-image-card { margin: 1.5rem 0; }
.kg-image-card img { width: 100%; height: auto; border-radius: 2px; }
.kg-image-card figcaption {
  font-size: 0.8rem;
  color: rgba(245,235,221,0.4);
  text-align: center;
  margin-top: 0.5rem;
  font-style: italic;
}

/* Gallery card */
.kg-gallery-card { margin: 1.5rem 0; }
.kg-gallery-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.kg-gallery-row {
  display: flex;
  gap: 4px;
}
.kg-gallery-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
}

/* Bookmark card */
.kg-bookmark-card { margin: 1.5rem 0; }
.kg-bookmark-container {
  display: flex;
  background: var(--charcoal-soft);
  border: 1px solid rgba(245,235,221,0.1);
  border-radius: 2px;
  overflow: hidden;
  text-decoration: none;
}
.kg-bookmark-content { padding: 1.2rem; flex: 1; }
.kg-bookmark-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.1rem;
  color: var(--beige);
  margin-bottom: 0.3rem;
}
.kg-bookmark-description {
  font-size: 0.85rem;
  color: rgba(245,235,221,0.6);
  margin-bottom: 0.5rem;
}
.kg-bookmark-metadata { font-size: 0.75rem; color: rgba(245,235,221,0.4); }
.kg-bookmark-thumbnail { width: 140px; flex-shrink: 0; }
.kg-bookmark-thumbnail img { width: 100%; height: 100%; object-fit: cover; }

/* Callout card */
.kg-callout-card {
  display: flex;
  gap: 1rem;
  background: rgba(215,38,61,0.1);
  border: 1px solid rgba(215,38,61,0.25);
  border-radius: 2px;
  padding: 1.2rem;
  margin: 1.5rem 0;
}
.kg-callout-emoji { font-size: 1.4rem; flex-shrink: 0; }
.kg-callout-text { font-size: 0.95rem; color: rgba(245,235,221,0.85); }

/* Toggle card */
.kg-toggle-card {
  background: var(--charcoal-soft);
  border: 1px solid rgba(245,235,221,0.1);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  margin: 1.5rem 0;
}
.kg-toggle-heading {
  display: flex;
  justify-content: space-between;
  cursor: pointer;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 1.2rem;
  letter-spacing: 0.04em;
}
.kg-toggle-content { font-size: 0.95rem; margin-top: 0.8rem; color: rgba(245,235,221,0.75); }

/* Video card */
.kg-video-card { margin: 1.5rem 0; position: relative; }
.kg-video-card video { width: 100%; border-radius: 2px; }

/* Audio card */
.kg-audio-card {
  background: var(--charcoal-soft);
  border: 1px solid rgba(245,235,221,0.1);
  border-radius: 2px;
  padding: 1.2rem;
  margin: 1.5rem 0;
}
.kg-audio-card audio { width: 100%; margin-top: 0.5rem; }
.kg-audio-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; margin-bottom: 0.3rem; }

/* File card */
.kg-file-card { margin: 1.5rem 0; }
.kg-file-card-container {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--charcoal-soft);
  border: 1px solid rgba(245,235,221,0.1);
  border-radius: 2px;
  padding: 1rem 1.2rem;
  text-decoration: none;
}
.kg-file-card-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.1rem; color: var(--beige); }
.kg-file-card-caption { font-size: 0.8rem; color: rgba(245,235,221,0.5); }

/* Embed card */
.kg-embed-card { margin: 1.5rem 0; }
.kg-embed-card iframe { width: 100%; border-radius: 2px; }

/* Header card */
.kg-header-card {
  background: var(--charcoal-soft);
  padding: 4rem 2rem;
  text-align: center;
  margin: 1.5rem 0;
}
.kg-header-card h2 { font-size: clamp(2rem, 5vw, 4rem); }
.kg-header-card p { color: rgba(245,235,221,0.7); margin-top: 0.8rem; }

/* Product card */
.kg-product-card {
  background: var(--charcoal-soft);
  border: 1px solid rgba(245,235,221,0.1);
  border-radius: 2px;
  padding: 1.5rem;
  margin: 1.5rem 0;
}
.kg-product-card-title { font-family: 'Bebas Neue', sans-serif; font-size: 1.5rem; margin-bottom: 0.5rem; }
.kg-product-card-description { font-size: 0.95rem; color: rgba(245,235,221,0.75); }

/* CTA card */
.kg-cta-card {
  background: var(--crimson);
  padding: 3rem 2rem;
  text-align: center;
  border-radius: 2px;
  margin: 1.5rem 0;
}
.kg-cta-card h2 { font-size: clamp(1.8rem, 4vw, 3rem); color: var(--beige); }

/* Responsive Koenig */
@media (max-width: 700px) {
  .kg-width-wide {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
  .kg-width-full {
    width: 100vw;
    margin-left: -2rem;
    margin-right: -2rem;
  }
  .kg-bookmark-thumbnail { display: none; }
}

/* ── RESPONSIVE ── */
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-hamburger { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--charcoal);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(245, 235, 221, 0.08);
    gap: 1.2rem;
  }
  .post-feed-section .container { grid-template-columns: 1fr; }
  .post-author-card { flex-direction: column; }
}
