/* ============================================================
   Shared Narratium rev1 styles
   Used by: index.html, post.html, category.html, author.html,
            features.html
============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --yin-1: #000000;
  --yin-2: #111111;
  --yang-1: #ffffff;
  --yang-2: #f5f5f5;
  --yang-4: #ededed;
  --accent: #ab5d6a;
}

html, body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--yin-1);
  color: #ffffff;
  line-height: 1.55;
  font-weight: 500;
  -webkit-font-smoothing: antialiased;
}

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

/* ============================================================
   FIXED MENU BUTTONS (top-left)
============================================================ */
#top-bar {
  position: fixed;
  top: 18px;
  left: 18px;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: 8px;
}

#logo-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.2);
  cursor: pointer;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  overflow: hidden;
  padding: 8px;
}

#logo-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

#menu-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.45);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 14px;
  height: 38px;
  border-radius: 4px;
  cursor: pointer;
  backdrop-filter: blur(4px);
}

#menu-btn .hamburger { display: flex; flex-direction: column; gap: 4px; }
#menu-btn .hamburger span {
  display: block; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
}

/* ============================================================
   SLIDE-IN SIDEBAR MENU
============================================================ */
#slide-menu {
  position: fixed;
  top: 0; left: 0;
  width: 360px;
  height: 100%;
  background: var(--yang-2);
  z-index: 2000;
  transform: translateX(-400px);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  box-shadow: 4px 0 30px rgba(0,0,0,0.25);
}

#slide-menu.open { transform: translateX(0); }

#menu-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1999;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s;
}

#menu-overlay.open { opacity: 1; pointer-events: all; }

#menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid rgba(79,57,57,0.12);
}

#menu-home-btn {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; color: var(--yin-1);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.1rem; font-weight: 700;
}

#menu-home-btn svg { width: 18px; height: 18px; fill: var(--yin-1); }

#close-btn {
  background: none; border: none; cursor: pointer;
  color: var(--yin-1); font-size: 1.5rem; line-height: 1;
  padding: 4px 8px; opacity: 0.7;
}
#close-btn:hover { opacity: 1; }

#slide-nav {
  padding: 10px 0;
  border-bottom: 1px solid rgba(79,57,57,0.12);
}

#slide-nav ul { list-style: none; }

#slide-nav li a {
  display: block;
  padding: 11px 24px;
  text-decoration: none;
  color: var(--yin-1);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  transition: background 0.15s;
}

#slide-nav li a:hover { background: rgba(79,57,57,0.07); }

#slide-nav li.has-submenu > a::after {
  content: ' \25BE';
  font-size: 0.75rem; opacity: 0.6;
}

#slide-nav .submenu { display: none; background: rgba(79,57,57,0.04); }
#slide-nav .submenu.open { display: block; }

#slide-nav .submenu li a {
  padding-left: 38px;
  font-weight: 400;
  font-size: 0.85rem;
}

#menu-search { padding: 16px 22px; border-bottom: 1px solid rgba(79,57,57,0.12); }
#menu-search form { display: flex; gap: 0; }
#menu-search input {
  flex: 1;
  border: 1px solid rgba(79,57,57,0.25);
  border-right: none;
  padding: 9px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  background: #fff;
  color: var(--yin-1);
  outline: none;
  border-radius: 3px 0 0 3px;
}
#menu-search button {
  background: var(--yin-1);
  border: none;
  padding: 9px 14px;
  color: #fff;
  cursor: pointer;
  border-radius: 0 3px 3px 0;
  font-size: 0.85rem;
}

.sidebar-widget {
  padding: 18px 22px;
  border-bottom: 1px solid rgba(79,57,57,0.12);
}
.sidebar-widget h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: var(--yin-1);
  margin-bottom: 12px;
  letter-spacing: 0.02em;
}
.sidebar-widget ul { list-style: none; }
.sidebar-widget ul li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(79,57,57,0.08);
  font-size: 0.82rem;
  color: var(--yin-2);
  line-height: 1.4;
}
.sidebar-widget ul li:last-child { border-bottom: none; }
.sidebar-widget ul li a {
  color: var(--yin-1);
  text-decoration: none;
  font-weight: 700;
}
.sidebar-widget ul li a:hover { color: var(--accent); }

#menu-footer {
  margin-top: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#menu-footer .footer-links { display: flex; gap: 16px; }
#menu-footer .footer-links a {
  font-size: 0.78rem;
  color: var(--yin-2);
  text-decoration: none;
  font-family: 'Inter', system-ui, sans-serif;
}
#menu-footer .footer-links a:hover { color: var(--yin-1); }
#menu-footer .copyright {
  font-size: 0.73rem;
  color: rgba(79,57,57,0.55);
  font-family: 'Inter', system-ui, sans-serif;
}

/* ============================================================
   PAGE WRAPPER & LEFT SIDEHEADER
============================================================ */
#page-wrapper {
  display: flex;
  flex-direction: row;
  min-height: 100vh;
}

#basic-sideheader {
  width: 400px;
  min-width: 400px;
  max-width: 400px;
  min-height: 100vh;
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-image: url('assets/elias-kat.jpg');
  background-size: cover;
  background-position: 30% 30%;
  overflow: hidden;
}

#sideheader-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, #000 38%, rgba(0,0,0,0.15) 100%);
  z-index: 0;
}

#sideheader-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 0 40px 36px 40px;
  gap: 12px;
}

#site-logo { display: none; }

#site-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 2.05rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

#site-title a { color: inherit; text-decoration: none; }

#site-description {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
  color: #ffffff;
  line-height: 1.65;
  max-width: 300px;
}

#site-description strong { color: #ffffff; }

#social-icons {
  display: flex; flex-direction: row; gap: 6px;
  margin-top: 6px;
}

.social-btn {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background 0.2s;
  text-decoration: none;
  color: #fff;
}
.social-btn:hover { background: rgba(255,255,255,0.25); }
.social-btn svg { width: 15px; height: 15px; fill: #fff; }

#sideheader-pagination {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  width: 100%;
  margin-top: 8px;
}

.page-link {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
  text-decoration: none;
  cursor: default;
}

.page-link.active { color: #ffffff; cursor: pointer; }
.page-link.active:hover { color: #fff; }

/* ============================================================
   MAIN CONTENT AREA (shared by all pages)
============================================================ */
#site-body {
  flex: 1;
  background: var(--yin-1);
  display: flex;
  flex-wrap: wrap;
  align-content: flex-start;
}

/* ============================================================
   HOMEPAGE ARTICLE CARDS
============================================================ */
.article-card {
  position: relative;
  overflow: hidden;
  min-height: 500px;
  max-height: 800px;
  height: 40vw;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background-size: cover;
  background-position: center;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.06);
  cursor: pointer;
  text-decoration: none;
}

.article-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.7) 12%, rgba(0,0,0,0) 38%);
  z-index: 0;
  transition: opacity 0.3s;
}

.article-card:hover::before { opacity: 0.88; }

.card-wide { flex: 0 0 66.666%; max-width: 66.666%; }
.card-narrow { flex: 0 0 33.333%; max-width: 33.333%; }

.card-content {
  position: relative;
  z-index: 1;
  padding: 28px 32px 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
  margin: 0;
}

.card-narrow .card-title { font-size: 1.15rem; }

.card-excerpt {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  color: #ffffff;
  line-height: 1.6;
  margin: 0;
}

.card-separator {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.2);
  margin: 4px 0;
}

.card-authors {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  color: #ffffff;
  letter-spacing: 0.02em;
}

/* ============================================================
   POST / CATEGORY / AUTHOR — content column
============================================================ */
.content-col {
  flex: 1;
  padding: 72px 60px 72px 60px;
  max-width: 900px;
  color: #ffffff;
}

.post-header { margin-bottom: 36px; }

.post-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 2.8rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}

.post-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: 1.25rem;
  color: #ffffff;
  line-height: 1.45;
  margin-bottom: 24px;
}

.post-meta {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  color: #ffffff;
  letter-spacing: 0.03em;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.post-meta a { color: #ffffff; text-decoration: none; font-weight: 700; }
.post-meta a:hover { color: var(--accent); }
.post-meta .sep { color: #ffffff; }

.post-nav {
  display: flex;
  justify-content: space-between;
  margin: 20px 0 32px 0;
  padding: 16px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-nav a { color: #ffffff; text-decoration: none; }
.post-nav a:hover { color: #fff; }
.post-nav .disabled { color: #ffffff; }

.post-body { font-family: 'Inter', system-ui, sans-serif; font-size: 1.05rem; line-height: 1.75; }
.post-body p { margin-bottom: 22px; color: #ffffff; }
.post-body p strong { color: #fff; }
.post-body a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.post-body a:hover { color: #fff; }

.post-body h2 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.25;
  margin: 36px 0 20px 0;
}

.post-body hr {
  border: none;
  border-top: 1px solid rgba(255,255,255,0.15);
  margin: 36px 0;
}

.post-body figure {
  margin: 28px 0;
  padding: 18px 20px;
  background: rgba(0,0,0,0.2);
  border-left: 3px solid var(--accent);
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  color: #ffffff;
  font-size: 0.95rem;
}

.post-body figcaption strong { color: #fff; font-style: normal; }

.post-body blockquote {
  margin: 32px 0;
  padding: 24px 28px;
  border-left: 3px solid var(--accent);
  background: rgba(255,255,255,0.04);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.25rem;
  line-height: 1.45;
  font-style: italic;
  color: #fff;
}

.post-body blockquote p { margin-bottom: 10px; font-style: italic; }
.post-body blockquote cite {
  display: block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #ffffff;
  margin-top: 6px;
}

.post-body pre {
  background: rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 4px;
  padding: 18px 22px;
  overflow-x: auto;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #ffffff;
  margin: 24px 0;
}

.keep-reading {
  display: inline-block;
  margin-top: 14px;
  padding: 12px 22px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 3px;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
}

.keep-reading:hover {
  background: var(--accent);
  border-color: var(--accent);
}

/* Comments */
.comments-section {
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid rgba(255,255,255,0.12);
}

.comments-section h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.6rem;
  color: #fff;
  margin-bottom: 16px;
}

.comments-section .notice {
  font-size: 0.85rem;
  color: #ffffff;
  margin-bottom: 22px;
}

.comment-form { display: flex; flex-direction: column; gap: 14px; }
.comment-form label {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #ffffff;
}
.comment-form input,
.comment-form textarea {
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 3px;
  padding: 10px 12px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #fff;
  outline: none;
  transition: border-color 0.15s;
}
.comment-form input:focus,
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form textarea { min-height: 120px; resize: vertical; }
.comment-form .checkbox-row {
  display: flex; align-items: center; gap: 8px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.82rem; font-weight: 400;
  text-transform: none; letter-spacing: 0;
  color: #ffffff;
}
.comment-form .form-actions { display: flex; gap: 10px; margin-top: 6px; }
.comment-form button {
  background: var(--accent);
  border: none;
  padding: 12px 24px;
  border-radius: 3px;
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.15s;
}
.comment-form button:hover { background: #c27581; }
.comment-form button.ghost {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.25);
  color: #ffffff;
}
.comment-form button.ghost:hover { background: rgba(255,255,255,0.08); }

/* ============================================================
   CATEGORY / AUTHOR index
============================================================ */
.archive-hero {
  padding: 72px 60px 28px 60px;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.archive-eyebrow {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 8px;
}

.archive-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 3rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.05;
  letter-spacing: -0.01em;
}

.archive-description {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  color: #ffffff;
  max-width: 640px;
  margin-top: 14px;
  line-height: 1.65;
}

.archive-pagination {
  display: flex;
  gap: 24px;
  margin-top: 22px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.archive-pagination a,
.archive-pagination span { color: #ffffff; text-decoration: none; }
.archive-pagination span.disabled { color: #ffffff; }
.archive-pagination a:hover { color: var(--accent); }

.archive-list {
  padding: 30px 60px 80px 60px;
  width: 100%;
  display: flex;
  flex-direction: column;
}

.archive-item {
  padding: 30px 0;
  border-bottom: 1px solid rgba(255,255,255,0.10);
}

.archive-item:last-child { border-bottom: none; }

.archive-item-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.8rem;
  font-weight: 700;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 10px;
  text-decoration: none;
  display: inline-block;
}

.archive-item-title:hover { color: var(--accent); }

.archive-item-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: 1.05rem;
  color: #ffffff;
  line-height: 1.5;
  margin-bottom: 14px;
}

.archive-item-excerpt {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.7;
  margin-bottom: 14px;
}

.archive-item-link {
  display: inline-block;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid rgba(171,93,106,0.5);
  padding-bottom: 2px;
}
.archive-item-link:hover { color: #fff; border-color: #fff; }

/* ============================================================
   AUTHOR PROFILE BANNER
============================================================ */
.author-banner {
  display: flex;
  gap: 24px;
  align-items: center;
  padding: 72px 60px 24px 60px;
  width: 100%;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.author-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  border: 2px solid rgba(255,255,255,0.25);
  flex-shrink: 0;
}

.author-info .archive-eyebrow { margin-bottom: 6px; }
.author-info .archive-title { font-size: 2.4rem; }
.author-bio {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  color: #ffffff;
  margin-top: 10px;
  max-width: 600px;
  line-height: 1.6;
}

/* ============================================================
   FEATURES page
============================================================ */
.features-col {
  padding: 72px 60px 80px 60px;
  flex: 1;
  max-width: 960px;
}

.features-col .archive-eyebrow { margin-bottom: 8px; }
.features-col .archive-title { font-size: 3rem; margin-bottom: 20px; }
.features-col > p.lede {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.15rem;
  font-style: italic;
  color: #ffffff;
  line-height: 1.6;
  max-width: 720px;
  margin-bottom: 40px;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 16px;
}

.feature-tile {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px;
  padding: 26px 28px;
  transition: background 0.2s, border-color 0.2s;
}

.feature-tile:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(171,93,106,0.5);
}

.feature-tile h3 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-tile p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.95rem;
  color: #ffffff;
  line-height: 1.55;
}

.feature-tile .feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(171,93,106,0.2);
  color: var(--accent);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 900;
  margin-bottom: 14px;
}

/* ============================================================
   RESPONSIVE
============================================================ */
@media (max-width: 900px) {
  #page-wrapper { flex-direction: column; }

  #basic-sideheader {
    width: 100%; min-width: unset; max-width: unset;
    height: 70vw; min-height: 320px; max-height: 520px;
    position: relative; top: auto;
  }

  #site-body { width: 100%; }

  .card-wide, .card-narrow {
    flex: 0 0 100%; max-width: 100%;
    height: 65vw; min-height: 300px; max-height: 480px;
  }

  #slide-menu { width: 100%; max-width: 360px; }

  .content-col,
  .features-col { padding: 40px 28px; max-width: 100%; }

  .archive-hero,
  .archive-list,
  .author-banner { padding-left: 28px; padding-right: 28px; }

  .author-banner { flex-direction: column; align-items: flex-start; }

  .features-grid { grid-template-columns: 1fr; }

  .post-title { font-size: 2rem; }
  .archive-title { font-size: 2.2rem; }
}

@media (max-width: 900px) {
  #logo-btn { width: 56px; height: 56px; padding: 6px; }
  #top-bar { top: 12px; left: 12px; gap: 6px; }
}

@media (max-width: 600px) {
  #sideheader-content { padding: 0 24px 28px 24px; }
  #site-title { font-size: 2rem; }
  .post-title { font-size: 1.65rem; }
  .post-subtitle { font-size: 1.05rem; }
  .archive-item-title { font-size: 1.35rem; }
  #logo-btn { width: 48px; height: 48px; padding: 5px; }
  #menu-btn { height: 34px; font-size: 0.72rem; padding: 0 12px; }
  .book-title { font-size: 1.75rem; }
  .book-detail, .bio-page { padding: 32px 20px 60px; }
}

/* ============================================================
   REV2 — BOOK TILES (book covers as card backgrounds)
============================================================ */
.article-card {
  background-color: #1a1a1a;
}

.card-title {
  text-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.card-authors {
  text-shadow: 0 1px 4px rgba(0,0,0,0.7);
}

/* ============================================================
   REV2 — BOOK DETAIL PAGE
============================================================ */
.book-detail {
  display: flex;
  flex-direction: row;
  gap: 56px;
  padding: 72px 60px 80px 60px;
  width: 100%;
  max-width: 1100px;
}

.book-cover-col {
  flex: 0 0 320px;
  position: sticky;
  top: 36px;
  align-self: flex-start;
}

.book-cover-img {
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 16px 40px rgba(255,255,255,0.08);
  display: block;
}

.book-info-col {
  flex: 1;
  min-width: 0;
  color: #ffffff;
}

.book-info-col .archive-eyebrow {
  margin-bottom: 8px;
}

.book-title {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 2.6rem;
  font-weight: 900;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}

.book-subtitle {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: 1.1rem;
  color: #ffffff;
  margin-bottom: 28px;
}

.book-summary {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.02rem;
  line-height: 1.75;
  color: #ffffff;
  margin-bottom: 36px;
}

.book-summary p {
  margin-bottom: 18px;
}

.book-attrs {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 32px;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.88rem;
}

.book-attrs tr {
  border-top: 1px solid rgba(255,255,255,0.08);
}

.book-attrs tr:last-child {
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.book-attrs th {
  text-align: left;
  padding: 10px 16px 10px 0;
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.74rem;
  width: 180px;
  vertical-align: top;
}

.book-attrs td {
  padding: 10px 0;
  color: #ffffff;
  vertical-align: top;
}

.order-btn {
  display: inline-block;
  padding: 16px 32px;
  background: var(--accent);
  color: #fff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 3px;
  transition: background 0.2s, transform 0.15s;
}

.order-btn:hover {
  background: #c27581;
  transform: translateY(-1px);
}

.book-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 48px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,0.12);
  border-bottom: 1px solid rgba(255,255,255,0.12);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.post-nav-link {
  color: #ffffff;
  text-decoration: none;
}

.post-nav-link:hover {
  color: #fff;
}

.post-nav-link.disabled {
  color: #ffffff;
  cursor: default;
}

/* ============================================================
   REV2 — BIO PAGE
============================================================ */
.bio-page {
  display: flex;
  flex-direction: row;
  gap: 56px;
  padding: 72px 60px 80px 60px;
  width: 100%;
  max-width: 1100px;
  align-items: flex-start;
}

.bio-portrait-col {
  flex: 0 0 280px;
  position: sticky;
  top: 36px;
}

.bio-portrait-col img {
  width: 100%;
  border-radius: 6px;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.08), 0 16px 40px rgba(255,255,255,0.08);
}

.bio-text-col {
  flex: 1;
  min-width: 0;
}

.bio-text-col .archive-eyebrow {
  margin-bottom: 8px;
}

.bio-text-col p {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1.05rem;
  line-height: 1.8;
  color: #ffffff;
  margin-bottom: 22px;
}

.bio-text-col p:first-of-type {
  font-size: 1.18rem;
  color: #ffffff;
}

.bio-text-col em {
  font-style: italic;
  color: #fff;
}

.bio-text-col strong {
  color: #fff;
}

/* ============================================================
   REV2 — LISTOLOGY COMING SOON
============================================================ */
.coming-soon-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 140px 40px;
  width: 100%;
  min-height: 60vh;
}

.coming-soon-section .archive-eyebrow {
  margin-bottom: 16px;
}

.coming-soon-section h1 {
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 4.2rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 22px;
  line-height: 1;
}

.coming-soon-section p {
  font-family: 'Inter', system-ui, sans-serif;
  font-style: italic;
  font-size: 1.15rem;
  color: #ffffff;
}

/* ============================================================
   REV2 — RESPONSIVE adjustments
============================================================ */
@media (max-width: 900px) {
  .book-detail,
  .bio-page {
    flex-direction: column;
    gap: 32px;
    padding: 40px 28px;
  }

  .book-cover-col,
  .bio-portrait-col {
    flex: 0 0 auto;
    position: relative;
    top: auto;
    max-width: 320px;
  }

  .book-title { font-size: 2rem; }
  .coming-soon-section h1 { font-size: 2.8rem; }
}
