/* The Claw of Knowledge — site styles (moved out of index.html unchanged, plus additions at the end) */

/* Self-hosted fonts: files live in /fonts (see fonts/README.txt) */
@font-face { font-family: 'Helsinki'; src: url('/fonts/helsinki.woff2') format('woff2'), url('/fonts/helsinki.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Latin Modern Mono'; src: url('/fonts/latinmodern-mono.woff2') format('woff2'), url('/fonts/latinmodern-mono.otf') format('opentype'); font-weight: 400 900; font-display: swap; }
@font-face { font-family: 'Special Elite'; src: url('/fonts/special-elite.woff2') format('woff2'), url('/fonts/special-elite.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-regular.woff2') format('woff2'), url('/fonts/nunito-regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-bold.woff2') format('woff2'), url('/fonts/nunito-bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('/fonts/nunito-italic.woff2') format('woff2'), url('/fonts/nunito-italic.ttf') format('truetype'); font-weight: 400; font-style: italic; font-display: swap; }

:root {
  --navy: #203864;
  --red: #C00000;
  --white: #FFFFFF;
  --navy-dark: #152547;
  --red-dark: #8B0000;
  --offwhite: #FDFAF4;
  --cream: #F5F0E4;
  --gray: #e0dcd4;
  --text: #1a1a1a;
  --muted: #777;
  --sky: #9DC3E6;
  --sky-dark: #5a8fbb;
  --orange: #FF3500;
  --orange-dark: #c02800;
  --gold: #FFD966;
  --gold-dark: #7F6000;
  --gold-darker: #5a4400;

  /* Polish pass: page sits on light blue, structure lines are lighter blue */
  --page: #EDF3F9;
  --line: #C9D9E8;

  --font-ui:    'Helsinki', 'Arial Narrow', Arial, sans-serif;
  --font-title: 'Latin Modern Mono', 'Courier New', monospace;
  --font-nav:   'Special Elite', 'Courier New', cursive;
  --font-body:  'Nunito', 'Segoe UI', Verdana, sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: var(--page);
  color: var(--text);
  min-height: 100vh;
}

/* ===== HEADER ===== */
.site-header {
  background: var(--navy);
  border-bottom: 5px solid var(--red);
  position: sticky;
  top: 0;
  z-index: 100;
  overflow: hidden;
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  pointer-events: none;
}
.header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  cursor: pointer;
  text-decoration: none;
}
.logo-img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.4));
  transition: transform 0.15s;
}
.logo:hover .logo-img { transform: rotate(-5deg) scale(1.05); }
.logo-text { line-height: 1.15; }
.logo-title {
  font-family: var(--font-ui);
  font-size: 22px;
  letter-spacing: 1.5px;
  color: var(--white);
  display: block;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.2);
}
.logo-sub {
  font-size: 10px;
  color: rgba(255,255,255,0.5);
  display: block;
  font-family: var(--font-body);
}
.header-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 7px;
}
.main-nav { display: flex; gap: 3px; }
.nav-a {
  font-family: var(--font-nav);
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  padding: 6px 12px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  letter-spacing: 0.3px;
  text-decoration: none;
}
.nav-a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.nav-a.active { background: rgba(255,255,255,0.15); color: #fff; }
.header-social { display: flex; gap: 6px; align-items: center; }
.sicon {
  width: 26px; height: 26px; border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; opacity: 0.8;
  transition: opacity 0.15s, transform 0.12s;
  text-decoration: none;
}
.sicon:hover { opacity: 1; transform: translateY(-1px); }
.si-ig { background: linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045); }
.si-fb { background: #1877f2; }
.si-x  { background: #000; }
.si-bsky { background: #0085ff; }
.si-pt { background: #ff424d; }

/* ===== VIEWS ===== */
.view { display: none; }
.view.active { display: block; }

/* ===== COMIC ===== */
.comic-wrap { max-width: 820px; margin: 0 auto; padding: 24px 20px; }
.comic-meta-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
  flex-wrap: wrap;
  gap: 6px;
}
.comic-title {
  font-family: var(--font-title);
  font-weight: 900;
  -webkit-text-stroke: 0.5px var(--navy);
  font-size: 30px;
  color: var(--navy);
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.comic-date { font-size: 13px; color: var(--muted); font-style: italic; font-family: var(--font-body); }
.comic-frame {
  background: var(--white);
  border: 3px solid var(--navy);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 6px 6px 0 var(--navy), 0 14px 34px rgba(32,56,100,0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  /* Supports both square and tall comics */
  max-width: 100%;
}
.comic-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.comic-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 3rem;
  width: 100%;
  aspect-ratio: 1;
  background: var(--cream);
}
.comic-placeholder-icon { font-size: 56px; opacity: 0.12; }
.comic-placeholder-label {
  font-family: var(--font-ui);
  font-size: 18px;
  letter-spacing: 2px;
  color: var(--navy);
  opacity: 0.35;
  text-align: center;
}
.comic-placeholder-sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  max-width: 260px;
  line-height: 1.5;
}
.comic-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  gap: 10px;
  flex-wrap: wrap;
}
.nav-arrows { display: flex; gap: 7px; align-items: center; }
/* Quiet blue outlines by default — Random is the one loud button on the page */
.nav-btn {
  background: var(--white);
  color: var(--navy);
  border: 1.5px solid var(--sky-dark);
  padding: 8px 16px;
  border-radius: 6px;
  font-family: var(--font-ui);
  font-size: 14px;
  box-shadow: 0 1px 2px rgba(32,56,100,0.10);
  cursor: pointer;
  transition: background 0.12s, color 0.12s, border-color 0.12s, transform 0.1s;
}
.nav-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.nav-btn:active { transform: translate(1px,1px); }
.nav-btn.filled { background: var(--navy); border-color: var(--navy-dark); color: var(--white); }
.nav-btn.filled:hover { background: var(--navy-dark); }
.nav-btn:disabled { background: transparent; color: #b3c3d6; border-color: var(--line); box-shadow: none; cursor: default; transform: none; }
.nav-btn.red { background: var(--white); border-color: var(--sky-dark); color: var(--navy); box-shadow: 0 1px 2px rgba(32,56,100,0.10); }
.nav-btn.red:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.nav-btn.random { background: var(--white); border: 1.5px solid var(--red); color: var(--red); }
.nav-btn.random:hover { background: var(--red); border-color: var(--red); color: var(--white); }
.nav-divider { width: 1px; height: 28px; background: var(--line); flex-shrink: 0; }
.permalink-tag {
  font-family: var(--font-body);
  font-size: 12px;
  color: var(--muted);
}
.permalink-tag span { color: var(--navy); font-weight: 700; }
.comic-body {
  margin-top: 16px;
  background: var(--white);
  border: 1.5px solid var(--line);
  border-left: 4px solid var(--sky-dark);
  border-radius: 0 6px 6px 0;
  padding: 14px 18px;
  box-shadow: 0 1px 3px rgba(32,56,100,0.08);
  position: relative;
}
.comic-body::before {
  content: 'Author Note';
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--sky-dark);
  position: absolute;
  top: -10px;
  left: 14px;
  background: var(--white);
  padding: 0 6px;
}
.comic-body p { font-family: var(--font-body); font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 8px; }
.comic-body p:last-child { margin-bottom: 0; }

.permalink-tag a { color: var(--navy); font-weight: 700; text-decoration: none; }
.permalink-tag a:hover { text-decoration: underline; }

/* Share row + support strip under the comic */
.share-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 2px 0; }
.share-label { font-family: var(--font-body); font-size: 13px; color: var(--muted); margin-right: 2px; }
.share-btn { font-family: var(--font-ui); font-size: 13px; padding: 5px 14px; border-radius: 20px; border: 1.5px solid var(--sky-dark); background: var(--white); color: var(--navy); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 5px; box-shadow: 0 1px 2px rgba(32,56,100,0.10); transition: background 0.15s, color 0.15s; }
.share-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }
.support-strip { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.support-text { font-family: var(--font-body); font-size: 12.5px; color: var(--muted); }
.support-btn { font-family: var(--font-ui); font-size: 12px; padding: 4px 14px; border-radius: 20px; background: transparent; text-decoration: none; border: 1.5px solid; transition: background 0.15s, color 0.15s; }
.support-btn.venmo { color: #2f7cae; border-color: #3D95CE; }
.support-btn.venmo:hover { background: #3D95CE; color: var(--white); }
.support-btn.patreon { color: var(--red); border-color: var(--red); }
.support-btn.patreon:hover { background: var(--red); color: var(--white); }

/* Archive search */
.search-input { font-family: var(--font-body); font-size: 14px; padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--sky-dark); background: var(--white); color: var(--text); min-width: 180px; flex: 1 1 180px; max-width: 320px; }
.search-input::placeholder { color: var(--muted); }
.archive-empty { font-family: var(--font-body); font-size: 14.5px; color: var(--muted); padding: 32px 8px; text-align: center; grid-column: 1 / -1; }

/* Footer: newsletter / RSS / contact */
.footer-connect { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.connect-btn { font-family: var(--font-ui); font-size: 12.5px; padding: 6px 14px; border-radius: 20px; border: 1.5px solid rgba(255,255,255,0.35); color: rgba(255,255,255,0.85); text-decoration: none; transition: background 0.15s; }
.connect-btn:hover { background: rgba(255,255,255,0.12); }

a:focus-visible, button:focus-visible { outline: 3px solid var(--sky-dark); outline-offset: 2px; }

/* ===== ARCHIVE ===== */
.archive-wrap { max-width: 960px; margin: 0 auto; padding: 24px 20px; }
.archive-header { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.archive-title { font-family: var(--font-ui); font-size: 32px; letter-spacing: 1.5px; color: var(--navy); }
.archive-count { font-size: 13px; color: var(--muted); background: var(--white); border: 1.5px solid var(--line); padding: 3px 10px; border-radius: 20px; font-family: var(--font-body); }
.archive-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.filter-btn { font-family: var(--font-nav); font-size: 14px; padding: 6px 18px; border-radius: 20px; border: 1.5px solid var(--sky-dark); background: var(--white); color: var(--navy); cursor: pointer; transition: all 0.15s; }
.filter-btn.active, .filter-btn:hover { background: var(--navy); color: var(--white); }
.tag-select { font-family: var(--font-nav); font-size: 14px; padding: 6px 14px; border-radius: 20px; border: 1.5px solid var(--sky-dark); background: var(--white); color: var(--navy); cursor: pointer; max-width: 100%; }
.tag-select:hover, .tag-select:focus { background: var(--page); }
.archive-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.archive-card { background: var(--white); border: 1.5px solid var(--line); border-radius: 8px; overflow: hidden; cursor: pointer; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; box-shadow: 0 1px 3px rgba(32,56,100,0.08); }
.archive-card:hover { transform: translateY(-3px); border-color: var(--sky-dark); box-shadow: 0 10px 22px rgba(32,56,100,0.16); }
.archive-thumb { background: var(--page); aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-bottom: 1.5px solid var(--line); overflow: hidden; }
.archive-thumb img { width: 100%; height: 100%; object-fit: cover; }
.archive-thumb-emoji { font-size: 30px; }
.archive-card-info { padding: 10px 12px; }
.archive-card-type { display: inline-block; font-family: var(--font-ui); font-size: 10px; letter-spacing: 0.5px; padding: 2px 8px; border-radius: 20px; margin-bottom: 5px; }
.type-comic { background: var(--sky); color: var(--navy); }
.type-post  { background: var(--gold); color: var(--gold-dark); }
.archive-card-title { font-family: var(--font-title); font-weight: 900; -webkit-text-stroke: 0.3px var(--navy); font-size: 12px; color: var(--navy); line-height: 1.35; margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.archive-card-meta { font-family: var(--font-body); font-size: 11px; color: var(--muted); }

/* ===== ARTICLES ===== */
.post-wrap { max-width: 720px; margin: 0 auto; padding: 24px 20px; }
.articles-heading { font-family: var(--font-ui); font-size: 32px; letter-spacing: 1.5px; color: var(--navy); }
.post-header h1 { font-family: var(--font-title); font-weight: 900; -webkit-text-stroke: 0.5px var(--navy); font-size: 28px; color: var(--navy); line-height: 1.2; margin-bottom: 10px; text-transform: uppercase; letter-spacing: 1px; }
.post-meta { font-family: var(--font-body); font-size: 13px; color: var(--muted); padding-bottom: 14px; border-bottom: 2px solid var(--line); margin-bottom: 16px; }
.post-content p { font-family: var(--font-body); font-size: 16px; line-height: 1.8; color: var(--text); margin-bottom: 1.2rem; }
.post-content h2 { font-family: var(--font-title); font-weight: 900; -webkit-text-stroke: 0.3px var(--navy); font-size: 18px; color: var(--navy); margin: 1.75rem 0 0.75rem; padding-left: 12px; border-left: 5px solid var(--sky-dark); text-transform: uppercase; letter-spacing: 0.8px; }
.post-content img { max-width: 100%; border-radius: 6px; margin: 1rem 0; border: 1.5px solid var(--line); box-shadow: 0 2px 8px rgba(32,56,100,0.10); }
.post-image-inline { margin: 1.5rem 0; background: var(--page); border: 1.5px solid var(--line); border-radius: 8px; padding: 2rem; display: flex; align-items: center; justify-content: center; color: var(--muted); font-family: var(--font-body); font-size: 14px; gap: 10px; }
.article-list { display: flex; flex-direction: column; gap: 14px; }
.article-card { background: var(--white); border: 1.5px solid var(--line); border-top: 4px solid var(--sky-dark); border-radius: 8px; padding: 16px 20px; box-shadow: 0 1px 3px rgba(32,56,100,0.08); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s; }
.article-card:hover { transform: translateY(-2px); border-color: var(--sky-dark); box-shadow: 0 8px 18px rgba(32,56,100,0.14); }
.article-card-title { font-family: var(--font-title); font-weight: 900; -webkit-text-stroke: 0.3px var(--navy); font-size: 16px; color: var(--navy); margin-bottom: 5px; line-height: 1.3; text-transform: uppercase; letter-spacing: 0.5px; }
.article-card-meta { font-family: var(--font-body); font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.article-card-excerpt { font-family: var(--font-body); font-size: 14px; color: var(--text); line-height: 1.6; }

/* ===== STORE ===== */
.store-wrap { max-width: 960px; margin: 0 auto; padding: 24px 20px; }
.store-page-header { display: flex; align-items: baseline; gap: 14px; margin-bottom: 22px; padding-bottom: 14px; border-bottom: 3px solid var(--navy); }
.store-page-title { font-family: var(--font-ui); font-size: 32px; letter-spacing: 1.5px; color: var(--navy); }
.store-page-sub { font-family: var(--font-body); font-size: 13px; color: var(--muted); }
.section-header { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; }
.section-title { font-family: var(--font-ui); font-size: 20px; letter-spacing: 1px; color: var(--navy); white-space: nowrap; }
.section-line { flex: 1; height: 2px; background: var(--sky-dark); border-radius: 1px; opacity: 0.55; }
.section-source { font-family: var(--font-body); font-size: 12px; color: var(--muted); background: var(--white); border: 1px solid var(--line); padding: 2px 10px; border-radius: 10px; white-space: nowrap; }
.books-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.book-card { background: var(--white); border: 1.5px solid var(--line); border-top: 4px solid var(--sky-dark); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 3px rgba(32,56,100,0.08); display: flex; flex-direction: column; }
.book-cover { background: var(--page); border-bottom: 1.5px solid var(--line); display: flex; align-items: center; justify-content: center; padding: 0; aspect-ratio: 3/4; overflow: hidden; }
.book-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.book-cover-mock { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px; }
.book-cover-icon { font-size: 36px; opacity: 0.18; }
.book-cover-mock-title { font-family: var(--font-title); font-weight: 900; font-size: 12px; color: var(--navy); text-align: center; line-height: 1.4; text-transform: uppercase; }
.book-cover-note { font-family: var(--font-body); font-size: 11px; color: var(--muted); text-align: center; }
.book-info { padding: 14px 16px; flex: 1; display: flex; flex-direction: column; }
.book-title { font-family: var(--font-title); font-weight: 900; -webkit-text-stroke: 0.3px var(--navy); font-size: 13px; color: var(--navy); line-height: 1.4; margin-bottom: 6px; text-transform: uppercase; }
.book-desc { font-family: var(--font-body); font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; flex: 1; }
.book-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; }
.book-price { font-family: var(--font-ui); font-size: 20px; color: var(--navy); }
.buy-btn { background: var(--orange); color: var(--white); border: 2px solid var(--orange-dark); border-radius: 5px; padding: 6px 14px; font-family: var(--font-ui); font-size: 14px; box-shadow: 2px 2px 0 var(--orange-dark); cursor: pointer; text-decoration: none; display: inline-block; }
.buy-btn:hover { background: var(--orange-dark); }
.merch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.merch-card { background: var(--white); border: 1.5px solid var(--line); border-radius: 7px; overflow: hidden; box-shadow: 0 1px 3px rgba(32,56,100,0.08); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s, border-color 0.12s; position: relative; }
.merch-card:hover { transform: translateY(-2px); border-color: var(--sky-dark); box-shadow: 0 8px 18px rgba(32,56,100,0.14); }
.merch-thumb { border-bottom: 1.5px solid var(--line); aspect-ratio: 1; position: relative; overflow: hidden; background: var(--page); display: flex; align-items: center; justify-content: center; }
.merch-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.merch-thumb-placeholder { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 14px; width: 100%; height: 100%; }
.merch-thumb-icon { font-size: 28px; opacity: 0.18; }
.merch-thumb-note { font-family: var(--font-body); font-size: 10px; color: var(--muted); text-align: center; }
.merch-source-badge { position: absolute; bottom: 6px; right: 6px; font-family: var(--font-ui); font-size: 9px; padding: 2px 7px; border-radius: 3px; z-index: 2; }
.badge-sm { background: #000; color: #fff; }
.badge-zz { background: #00adef; color: #fff; }
.new-badge { position: absolute; top: 8px; left: 8px; font-family: var(--font-ui); font-size: 12px; background: var(--gold); color: var(--gold-dark); padding: 3px 9px; border-radius: 4px; border: 1.5px solid var(--gold-dark); box-shadow: 2px 2px 0 var(--gold-dark); z-index: 3; }
.merch-info { padding: 9px 11px; }
.merch-name { font-family: var(--font-title); font-weight: 900; -webkit-text-stroke: 0.2px var(--navy); font-size: 11px; color: var(--navy); margin-bottom: 4px; line-height: 1.35; text-transform: uppercase; }
.merch-shop-link { font-family: var(--font-title); font-size: 10px; color: var(--sky-dark); text-decoration: none; text-transform: uppercase; }
.browse-all { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.browse-btn { font-family: var(--font-ui); font-size: 13px; padding: 7px 16px; border-radius: 5px; border: 1.5px solid var(--sky-dark); color: var(--navy); background: var(--white); cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: background 0.15s, color 0.15s; }
.browse-btn:hover { background: var(--navy); border-color: var(--navy); color: var(--white); }

/* ===== ABOUT ===== */
.about-wrap { max-width: 700px; margin: 0 auto; padding: 24px 20px; }
.about-banner { background: var(--navy); border: 3px solid var(--navy-dark); border-radius: 10px; padding: 24px; margin-bottom: 24px; display: flex; align-items: center; gap: 18px; box-shadow: 0 8px 24px rgba(16,28,54,0.25); position: relative; overflow: hidden; }
.about-banner::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(circle,rgba(255,255,255,0.05) 1px,transparent 1px); background-size: 16px 16px; }
.about-emblem-img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex-shrink: 0; position: relative; filter: drop-shadow(0 2px 6px rgba(0,0,0,0.5)); }
.about-banner-text { position: relative; }
.about-banner-text h2 { font-family: var(--font-ui); font-size: 24px; letter-spacing: 1.5px; color: var(--white); margin-bottom: 6px; }
.about-banner-text p { font-family: var(--font-body); font-size: 14px; color: rgba(255,255,255,0.6); line-height: 1.5; }
.about-section { margin-bottom: 18px; }
.about-section h3 { font-family: var(--font-ui); font-size: 20px; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.about-section h3::after { content: ''; flex: 1; height: 2px; background: var(--sky-dark); border-radius: 1px; opacity: 0.55; }
.about-section p { font-family: var(--font-body); font-size: 15px; line-height: 1.75; color: var(--text); }

/* ===== FOOTER ===== */
.site-footer { background: var(--navy-dark); border-top: 4px solid var(--red); padding: 20px; margin-top: 32px; }
.patreon-cta { display: flex; justify-content: center; margin-bottom: 14px; }
.pt-btn { display: flex; align-items: center; gap: 8px; background: var(--orange); border: 2px solid var(--orange-dark); border-radius: 7px; padding: 9px 20px; box-shadow: 3px 3px 0 var(--orange-dark); cursor: pointer; transition: transform 0.12s, box-shadow 0.12s; text-decoration: none; }
.pt-btn:hover { transform: translate(-1px,-1px); box-shadow: 4px 4px 0 var(--orange-dark); }
.pt-btn.venmo { background: #3D95CE; border-color: #276a94; box-shadow: 3px 3px 0 #276a94; }
.pt-btn.venmo:hover { box-shadow: 4px 4px 0 #276a94; }
.pt-btn-text { font-family: var(--font-ui); font-size: 15px; color: #fff; }
.footer-social { display: flex; justify-content: center; gap: 10px; margin-bottom: 14px; flex-wrap: wrap; }
.fsb { display: flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 5px; border: 1px solid rgba(255,255,255,0.15); cursor: pointer; transition: border-color 0.15s; text-decoration: none; }
.fsb:hover { border-color: rgba(255,255,255,0.4); }
.fsb-label { font-family: var(--font-ui); font-size: 12px; color: rgba(255,255,255,0.8); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding-top: 12px; border-top: 1px solid rgba(255,255,255,0.1); }
.footer-wordmark { font-family: var(--font-ui); font-size: 13px; letter-spacing: 1px; color: rgba(255,255,255,0.4); }
.footer-disclaimer { font-family: var(--font-body); font-size: 10px; color: rgba(255,255,255,0.25); font-style: italic; }

/* ===== RESPONSIVE ===== */
@media (max-width: 640px) {
  .logo-title { font-size: 16px; }
  .logo-img { width: 40px; height: 40px; }
  .main-nav { gap: 1px; }
  .nav-a { font-size: 13px; padding: 5px 8px; }
  .header-social { gap: 4px; }
  .sicon { width: 22px; height: 22px; }
  .comic-title { font-size: 22px; }
  .nav-arrows { flex-wrap: wrap; }
  .books-grid { grid-template-columns: 1fr; }
  .merch-grid { grid-template-columns: repeat(2, 1fr); }
  .store-page-header { flex-direction: column; gap: 4px; }
}

/* ===== JEKYLL VERSION ADDITIONS ===== */
/* Buttons are now real links */
a.nav-btn { display: inline-block; text-decoration: none; line-height: 1.2; }
.nav-btn.is-disabled, .nav-btn.is-disabled:hover { background: transparent; color: #b3c3d6; border-color: var(--line); box-shadow: none; cursor: default; transform: none; }
.nav-btn.filled.is-disabled { background: transparent; }

/* One line of visible text on the homepage (helps SEO) */
.home-tagline { font-family: var(--font-body); font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }

/* Comic number / tags under the title */
.comic-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.comic-tag { font-family: var(--font-body); font-size: 12px; color: var(--navy); background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; text-decoration: none; }
.comic-tag:hover { border-color: var(--sky-dark); }

/* Optional transcript under the Author Note */
.transcript { margin-top: 12px; font-family: var(--font-body); font-size: 14px; color: var(--text); }
.transcript summary { cursor: pointer; color: var(--sky-dark); font-size: 13px; }
.transcript-body { margin-top: 8px; padding: 12px 16px; background: var(--white); border: 1.5px solid var(--line); border-radius: 6px; line-height: 1.7; }
.transcript-body p { margin-bottom: 6px; }

/* Author Note body now comes from Markdown */
.comic-body a, .post-content a, .about-section a { color: var(--sky-dark); }
.archive-card { text-decoration: none; color: inherit; display: block; }
.article-card { text-decoration: none; color: inherit; display: block; }
.about-content h2 { font-family: var(--font-ui); font-size: 20px; color: var(--navy); margin: 22px 0 8px; display: flex; align-items: center; gap: 10px; font-weight: 400; }
.about-content h2::after { content: ''; flex: 1; height: 2px; background: var(--sky-dark); border-radius: 1px; opacity: 0.55; }
.about-content p { font-family: var(--font-body); font-size: 15px; line-height: 1.75; color: var(--text); margin-bottom: 10px; }
.merch-card { text-decoration: none; color: inherit; display: block; }
.not-found { text-align: center; padding: 60px 20px; font-family: var(--font-body); }
.not-found h1 { font-family: var(--font-ui); color: var(--navy); font-size: 32px; margin-bottom: 10px; }

/* Hidden attribute must win over display rules (used by archive filtering) */
[hidden] { display: none !important; }

/* Layout fixes for the multi-page version */
body { display: flex; flex-direction: column; }
main { flex: 1 0 auto; }
.about-content a { color: var(--sky-dark); }
.book-cover { text-decoration: none; }
.tag-select { max-width: 240px; }

/* Phones: logo on one row, menu on the next; social icons live in the footer */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; justify-content: center; gap: 2px; padding: 4px 12px 6px; }
  .header-right { width: 100%; align-items: center; }
  .main-nav { width: 100%; justify-content: center; flex-wrap: wrap; }
  .header-social { display: none; }
  .logo { padding: 4px 0 0; }
  .logo-sub { display: none; }
}

/* Store: keep the "via ..." label from pushing the page wider on small phones */
@media (max-width: 520px) {
  .section-header { gap: 8px; }
  .section-line { min-width: 10px; }
  .section-source { white-space: normal; font-size: 11px; padding: 2px 8px; text-align: center; min-width: 0; }
}
