/* Connor Blake — Expert Author. Editorial Tech aesthetic. */

:root {
  /* Core palette */
  --ink: #0B1220;
  --ink-2: #152033;
  --ink-3: #334155;
  --muted: #64748B;
  --rule: #E2E8F0;
  --rule-strong: #CBD5E1;
  --paper: #F6F7F9;
  --paper-2: #ECEFF3;
  --card: rgba(255,255,255,0.72);
  --accent: #D97706;     /* slightly deeper cyan for AA contrast */
  --accent-2: #B45309;
  --accent-ink: #9A3412;
  --highlight: #FFE96B;  /* occasional editorial marker */
  --danger: #B91C1C;
  /* Shape */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 14px;
  --r-pill: 999px;
  /* Fonts */
  --sans: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --serif: "IBM Plex Sans", system-ui, -apple-system, Segoe UI, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, Menlo, Consolas, monospace;
  /* Container */
  --page-max: 1240px;
  --gutter: clamp(16px, 3vw, 32px);
  --glass-bg: rgba(255,255,255,0.62);
  --glass-border: rgba(255,255,255,0.7);
  --glass-edge: rgba(217,119,6,0.22);
  --glass-blur: 14px;
  --shadow-1: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-2: 0 10px 30px -12px rgba(15,23,42,0.12), 0 2px 6px -2px rgba(15,23,42,0.06);
  --shadow-glow: 0 10px 40px -10px rgba(217,119,6,0.22);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--sans);
  background: var(--paper);
  background-image:
    radial-gradient(900px 600px at 10% -10%, rgba(217,119,6,0.10), transparent 60%),
    radial-gradient(1000px 700px at 110% 10%, rgba(217,119,6,0.06), transparent 60%);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  }

a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; display: block; }
hr { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* -------- Typography -------- */
.serif { font-family: var(--sans); }
.mono { font-family: var(--mono); }
.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.eyebrow .dot { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--sans); font-weight: 600; letter-spacing: -0.025em; margin: 0; color: var(--ink); }
h1 { font-size: clamp(40px, 5vw, 72px); line-height: 1.02; letter-spacing: -0.04em; font-weight: 700; }
h2 { font-size: clamp(28px, 3vw, 44px); line-height: 1.08; }
h3 { font-size: clamp(20px, 1.6vw, 26px); line-height: 1.2; }
h4 { font-size: 16px; line-height: 1.3; letter-spacing: 0; }
p { margin: 0; }
.lede {
  font-family: var(--sans);
  font-size: clamp(17px, 1.3vw, 19px);
  line-height: 1.6;
  font-weight: 400;
  /* */
  color: var(--ink-2);
}
.muted { color: var(--muted); }
.small { font-size: 13px; }
.caps {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Section number */
.sec-num {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  font-family: var(--mono);
  color: var(--ink-3);
  font-size: 12px;
  letter-spacing: 0.08em;
}
.sec-num .num { color: var(--accent); }
.sec-num::after { content: ""; display: inline-block; height: 1px; width: 80px; background: var(--rule-strong); margin-left: 4px; transform: translateY(-4px); }

/* -------- Layout -------- */
.container {
  width: 100%;
  max-width: var(--page-max);
  margin: 0 auto;
  padding-inline: var(--gutter);
}
.section { padding-block: clamp(48px, 6vw, 96px); }
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--rule);
  padding-bottom: 16px;
  flex-wrap: wrap;
}
.section-head h2 { font-size: clamp(26px, 2.6vw, 38px); }

.grid { display: grid; gap: 24px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) {
  .g-3, .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .g-2, .g-3, .g-4 { grid-template-columns: 1fr; }
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 18px;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--accent); color: #fff; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-ink); color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: 8px 12px; font-size: 13px; }
.btn .i { width: 16px; height: 16px; }

/* Tag / chip */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong);
  color: var(--ink-2);
  background: var(--paper-2);
}
.tag.accent { border-color: var(--accent); color: var(--accent-ink); background: #FFF3E3; }

/* -------- Nav -------- */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(246, 245, 240, 0.82);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-family: var(--sans);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand .mark {
  width: 28px; height: 28px;
  display: inline-grid; place-items: center;
  background: var(--ink); color: #fff;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  transform: translateY(4px);
}
.brand .sub { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); transform: translateY(-1px); }
.nav-links {
  display: flex; gap: 4px; margin-left: auto;
  list-style: none; padding: 0;
}
.nav-links a {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  border-radius: var(--r-md);
  position: relative;
}
.nav-links a:hover { color: var(--accent); }
.nav-links a.active { color: var(--ink); }
.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 12px; right: 12px; bottom: 2px;
  height: 2px;
  background: var(--accent);
}
.nav-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { border-color: var(--ink); }

/* Search modal */
.search-modal {
  position: fixed; inset: 0;
  background: rgba(11, 18, 32, 0.5);
  backdrop-filter: blur(6px);
  z-index: 80;
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding-top: 12vh;
}
.search-modal.open { display: flex; }
.search-box {
  width: min(640px, 92vw);
  background: var(--paper);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-lg);
  box-shadow: 0 40px 80px -20px rgba(11, 18, 32, 0.35);
  overflow: hidden;
}
.search-box input {
  width: 100%;
  padding: 22px 22px;
  font-family: var(--sans);
  font-size: 22px;
  background: transparent;
  color: var(--ink);
  border: 0;
  outline: none;
  border-bottom: 1px solid var(--rule);
}
.search-box .results { padding: 10px; }
.search-box .result {
  display: flex; align-items: baseline; gap: 10px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  cursor: pointer;
}
.search-box .result:hover { background: var(--paper-2); }
.search-box .result .kind { font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); min-width: 64px; }
.search-box .result .t { color: var(--ink); font-weight: 500; }

/* -------- Cards -------- */
.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--rule-strong); }
.card.as-link { cursor: pointer; }
.card.as-link:hover { transform: translateY(-2px); border-color: var(--ink-3); }

/* -------- Image placeholder -------- */
.imgbox img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.imgbox {
  background:
    repeating-linear-gradient(135deg, rgba(11,18,32,0.04) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, var(--paper-2), var(--rule));
  color: var(--muted);
  display: grid;
  place-items: center;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  position: relative;
  overflow: hidden;
}
.imgbox::after {
  content: "";
  position: absolute; inset: 10px;
  border: 1px dashed rgba(11,18,32,0.15);
  border-radius: 6px;
  pointer-events: none;
}
.imgbox.dark {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.06) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #101827, #0B1220);
  color: rgba(255,255,255,0.6);
}
.imgbox.cyan {
  background:
    repeating-linear-gradient(135deg, rgba(255,255,255,0.08) 0 8px, transparent 8px 16px),
    linear-gradient(180deg, #9A3412, #3A1306);
  color: rgba(255,255,255,0.7);
}

/* Book cover placeholder */
.cover {
  aspect-ratio: 2/3;
  border-radius: 4px;
  position: relative;
  overflow: hidden;
  box-shadow:
    inset 8px 0 12px -6px rgba(0,0,0,0.25),
    0 10px 30px -10px rgba(10,15,26,0.18);
  color: #fff;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  font-family: var(--sans);
}
.cover::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.05), transparent 40%);
  pointer-events: none;
}
.cover .spine { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: rgba(0,0,0,0.22); }
.cover .cb-title { font-size: 20px; line-height: 1.05; font-weight: 600; letter-spacing: -0.01em; max-width: 80%; }
.cover .cb-sub { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.8; }
.cover .cb-author { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; opacity: 0.85; }
.cover.c-ink    { background: radial-gradient(120% 80% at 0% 0%, #1e293b, #0b1220); }
.cover.c-cyan   { background: radial-gradient(120% 80% at 100% 0%, #0891b2, #3A1306); }
.cover.c-paper  { background: linear-gradient(180deg, #F4F6F8, #CBD2DB); color: var(--ink); }
.cover.c-paper .cb-sub, .cover.c-paper .cb-author { opacity: 0.7; }
.cover.c-green  { background: linear-gradient(180deg, #134E4A, #0B1F1D); }
.cover.c-plum   { background: linear-gradient(180deg, #3B2054, #180B28); }
.cover.c-rust   { background: linear-gradient(180deg, #9A3412, #3A1306); }

/* -------- Article cards -------- */
.post-card { display: flex; flex-direction: column; }
.post-card .thumb { aspect-ratio: 16/10; }
.post-card .body { padding: 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-card h3 { font-size: 22px; line-height: 1.15; }
.post-card .meta { display: flex; gap: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.post-card .meta .cat { color: var(--accent); }

/* -------- Footer -------- */
footer.site {
  margin-top: 80px;
  background: var(--ink);
  color: #D9DEE8;
  padding: 64px 0 24px;
}
footer.site h4 { color: #fff; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; font-weight: 700; margin-bottom: 14px; }
footer.site a { color: #D9DEE8; }
footer.site a:hover { color: var(--accent-2); }
footer.site .cols { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
@media (max-width: 800px) { footer.site .cols { grid-template-columns: 1fr 1fr; } }
footer.site .brand-col .brand { color: #fff; }
footer.site .brand-col .brand .sub { color: #9aa3b3; }
footer.site .brand-col p { max-width: 42ch; color: #9aa3b3; margin-top: 10px; font-size: 14px; }
footer.site ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: 14px; }
footer.site .fine { margin-top: 56px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.08); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12px; color: #7d8598; }

/* -------- Page-specific helpers -------- */

/* Hero — home */
.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
  padding-block: clamp(60px, 8vw, 120px);
  position: relative;
}
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; } }
.hero .kicker {
  display: flex; align-items: center; gap: 12px; margin-bottom: 24px;
}
.hero .kicker .line { height: 1px; width: 48px; background: var(--ink); }
.hero h1 { margin-bottom: 24px; }
.hero h1 em { font-style: italic; color: var(--accent); }
.hero .lede { max-width: 52ch; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts {
  margin-top: 48px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--rule);
}
.hero .facts .fact .n { font-family: var(--sans); font-size: 32px; line-height: 1; }
.hero .facts .fact .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }

.hero-media {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background:
    repeating-linear-gradient(135deg, rgba(10,15,26,0.04) 0 10px, transparent 10px 20px),
    linear-gradient(180deg, #E5E7EB, #C7CDD6);
}
.hero-media .portrait-label {
  position: absolute; left: 16px; bottom: 16px;
  background: rgba(11,18,32,0.85);
  color: #fff;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--r-md);
}
.hero-media .badge {
  position: absolute; right: 16px; top: 16px;
  background: rgba(255,255,255,0.9);
  border: 1px solid var(--rule);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 12px;
  border-radius: var(--r-pill);
}

/* Ticker */
.ticker {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  padding: 14px 0;
  display: flex;
  gap: 32px;
  overflow: hidden;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-3);
  white-space: nowrap;
}
.ticker .item { display: inline-flex; align-items: center; gap: 12px; }
.ticker .item .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* Featured book (homepage) */
.feature-book {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 800px) { .feature-book { grid-template-columns: 1fr; } .feature-book .cover { max-width: 240px; } }
.feature-book .meta-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 32px; margin: 24px 0; padding: 20px 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.feature-book .meta-grid .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.feature-book .meta-grid .v { font-size: 14px; color: var(--ink); margin-top: 2px; }

/* Testimonials */
.quote {
  padding: 28px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  display: flex; flex-direction: column; gap: 20px;
}
.quote .q-mark { font-family: var(--sans); font-size: 60px; line-height: 0.6; color: var(--accent); }
.quote p { font-family: var(--sans); font-size: 18px; line-height: 1.45; color: var(--ink); }
.quote .who { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--rule); padding-top: 16px; }
.quote .who .av { width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 700; }
.quote .who .n { font-weight: 600; font-size: 14px; }
.quote .who .r { font-family: var(--mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

/* Newsletter */
.newsletter {
  background: var(--ink);
  color: #fff;
  padding: clamp(36px, 5vw, 64px);
  border-radius: var(--r-lg);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.newsletter::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(500px 300px at 90% 10%, rgba(8,145,178,0.35), transparent 60%),
    radial-gradient(400px 260px at 10% 90%, rgba(255,255,255,0.04), transparent 60%);
  pointer-events: none;
}
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { color: #fff; font-size: clamp(28px, 3vw, 42px); }
.newsletter .lede { color: #C6CCDA; }
.newsletter form { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.newsletter input[type=email] {
  flex: 1; min-width: 240px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
}
.newsletter input[type=email]::placeholder { color: rgba(255,255,255,0.5); }
.newsletter input[type=email]:focus { border-color: var(--accent-2); }
.newsletter .stats { display: grid; gap: 14px; }
.newsletter .stat { display: flex; align-items: baseline; gap: 12px; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 10px; }
.newsletter .stat .n { font-family: var(--sans); font-size: 28px; line-height: 1; color: #fff; min-width: 90px; }
.newsletter .stat .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #9aa3b3; }
@media (max-width: 800px) { .newsletter { grid-template-columns: 1fr; } }

/* ---------- Book detail ---------- */
.book-hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  padding-block: clamp(36px, 5vw, 72px);
}
@media (max-width: 900px) { .book-hero { grid-template-columns: 1fr; } .book-hero .cover { max-width: 260px; } }
.book-hero .cover { align-self: start; }
.book-hero .title-block h1 { font-size: clamp(36px, 4vw, 60px); }

.chapter-list { counter-reset: chap; }
.chapter-list .chap {
  display: grid;
  grid-template-columns: 60px 1fr auto;
  gap: 20px;
  align-items: baseline;
  padding: 16px 0;
  border-top: 1px solid var(--rule);
}
.chapter-list .chap:last-child { border-bottom: 1px solid var(--rule); }
.chapter-list .chap .n { font-family: var(--mono); color: var(--accent); font-size: 12px; letter-spacing: 0.12em; }
.chapter-list .chap .t { font-family: var(--sans); font-size: 20px; color: var(--ink); }
.chapter-list .chap .t .pages { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; color: var(--muted); margin-top: 4px; text-transform: uppercase; }
.chapter-list .chap .preview { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 40px;
  padding: 24px 0;
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
}
@media (max-width: 700px) { .spec-grid { grid-template-columns: repeat(2, 1fr); } }
.spec-grid .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.spec-grid .v { font-size: 14px; color: var(--ink); }

.code-window {
  background: #0B1220;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid #1e293b;
}
.code-window .bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid #1e293b; background: #0f172a; }
.code-window .bar .dot { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.code-window .bar .dot.r { background: #ef4444; }
.code-window .bar .dot.y { background: #f59e0b; }
.code-window .bar .dot.g { background: #22c55e; }
.code-window .bar .fn { margin-left: 10px; font-family: var(--mono); font-size: 12px; color: #94a3b8; }
.code-window pre { margin: 0; padding: 20px 24px; font-family: var(--mono); font-size: 13px; line-height: 1.7; color: #e2e8f0; overflow-x: auto; }
.code-window pre .k { color: #22d3ee; }
.code-window pre .s { color: #a7f3d0; }
.code-window pre .c { color: #64748b; font-style: italic; }
.code-window pre .fn2 { color: #fbbf24; }
.code-window pre .t { color: #f472b6; }

/* ---------- Archive / Blog ---------- */
.page-header {
  padding-block: clamp(48px, 6vw, 96px);
  border-bottom: 1px solid var(--rule);
}
.page-header h1 { font-size: clamp(44px, 6vw, 84px); margin-bottom: 16px; }
.page-header .lede { max-width: 64ch; }
.page-header .meta-row { display: flex; gap: 24px; margin-top: 32px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }

.filter-row {
  display: flex; gap: 8px; flex-wrap: wrap; padding: 14px 18px; align-items: center;
  background: rgba(255,255,255,0.62); border: 1px solid rgba(120,53,15,0.18);
  border-radius: var(--r-lg); backdrop-filter: blur(8px);
}
.filter-row .label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-right: 6px; }
.filter-row .chip {
  padding: 7px 12px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule);
  background: transparent;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-2);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
  text-decoration: none;
  display: inline-block;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.filter-row .chip:hover { background: rgba(11,18,32,0.07); }
.filter-row .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

.book-grid-card {
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 24px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  gap: 16px;
}
.book-grid-card .cover { margin: 0 auto; width: 80%; max-width: 220px; }
.book-grid-card .meta { display: flex; align-items: center; justify-content: space-between; }
.book-grid-card .cat { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.book-grid-card .price { font-family: var(--mono); font-size: 13px; color: var(--ink); }
.book-grid-card h3 { font-size: 22px; }
.book-grid-card .actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Blog list */
.blog-list article {
  padding-block: 36px;
  border-top: 1px solid var(--rule);
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 32px;
}
.blog-list article:last-child { border-bottom: 1px solid var(--rule); }
.blog-list article .thumb { aspect-ratio: 4/3; border-radius: var(--r-md); }
.blog-list article h3 { font-size: clamp(22px, 2vw, 30px); line-height: 1.15; }
.blog-list article p { color: var(--ink-2); max-width: 70ch; margin-top: 8px; }
.blog-list article .meta { display: flex; gap: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.blog-list article .meta .cat { color: var(--accent); }
.blog-list article .more { font-family: var(--mono); font-size: 12px; color: var(--ink); margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; letter-spacing: 0.05em; }
.blog-list article .more:hover { color: var(--accent); }
@media (max-width: 700px) { .blog-list article { grid-template-columns: 1fr; } }

/* Single post */
.post-single {
  max-width: 740px;
  margin: 0 auto;
  padding-block: clamp(40px, 5vw, 80px);
}
.post-single h1 { font-size: clamp(36px, 4vw, 58px); }
.post-single .lede { margin-top: 20px; }
.post-single .meta { display: flex; gap: 16px; font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule); flex-wrap: wrap; }
.post-single .meta .cat { color: var(--accent); }
.post-single .hero-img { aspect-ratio: 16/9; margin: 40px 0; border-radius: var(--r-md); }
.post-single .prose { font-family: var(--sans); font-size: 17px; line-height: 1.7; color: var(--ink); }
.post-single .prose p { margin: 0 0 22px; }
.post-single .prose h2 { font-size: 30px; margin: 40px 0 16px; }
.post-single .prose h3 { font-size: 22px; margin: 32px 0 12px; }
.post-single .prose ul { padding-left: 1.2em; margin: 0 0 22px; }
.post-single .prose li { margin-bottom: 8px; }
.post-single .prose blockquote {
  border-left: 3px solid var(--accent);
  margin: 32px 0;
  padding: 6px 0 6px 24px;
  font-style: italic;
  color: var(--ink-2);
}
.post-single .prose code { font-family: var(--mono); background: var(--paper-2); padding: 2px 6px; border-radius: 4px; font-size: 0.92em; }
.post-single .prose .callout {
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  background: var(--paper-2);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--accent);
  padding: 16px 20px;
  border-radius: var(--r-md);
  margin: 32px 0;
  color: var(--ink-2);
}
.post-single .prose .callout .label { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 6px; }
.post-single .share { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--rule); display: flex; gap: 10px; align-items: center; }
.post-single .share .l { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.post-single .author-card { margin-top: 48px; padding: 24px; background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); display: grid; grid-template-columns: 80px 1fr; gap: 20px; align-items: center; }
.post-single .author-card .av { width: 80px; height: 80px; border-radius: 50%; }
.post-single .related { margin-top: 64px; }

/* About */
.about-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: start;
  padding-block: clamp(48px, 6vw, 96px);
}
@media (max-width: 900px) { .about-hero { grid-template-columns: 1fr; } }
.about-hero .portrait { aspect-ratio: 3/4; border-radius: var(--r-lg); }
.about-hero h1 { margin-bottom: 24px; }

.timeline { position: relative; padding-left: 28px; }
.timeline::before { content: ""; position: absolute; left: 6px; top: 8px; bottom: 8px; width: 2px; background: var(--rule); }
.timeline .item { position: relative; padding-bottom: 28px; }
.timeline .item::before { content: ""; position: absolute; left: -28px; top: 6px; width: 14px; height: 14px; border-radius: 50%; background: var(--paper); border: 2px solid var(--accent); }
.timeline .year { font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; color: var(--accent); }
.timeline h4 { font-family: var(--sans); font-size: 18px; margin-top: 4px; margin-bottom: 4px; }
.timeline p { color: var(--ink-2); font-size: 14px; }

/* Contact */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  padding-block: clamp(48px, 6vw, 96px);
}
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-form { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: 32px; display: grid; gap: 16px; }
.contact-form label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.contact-form input, .contact-form textarea, .contact-form select {
  width: 100%;
  background: var(--paper);
  border: 1px solid var(--rule);
  color: var(--ink);
  padding: 12px 14px;
  border-radius: var(--r-md);
  font-family: var(--sans);
  font-size: 15px;
  outline: none;
}
.contact-form textarea { min-height: 140px; resize: vertical; }
.contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { border-color: var(--accent); }

.contact-info .block { padding: 20px 0; border-top: 1px solid var(--rule); }
.contact-info .block:first-of-type { border-top: 0; }
.contact-info .block h4 { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.contact-info .block p { font-family: var(--sans); font-size: 18px; }

/* 404 */
.fourohfour {
  padding-block: clamp(72px, 12vw, 160px);
  text-align: center;
  display: grid; place-items: center; gap: 24px;
}
.fourohfour .code { font-family: var(--sans); font-size: clamp(120px, 18vw, 240px); line-height: 1; color: var(--ink); letter-spacing: -0.04em; }
.fourohfour .code em { font-style: italic; color: var(--accent); }

/* Search results */
.search-results .result-row { padding: 20px 0; border-top: 1px solid var(--rule); display: flex; gap: 16px; align-items: baseline; }
.search-results .result-row:last-child { border-bottom: 1px solid var(--rule); }
.search-results .result-row .k { font-family: var(--mono); font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); min-width: 100px; padding-top: 3px; }
.search-results .result-row .t { font-family: var(--sans); font-size: 22px; }
.search-results .result-row p { color: var(--ink-2); margin-top: 6px; max-width: 70ch; font-size: 14px; }

/* Pagination */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 40px 0; }
.pagination a {
  min-width: 40px; height: 40px;
  display: inline-grid; place-items: center;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--ink-2);
}
.pagination a:hover { border-color: var(--ink); color: var(--ink); }
.pagination a.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Demo nav (only for the demo HTML) */
.demo-switcher {
  position: fixed;
  right: 16px; bottom: 16px;
  z-index: 70;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-lg);
  padding: 12px 14px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: flex; gap: 6px; flex-wrap: wrap;
  max-width: 320px;
  box-shadow: 0 20px 40px -10px rgba(0,0,0,0.4);
}
.demo-switcher .label { width: 100%; color: var(--accent-2); margin-bottom: 4px; }
.demo-switcher a { color: #C6CCDA; padding: 5px 9px; border-radius: 6px; border: 1px solid rgba(255,255,255,0.1); }
.demo-switcher a:hover { color: #fff; background: rgba(255,255,255,0.08); }
.demo-switcher a.on { background: var(--accent); color: #fff; border-color: var(--accent); }


/* -------- Liquid Glass additions -------- */
.glass {
  background: var(--glass-bg);
  backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  -webkit-backdrop-filter: blur(var(--glass-blur)) saturate(140%);
  border: 1px solid var(--glass-border);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), inset 0 -1px 0 var(--glass-edge), var(--shadow-2);
  border-radius: var(--r-lg);
}
.card {
  background: var(--card);
  backdrop-filter: blur(10px) saturate(130%);
  -webkit-backdrop-filter: blur(10px) saturate(130%);
  border: 1px solid rgba(255,255,255,0.8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9), var(--shadow-2);
  border-radius: var(--r-lg);
}
.nav-wrap { background: rgba(248,250,252,0.72); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); border-bottom: 1px solid rgba(226,232,240,0.7); }
.btn-accent { background: linear-gradient(180deg, #F59E0B, #D97706); color: #fff; box-shadow: 0 6px 20px -8px rgba(217,119,6,0.5), inset 0 1px 0 rgba(255,255,255,0.35); border: 1px solid rgba(217,119,6,0.45); }
.btn-accent:hover { box-shadow: 0 10px 30px -8px rgba(217,119,6,0.55), inset 0 1px 0 rgba(255,255,255,0.4); transform: translateY(-1px); }
.btn-amazon { background: linear-gradient(180deg, #F8C366, #E08A00); color: #1B1204; box-shadow: 0 6px 20px -8px rgba(217,119,6,0.45), inset 0 1px 0 rgba(255,255,255,0.55); border: 1px solid rgba(180,83,9,0.45); font-weight: 700; }
.btn-amazon:hover { background: linear-gradient(180deg, #F5B04A, #C77500); color: #1B1204; box-shadow: 0 10px 28px -8px rgba(217,119,6,0.55), inset 0 1px 0 rgba(255,255,255,0.45); transform: translateY(-1px); }
.btn-amazon:active { transform: translateY(0); box-shadow: 0 4px 12px -6px rgba(217,119,6,0.55), inset 0 1px 0 rgba(255,255,255,0.35); }
.tag.accent { background: rgba(217,119,6,0.10); color: var(--accent-ink); border: 1px solid rgba(6,182,212,0.3); }
/* Book sticky CTA in post right rail */
.post-book-cta { display: grid; grid-template-columns: 72px 1fr; gap: 14px; padding: 16px; margin-top: 14px; border-radius: var(--r-lg); background: var(--card); backdrop-filter: blur(10px) saturate(140%); border: 1px solid rgba(255,255,255,0.8); box-shadow: var(--shadow-2); }
.post-book-cta .cover { aspect-ratio: 2/3; }
.post-book-cta .t { font-size: 15px; font-weight: 600; line-height: 1.25; letter-spacing: -0.01em; color: var(--ink); }
.post-book-cta .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 4px; }
.post-book-cta .ctas { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
/* Post two-column layout */
.post-layout { display: grid; grid-template-columns: minmax(0,1fr) 340px; gap: 48px; align-items: start; }
.post-layout .rail { position: sticky; top: 96px; display: grid; gap: 16px; }
@media (max-width: 980px) { .post-layout { grid-template-columns: 1fr; } .post-layout .rail { position: static; } }
/* Book hero simplified */
.book-detail-hero { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: 48px; align-items: start; padding: 32px 0; }
.book-detail-hero .cover-wrap { position: sticky; top: 96px; }
.book-detail-hero .cover-wrap .cover { box-shadow: 0 25px 60px -20px rgba(15,23,42,0.35), 0 8px 20px -10px rgba(6,182,212,0.2); }
@media (max-width: 900px) { .book-detail-hero { grid-template-columns: 1fr; } .book-detail-hero .cover-wrap { position: static; max-width: 240px; } }
.buy-panel { padding: 22px; margin-top: 24px; border-radius: var(--r-lg); background: linear-gradient(180deg, rgba(255,255,255,0.9), rgba(255,255,255,0.65)); backdrop-filter: blur(12px); border: 1px solid rgba(255,255,255,0.9); box-shadow: var(--shadow-2); }
.buy-panel .price-row { display: flex; align-items: baseline; gap: 12px; }
.buy-panel .price { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; }
.buy-panel .strike { color: var(--muted); text-decoration: line-through; font-size: 16px; }
.buy-panel .rating { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--ink-2); }
.buy-panel .stars { color: #F59E0B; letter-spacing: 2px; }
.review-card { padding: 24px; border-radius: var(--r-lg); background: var(--card); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.8); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 14px; }
.review-card .stars { color: #F59E0B; letter-spacing: 2px; font-size: 14px; }
.review-card .q { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.review-card .who { display: flex; gap: 10px; align-items: center; padding-top: 12px; border-top: 1px solid var(--rule); }
.review-card .av { width: 36px; height: 36px; border-radius: 50%; background: linear-gradient(135deg, #D97706, #B45309); color: #fff; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 12px; }
.related-post-mini { padding: 16px; border-radius: var(--r-md); background: rgba(255,255,255,0.6); backdrop-filter: blur(8px); border: 1px solid var(--rule); }
.hero-book-card { padding: 28px; border-radius: var(--r-lg); background: linear-gradient(135deg, rgba(255,255,255,0.85), rgba(241,245,249,0.7)); backdrop-filter: blur(16px) saturate(140%); border: 1px solid rgba(255,255,255,0.9); box-shadow: 0 30px 60px -20px rgba(15,23,42,0.2), inset 0 1px 0 rgba(255,255,255,0.9); }


/* ACCENT-BARS */
.accent-bar { position: relative; padding-bottom: 2px; }
.accent-bar::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 6px; background: linear-gradient(90deg, rgba(217,119,6,0.9) 0, rgba(217,119,6,0.25) 70%, transparent 100%); border-radius: 3px; }
.accent-under { box-shadow: 0 2px 0 0 rgba(217,119,6,0.9); padding-bottom: 2px; }
.section-head { border-bottom: 0; padding-bottom: 10px; position: relative; }
.section-head::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, var(--ink-3), transparent 70%); }
.section-head::before { content: ""; position: absolute; left: 0; bottom: -1px; height: 3px; width: 56px; background: var(--accent); border-radius: 2px; }
h1 em, h2 em { background: linear-gradient(180deg, transparent 62%, rgba(217,119,6,0.25) 62%, rgba(217,119,6,0.25) 92%, transparent 92%); padding: 0 2px; font-style: italic; color: var(--ink); }
.hero h1 em { color: var(--accent-ink); }
.underline-accent { background-image: linear-gradient(180deg, transparent 62%, rgba(217,119,6,0.28) 62%, rgba(217,119,6,0.28) 92%, transparent 92%); padding: 0 2px; }
.chip-dot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); margin-right: 8px; transform: translateY(-2px); }
.cover.c-ink    { background: linear-gradient(155deg, #1B263F 0%, #0B1220 100%); }
.cover.c-cyan   { background: linear-gradient(155deg, #3A1E0B 0%, #1A0B04 100%); }
.cover.c-rust   { background: linear-gradient(155deg, #9A3412 0%, #3A1306 100%); }
.cover.c-plum   { background: linear-gradient(155deg, #3B2054 0%, #180B28 100%); }
.cover.c-green  { background: linear-gradient(155deg, #14532D 0%, #06210F 100%); }
.cover.c-paper  { background: linear-gradient(180deg, #ECEFF3, #C7CDD6); color: var(--ink); }
.hero-book-card { background: linear-gradient(155deg, rgba(255,255,255,0.85), rgba(236,239,243,0.75)); border: 1px solid rgba(255,255,255,0.95); box-shadow: 0 30px 60px -20px rgba(15,23,42,0.22), inset 0 1px 0 rgba(255,255,255,0.9); }
.buy-panel { background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(246,247,249,0.88)); border: 1px solid rgba(11,18,32,0.06); }
.buy-panel .price { color: var(--ink); }
.buy-panel .stars, .review-card .stars { color: #D97706; }
.nav-wrap { background: rgba(246,247,249,0.82); border-bottom: 1px solid rgba(203,213,225,0.7); }
.ticker { background: linear-gradient(90deg, rgba(217,119,6,0.06), transparent 40%, rgba(11,18,32,0.04) 100%); border-top-color: rgba(203,213,225,0.7); border-bottom-color: rgba(203,213,225,0.7); }
.tag.accent { background: #FFF3E3; color: #7C2D12; border-color: rgba(217,119,6,0.35); }
.filter-row .chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter-row .chip { background: rgba(255,255,255,0.6); backdrop-filter: blur(6px); }
.card.as-link:hover { transform: translateY(-3px); border-color: rgba(217,119,6,0.35); box-shadow: 0 14px 32px -14px rgba(217,119,6,0.2), var(--shadow-2); }
.post-card .meta .cat, .search-results .result-row .k, .search-box .result .kind { color: var(--accent); }
.nav-links a.active::after, .nav-links a:hover::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--accent); }
.sec-num::after { background: linear-gradient(90deg, var(--accent), transparent); opacity: 0.8; }
.timeline .item::before { border-color: var(--accent); }
blockquote, .post-single .prose blockquote { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(217,119,6,0.06), transparent); padding: 6px 0 6px 24px; border-radius: 2px; }
.post-single .prose .callout { border-left-color: var(--accent); background: linear-gradient(90deg, rgba(217,119,6,0.07), rgba(217,119,6,0.01)); }
.newsletter { background: linear-gradient(160deg, #0B1220 0%, #152033 60%, #2A1408 100%); }
.newsletter::before { background: radial-gradient(500px 300px at 90% 10%, rgba(217,119,6,0.35), transparent 60%), radial-gradient(400px 260px at 10% 90%, rgba(255,255,255,0.04), transparent 60%); }
.newsletter input[type=email]:focus { border-color: var(--accent); }
footer.site { background: linear-gradient(180deg, #0B1220 0%, #060A13 100%); }
footer.site a:hover { color: #F5B04A; }
body { background-image: radial-gradient(900px 600px at 10% -10%, rgba(217,119,6,0.09), transparent 60%), radial-gradient(1000px 700px at 110% 10%, rgba(180,83,9,0.06), transparent 60%); }
/* BADGE / PILL accent spot */
.badge-dot { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 6px; border-radius: 999px; background: rgba(217,119,6,0.1); color: #7C2D12; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; }
.badge-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px rgba(217,119,6,0.18); }


/* FULL-BLEED BANDS — colored stripes that break the page rhythm */
.band { width: 100%; padding-block: clamp(56px, 7vw, 110px); position: relative; }
.band-gray { background: linear-gradient(180deg, #ECEFF3 0%, #E4E8EE 100%); border-block: 1px solid rgba(11,18,32,0.06); }
.band-orange { background: linear-gradient(180deg, #FFF1DD 0%, #FCE3BD 100%); border-block: 1px solid rgba(217,119,6,0.18); }
.band-orange::before { content: ""; position: absolute; inset: 0; background: radial-gradient(800px 360px at 90% 0%, rgba(217,119,6,0.18), transparent 60%), radial-gradient(700px 320px at 5% 100%, rgba(180,83,9,0.10), transparent 60%); pointer-events: none; }
.band-ink { background: linear-gradient(160deg, #0B1220 0%, #152033 60%, #2A1408 100%); color: #E5E7EB; }
.band-ink h1, .band-ink h2, .band-ink h3, .band-ink h4 { color: #fff; }
.band-ink .muted { color: #9aa3b3; }
.band-ink .lede { color: #C6CCDA; }
.band-ink .sec-num { color: #9aa3b3; }
.band-ink .sec-num .num { color: #FBBF24; }
.band-ink a { color: #FCD9A4; }
.band-ink .btn-amazon, .band-ink .btn-amazon:hover { color: #1B1204; }
.band-ink .section-head::after { background: linear-gradient(90deg, rgba(255,255,255,0.4), transparent 70%); }
.band-ink .section-head::before { background: #F59E0B; }
.band > .container > .section { padding-block: 0; }
.band + .band, .section + .band, .band + .section { margin-top: 0; }
/* Cancel default body radial behind bands so the gradient reads cleanly */
.band-orange .card, .band-gray .card { background: rgba(255,255,255,0.86); }
.band-ink .card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); color: #E5E7EB; backdrop-filter: blur(8px); }
.band-ink .card h3 { color: #fff; }
.band-ink .post-card .meta .cat { color: #FBBF24; }
.band-ink .imgbox { background: repeating-linear-gradient(135deg, rgba(255,255,255,0.04) 0 8px, transparent 8px 16px), linear-gradient(180deg, #1A2236, #0B1220); color: rgba(255,255,255,0.5); }
.band-ink .imgbox::after { border-color: rgba(255,255,255,0.12); }

/* AUTHOR INTRO BLOCK (homepage) */
.author-intro { display: grid; grid-template-columns: 320px minmax(0,1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
@media (max-width: 800px) { .author-intro { grid-template-columns: 1fr; } .author-intro .portrait { max-width: 280px; } }
.author-intro .portrait { aspect-ratio: 4/5; border-radius: var(--r-lg); position: relative; overflow: hidden; background: linear-gradient(135deg, #1A2236 0%, #0B1220 100%); border: 1px solid rgba(255,255,255,0.08); box-shadow: 0 30px 60px -20px rgba(0,0,0,0.5); }
.author-intro .portrait::after { content: "AUTHOR PORTRAIT"; position: absolute; left: 14px; bottom: 12px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.16em; color: rgba(255,255,255,0.45); }
.author-intro .signature { font-family: "Caveat", "Brush Script MT", cursive; font-size: 36px; line-height: 1; color: #FBBF24; margin-top: 22px; opacity: 0.95; }
.author-intro .role-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 14px; margin-top: 28px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.12); }
.author-intro .role-grid .r { display: grid; gap: 4px; }
.author-intro .role-grid .r .k { font-family: var(--mono); font-size: 10px; letter-spacing: 0.14em; color: #9aa3b3; text-transform: uppercase; }
.author-intro .role-grid .r .v { font-size: 14px; color: #fff; line-height: 1.4; }
.author-intro .meta-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 24px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #9aa3b3; }
.author-intro .meta-row .it { display: inline-flex; align-items: center; gap: 6px; }
.author-intro .meta-row .it::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #F59E0B; }

/* SHELF — wider book row inside orange band */
.shelf-row { display: grid; grid-template-columns: repeat(6, minmax(0,1fr)); gap: clamp(14px, 2vw, 28px); align-items: start; }
@media (max-width: 1100px) { .shelf-row { grid-template-columns: repeat(4, 1fr); } .shelf-row > *:nth-child(n+5) { display: none; } }
@media (max-width: 700px) { .shelf-row { grid-template-columns: repeat(3, 1fr); } .shelf-row > *:nth-child(n+4) { display: none; } }
.shelf-row .shelf-book { display: flex; flex-direction: column; gap: 10px; text-decoration: none; transition: transform .2s ease; }
.shelf-row .shelf-book:hover { transform: translateY(-4px); }
.shelf-row .shelf-book .cover { box-shadow: 0 18px 36px -14px rgba(11,18,32,0.45), 0 4px 10px -4px rgba(0,0,0,0.2); }
.shelf-row .shelf-book .t { font-size: 13px; font-weight: 600; line-height: 1.25; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.shelf-row .shelf-book .y { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--accent-ink); text-transform: uppercase; }
.shelf-row .shelf-book .price { font-family: var(--mono); font-size: 11px; color: var(--ink-2); }

/* -------- 3D book effect -------- */
.shelf-book .book-3d-wrap {
  position: relative;
  display: block;
  transform: perspective(600px) rotateY(8deg);
  transform-origin: center center;
  filter: drop-shadow(-5px 10px 18px rgba(0,0,0,0.48));
  transition: transform .3s ease, filter .3s ease;
}
.shelf-book:hover .book-3d-wrap {
  transform: perspective(600px) rotateY(4deg) translateY(-6px);
  filter: drop-shadow(-7px 14px 24px rgba(0,0,0,0.6));
}
/* Spine shadow + subtle right highlight */
.shelf-book .book-3d-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 2px 3px 3px 2px;
  background: linear-gradient(to right,
    rgba(0,0,0,0.48) 0%,
    rgba(0,0,0,0.20) 10%,
    rgba(0,0,0,0.04) 30%,
    transparent 55%,
    rgba(255,255,255,0.06) 85%,
    rgba(255,255,255,0.12) 100%);
  z-index: 3;
  pointer-events: none;
}
/* Page stack — right edge */
.shelf-book .book-3d-wrap::after {
  content: '';
  position: absolute;
  right: -4px;
  top: 1%;
  width: 4px;
  height: 98%;
  background: linear-gradient(to right, #aaa 0%, #ebebeb 45%, #c8c8c8 100%);
  border-radius: 0 2px 2px 0;
  pointer-events: none;
}

/* Section in band — bring the section-head dot/bar in line */
.band .section-head { background: transparent; }

/* Force the inner container of bands to NOT inherit the body radial */
.band { isolation: isolate; }


/* DEEPER ORANGE BAND + DARK PAGE-HEADER APPLIED SITE-WIDE */
.band-orange { background: linear-gradient(180deg, #F4C278 0%, #E39A3A 55%, #C8781E 100%); border-block: 1px solid rgba(120,53,15,0.35); color: #1B1204; }
.band-orange::before { background: radial-gradient(900px 420px at 90% 0%, rgba(255,255,255,0.22), transparent 60%), radial-gradient(700px 360px at 5% 100%, rgba(120,53,15,0.35), transparent 60%); }
.band-orange h1, .band-orange h2, .band-orange h3 { color: #1B1204; }
.band-orange .muted, .band-orange .lede { color: rgba(27,18,4,0.78); }
.band-orange .sec-num { color: rgba(27,18,4,0.68); }
.band-orange .sec-num .num { color: #4A1A03; }
.band-orange .shelf-book .t { color: #1B1204; }
.band-orange .shelf-book .y { color: #4A1A03; }
.band-orange .shelf-book .price { color: rgba(27,18,4,0.72); }
.band-orange .btn-amazon { box-shadow: 0 10px 24px -8px rgba(74,26,3,0.45); }
.band-orange .btn-ghost { border-color: rgba(27,18,4,0.35); color: #1B1204; }
.band-orange .btn-ghost:hover { background: rgba(27,18,4,0.08); }
.band-orange .section-head::before { background: #4A1A03; }
.band-orange .section-head::after { background: linear-gradient(90deg, rgba(27,18,4,0.22), transparent 70%); }

/* Combined hero+author dark band on homepage */
.band-hero { padding-block: clamp(64px, 8vw, 120px); }
.band-hero .hero { padding: 0; background: transparent; }
.band-hero .hero h1 { color: #fff; }
.band-hero .hero h1 em { background: none; }
.band-hero .hero .lede { color: #C6CCDA; }
.band-hero .hero .muted { color: #9aa3b3; }
.band-hero .hero .kicker .line { background: rgba(255,255,255,0.25); }
.band-hero .hero .facts { border-color: rgba(255,255,255,0.12); }
.band-hero .hero .fact .n { color: #fff; }
.band-hero .hero .fact .l { color: #9aa3b3; }
.band-hero .hero-book-card { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.14); color: #E5E7EB; backdrop-filter: blur(10px); }
.band-hero .hero-book-card .muted { color: #9aa3b3; }
.band-hero .hero-book-card .badge-dot { background: rgba(217,119,6,0.22); color: #FBBF24; border: 1px solid rgba(217,119,6,0.4); }
.band-hero .hero-book-card .badge-dot::before { background: #FBBF24; box-shadow: 0 0 0 3px rgba(251,191,36,0.2); }
.band-hero .divider-rule { height: 1px; background: linear-gradient(90deg, transparent, rgba(245,158,11,0.5), transparent); margin: clamp(48px, 6vw, 88px) 0; }

/* Dark page header (applied to all non-home page-headers) */
.page-header.dark { background: linear-gradient(160deg, #0B1220 0%, #152033 60%, #2A1408 100%); color: #E5E7EB; border-bottom: 1px solid rgba(245,158,11,0.18); padding-block: clamp(60px, 8vw, 110px); position: relative; isolation: isolate; }
.page-header.dark::before { content: ""; position: absolute; inset: 0; background: radial-gradient(700px 340px at 88% 10%, rgba(217,119,6,0.18), transparent 60%); pointer-events: none; }
.page-header.dark h1 { color: #fff; }
.page-header.dark h1 em { color: #FBBF24; font-style: italic; }
.page-header.dark .lede, .page-header.dark .muted { color: #C6CCDA; }
.page-header.dark .caps { color: #F59E0B; }
.page-header.dark .meta-row { color: #9aa3b3; }
.page-header.dark .meta-row a { color: #FBBF24; }
.page-header.dark input[type="search"] { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.16); color: #fff; }
.page-header.dark input[type="search"]::placeholder { color: #9aa3b3; }

/* Post-single CTA bar: dark strip before content */
.post-crumb-bar { background: linear-gradient(160deg, #0B1220 0%, #1A2236 100%); color: #C6CCDA; padding: 14px 0; border-bottom: 1px solid rgba(245,158,11,0.18); }
.post-crumb-bar a { color: #FCD9A4; }
.post-crumb-bar .current { color: #fff; }
