.authors-directory-body {
  --authors-paper: #f7f4ec;
  --authors-surface: #fffdf8;
  --authors-surface-muted: #f0ece3;
  --authors-border: rgba(7, 20, 33, 0.13);
  --authors-border-strong: rgba(7, 20, 33, 0.22);
  --authors-muted: #59636b;
  background: var(--authors-paper);
}

.authors-directory-body [hidden] {
  display: none !important;
}

.authors-directory-body :is(a, button, input, select):focus-visible,
.authors-directory-body [tabindex]:focus-visible {
  outline: 3px solid rgba(183, 139, 51, 0.72);
  outline-offset: 3px;
}

.authors-page-main,
.author-profile-main {
  padding-top: var(--header-height);
}
/* Directory header */

.authors-page-hero {
  color: var(--navy);
  background:
    radial-gradient(circle at 78% 45%, rgba(183, 139, 51, 0.055), transparent 30%),
    linear-gradient(180deg, #fbfaf6 0%, #f8f5ee 100%);
  border-bottom: 1px solid var(--authors-border);
}

.authors-hero-inner {
  display: grid;
  min-height: 19rem;
  align-content: space-between;
  gap: 1rem;
  padding-block: 1rem 2.75rem;
}

.authors-breadcrumb ol {
  display: flex;
  min-height: 36px;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  color: var(--authors-muted);
  font-size: 0.78rem;
  font-weight: 760;
  list-style: none;
}

.authors-breadcrumb li[aria-current="page"] {
  display: inline-flex;
  gap: 0.55rem;
}

.authors-breadcrumb a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
}

.authors-breadcrumb a:hover,
.authors-breadcrumb a:focus-visible {
  color: var(--red);
  text-decoration-color: currentColor;
}

.authors-hero-copy {
  display: grid;
  max-width: 43rem;
  gap: 0.72rem;
}

.authors-hero-copy .section-label {
  margin: 0;
  color: var(--red);
  font-size: var(--type-eyebrow-size);
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.authors-hero-copy h1 {
  max-width: 13ch;
  margin: 0.35rem 0 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--type-listing-title-size);
  font-weight: 720;
  letter-spacing: 0;
  line-height: var(--type-listing-title-line);
  text-wrap: balance;
}

.authors-hero-copy > p:last-child {
  max-width: 62ch;
  margin: 0;
  color: #4f5b64;
  font-size: 1rem;
  line-height: 1.58;
}
/* Directory */

.authors-browse-section {
  padding: 3.25rem 0 5.5rem;
}

.authors-directory-shell {
  display: grid;
  grid-template-columns: 15.25rem minmax(0, 1fr);
  gap: 1.75rem;
  align-items: start;
}

.authors-filter-toggle {
  display: none;
}

.authors-filter-panel {
  position: sticky;
  top: calc(var(--header-height) + 1rem);
  display: grid;
  max-height: calc(100dvh - var(--header-height) - 2rem);
  gap: 1rem;
  overflow: auto;
  padding: 1rem;
  background: rgba(255, 253, 248, 0.8);
  border: 1px solid var(--authors-border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 36px -34px rgba(7, 20, 33, 0.5);
  scrollbar-width: thin;
}

.authors-filter-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: start;
}

.authors-filter-intro > div {
  display: grid;
  gap: 0.25rem;
}

.authors-filter-intro p,
.authors-filter-intro h2 {
  margin: 0;
}

.authors-filter-intro p {
  color: var(--red);
  font-size: var(--type-eyebrow-size);
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.authors-filter-intro h2 {
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--type-filter-title-size);
  letter-spacing: 0;
  line-height: var(--type-filter-title-line);
}

.authors-filter-close {
  display: none;
  min-height: 40px;
  padding: 0.5rem 0.65rem;
  color: var(--red);
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.authors-search-form,
.authors-filter-field,
.authors-alphabet-field {
  display: grid;
  gap: 0.42rem;
}

.authors-search-form label,
.authors-filter-field label,
.alphabet-field-label {
  margin: 0;
  color: rgba(7, 20, 33, 0.62);
  font-size: var(--type-interface-label-size);
  font-weight: 820;
}

.authors-search-row {
  display: grid;
  gap: 0.45rem;
}

.authors-search-row input,
.authors-filter-field select {
  width: 100%;
  min-height: 42px;
  padding: 0.68rem 0.72rem;
  color: var(--navy);
  background: var(--authors-surface);
  border: 1px solid var(--authors-border-strong);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
}

.authors-search-row .button {
  min-height: 40px;
  padding: 0.6rem 0.75rem;
  font-size: 0.74rem;
}

.authors-inline-clear {
  justify-self: start;
  min-height: 40px;
  padding: 0;
  color: var(--red);
  background: transparent;
  border: 0;
  font-size: 0.72rem;
  font-weight: 780;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.authors-select-grid {
  display: grid;
  gap: 0.75rem;
}

.alphabet-nav {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.28rem;
}

.alphabet-nav button {
  display: grid;
  min-width: 0;
  min-height: 34px;
  place-items: center;
  padding: 0;
  color: #4e5962;
  background: var(--authors-surface);
  border: 1px solid var(--authors-border);
  border-radius: 4px;
  font-size: var(--type-interface-label-size);
  font-weight: 820;
}

.alphabet-nav button:first-child {
  grid-column: span 2;
}

.alphabet-nav button:hover:not(:disabled),
.alphabet-nav button:focus-visible:not(:disabled) {
  color: var(--red);
  border-color: rgba(142, 31, 47, 0.38);
}

.alphabet-nav button[aria-pressed="true"] {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.alphabet-nav button:disabled {
  opacity: 0.32;
}

.authors-reset-button {
  min-height: 40px;
  padding: 0.6rem 0.75rem;
  color: var(--red);
  background: transparent;
  border: 1px solid rgba(142, 31, 47, 0.28);
  border-radius: var(--radius-sm);
  font-size: 0.74rem;
  font-weight: 800;
}

.authors-results-panel {
  min-width: 0;
}

.authors-results-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--authors-border);
}

.authors-results-header > div {
  display: grid;
  gap: 0.28rem;
}

.authors-results-header h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--type-results-title-size);
  letter-spacing: 0;
  line-height: var(--type-results-title-line);
  scroll-margin-top: calc(var(--header-height) + 1rem);
}

.authors-results-header p {
  margin: 0;
  color: var(--authors-muted);
  font-size: 0.8rem;
  line-height: 1.45;
}

.authors-results-header .authors-result-count {
  color: var(--navy);
  font-weight: 780;
}

.authors-page-size-note {
  white-space: nowrap;
}

.authors-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.author-list-card {
  min-width: 0;
  overflow: hidden;
  background: rgba(255, 253, 248, 0.86);
  border: 1px solid var(--authors-border);
  border-radius: var(--radius-md);
  box-shadow: 0 16px 30px -30px rgba(7, 20, 33, 0.5);
  transition:
    border-color 180ms var(--ease-premium),
    box-shadow 180ms var(--ease-premium),
    transform 180ms var(--ease-premium);
}

.author-list-card:hover,
.author-list-card:focus-within {
  border-color: rgba(142, 31, 47, 0.3);
  box-shadow: 0 22px 38px -30px rgba(7, 20, 33, 0.58);
  transform: translateY(-2px);
}

.author-card-link {
  display: grid;
  height: 100%;
  grid-template-rows: auto 1fr;
  color: var(--navy);
}

.author-card-portrait {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(7, 20, 33, 0.03), rgba(183, 139, 51, 0.09)),
    var(--authors-surface-muted);
  border-bottom: 1px solid var(--authors-border);
}

.author-list-avatar {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--gold);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.04), transparent),
    var(--navy);
  font-family: var(--serif);
  font-size: 2.55rem;
  font-weight: 720;
  letter-spacing: 0;
}

.author-list-avatar.has-image {
  background: var(--authors-surface-muted);
}

.author-list-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--author-image-position, 50% 25%);
  transition: transform 220ms var(--ease-premium);
}

.author-list-card:hover .author-list-avatar img,
.author-list-card:focus-within .author-list-avatar img {
  transform: scale(1.015);
}

.author-card-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.48rem;
  padding: 0.9rem 0.95rem 1rem;
}

.author-card-content h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--type-card-title-size);
  letter-spacing: 0;
  line-height: var(--type-card-title-line);
  text-wrap: balance;
}

.author-card-intro {
  display: -webkit-box;
  overflow: hidden;
  color: var(--authors-muted);
  font-size: 0.76rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.author-card-action {
  margin-top: auto;
  padding-top: 0.4rem;
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.22em;
}

.authors-empty-state {
  display: grid;
  min-height: 18rem;
  place-items: center;
  align-content: center;
  gap: 0.65rem;
  text-align: center;
}

.authors-empty-state h2,
.authors-empty-state p {
  margin: 0;
}

.authors-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 2rem;
}

.authors-pagination button {
  min-width: 42px;
  min-height: 42px;
  padding: 0.55rem 0.75rem;
  color: var(--navy);
  background: var(--authors-surface);
  border: 1px solid var(--authors-border-strong);
  border-radius: var(--radius-sm);
  font-size: var(--type-pagination-size);
  font-weight: 800;
}

.authors-pagination button[aria-current="page"] {
  color: var(--white);
  background: var(--red);
  border-color: var(--red);
}

.authors-pagination button:disabled {
  opacity: 0.42;
}
/* Profile */

.author-profile-hero {
  min-height: 31rem;
  color: var(--navy);
  background:
    radial-gradient(circle at 76% 38%, rgba(183, 139, 51, 0.07), transparent 30%),
    linear-gradient(180deg, #fbfaf6 0%, #f7f4ec 100%);
  border-bottom: 1px solid var(--authors-border);
}

.author-profile-hero-grid {
  display: grid;
  min-height: 31rem;
  grid-template-columns: 19rem minmax(0, 1fr);
  gap: 3.5rem;
  align-items: center;
  padding-block: 2.5rem;
}

.author-profile-avatar-shell {
  display: grid;
  width: 19rem;
  aspect-ratio: 4 / 5;
  place-items: center;
  margin: 0;
  overflow: hidden;
  background: var(--authors-surface-muted);
  border: 1px solid var(--authors-border);
  border-radius: var(--radius-md);
  box-shadow: 0 28px 44px -34px rgba(7, 20, 33, 0.62);
}

.author-profile-avatar-frame {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--gold);
  background: var(--navy);
  font-family: var(--serif);
  font-size: 5rem;
  font-weight: 720;
}

.author-profile-avatar-frame.has-image {
  background: var(--authors-surface-muted);
}

.author-profile-avatar-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--author-image-position, 50% 25%);
}

.author-profile-copy {
  display: grid;
  max-width: 50rem;
  gap: 0.75rem;
}

.authors-back-link {
  display: inline-flex;
  width: fit-content;
  min-height: 40px;
  align-items: center;
  color: var(--authors-muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
}

.authors-back-link:hover,
.authors-back-link:focus-visible {
  color: var(--red);
  text-decoration-color: currentColor;
}

.author-profile-copy .section-label {
  margin: 0.55rem 0 0;
  color: var(--red);
  font-size: var(--type-eyebrow-size);
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.author-profile-copy h1 {
  max-width: 15ch;
  margin: 0.2rem 0 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--type-editorial-title-size);
  font-weight: 720;
  letter-spacing: 0;
  line-height: var(--type-editorial-title-line);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.author-profile-copy > p:not(.section-label) {
  max-width: 58ch;
  margin: 0;
  color: #4d5963;
  font-size: 0.95rem;
  line-height: 1.55;
}

.author-profile-hero-subjects {
  margin-top: 0.3rem;
}

.author-subject-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.author-subject-tags li {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 0.42rem 0.65rem;
  color: #394751;
  background: rgba(255, 253, 248, 0.72);
  border: 1px solid var(--authors-border);
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 740;
}

.author-profile-section {
  background: var(--authors-paper);
}

.author-profile-content-stack {
  display: grid;
}

.author-profile-panel {
  padding: 4rem 0;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--authors-border);
  border-radius: 0;
  box-shadow: none;
}

.author-profile-panel:last-child {
  border-bottom: 0;
}

.author-panel-kicker {
  margin-bottom: 0.5rem;
  color: var(--red);
  font-size: var(--type-eyebrow-size);
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.author-profile-panel h2 {
  margin: 0;
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--type-section-title-size);
  letter-spacing: 0;
  line-height: var(--type-section-title-line);
}

.author-profile-prose {
  max-width: 68ch;
  margin-top: 1.15rem;
  color: #45535e;
  font-size: 1rem;
  line-height: 1.75;
}

.author-profile-prose p {
  margin: 0;
}

.profile-book-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.5rem;
}

.profile-book-card {
  min-width: 0;
  overflow: hidden;
  background: var(--authors-surface);
  border: 1px solid var(--authors-border);
  border-radius: var(--radius-md);
  box-shadow: 0 18px 34px -32px rgba(7, 20, 33, 0.56);
  transition:
    border-color 180ms var(--ease-premium),
    transform 180ms var(--ease-premium);
}

.profile-book-card:hover,
.profile-book-card:focus-within {
  border-color: rgba(142, 31, 47, 0.32);
  transform: translateY(-2px);
}

.profile-book-card-link {
  display: grid;
  min-height: 12rem;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding: 0.9rem;
  color: var(--navy);
}

.profile-book-cover {
  display: grid;
  width: 7.5rem;
  height: 10rem;
  place-items: center;
  overflow: hidden;
  background: var(--authors-surface-muted);
}

.profile-book-cover img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.profile-book-cover-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--gold);
  background: var(--navy);
  font-family: var(--serif);
  font-size: 1.5rem;
}

.profile-book-card-content {
  display: grid;
  min-width: 0;
  gap: 0.45rem;
}

.profile-book-type {
  color: var(--red);
  font-size: 0.64rem;
  font-weight: 840;
  letter-spacing: 0;
  text-transform: uppercase;
}

.profile-book-card-content strong {
  color: var(--navy);
  font-family: var(--serif);
  font-size: var(--type-compact-card-title-size);
  line-height: var(--type-card-title-line);
}

.profile-book-subtitle {
  display: -webkit-box;
  overflow: hidden;
  color: var(--authors-muted);
  font-size: 0.72rem;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.profile-book-action {
  color: var(--red);
  font-size: 0.72rem;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.author-profile-not-found {
  min-height: calc(100svh - var(--header-height));
  padding: 5rem 0;
}

.author-profile-not-found .container {
  display: grid;
  max-width: 42rem;
  gap: 1rem;
}

.author-profile-not-found h1,
.author-profile-not-found p {
  margin: 0;
}

@media (max-width: 1220px) {
  .authors-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .profile-book-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .authors-directory-shell {
    grid-template-columns: 14.25rem minmax(0, 1fr);
    gap: 1.25rem;
  }

  .authors-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .author-profile-hero-grid {
    grid-template-columns: 16rem minmax(0, 1fr);
    gap: 2.25rem;
  }

  .author-profile-avatar-shell {
    width: 16rem;
  }

}

@media (max-width: 899px) {
  .authors-browse-section {
    padding-top: 2.25rem;
  }

  .authors-directory-shell {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .authors-filter-toggle {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0.85rem;
    color: var(--navy);
    background: var(--authors-surface);
    border: 1px solid var(--authors-border-strong);
    border-radius: var(--radius-sm);
    font-size: 0.8rem;
    font-weight: 820;
  }

  .authors-filter-toggle > span:last-child {
    color: var(--red);
    font-size: 1.2rem;
    line-height: 1;
  }

  .authors-filter-panel {
    position: static;
    max-height: 70dvh;
    grid-row: auto;
    padding: 1rem;
  }

  .authors-filter-close {
    display: inline-flex;
    align-items: center;
  }

  .authors-search-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .authors-results-header {
    margin-top: 0.25rem;
  }
}

@media (max-width: 720px) {
  .authors-hero-inner {
    min-height: 0;
    padding-block: 0.65rem 2rem;
  }

  .author-profile-hero,
  .author-profile-hero-grid {
    min-height: 0;
  }

  .author-profile-hero-grid {
    grid-template-columns: 13rem minmax(0, 1fr);
    gap: 1.5rem;
    padding-block: 2rem;
  }

  .author-profile-avatar-shell {
    width: 13rem;
  }

  .author-profile-avatar-frame {
    font-size: 3.5rem;
  }

  .profile-book-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .authors-hero-copy h1 {
    max-width: 12ch;
  }

  .authors-hero-copy > p:last-child {
    font-size: 0.9rem;
    line-height: 1.5;
  }

  .authors-browse-section {
    padding: 1.75rem 0 4rem;
  }

  .authors-results-header {
    display: grid;
    gap: 0.6rem;
  }

  .authors-page-size-note {
    display: none;
  }

  .authors-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .author-card-link {
    min-height: 7.5rem;
    grid-template-columns: 6.75rem minmax(0, 1fr);
    grid-template-rows: 1fr;
  }

  .author-card-portrait {
    width: 6.75rem;
    height: 100%;
    min-height: 7.5rem;
    aspect-ratio: auto;
    border-right: 1px solid var(--authors-border);
    border-bottom: 0;
  }

  .author-list-avatar {
    font-size: 1.7rem;
  }

  .author-card-content {
    justify-content: center;
    padding: 0.78rem;
  }

  .author-card-action {
    margin-top: 0.25rem;
  }

  .author-profile-hero-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding-block: 1rem 2.25rem;
  }

  .author-profile-avatar-shell {
    width: 9.5rem;
    aspect-ratio: 1 / 1;
  }

  .author-profile-avatar-frame {
    font-size: 2.45rem;
  }

  .author-profile-copy h1 {
    max-width: 16ch;
  }

  .author-subject-tags li {
    min-height: 32px;
    font-size: 0.64rem;
  }

  .author-profile-panel {
    padding: 3rem 0;
  }

  .profile-book-card-link {
    min-height: 10rem;
    grid-template-columns: 6rem minmax(0, 1fr);
    padding: 0.75rem;
  }

  .profile-book-cover {
    width: 6rem;
    height: 8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .authors-directory-body *,
  .authors-directory-body *::before,
  .authors-directory-body *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
