/* =============================================================
   STAVROS BASTA — Main Stylesheet
   ============================================================= */

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

:root {
  --black:        #0a0a0a;
  --white:        #f5f5f0;
  --off-white:    #eeede8;
  --mid-light:    #999992;
  --mid-dark:     #666660;
  --border-light: #d4d4ce;
  --border-dark:  #2a2a2a;
  --text-quiet-dark:  #777770;
  --text-muted-dark:  #8a8a82;
  --text-soft-dark:   #a6a69d;
  --text-body-dark:   #b8b8b0;
  --text-quiet-light: #6a6a63;
  --text-muted-light: #5f5f58;
  --text-soft-light:  #4a4a44;
  --text-faint:       #333330;
  --surface-hover-light: #d8d8d0;
  --surface-hover-dark:  #333330;

  /* Layout */
  --site-width:  1280px;
  --site-pad:    60px;
  /* Responsive centred horizontal padding: equals --site-pad until the viewport
     exceeds --site-width, then grows to keep the content at --site-width. */
  --h-pad: max(var(--site-pad), calc((100vw - var(--site-width)) / 2 + var(--site-pad)));

  /* Extended palette */
  --dark-alt:        #111111;
  --dark-shade:      #0e0e0e;
  --form-bg-light:   #faf9f5;
  --book-cover-bg:   #01060f;
  --alert-success-bg:     #eef4ea;
  --alert-success-border: #cad8c3;
  --alert-success-text:   #24331f;
  --alert-error-bg:       #f8ece9;
  --alert-error-border:   #e0c7c1;
  --alert-error-text:     #5f2b20;
  --gradient-dark:   linear-gradient(180deg, #111111 0%, #0a0a0a 100%);

  /* Font families */
  --font-display: 'Playfair Display', serif;
  --font-mono:    'Courier Prime', monospace;
  --font-body:    'Inter', sans-serif;
}

html { scroll-behavior: smooth; }
body { font-family: 'Inter', sans-serif; font-weight: 300; line-height: 1.6; overflow-x: hidden; background: var(--white); }

/* ── NAV ───────────────────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; justify-content: space-between; align-items: center;
  padding: 0 var(--h-pad); height: 72px;
  border-bottom: 1px solid var(--border-dark);
  background: rgba(10,10,10,0.97);
  backdrop-filter: blur(10px);
}
.nav-logo {
  display: flex; align-items: center; text-decoration: none; color: var(--white); flex-shrink: 0;
}
.nav-logo-img {
  display: block; height: 36px; width: auto; color: var(--white);
}
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.nav-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-left: auto;
}
.nav-menu-row {
  display: flex;
  align-items: center;
  gap: 24px;
}
.nav-links { display: flex; gap: 48px; list-style: none; align-items: center; }
.nav-links a {
  color: var(--text-body-dark); text-decoration: none; font-size: 0.75rem;
  font-weight: 500; letter-spacing: 0.15em; text-transform: uppercase; transition: color 0.2s;
}
.nav-links a:hover { color: var(--white); }
.nav-contact-link {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--text-body-dark);
  padding: 10px 22px;
  color: var(--text-body-dark);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s;
}
.nav-contact-link:hover {
  color: var(--white);
  border-color: var(--white);
}
.nav-cta {
  font-size: 0.72rem !important; letter-spacing: 0.12em; text-transform: uppercase; font-weight: 600 !important;
  color: var(--black) !important; background: var(--white);
  padding: 10px 24px; text-decoration: none; transition: background 0.2s;
}
.nav-cta:hover { background: var(--border-light) !important; color: var(--black) !important; }
.nav-search {
  margin-left: 24px;
}
.nav-search-input {
  width: 160px;
  padding: 10px 12px;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--white);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}
.nav-search-input::placeholder {
  color: var(--text-quiet-dark);
}
.nav-search-input:focus {
  outline: none;
  border-color: var(--text-muted-dark);
}

/* ── HERO ──────────────────────────────────────────────────── */
.hero {
  min-height: min(760px, 100vh);
  width: 100%;
  background-image: url('/wp-content/uploads/2026/05/hero-scaled.jpg');
  background-size: cover;
  background-position: left center;
  background-repeat: no-repeat;
  background-color: var(--black);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  position: relative;
  border-bottom: 1px solid var(--border-dark);
}
.hero-content {
  width: min(58%, 820px);
  padding: 120px 72px 88px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-self: stretch;
}
.hero-eyebrow {
  font-family: 'Courier Prime', monospace; font-size: 0.68rem;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--mid-light); margin-bottom: 28px;
}
.hero-name {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.4rem, 4.8vw, 5.8rem);
  font-weight: 900; line-height: 0.95; letter-spacing: -0.02em; margin-bottom: 8px;
  color: var(--white);
}
.hero-name em {
  display: block; color: var(--text-muted-dark); font-weight: 400; font-style: italic;
  font-size: 0.5em; letter-spacing: 0.02em; margin-top: 12px;
}
.hero-divider { width: 100%; height: 1px; background: var(--border-dark); margin: 36px 0 20px; }
.hero-credentials {
  font-family: 'Courier Prime', monospace; font-size: 0.68rem;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-muted-dark); margin-bottom: 28px;
}
.hero-bio {
  font-size: 0.9rem; color: var(--mid-light); max-width: 420px; line-height: 1.82; margin-bottom: 48px;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.scroll-hint {
  position: absolute; bottom: 44px; right: 72px;
  display: flex; align-items: center; gap: 14px;
  font-family: 'Courier Prime', monospace; font-size: 0.6rem;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--text-quiet-dark);
}
.scroll-hint-line { width: 44px; height: 1px; background: var(--surface-hover-dark); }

/* ── BUTTONS ───────────────────────────────────────────────── */
.btn-primary-light {
  display: inline-block; background: var(--white); color: var(--black);
  text-decoration: none; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 14px 32px; transition: background 0.2s;
}
.btn-primary-light:hover { background: var(--surface-hover-light); }
.btn-ghost-dark {
  display: inline-block; border: 1px solid var(--surface-hover-dark); color: var(--text-muted-dark);
  text-decoration: none; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 14px 32px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost-dark:hover { border-color: var(--text-muted-dark); color: var(--white); }
.btn-primary-dark {
  display: inline-block; background: var(--black); color: var(--white);
  text-decoration: none; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 14px 32px; transition: background 0.2s;
}
.btn-primary-dark:hover { background: var(--surface-hover-dark); }
.btn-ghost-light {
  display: inline-block; border: 1px solid var(--surface-hover-dark); color: var(--mid-light);
  text-decoration: none; font-size: 0.72rem; font-weight: 500;
  letter-spacing: 0.15em; text-transform: uppercase; padding: 14px 32px;
  transition: border-color 0.2s, color 0.2s;
}
.btn-ghost-light:hover { border-color: var(--text-muted-dark); color: var(--white); }


/* ── SECTION UTILITIES ─────────────────────────────────────── */
.sec-header { display: flex; align-items: baseline; gap: 20px; margin-bottom: 20px; }
.sec-header-compact { margin-bottom: 20px; }
.sec-label {
  font-family: 'Courier Prime', monospace; font-size: 0.63rem;
  letter-spacing: 0.28em; text-transform: uppercase; white-space: nowrap;
}
.sec-label-light { color: var(--mid-light); }
.sec-label-dark  { color: var(--text-muted-dark); }
.sec-title-light {
  font-family: 'Playfair Display', serif; font-size: clamp(2.2rem,3.5vw,3.4rem);
  font-weight: 700; line-height: 1.05; color: var(--black); margin-bottom: 56px;
}
.sec-title-flush { margin-bottom: 0; }
.sec-title-light em {
  font-style: italic; font-weight: 400; color: var(--mid-light);
}
.sec-title-dark {
  font-family: 'Playfair Display', serif; font-size: clamp(2.2rem,3.5vw,3.4rem);
  font-weight: 700; line-height: 1.05; color: var(--white); margin-bottom: 56px;
}
.sec-title-dark em {
  font-style: italic; font-weight: 400; color: var(--mid-light);
}

/* ── EXPERTISE (white) ─────────────────────────────────────── */
.expertise {
  padding: 120px var(--h-pad); background: var(--white); color: var(--black);
  border-bottom: 1px solid var(--border-light);
}
.exp-grid { display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid var(--border-light); }
.exp-card {
  padding: 48px 40px; border-right: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  transition: background 0.3s;
}
.exp-card:nth-child(3n) { border-right: none; }
.exp-card:nth-child(4), .exp-card:nth-child(5), .exp-card:nth-child(6) { border-bottom: none; }
.exp-card:hover { background: var(--off-white); }
.c-num { font-family: 'Courier Prime', monospace; font-size: 0.6rem; letter-spacing: 0.22em; color: var(--border-light); margin-bottom: 32px; }
.c-icon { display: none; }
.c-title { font-family: 'Playfair Display', serif; font-size: 1.15rem; font-weight: 700; color: var(--black); margin-bottom: 16px; line-height: 1.2; }
.c-text  { font-size: 0.83rem; color: var(--mid-light); line-height: 1.82; }

/* ── BOOKS (dark) ──────────────────────────────────────────── */
.books {
  padding: 120px var(--h-pad); background: var(--black); color: var(--white);
  border-bottom: 1px solid var(--border-dark);
}

/* Title row with arrows on the same line as the heading */
.books-title-row {
  display: flex;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 56px;
}
.books-title-row .sec-title-dark {
  margin-bottom: 0;
}
.carousel-controls {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
  padding-bottom: 6px;
}
.carousel-btn {
  background: transparent;
  border: 1px solid var(--mid-dark);
  color: var(--mid-light);
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.2s, color 0.2s;
}
.carousel-btn:hover {
  border-color: var(--white);
  color: var(--white);
}

/* Carousel track — bleeds to viewport edges */
.books-carousel {
  margin: 0 calc(-1 * var(--h-pad));
}
.books-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0 var(--h-pad);
}
.books-carousel-track::-webkit-scrollbar { display: none; }

/* Shared grid wrapper used by coming-soon, archive, and related sections */
.books-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

/* Base book card — shared across all contexts */
.book-card {
  position: relative;
  min-width: 0;
  overflow: visible;
  transition: background 0.25s;
}
.book-card:hover { background: var(--dark-alt); }

/* Column separator for grid contexts (archive, related, coming-soon) */
.books-grid > .book-card::after,
.single-book-related-grid > .book-card::after {
  content: '';
  position: absolute;
  top: 0; right: -14px; bottom: 0;
  width: 1px;
  background: var(--border-dark);
}

/* Carousel-specific overrides */
.books-carousel-track .book-card {
  flex: 0 0 clamp(180px, 20vw, 260px);
  border-right: 1px solid var(--border-dark);
  scroll-snap-align: start;
}
.books-carousel-track .book-card:last-child { border-right: none; }
/* No ::after separators needed in the carousel */
.books-carousel-track .book-card::after { display: none !important; }
.book-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}
.book-cover {
  aspect-ratio: 4/5; background: var(--dark-shade);
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
}
.book-cover-ph {
  width: 90%;
  height: 100%;
  padding: 22px 18px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  color: var(--text-muted-dark);
  font-family: 'Courier Prime', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  background: var(--mid-dark);
}
.book-cover-ph strong {
  display: -webkit-box;
  width: 100%;
  overflow: hidden;
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.15rem, 1.6vw, 1.55rem);
  line-height: 1.16;
  letter-spacing: 0;
  text-transform: none;
  color: var(--white);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
}
.book-cover-ph small {
  font-size: 0.52rem;
  letter-spacing: 0.16em;
  color: var(--text-quiet-dark);
}
.coming-soon-section .book-cover-ph {
  padding: 16px 12px;
}
.book-cover-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
}
.book-info {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px 24px 28px;
}
.book-tag {
  min-height: 1.5em;
  font-family: 'Courier Prime', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
  margin-bottom: 10px;
}
.book-title {
  display: -webkit-box;
  min-height: 5.2em;
  margin-bottom: 12px;
  overflow: hidden;
  font-family: 'Playfair Display', serif;
  font-size: 0.98rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--white);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}
.book-desc {
  display: -webkit-box;
  min-height: 5.04em;
  overflow: hidden;
  font-size: 0.76rem;
  color: var(--mid-light);
  line-height: 1.68;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.coming-soon-section {
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--border-dark);
}
.coming-soon-inner {
  display: grid;
  grid-template-columns: 1fr 2fr;
  max-width: var(--site-width);
  margin: 0 auto;
}
.coming-soon-left {
  padding: 120px var(--site-pad);
  border-right: 1px solid var(--border-dark);
}
.coming-soon-right {
  padding: 120px var(--site-pad);
}
.coming-soon-body {
  font-size: 0.88rem;
  color: var(--text-body-dark);
  line-height: 1.82;
  margin-top: 20px;
}
.coming-soon-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.books-footer { padding: 30px 0 0; text-align: center; }

/* ── RESEARCH (white) ──────────────────────────────────────── */
.publications {
  display: grid; grid-template-columns: 1fr 2fr;
  max-width: var(--site-width); margin: 0 auto;
  background: var(--white); color: var(--black);
  border-bottom: 1px solid var(--border-light);
}
.pub-left  { padding: 120px var(--site-pad); border-right: 1px solid var(--border-light); }
.pub-right { padding: 120px var(--site-pad); }
.pub-body  { font-size: 0.88rem; color: var(--mid-light); line-height: 1.82; margin: 20px 0 36px; }
.pub-all-link { display: inline-block; margin-top: 36px; }
.pub-note  {
  max-width: 420px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.64rem;
  letter-spacing: 0.18em;
  line-height: 1.8;
  text-transform: uppercase;
  color: var(--mid-light);
}
.pub-list  { list-style: none; }
.pub-item {
  padding: 26px 0; border-bottom: 1px solid var(--border-light);
  display: grid; grid-template-columns: 44px 1fr auto; gap: 18px; align-items: start;
  cursor: default; transition: background 0.15s;
}
.pub-item:first-child { border-top: 1px solid var(--border-light); }
.pub-item:hover { background: var(--off-white); margin: 0 -12px; padding-left: 12px; padding-right: 12px; }
.pub-num   { font-family: 'Courier Prime', monospace; font-size: 0.62rem; letter-spacing: 0.15em; color: var(--mid-light); padding-top: 3px; }
.pub-title { font-family: 'Playfair Display', serif; font-size: 0.92rem; font-weight: 700; color: var(--black); margin-bottom: 5px; line-height: 1.3; }
.pub-meta  { font-size: 0.7rem; color: var(--mid-light); letter-spacing: 0.04em; }
.pub-arrow { color: var(--border-light); font-size: 1rem; padding-top: 3px; transition: color 0.2s; }
.pub-item:hover .pub-arrow { color: var(--black); }
.pub-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 36px;
}
.pub-card {
  padding: 30px 36px 34px 0;
  border-right: 1px solid var(--border-light);
  min-height: 100%;
}
.pub-card + .pub-card {
  padding-left: 0;
}
.pub-card:last-child { border-right: none; }
.pub-card-link {
  display: flex;
  flex-direction: column;
  height: 100%;
  color: inherit;
  text-decoration: none;
}
.pub-card-link:hover .pub-title,
.pub-card-link:hover .pub-card-footer {
  color: var(--mid-dark);
}
.pub-card-text {
  margin-top: 14px;
  font-size: 0.82rem;
  line-height: 1.8;
  color: var(--text-muted-light);
}
.pub-card-footer {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid var(--border-light);
  font-family: 'Courier Prime', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--mid-light);
}

/* ── CERTIFICATIONS (dark) ─────────────────────────────────── */
.certifications {
  padding: 120px var(--h-pad); background: var(--black); color: var(--white);
  border-bottom: 1px solid var(--border-dark);
}
.cert-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid var(--border-dark);
}
.cert-group {
  padding: 34px 30px 38px;
  border-left: 1px solid var(--border-dark);
  background: var(--black);
}
.cert-group:first-child { border-left: none; }
.cert-group-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--white);
  margin-bottom: 22px;
}
.cert-list,
.cert-sublist {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cert-list-item,
.cert-sublist-item {
  position: relative;
  padding-left: 18px;
  color: var(--text-body-dark);
  line-height: 1.75;
}
.cert-list-item + .cert-list-item,
.cert-sublist-item + .cert-sublist-item {
  margin-top: 12px;
}
.cert-list-item::before,
.cert-sublist-item::before {
  content: '*';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text-quiet-dark);
}
.cert-sublist {
  margin-top: 14px;
  padding-left: 16px;
}
.cert-sublist-item {
  font-size: 0.88rem;
}

/* ── CONTACT (white) ───────────────────────────────────────── */
.contact-section {
  display: grid; grid-template-columns: 1fr 1fr;
  max-width: var(--site-width); margin: 0 auto;
  background: var(--white); color: var(--black);
  border-bottom: 1px solid var(--border-light);
}
.contact-left  { padding: 120px var(--site-pad); border-right: 1px solid var(--border-light); }
.contact-right { padding: 120px var(--site-pad); display: flex; flex-direction: column; justify-content: center; }
.contact-text  { font-size: 0.9rem; color: var(--mid-light); line-height: 1.82; margin: 20px 0 42px; max-width: 400px; }
.c-row         { display: flex; border-bottom: 1px solid var(--border-light); }
.c-row:first-child { border-top: 1px solid var(--border-light); }
.c-row-label   { width: 138px; padding: 22px 20px 22px 0; flex-shrink: 0; font-family: 'Courier Prime', monospace; font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--mid-light); }
.c-row-value   { padding: 22px 0; font-size: 0.86rem; color: var(--black); }

/* ── FOOTER (dark) ─────────────────────────────────────────── */
footer {
  background: var(--black); color: var(--white);
  padding: 40px var(--h-pad);
  display: flex; justify-content: space-between; align-items: center;
  border-top: 1px solid var(--border-dark);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.footer-logo { display: flex; align-items: center; text-decoration: none; }
.footer-logo-img { display: block; height: 28px; width: auto; }
.footer-copy  { font-size: 0.7rem; color: var(--mid-light); letter-spacing: 0.08em; }
.footer-links { display: flex; gap: 32px; list-style: none; }
.footer-links a { font-size: 0.68rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-quiet-dark); text-decoration: none; transition: color 0.2s; }
.footer-links a:hover { color: var(--white); }
.footer-social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}
.footer-social-icon {
  width: 15px;
  height: 15px;
  display: block;
}

/* ── ABOUT PAGE ────────────────────────────────────────────── */
.about-page {
  background: var(--white);
  color: var(--black);
}
.about-hero {
  padding: 160px var(--h-pad) 110px;
  background: var(--black);
  background-size: contain;
  background-position: right center;
  background-repeat: no-repeat;
  color: var(--white);
  border-bottom: 1px solid var(--border-dark);
}
.about-hero-inner {
  max-width: 880px;
}
.about-eyebrow,
.about-page-cta-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-quiet-dark);
}
.about-title {
  margin-top: 24px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 6vw, 6.2rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.about-subtitle {
  margin-top: 18px;
  font-size: 1rem;
  color: var(--text-body-dark);
  max-width: 640px;
  line-height: 1.75;
}
.about-divider {
  width: 100%;
  max-width: 640px;
  height: 1px;
  background: var(--border-dark);
  margin: 34px 0 26px;
}
.about-intro {
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-soft-dark);
}
.about-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  max-width: var(--site-width); margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
}
.about-overview-main {
  padding: 110px var(--site-pad);
}
.about-overview-side {
  padding: 110px var(--site-pad);
  border-left: 1px solid var(--border-light);
  background: var(--off-white);
}
.about-copy {
  max-width: 760px;
}
.about-copy p {
  font-size: 0.96rem;
  line-height: 1.92;
  color: var(--text-muted-light);
  margin-top: 24px;
}
.about-copy p:first-child {
  margin-top: 0;
}
.about-stat-block {
  padding: 0 0 28px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-light);
}
.about-stat-block:last-child {
  margin-bottom: 0;
}
.about-stat-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.63rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--mid-light);
  margin-bottom: 12px;
}
.about-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  line-height: 1.35;
  color: var(--black);
}
.about-focus {
  padding: 120px var(--h-pad);
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--border-dark);
}
.about-focus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--border-dark);
}
.about-focus-card {
  padding: 34px 32px 38px;
  border-left: 1px solid var(--border-dark);
  border-top: 1px solid var(--border-dark);
}
.about-focus-card:nth-child(1),
.about-focus-card:nth-child(2) {
  border-top: none;
}
.about-focus-card:nth-child(odd) {
  border-left: none;
}
.about-focus-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  line-height: 1.3;
  margin-bottom: 14px;
}
.about-focus-card p {
  font-size: 0.88rem;
  line-height: 1.8;
  color: var(--text-soft-dark);
}
.about-publications {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  max-width: var(--site-width); margin: 0 auto;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.about-publications-copy {
  padding: 120px var(--site-pad);
  border-right: 1px solid var(--border-light);
}
.about-publications-body {
  margin-top: 22px;
  max-width: 540px;
  font-size: 0.94rem;
  line-height: 1.9;
  color: var(--text-muted-light);
}
.about-publications-list {
  padding: 120px var(--site-pad);
}
.about-pub-item {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 18px;
  padding: 28px 0;
  border-top: 1px solid var(--border-light);
}
.about-pub-item:last-child {
  border-bottom: 1px solid var(--border-light);
}
.about-pub-num {
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  color: var(--mid-light);
  padding-top: 4px;
}
.about-pub-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  line-height: 1.35;
  margin-bottom: 6px;
}
.about-pub-meta {
  font-size: 0.78rem;
  color: var(--text-quiet-light);
  line-height: 1.7;
}
.about-page-cta {
  padding: 120px var(--h-pad);
  background: var(--gradient-dark);
  border-bottom: 1px solid var(--border-dark);
}
.about-page-cta-inner {
  max-width: 760px;
}
.about-page-cta h2 {
  margin: 18px 0 30px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.4rem, 4vw, 4rem);
  line-height: 1.08;
  color: var(--white);
}

/* ── CONTACT PAGE ─────────────────────────────────────────── */
.contact-page {
  background: var(--white);
  color: var(--black);
}
.contact-page-hero {
  padding: 160px var(--h-pad) 110px;
  background: var(--gradient-dark);
  color: var(--white);
  border-bottom: 1px solid var(--border-dark);
}
.contact-page-shell {
  max-width: 920px;
}
.contact-page-eyebrow,
.contact-page-cta-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-quiet-dark);
}
.contact-page-title {
  margin-top: 24px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 5.8vw, 5.8rem);
  line-height: 0.95;
  letter-spacing: -0.03em;
}
.contact-page-divider {
  width: 100%;
  max-width: 720px;
  height: 1px;
  background: var(--border-dark);
  margin: 34px 0 26px;
}
.contact-page-intro {
  max-width: 700px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-body-dark);
}
.contact-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.contact-page-form-section {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(0, 1.1fr);
  max-width: var(--site-width); margin: 0 auto;
  border-bottom: 1px solid var(--border-light);
}
.contact-page-form-copy {
  padding: 110px var(--site-pad);
}
.contact-page-form-card {
  padding: 110px var(--site-pad);
  border-left: 1px solid var(--border-light);
  background: var(--form-bg-light);
}
.contact-page-copy {
  max-width: 520px;
  font-size: 0.96rem;
  line-height: 1.92;
  color: var(--text-muted-light);
}
.contact-page-direct-link {
  display: inline-block;
  margin-top: 28px;
  font-family: 'Playfair Display', serif;
  font-size: 1.25rem;
  color: var(--black);
  text-decoration: none;
}
.contact-page-direct-link:hover {
  color: var(--mid-light);
}
.contact-page-form {
  display: grid;
  gap: 18px;
}
.contact-page-field {
  display: grid;
  gap: 10px;
}
.contact-page-field label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.66rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mid-light);
}
.contact-page-field input,
.contact-page-field textarea {
  width: 100%;
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  background: var(--white);
  color: var(--black);
  font: inherit;
  line-height: 1.6;
  border-radius: 0;
  appearance: none;
}
.contact-page-field input:focus,
.contact-page-field textarea:focus {
  outline: none;
  border-color: var(--black);
}
.contact-page-alert {
  margin-bottom: 20px;
  padding: 16px 18px;
  border: 1px solid var(--border-light);
  font-size: 0.9rem;
  line-height: 1.7;
}
.contact-page-alert p + p {
  margin-top: 8px;
}
.contact-page-alert-success {
  background: var(--alert-success-bg);
  border-color: var(--alert-success-border);
  color: var(--alert-success-text);
}
.contact-page-alert-error {
  background: var(--alert-error-bg);
  border-color: var(--alert-error-border);
  color: var(--alert-error-text);
}

/* ── 404 PAGE ─────────────────────────────────────────────── */
.not-found-page {
  background: var(--black);
  color: var(--white);
}
.not-found-hero {
  min-height: calc(100vh - 72px);
  padding: 150px var(--h-pad) 110px;
  background:
    radial-gradient(circle at top left, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0) 40%),
    var(--gradient-dark);
  border-bottom: 1px solid var(--border-dark);
}
.not-found-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
}
.not-found-eyebrow,
.not-found-code,
.not-found-panel-label,
.not-found-links a {
  font-family: 'Courier Prime', monospace;
  text-transform: uppercase;
}
.not-found-eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  color: var(--text-quiet-dark);
}
.not-found-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 360px);
  gap: 54px;
  margin-top: 30px;
  align-items: start;
}
.not-found-code {
  font-size: 0.78rem;
  letter-spacing: 0.32em;
  color: var(--mid-light);
}
.not-found-title {
  margin-top: 20px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.4rem, 7vw, 6.6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  max-width: 760px;
}
.not-found-divider {
  width: min(100%, 720px);
  height: 1px;
  margin: 34px 0 26px;
  background: var(--border-dark);
}
.not-found-text {
  max-width: 620px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-body-dark);
}
.not-found-panel {
  padding: 30px 28px 34px;
  border: 1px solid var(--border-dark);
  background: rgba(255,255,255,0.02);
}
.not-found-panel-label {
  font-size: 0.62rem;
  letter-spacing: 0.24em;
  color: var(--text-quiet-dark);
}
.not-found-links {
  list-style: none;
  margin-top: 22px;
}
.not-found-links li + li {
  margin-top: 14px;
}
.not-found-links a {
  color: var(--text-body-dark);
  text-decoration: none;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  transition: color 0.2s;
}
.not-found-links a:hover {
  color: var(--white);
}
.not-found-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 40px;
}

/* ── BOOK ARCHIVE ─────────────────────────────────────────── */
.books-archive-page {
  background: var(--black);
  color: var(--white);
}
.books-archive-shell {
  width: min(1280px, calc(100% - 120px));
  margin: 0 auto;
}
.books-archive-hero {
  padding: 150px 0 96px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.books-archive-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mid-light);
}
.books-archive-title {
  margin-top: 24px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--black);
}
.books-archive-divider {
  width: 100%;
  max-width: 720px;
  height: 1px;
  margin: 34px 0 24px;
  background: var(--border-light);
}
.books-archive-intro {
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted-light);
}
.books-archive-listing {
  padding: 120px 0;
  border-bottom: 1px solid var(--border-dark);
}
.books-archive-controls {
  display: grid;
  grid-template-columns: minmax(220px, 1.4fr) minmax(180px, 1fr) minmax(180px, 1fr) auto;
  gap: 16px;
  align-items: end;
  margin-bottom: 36px;
}
.books-archive-control {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.books-archive-control label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.books-archive-control input,
.books-archive-control select {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--border-dark);
  background: var(--mid-dark);
  color: var(--white);
  font-size: 0.78rem;
}
.books-archive-control input::placeholder {
  color: var(--text-quiet-dark);
}
.books-archive-control input:focus,
.books-archive-control select:focus {
  outline: none;
  border-color: var(--text-muted-dark);
}
.books-archive-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}
.books-archive-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.books-archive-grid > .book-card:nth-child(5n)::after {
  display: block;
}
.books-archive-grid > .book-card:nth-child(4n)::after,
.books-archive-grid > .book-card:last-child::after {
  display: none;
}
.books-archive-empty {
  padding: 56px 40px;
  border: 1px solid var(--border-dark);
  text-align: center;
}
.books-archive-empty p {
  margin-bottom: 24px;
  color: var(--text-body-dark);
  font-size: 0.94rem;
}

/* ── POSTS ARCHIVE ────────────────────────────────────────── */
.posts-archive-page {
  background: var(--white);
  color: var(--black);
}
.posts-archive-shell {
  width: min(1280px, calc(100% - 120px));
  margin: 0 auto;
}
.posts-archive-hero {
  padding: 150px 0 96px;
  background: var(--black);
  border-bottom: 1px solid var(--border-dark);
}
.posts-archive-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.posts-archive-title {
  max-width: 980px;
  margin-top: 24px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: 0;
  color: var(--white);
}
.posts-archive-divider {
  width: min(100%, 720px);
  height: 1px;
  margin: 34px 0 24px;
  background: var(--border-dark);
}
.posts-archive-intro {
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-body-dark);
}
.posts-archive-listing {
  padding: 112px 0 120px;
}
.posts-archive-grid {
  row-gap: 64px;
}
.posts-archive-grid > .pub-card:nth-child(3n) {
  border-right: none;
}
.posts-archive-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 72px;
  padding-top: 30px;
  border-top: 1px solid var(--border-light);
}
.posts-archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--border-light);
  color: var(--text-muted-light);
  text-decoration: none;
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  transition: background 0.2s, color 0.2s;
}
.posts-archive-pagination .current,
.posts-archive-pagination a:hover {
  background: var(--black);
  border-color: var(--black);
  color: var(--white);
}
.posts-archive-empty {
  padding: 48px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  color: var(--text-muted-light);
}

/* ── SEARCH RESULTS ───────────────────────────────────────── */
.search-results-page {
  background: var(--white);
  color: var(--black);
}
.search-results-shell {
  width: min(1280px, calc(100% - 120px));
  margin: 0 auto;
}
.search-results-hero {
  padding: 150px 0 96px;
  background: var(--white);
  border-bottom: 1px solid var(--border-light);
}
.search-results-eyebrow {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--mid-light);
}
.search-results-title {
  max-width: 980px;
  margin-top: 24px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(3.2rem, 6vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.04em;
  color: var(--black);
}
.search-results-divider {
  width: min(100%, 720px);
  height: 1px;
  margin: 34px 0 24px;
  background: var(--border-light);
}
.search-results-intro {
  max-width: 780px;
  font-size: 1rem;
  line-height: 1.9;
  color: var(--text-muted-light);
}
.search-results-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  max-width: 720px;
  margin-top: 34px;
}
.search-results-form input {
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid var(--border-light);
  background: var(--off-white);
  color: var(--black);
  font-size: 0.9rem;
}
.search-results-form input::placeholder {
  color: var(--mid-light);
}
.search-results-form input:focus {
  outline: none;
  border-color: var(--mid-light);
}
.search-results-summary {
  margin-top: 18px;
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--mid-light);
}
.search-results-section {
  padding: 112px 0 120px;
}
.search-results-section-dark {
  background: var(--black);
  color: var(--white);
  border-bottom: 1px solid var(--border-dark);
}
.search-results-section-light {
  background: var(--white);
  color: var(--black);
  border-bottom: 1px solid var(--border-light);
}
.search-results-books-grid {
  margin-top: 42px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.search-results-books-grid > .book-card:nth-child(4n)::after,
.search-results-books-grid > .book-card:last-child::after {
  display: none;
}
.search-results-papers-grid {
  margin-top: 42px;
  row-gap: 64px;
}
.search-results-papers-grid > .pub-card:nth-child(3n) {
  border-right: none;
}
.search-results-page-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 42px;
  border: 1px solid var(--border-dark);
}
.search-page-card {
  min-height: 100%;
  border-left: 1px solid var(--border-dark);
}
.search-page-card:nth-child(3n + 1) {
  border-left: none;
}
.search-page-card-link {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 32px 30px 34px;
  text-decoration: none;
  color: inherit;
}
.search-page-card-link:hover .search-page-card-title,
.search-page-card-link:hover .search-page-card-footer {
  color: var(--mid-light);
}
.search-page-card-kicker {
  font-family: 'Courier Prime', monospace;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.search-page-card-title {
  margin-top: 18px;
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  line-height: 1.02;
  color: var(--white);
}
.search-page-card-text {
  margin-top: 16px;
  font-size: 0.84rem;
  line-height: 1.85;
  color: var(--text-body-dark);
}
.search-page-card-footer {
  margin-top: auto;
  padding-top: 18px;
  border-top: 1px solid var(--border-dark);
  font-family: 'Courier Prime', monospace;
  font-size: 0.58rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-muted-dark);
}
.search-results-empty-section {
  padding: 112px 0 120px;
  background: var(--black);
  border-bottom: 1px solid var(--border-dark);
}
.search-results-empty {
  max-width: 760px;
  padding: 52px 48px;
  border: 1px solid var(--border-dark);
  color: var(--white);
}
.search-results-empty p {
  margin-top: 18px;
  max-width: 560px;
  color: var(--text-body-dark);
}
.search-results-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

/* ── SINGLE BOOK ───────────────────────────────────────────── */
.single-book-page {
  background: var(--white);
  color: var(--black);
}
.single-book-shell {
  width: min(1280px, calc(100% - 120px));
  margin: 0 auto;
}
.single-book-hero {
  padding: 150px 0 110px;
  background: var(--gradient-dark);
  border-bottom: 1px solid var(--border-dark);
}
.single-book-hero .single-book-shell {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 68px;
  align-items: center;
}
.single-book-3d-container {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1200px;
}
.single-book-3d {
  width: 320px;
  height: 480px;
  position: relative;
  transform-style: preserve-3d;
  transform: rotateY(-28deg) rotateX(4deg);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}
.single-book-3d:hover {
  transform: rotateY(-42deg) rotateX(10deg) scale(1.07) translateY(-18px);
}

/* Front face */
.single-book-3d > :first-child {
  width: 320px;
  height: 480px;
  border-radius: 0 2px 2px 0;
  box-shadow:
    6px 6px 30px rgba(0,0,0,0.5),
    20px 20px 60px rgba(0,0,0,0.35),
    inset -4px 0 10px rgba(0,0,0,0.25);
  overflow: hidden;
  background: var(--book-cover-bg);
  position: relative;
  transform-style: preserve-3d;
}

/* Spine */
.single-book-3d > :first-child::before {
  content: '';
  position: absolute;
  left: 0; top: 0;
  width: 38px; height: 100%;
  background: linear-gradient(to right, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.2) 60%, transparent 100%);
  z-index: 2;
}

/* Gloss sheen */
.single-book-3d > :first-child::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255,255,255,0.12) 0%,
    rgba(255,255,255,0.04) 30%,
    transparent 60%,
    rgba(0,0,0,0.08) 100%
  );
  z-index: 3;
  pointer-events: none;
}

/* Page stack (right edge / depth) */
.single-book-3d::before {
  content: '';
  position: absolute;
  top: 3px; right: -18px;
  width: 18px; height: calc(100% - 6px);
  background: repeating-linear-gradient(
    to bottom,
    #d8d0c0 0px, #d8d0c0 1px,
    #c8c0b0 1px, #c8c0b0 2px
  );
  transform: rotateY(90deg);
  transform-origin: left center;
  opacity: 0.9;
}

/* Bottom edge */
.single-book-3d::after {
  content: '';
  position: absolute;
  bottom: -12px; left: 2px;
  width: calc(100% - 2px); height: 12px;
  background: linear-gradient(to bottom, #b0a898, #8a8070);
  transform: rotateX(-90deg);
  transform-origin: top center;
}

.single-book-cover-img {
  width: 320px;
  height: 480px;
  display: block;
  object-fit: cover;
  object-position: center center;
  background: var(--dark-shade);
  position: relative;
  z-index: 1;
}
.single-book-cover-fallback {
  width: 320px;
  height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
  padding: 28px;
  background: var(--dark-shade);
  color: var(--white);
}
.single-book-cover-fallback span,
.single-book-kicker,
.single-book-side-label {
  font-family: 'Courier Prime', monospace;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.single-book-cover-fallback span,
.single-book-kicker {
  color: var(--text-quiet-dark);
}
.single-book-cover-fallback strong {
  font-family: 'Playfair Display', serif;
  font-size: 1.65rem;
  line-height: 1.15;
}
.single-book-back-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--border-light);
  text-decoration: none;
  font-family: 'Courier Prime', monospace;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.single-book-back-link::before {
  content: '';
  width: 26px;
  height: 1px;
  background: currentColor;
}
.single-book-back-link:hover {
  color: var(--white);
}
.single-book-title {
  margin-top: 16px;
  font-family: 'Playfair Display', serif;
  font-size: clamp(2.3rem, 3.8vw, 4.1rem);
  line-height: 0.96;
  letter-spacing: -0.03em;
  color: var(--white);
}
.single-book-subtitle {
  max-width: 780px;
  margin-top: 18px;
  font-size: 1.08rem;
  line-height: 1.8;
  color: var(--text-body-dark);
}
.single-book-excerpt {
  max-width: 760px;
  margin-top: 30px;
}
.single-book-excerpt p {
  font-size: 0.95rem;
  line-height: 1.9;
  color: var(--text-soft-dark);
}
.single-book-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}
.single-book-body-section {
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
}
.single-book-body-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.75fr);
}
.single-book-body-main {
  padding: 120px 60px 120px 0;
}
.single-book-body-side {
  padding: 120px 0 120px 60px;
  border-left: 1px solid var(--border-light);
}
.single-book-content {
  max-width: 760px;
  color: var(--text-muted-light);
}
.single-book-content p,
.single-book-content ul,
.single-book-content ol {
  font-size: 0.94rem;
  line-height: 1.92;
  margin-bottom: 22px;
}
.single-book-side-block {
  padding-bottom: 30px;
  margin-bottom: 30px;
  border-bottom: 1px solid var(--border-light);
}
.single-book-side-label {
  display: block;
  color: var(--mid-light);
}
.single-book-side-value {
  margin-top: 14px;
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  line-height: 1.35;
}
.single-book-features {
  list-style: none;
  margin-top: 14px;
}
.single-book-features li {
  position: relative;
  padding-left: 18px;
  margin-top: 12px;
  font-size: 0.9rem;
  line-height: 1.75;
  color: var(--text-muted-light);
}
.single-book-features li::before {
  content: '*';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--mid-light);
}
.single-book-related {
  padding: 120px 0;
  background: var(--black);
  border-bottom: 1px solid var(--border-dark);
}
.single-book-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 280px));
  justify-content: center;
}
.single-book-related-grid > .book-card:nth-child(3n)::after,
.single-book-related-grid > .book-card:last-child::after {
  display: none;
}

@media (max-width: 1100px) {
  nav {
    padding: 0 28px;
  }
  .nav-links {
    gap: 22px;
  }
  .nav-right {
    gap: 18px;
  }
  .nav-menu-row {
    gap: 18px;
  }
  .nav-search-input {
    width: 120px;
  }
  .about-overview,
  .about-publications,
  .coming-soon-inner,
  .contact-page-form-section,
  .not-found-grid,
  .single-book-body-shell {
    grid-template-columns: 1fr;
  }
  .about-overview-side,
  .about-publications-copy,
  .coming-soon-right,
  .contact-page-form-card,
  .not-found-panel,
  .single-book-body-side {
    border-left: none;
    border-right: none;
    border-top: 1px solid var(--border-light);
  }
  .not-found-panel {
    border-color: var(--border-dark);
  }
  .exp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .exp-card:nth-child(3n) { border-right: 1px solid var(--border-light); }
  .exp-card:nth-child(2n) { border-right: none; }
  .exp-card:nth-child(4), .exp-card:nth-child(5), .exp-card:nth-child(6) { border-bottom: 1px solid var(--border-light); }
  .exp-card:nth-child(5), .exp-card:nth-child(6) { border-bottom: none; }
  .about-focus-grid,
  .cert-groups,
  .coming-grid,
  .pub-card-grid {
    grid-template-columns: 1fr;
  }
  .about-focus-card,
  .cert-group,
  .coming-card,
  .pub-card {
    border-left: none;
  }
  .pub-card {
    border-right: none;
  }
  .about-focus-card + .about-focus-card,
  .cert-group + .cert-group,
  .coming-card + .coming-card {
    border-top: 1px solid var(--border-dark);
  }
  .pub-card + .pub-card {
    border-top: 1px solid var(--border-light);
  }
  .books-archive-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
  .search-results-books-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .posts-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .search-results-papers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .posts-archive-grid > .pub-card:nth-child(3n) {
    border-right: 1px solid var(--border-light);
  }
  .posts-archive-grid > .pub-card:nth-child(2n),
  .posts-archive-grid > .pub-card:last-child {
    border-right: none;
  }
  .search-results-papers-grid > .pub-card:nth-child(3n) {
    border-right: 1px solid var(--border-light);
  }
  .search-results-papers-grid > .pub-card:nth-child(2n),
  .search-results-papers-grid > .pub-card:last-child {
    border-right: none;
  }
  .search-results-page-grid {
    grid-template-columns: 1fr;
  }
  .search-page-card,
  .search-page-card:nth-child(3n + 1) {
    border-left: none;
  }
  .search-page-card + .search-page-card {
    border-top: 1px solid var(--border-dark);
  }
  .books-archive-controls {
    grid-template-columns: 1fr 1fr;
  }
  .books-archive-actions {
    grid-column: 1 / -1;
  }
  .books-archive-grid > .book-card:nth-child(4n)::after,
  .single-book-related-grid > .book-card:nth-child(3n)::after {
    display: block;
  }
  .single-book-related-grid > .book-card:nth-child(2n)::after,
  .single-book-related-grid > .book-card:last-child::after {
    display: none;
  }
  .single-book-related-grid {
    grid-template-columns: repeat(2, minmax(0, 280px));
  }
  .hero {
    min-height: 680px;
    background-position: left center;
  }
  .hero-content {
    width: min(72%, 760px);
    padding-right: 40px;
    padding-left: 36px;
  }
  .single-book-hero .single-book-shell {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .single-book-cover-col {
    max-width: 320px;
  }
  .single-book-body-main {
    padding-right: 0;
  }
  .single-book-body-side {
    padding-left: 0;
  }
}

@media (max-width: 760px) {
  nav {
    position: static;
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas:
      "logo . contact"
      "menu menu menu"
      "search search search";
    height: auto;
    padding: 18px 20px;
    align-items: center;
    row-gap: 14px;
  }
  .nav-logo {
    grid-area: logo;
  }
  .nav-links {
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px 18px;
  }
  .nav-right {
    display: contents;
  }
  .nav-menu-row {
    display: contents;
  }
  .nav-contact-link {
    grid-area: contact;
    justify-self: end;
  }
  .nav-links {
    grid-area: menu;
  }
  .nav-search {
    grid-area: search;
  }
  .nav-search {
    margin-left: 0;
    width: 100%;
  }
  .nav-search-input {
    width: 100%;
  }
  .about-hero,
  .hero-content,
  .expertise,
  .books,
  .certifications,
  .coming-soon-left,
  .coming-soon-right,
  .pub-left,
  .pub-right,
  .contact-left,
  .contact-right,
  .contact-page-hero,
  .not-found-hero,
  .books-archive-hero,
  .posts-archive-hero,
  .search-results-hero,
  .about-overview-main,
  .about-overview-side,
  .about-focus,
  .about-publications-copy,
  .about-publications-list,
  .about-page-cta,
  .contact-page-form-copy,
  .contact-page-form-card,
  .books-archive-listing,
  .posts-archive-listing,
  .search-results-section,
  .search-results-empty-section,
  .single-book-hero,
  .single-book-body-main,
  .single-book-body-side,
  .single-book-related,
  footer {
    padding-left: 20px;
    padding-right: 20px;
  }
  .hero {
    min-height: auto;
    align-items: flex-end;
    justify-content: stretch;
    background-position: left center;
  }
  .hero-content {
    width: 100%;
    min-height: calc(100vh - 110px);
    justify-content: flex-end;
    padding-top: 76px;
    padding-bottom: 20px;
  }
  .hero-name {
    font-size: 3.1rem;
  }
  .books-title-row {
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 36px;
  }
  .books-carousel {
    margin: 0 -20px;
  }
  .books-carousel-track {
    padding: 0 20px;
  }
  .books-carousel-track .book-card {
    flex: 0 0 min(220px, calc(100vw - 92px));
  }
  .hero-bio {
    max-width: none;
    margin-bottom: 32px;
  }
  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }
  .hero-actions a {
    text-align: center;
  }
  .scroll-hint {
    display: none;
  }
  .expertise,
  .books,
  .certifications,
  .coming-soon-left,
  .coming-soon-right,
  .pub-left,
  .pub-right,
  .contact-left,
  .contact-right {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .about-hero {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .not-found-hero {
    min-height: auto;
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .books-archive-hero,
  .posts-archive-hero,
  .about-overview-main,
  .about-overview-side,
  .about-focus,
  .about-publications-copy,
  .about-publications-list,
  .about-page-cta,
  .contact-page-form-copy,
  .contact-page-form-card,
  .books-archive-listing,
  .posts-archive-listing,
  .single-book-hero,
  .single-book-body-main,
  .single-book-body-side,
  .single-book-related {
    padding-top: 72px;
    padding-bottom: 72px;
  }
  .books-archive-shell {
    width: 100%;
  }
  .posts-archive-shell {
    width: 100%;
  }
  .search-results-shell {
    width: 100%;
  }
  .posts-archive-title {
    font-size: 2.8rem;
  }
  .search-results-title {
    font-size: 2.8rem;
  }
  .books-archive-controls {
    grid-template-columns: 1fr;
  }
  .search-results-form {
    grid-template-columns: 1fr;
  }
  .books-archive-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .books-archive-title {
    font-size: 2.8rem;
  }
  .books-title-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .carousel-controls {
    padding-bottom: 0;
  }
  .not-found-title {
    font-size: 2.9rem;
  }
  .not-found-grid {
    gap: 32px;
  }
  .not-found-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .single-book-shell {
    width: 100%;
  }
  .single-book-3d {
    width: 220px;
    height: 330px;
  }
  .single-book-3d > :first-child,
  .single-book-cover-img,
  .single-book-cover-fallback {
    width: 220px;
    height: 330px;
  }
  .single-book-title {
    font-size: 2.25rem;
  }
  .about-title,
  .contact-page-title {
    font-size: 2.8rem;
  }
  .about-stat-value {
    font-size: 1.18rem;
  }
  .about-pub-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .exp-grid,
  .coming-grid,
  .coming-soon-grid,
  .pub-card-grid,
  .posts-archive-grid,
  .search-results-books-grid,
  .search-results-papers-grid,
  .search-results-page-grid,
  .contact-section,
  .publications {
    grid-template-columns: 1fr;
  }
  .coming-soon-inner {
    padding-left: 0;
    padding-right: 0;
  }
  .coming-soon-left {
    border-right: none;
    border-bottom: 1px solid var(--border-dark);
  }
  .exp-card:nth-child(2n) { border-right: 1px solid var(--border-light); }
  .exp-card:nth-child(n) { border-right: none; }
  .posts-archive-grid > .pub-card,
  .posts-archive-grid > .pub-card:nth-child(2n),
  .posts-archive-grid > .pub-card:nth-child(3n) {
    border-right: none;
  }
  .search-results-papers-grid > .pub-card,
  .search-results-papers-grid > .pub-card:nth-child(2n),
  .search-results-papers-grid > .pub-card:nth-child(3n) {
    border-right: none;
  }
  .search-results-books-grid > .book-card::after,
  .search-results-books-grid > .book-card:nth-child(4n)::after {
    display: none;
  }
  .books-archive-grid > .book-card:nth-child(4n)::after,
  .single-book-related-grid > .book-card::after,
  .single-book-related-grid > .book-card:nth-child(2n)::after,
  .single-book-related-grid > .book-card:nth-child(3n)::after {
    display: none;
  }
  .single-book-related-grid {
    grid-template-columns: minmax(0, 280px);
  }
  .pub-left,
  .contact-left {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }
  .footer-links {
    flex-wrap: wrap;
    gap: 12px 20px;
  }
}
