/* Orchestra Books author pages: one design for the list and the profiles, in the site's own leather, gold and paper. */

/* List of authors */
.obc-author-archive-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px 18px; }
.obc-author-archive-card { position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 1px solid rgba(31,22,17,.10); border-radius: 14px; background: #fff; box-shadow: 0 10px 28px rgba(31,22,17,.06); transition: transform .3s ease, box-shadow .3s ease; }
.obc-author-archive-photo { flex: none; width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: 0; background: var(--ob-leather); color: var(--ob-gold-light); font-size: 60px; font-weight: 700; text-decoration: none; }
.obc-author-archive-photo img { display: block; object-position: 50% 18%; transition: transform .5s ease; }
.obc-author-archive-card > div { display: flex; flex: 1; flex-direction: column; padding: 14px 16px 10px; }
.obc-author-archive-card h2 { min-height: 2.5em; margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; line-height: 1.25; }
.obc-author-archive-card h2 a { color: var(--ob-ink); }
.obc-author-archive-card h2 a::after { content: ""; position: absolute; inset: 0; }
.obc-author-archive-card p { display: -webkit-box; margin: 0 0 10px; overflow: hidden; color: var(--ob-muted); font-size: 13.5px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 4; }
.obc-author-archive-link { display: inline-flex; align-items: center; min-height: 40px; margin-top: auto; color: var(--ob-gold-dark); font-size: 13.5px; }
.obc-author-archive-grid ~ .obc-editor-content { max-width: none; margin: 44px 0 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ob-muted); text-align: center; }
.obc-author-archive-grid ~ .obc-editor-content p { margin: 0; }
@media (hover: hover) and (pointer: fine) {
  .obc-author-archive-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(31,22,17,.12); }
  .obc-author-archive-card:hover img { transform: scale(1.04); }
}

/* Profile: frame */
body.single-obc_author { background: var(--ob-paper); }
.obc-author-modern { overflow: clip; background: var(--ob-paper); color: var(--ob-text); }
.obc-author-modern .obc-author-modern__wrap { width: min(var(--ob-shell), calc(100% - 48px)); }
.obc-author-modern strong, .obc-author-modern b, .obc-author-modern small, .obc-author-modern blockquote, .obc-author-modern cite { font-family: Arial, Helvetica, sans-serif; }

/* Profile: heading band, matching the other inner pages */
.obc-author-modern .obc-author-hero { overflow: hidden; padding: clamp(48px, 6vw, 84px) 0; border: 0; background: var(--ob-leather); color: var(--ob-cream); }
.obc-author-modern .obc-author-hero::before { content: ""; position: absolute; inset: 0; opacity: .34; background-image: url('../brand/leather-tile.webp'); background-size: 600px; }
.obc-author-modern .obc-author-hero::after { display: none; }
.obc-author-hero > .obc-author-modern__wrap { position: relative; }
.obc-author-modern .obc-author-hero__grid { grid-template-columns: minmax(0, 1fr) auto; gap: clamp(28px, 5vw, 72px); }
.obc-author-modern .obc-author-kicker { color: var(--ob-gold-light); }
.obc-author-modern .obc-author-title { color: var(--ob-cream); font-size: clamp(34px, 4.5vw, 62px); letter-spacing: -.025em; line-height: 1.1; overflow-wrap: break-word; }
.obc-author-modern .obc-author-hero__actions { margin-top: 26px; }
.obc-author-modern .obc-author-btn { min-height: 46px; padding: 12px 24px; border: 1px solid transparent; background: linear-gradient(135deg, var(--ob-gold-light), var(--ob-gold)); color: var(--ob-leather-deep); font-weight: 700; transition: transform .2s ease, border-color .2s ease; }
.obc-author-modern .obc-author-btn--ghost { border-color: rgba(244,236,222,.38); background: rgba(16,11,9,.32); color: var(--ob-cream); }
.obc-author-modern .obc-author-btn:hover { transform: translateY(-2px); }
.obc-author-modern .obc-author-btn--ghost:hover { border-color: var(--ob-gold-light); }
.obc-author-modern .obc-author-portrait-card { width: clamp(200px, 19vw, 250px); padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.obc-author-modern .obc-author-portrait { aspect-ratio: 4 / 5; border: 1px solid rgba(231,193,119,.34); border-radius: 14px; background: var(--ob-leather-deep); color: var(--ob-gold-light); font-family: Arial, Helvetica, sans-serif; font-size: 72px; font-weight: 700; box-shadow: 0 22px 44px rgba(0,0,0,.38); }
.obc-author-modern .obc-author-portrait img { object-position: 50% 18%; }
.obc-author-modern .obc-author-photo-note { position: static; margin-top: 12px; padding: 0; border-radius: 0; background: none; box-shadow: none; color: #eee3d3; font-size: 13px; font-weight: 600; text-align: center; }

/* Profile: reading column with the books beside it */
.obc-author-modern .obc-author-main { padding: clamp(44px, 6vw, 80px) 0; }
.obc-author-modern .obc-author-layout { grid-template-columns: minmax(0, 1fr) 372px; column-gap: clamp(36px, 5vw, 72px); row-gap: 0; }
.obc-author-layout > div:first-child { display: contents; }
.obc-author-modern .obc-author-section { grid-column: 1; min-width: 0; margin: 0 0 40px; scroll-margin-top: 128px; }
.obc-author-modern #author-books { position: sticky; top: 124px; grid-column: 2; grid-row: 1 / span 5; align-self: start; margin-bottom: 0; }
.obc-author-modern .obc-author-section__head { margin-bottom: 14px; }
.obc-author-modern .obc-author-section__title { color: var(--ob-ink); font-size: clamp(24px, 2.4vw, 30px); letter-spacing: -.02em; line-height: 1.2; }
.obc-author-modern .obc-author-prose { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: var(--ob-text); font-size: 17px; line-height: 1.8; }
.obc-author-modern .obc-author-prose p { text-align: left; -webkit-hyphens: manual; hyphens: manual; }

/* Profile: books as a compact shelf, however many there are */
.obc-author-modern .obc-author-slider-nav { display: none; }
.obc-author-modern .obc-author-slider { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); gap: 14px; overflow: visible; padding: 0; scroll-snap-type: none; }
.obc-author-modern .obc-author-book-card { position: relative; grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: none; min-height: 0; border: 1px solid rgba(31,22,17,.10); border-radius: 14px; box-shadow: 0 10px 28px rgba(31,22,17,.06); transition: transform .3s ease, box-shadow .3s ease; }
.obc-author-modern .obc-author-book-cover { align-self: stretch; aspect-ratio: auto; min-height: 0; background: #f7f0e5; }
.obc-author-modern .obc-author-book-body { display: flex; flex-direction: column; min-width: 0; padding: 12px 14px; }
/* Same slots in every book card, so a long title or a missing summary never changes its height. */
.obc-author-modern .obc-author-book-body { min-height: 166px; }
.obc-author-modern .obc-author-book-body h3 { display: -webkit-box; min-height: 2.5em; margin: 0 0 5px; overflow: hidden; color: var(--ob-ink); font-size: 16px; letter-spacing: -.01em; line-height: 1.25; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.obc-author-modern .obc-author-book-body h3 a::after { content: ""; position: absolute; inset: 0; }
.obc-author-modern .obc-author-book-body p { display: -webkit-box; margin: 0 0 8px; overflow: hidden; color: var(--ob-muted); font-size: 13px; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.obc-author-modern .obc-author-book-link { flex-wrap: wrap; align-items: center; gap: 4px; min-height: 28px; margin-top: auto; color: var(--ob-gold-dark); font-size: 13.5px; font-weight: 700; }
.obc-author-modern .obc-author-empty { border-color: rgba(31,22,17,.10); border-radius: 14px; color: var(--ob-muted); }

/* Profile: passages and reading notes */
.obc-author-modern .obc-author-focus-card, .obc-author-modern .obc-author-quote-card { border: 1px solid rgba(31,22,17,.10); border-radius: 14px; box-shadow: 0 10px 28px rgba(31,22,17,.05); }
.obc-author-modern .obc-author-focus-card { padding: 22px; }
.obc-author-modern .obc-author-focus-card small { color: var(--ob-gold-dark); font-size: 12px; font-weight: 700; }
.obc-author-modern .obc-author-focus-card p { color: var(--ob-text); font-size: 15px; line-height: 1.7; }
.obc-author-modern .obc-author-quote-slider { grid-auto-flow: row; grid-auto-columns: auto; gap: 14px; overflow: visible; padding: 0; scroll-snap-type: none; }
.obc-author-modern .obc-author-quote-card { min-height: 0; padding: 24px; }
.obc-author-modern .obc-author-quote-card blockquote { color: var(--ob-ink); font-size: 18px; letter-spacing: 0; line-height: 1.55; }
.obc-author-modern .obc-author-quote-card cite { color: var(--ob-gold-dark); }

/* Profile: internal notes stay out of sight, the licences link stays */
.obc-author-modern .obc-author-side { position: static; grid-column: 1; }
.obc-author-modern .obc-author-mini-card { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.obc-author-modern .obc-author-mini-card:has(.obc-author-meta-list), .obc-author-modern .obc-author-mini-card strong, .obc-author-modern .obc-author-mini-card p { display: none; }
.obc-author-modern .obc-author-source-link { align-items: center; min-height: 40px; margin: 0; color: var(--ob-gold-dark); font-size: 14px; font-weight: 700; }

/* Profile: an author with no biography yet gets the books across the page, not an empty box */
.obc-author-modern:not(:has(.obc-author-prose > *)) #author-profile, .obc-author-modern:not(:has(.obc-author-prose > *)) .obc-author-btn--ghost { display: none; }
.obc-author-modern:not(:has(.obc-author-prose > *)) .obc-author-layout { grid-template-columns: minmax(0, 1fr); }
.obc-author-modern:not(:has(.obc-author-prose > *)) #author-books { position: static; grid-column: 1; grid-row: auto; margin-bottom: 40px; }
.obc-author-modern:not(:has(.obc-author-prose > *)) .obc-author-slider { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }

@media (hover: hover) and (pointer: fine) {
  .obc-author-modern .obc-author-book-card:hover { transform: translateY(-3px); box-shadow: 0 18px 36px rgba(31,22,17,.12); }
}

@media (max-width: 1100px) {
  .obc-author-archive-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1040px) {
  .obc-author-modern .obc-author-modern__wrap { width: min(100% - 32px, var(--ob-shell)); }
}
@media (max-width: 1000px) {
  .obc-author-modern .obc-author-hero__grid { grid-template-columns: minmax(0, 1fr) auto; }
  .obc-author-modern .obc-author-layout { grid-template-columns: minmax(0, 1fr); }
  .obc-author-modern #author-books { position: static; grid-column: 1; grid-row: auto; margin-bottom: 40px; }
  .obc-author-modern .obc-author-slider { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
}
@media (max-width: 860px) {
  .obc-author-archive-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px 14px; }
}
@media (max-width: 780px) {
  .obc-author-modern .obc-author-hero { padding: 36px 0 34px; }
  .obc-author-modern .obc-author-hero__grid { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 20px; text-align: center; }
  .obc-author-modern .obc-author-portrait-card { order: -1; width: min(46vw, 176px); }
  .obc-author-modern .obc-author-hero__content { justify-self: stretch; }
  .obc-author-modern .obc-author-kicker { justify-content: center; }
  .obc-author-modern .obc-author-hero__actions { justify-content: center; }
  .obc-author-modern .obc-author-prose { font-size: 16px; line-height: 1.75; }
  .obc-author-modern .obc-author-focus-grid { grid-template-columns: minmax(0, 1fr); }
  .obc-author-modern .obc-author-section { margin-bottom: 32px; scroll-margin-top: 96px; }
}
@media (max-width: 560px) {
  .obc-author-archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 10px; }
  .obc-author-archive-photo { font-size: 48px; }
  .obc-author-archive-card > div { padding: 12px 12px 6px; }
  .obc-author-archive-card h2 { font-size: 16px; }
  .obc-author-archive-card p { font-size: 13px; -webkit-line-clamp: 3; }
  .obc-author-modern .obc-author-modern__wrap { width: min(100% - 20px, var(--ob-shell)); }
  .obc-author-modern .obc-author-btn { flex: 1 1 130px; padding-inline: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .obc-author-archive-card, .obc-author-archive-photo img, .obc-author-modern .obc-author-btn, .obc-author-modern .obc-author-book-card { transition: none; }
}
