/* ── AUTHOR PROFILE ── */

/* Hero */
#author-hero {
  padding-top: var(--nav-h);
  background: var(--black);
  overflow: hidden;
  position: relative;
}
.aho-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 calc(var(--sp) * 4);
  display: grid; grid-template-columns: 1fr 380px;
  min-height: 480px;
  align-items: stretch;
}
/* Left: text */
.aho-left {
  padding: 72px 64px 72px 0;
  display: flex; flex-direction: column; justify-content: center;
  border-right: 1px solid rgba(255,255,255,.08);
}
.aho-back {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ondark-2); text-decoration: none;
  margin-bottom: 40px; transition: color .15s;
}
.aho-back:hover { color: rgba(255,255,255,.85); }
.aho-label {
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--ondark-2); margin-bottom: 20px;
  display: flex; align-items: center; gap: 10px;
}
.aho-label::before { content:''; width:20px; height:1px; background:var(--ondark-2); }
h1.aho-name {
  font-family: var(--serif);
  font-size: clamp(2.8rem, 5vw, 4.5rem);
  font-weight: 900; line-height: .92; letter-spacing: -.02em;
  color: var(--white);
  margin-bottom: 16px;
}
.aho-genre {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--sage-light); margin-bottom: 32px;
}
.aho-bio-short {
  font-size: 15px; color: var(--ondark-1);
  line-height: 1.8; max-width: 500px; font-weight: 300;
  margin-bottom: 36px;
}
.aho-cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* Follow author */
.follow-wrap { margin-top: 28px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.08); max-width: 380px; }
.follow-label {
  font-size: 10px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ondark-2); margin-bottom: 10px;
}
.follow-row { display: flex; gap: 8px; }
.follow-input {
  flex: 1; min-width: 0; background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.15); border-radius: var(--radius, 6px);
  padding: 10px 12px; color: var(--white); font-family: var(--sans);
  font-size: 13px; outline: none; transition: border-color .2s;
}
.follow-input::placeholder { color: rgba(255,255,255,.3); }
.follow-input:focus { border-color: var(--sage); }
.follow-btn {
  flex-shrink: 0; background: var(--sage); color: var(--white); border: none;
  padding: 10px 18px; border-radius: var(--radius, 6px); font-family: var(--sans);
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; font-weight: 500;
  cursor: pointer; transition: opacity .15s;
}
.follow-btn:hover { opacity: .85; }
.follow-msg { font-size: 12px; color: var(--sage-light); margin-top: 10px; display: none; }
.follow-confirmed {
  padding: 14px 18px; background: rgba(122,143,123,.15); border: 1px solid var(--sage);
  border-radius: var(--radius, 6px); font-size: 13px; color: var(--sage-light);
}

/* Right: photo */
.aho-right {
  position: relative; overflow: hidden;
}
.aho-photo {
  width: 100%; height: 100%; min-height: 480px;
  background: rgba(255,255,255,.03);
  display: flex; align-items: flex-end; justify-content: center;
  overflow: hidden;
}
.aho-photo img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  filter: grayscale(20%);
}
.aho-photo-placeholder {
  width: 100%; height: 100%; min-height: 480px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #1a1a1a 0%, #252525 100%);
  position: relative; overflow: hidden;
}
.aho-photo-placeholder::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(122,143,123,.15) 0%, transparent 60%);
}
.aho-ph-initials {
  font-family: var(--serif); font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 900; color: rgba(255,255,255,.12);
  letter-spacing: -.04em; line-height: 1; position: relative; z-index: 1;
}
.aho-ph-name {
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase;
  color: rgba(255,255,255,.2); margin-top: 16px; position: relative; z-index: 1;
}

/* Stats strip */
#author-stats-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.ass-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 calc(var(--sp) * 4);
  display: flex;
}
.ass-item {
  flex: 1; padding: 28px 32px;
  border-right: 1px solid var(--border);
}
.ass-item:last-child { border-right: none; }
.ass-n { font-family: var(--serif); font-size: 2.4rem; font-weight: 700; line-height: 1; }
.ass-l {
  font-size: 10px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted); margin-top: 4px;
}

/* Extended bio */
#author-bio {
  padding: 80px 0;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
}
.abio-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 calc(var(--sp) * 4);
  display: grid; grid-template-columns: 280px 1fr; gap: 80px;
  align-items: start;
}
.abio-sidebar { position: sticky; top: calc(var(--nav-h) + 72px); }
.abio-sidebar-title {
  font-family: var(--serif); font-size: 1.4rem; font-weight: 700;
  margin-bottom: 8px;
}
.abio-sidebar-genre {
  font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--sage-text); margin-bottom: 24px;
}
.abio-divider {
  width: 40px; height: 2px; background: var(--sage);
  margin-bottom: 24px;
}
.abio-amazon {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); display: flex; align-items: center; gap: 6px;
}
.abio-amazon a {
  color: var(--black); border-bottom: 1px solid var(--black);
  padding-bottom: 2px; transition: color .15s;
}
.abio-amazon a:hover { color: var(--sage); border-color: var(--sage); }
.abio-text {
  font-size: 16px; color: var(--black); line-height: 1.9;
  font-weight: 300;
}
.abio-text p + p { margin-top: 1.4em; }

/* Books section */
#author-books {
  padding: 80px 0 100px;
  background: var(--white);
}
.ab-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 calc(var(--sp) * 4);
}
.ab-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 40px;
}
.ab-title {
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
}

/* Journal posts by this author */
#author-journal {
  padding: 0 0 100px;
  background: var(--white);
}
.aj-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 0 calc(var(--sp) * 4);
}
.aj-title {
  font-family: var(--serif); font-size: 2rem; font-weight: 700;
  margin-bottom: 32px;
}
.aj-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.aj-card {
  display: block; text-decoration: none; color: inherit;
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: opacity .15s;
}
.aj-card:hover { opacity: .75; }
.aj-meta {
  display: flex; align-items: center; gap: 10px; margin-bottom: 10px; flex-wrap: wrap;
}
.aj-date {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
}
.aj-rubrica {
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  padding: 2px 8px; border-radius: 100px;
  background: var(--sage-deep); color: var(--white);
}
.aj-post-title {
  font-family: var(--serif); font-size: 1.1rem; font-weight: 700;
  line-height: 1.3; margin-bottom: 8px;
}
.aj-excerpt {
  font-size: 13px; color: var(--muted); line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
  margin-bottom: 10px;
}
.aj-read {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--sage-text);
}
@media (max-width: 900px) {
  .aj-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .aj-grid { grid-template-columns: 1fr; }
}

/* RESPONSIVE */
@media (max-width: 900px) {
  .aho-inner { grid-template-columns: 1fr; }
  .aho-right { display: none; }
  .aho-left  { padding: 60px 0 48px; border-right: none; }
  .abio-inner { grid-template-columns: 1fr; }
  .abio-sidebar { position: static; }
  .ass-inner { flex-wrap: wrap; }
  .ass-item { min-width: 50%; }
}
@media (max-width: 600px) {
  .books-grid-4 { grid-template-columns: repeat(2,1fr); }
}

/* ── SHOWCASE: books grouped by series ─────────────────────────────────
   Used by every author page. Per-author looks are opt-in through
   body.theme-<name>, set from the author's "Page theme" in the admin. */
.series-block { margin-bottom: 64px; }
.series-block:last-child { margin-bottom: 0; }
.series-head {
  display: flex; align-items: baseline; justify-content: space-between;
  flex-wrap: wrap; gap: 8px 24px;
  padding-bottom: 14px; margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.series-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 700; }
.series-link {
  font-size: 11px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--sage-text); text-decoration: none; border-bottom: 1px solid currentColor;
}
.showcase-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 24px; align-items: start; }
.sc-card { display: flex; flex-direction: column; min-width: 0; }
.sc-cover {
  position: relative; display: block; aspect-ratio: 1 / 1.5; overflow: hidden;
  margin-bottom: 14px; background: var(--cream);
  box-shadow: 0 6px 22px rgba(0,0,0,.12); transition: transform .2s, box-shadow .2s;
}
a.sc-cover:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(0,0,0,.18); }
.sc-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sc-cover-ph {
  display: flex; align-items: center; justify-content: center; height: 100%;
  padding: 16px; text-align: center; font-family: var(--serif); font-size: 15px; color: var(--muted);
}
.sc-cover-up { border: 1px dashed var(--gray-mid); box-shadow: none; background: transparent; }
.sc-badge {
  position: absolute; top: 10px; left: 10px; background: var(--black); color: var(--white);
  font-size: 9px; letter-spacing: .14em; text-transform: uppercase; padding: 4px 8px;
}
.sc-vol { font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: var(--sage-text); margin-bottom: 6px; }
.sc-title { font-family: var(--serif); font-size: 1.05rem; line-height: 1.25; font-weight: 700; margin: 0 0 4px; }
.sc-title a { color: inherit; text-decoration: none; }
.sc-sub { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-bottom: 8px; }
.sc-desc { font-size: 13px; line-height: 1.6; color: var(--black); margin: 0 0 14px; text-align: left; hyphens: manual; }
.sc-buy { margin-top: auto; display: flex; flex-direction: column; gap: 8px; }
.sc-buy-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sc-fmt { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); width: 100%; }
.sc-btn {
  display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 36px; padding: 0 12px;
  border: 1px solid var(--black); color: var(--black); background: transparent; text-decoration: none;
  font-size: 11px; letter-spacing: .1em; font-weight: 600; transition: background .15s, color .15s;
}
.sc-btn:hover, .sc-btn:focus-visible { background: var(--black); color: var(--white); }
.sc-btn-wide { margin-top: auto; }
.sc-upcoming .sc-title { color: var(--muted); }

@media (max-width: 1000px) { .showcase-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 700px)  { .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; } }
@media (max-width: 440px)  {
  .showcase-grid { grid-template-columns: 1fr; }
  .sc-card { display: grid; grid-template-columns: 120px 1fr; column-gap: 16px; align-items: start; }
  .sc-card > .sc-cover { grid-row: 1 / span 6; margin-bottom: 0; }
  .sc-card > :not(.sc-cover) { grid-column: 2; }
}

/* ── THEME: parchment and bronze (classical numismatics) ─────────────── */
body.theme-parchment {
  --pc-paper:  #F3EBDA;
  --pc-paper2: #EADFC8;
  --pc-ink:    #2B2118;
  --pc-muted:  #6E5F4D;
  --pc-bronze: #8A5A2B;
  --pc-gold:   #B08D3C;
  --pc-line:   #D6C7A6;
  --pc-patina: #4F6B5B;
  background: var(--pc-paper); color: var(--pc-ink);
  font-family: Georgia, 'Palatino Linotype', Palatino, serif;
}
body.theme-parchment h1, body.theme-parchment h2, body.theme-parchment h3, body.theme-parchment h4,
body.theme-parchment .aho-name, body.theme-parchment .abio-sidebar-title, body.theme-parchment .ass-n {
  font-family: Georgia, 'Palatino Linotype', Palatino, serif;
}
body.theme-parchment #author-hero { background: var(--pc-paper); border-bottom: 3px double var(--pc-gold); }
body.theme-parchment .aho-left { border-right-color: var(--pc-line); }
body.theme-parchment .aho-left nav,
body.theme-parchment .aho-left nav a,
body.theme-parchment .aho-left nav span { color: var(--pc-muted) !important; }
body.theme-parchment .aho-back, body.theme-parchment .aho-label { color: var(--pc-bronze); }
body.theme-parchment .aho-label::before { background: var(--pc-gold); }
body.theme-parchment h1.aho-name { color: var(--pc-ink); font-weight: 700; letter-spacing: -.01em; line-height: 1.02; }
body.theme-parchment .aho-genre { color: var(--pc-bronze); letter-spacing: .2em; }
body.theme-parchment .aho-bio-short { color: var(--pc-ink); font-weight: 400; text-align: left; hyphens: manual; }
body.theme-parchment .aho-right { display: flex; align-items: center; justify-content: center; padding: 40px 0 40px 24px; }
body.theme-parchment .aho-photo {
  width: 280px; height: 280px; min-height: 0; border-radius: 50%;
  border: 6px double var(--pc-gold); padding: 6px; background: var(--pc-paper2);
  box-shadow: 0 10px 30px rgba(43,33,24,.18);
}
body.theme-parchment .aho-photo img { border-radius: 50%; filter: sepia(.25); }
body.theme-parchment .aho-photo-placeholder { min-height: 0; border-radius: 50%; background: var(--pc-paper2); }
body.theme-parchment .aho-ph-initials { color: var(--pc-bronze); opacity: .5; font-size: 5rem; }
body.theme-parchment .aho-ph-name { color: var(--pc-muted); }
body.theme-parchment .btn-sage { background: var(--pc-bronze); border-color: var(--pc-bronze); color: #fff; }
body.theme-parchment .btn-ghost { color: var(--pc-ink); border-color: var(--pc-line); }
body.theme-parchment .follow-wrap { border-top-color: var(--pc-line); }
body.theme-parchment .follow-label { color: var(--pc-muted); }
body.theme-parchment .follow-input { background: rgba(255,255,255,.55); border-color: var(--pc-line); color: var(--pc-ink); }
body.theme-parchment .follow-input::placeholder { color: var(--pc-muted); }
body.theme-parchment .follow-btn { background: var(--pc-bronze); }
body.theme-parchment .follow-msg, body.theme-parchment .follow-confirmed { color: var(--pc-patina); border-color: var(--pc-patina); background: transparent; }
body.theme-parchment #author-stats-strip { background: var(--pc-paper2); border-bottom: 1px solid var(--pc-line); }
body.theme-parchment .ass-item { border-right-color: var(--pc-line); }
body.theme-parchment .ass-n { color: var(--pc-bronze); }
body.theme-parchment .ass-l { color: var(--pc-muted); }
body.theme-parchment #author-books { background: var(--pc-paper); }
body.theme-parchment .ab-title::after { content: ''; display: block; width: 64px; height: 6px; margin-top: 12px; border-top: 1px solid var(--pc-gold); border-bottom: 1px solid var(--pc-gold); }
body.theme-parchment .series-head { border-bottom: 3px double var(--pc-line); }
body.theme-parchment .series-name { color: var(--pc-bronze); font-variant: small-caps; letter-spacing: .06em; font-size: 1.5rem; }
body.theme-parchment .series-link { color: var(--pc-patina); }
body.theme-parchment .sc-cover { background: var(--pc-paper2); box-shadow: 0 6px 20px rgba(43,33,24,.22); }
body.theme-parchment .sc-cover-up { border-color: var(--pc-gold); box-shadow: none; background: transparent; }
body.theme-parchment .sc-cover-ph { color: var(--pc-muted); }
body.theme-parchment .sc-badge { background: var(--pc-bronze); }
body.theme-parchment .sc-vol { color: var(--pc-bronze); font-variant: small-caps; letter-spacing: .14em; font-size: 12px; }
body.theme-parchment .sc-sub, body.theme-parchment .sc-fmt { color: var(--pc-muted); }
body.theme-parchment .sc-desc { color: var(--pc-ink); }
body.theme-parchment .sc-upcoming .sc-title { color: var(--pc-muted); }
body.theme-parchment .sc-btn { border-color: var(--pc-bronze); color: var(--pc-bronze); border-radius: 50px; font-family: system-ui, sans-serif; }
body.theme-parchment .sc-btn:hover, body.theme-parchment .sc-btn:focus-visible { background: var(--pc-bronze); color: #fff; }
body.theme-parchment .sc-btn:focus-visible, body.theme-parchment .series-link:focus-visible { outline: 2px solid var(--pc-gold); outline-offset: 2px; }
body.theme-parchment #author-bio { background: var(--pc-paper2); border-bottom: 1px solid var(--pc-line); }
body.theme-parchment .abio-sidebar-genre { color: var(--pc-bronze); }
body.theme-parchment .abio-divider { background: var(--pc-gold); }
body.theme-parchment .abio-text { color: var(--pc-ink); font-weight: 400; }
body.theme-parchment .abio-amazon, body.theme-parchment .abio-amazon a { color: var(--pc-ink); border-color: var(--pc-bronze); }
body.theme-parchment #author-journal { background: var(--pc-paper); }
body.theme-parchment .aj-card { background: rgba(255,255,255,.4); border-color: var(--pc-line); }
body.theme-parchment .aj-read, body.theme-parchment .aj-rubrica { color: var(--pc-bronze); }
@media (max-width: 900px) {
  body.theme-parchment .aho-right { display: flex; padding: 0 0 40px; justify-content: flex-start; }
  body.theme-parchment .aho-photo { width: 160px; height: 160px; }
}
@media (prefers-reduced-motion: reduce) { a.sc-cover { transition: none; } a.sc-cover:hover { transform: none; } }
