@import url('https://fonts.googleapis.com/css2?family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;1,6..72,400;1,6..72,500;1,6..72,600&family=Work+Sans:ital,wght@0,500;0,700;1,500&display=swap');

:root {
  color-scheme: light;
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  color: #1a1a1a;
  background: #FEFFD6;
}

* {
  box-sizing: border-box;
}

html, body {
  background-color: #FEFFD6;
  margin: 0;
  padding: 0;
  min-height: 100%;
}

body {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 1.25rem;
  line-height: 1.6;
}

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 996px;
  margin: 0 auto;
  padding: 1.5rem 0;
  background: #FEFFD6;
}

.brand {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 1.5rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.05em;
}

.brand a {
  text-decoration: none;
  color: #333;
}

.nav-toggle {
  display: none;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(51, 51, 51, 0.35);
  border-radius: 4px;
  background: transparent;
  color: #333;
  cursor: pointer;
}

.nav-toggle-lines,
.nav-toggle-lines::before,
.nav-toggle-lines::after {
  display: block;
  width: 1.2rem;
  height: 2px;
  background: currentColor;
}

.nav-toggle-lines {
  position: relative;
}

.nav-toggle-lines::before,
.nav-toggle-lines::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-lines::before {
  top: -0.4rem;
}

.nav-toggle-lines::after {
  top: 0.4rem;
}

.main-nav a {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  margin-left: 1.5rem;
  text-decoration: none;
  color: #333;
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
}

.page-main {
  padding: 2rem 0;
  max-width: 996px;
  margin: 0 auto;
}

.page-main a {
  color: #333;
  text-decoration-color: rgba(51, 51, 51, 0.45);
  text-underline-offset: 0.16em;
}

.page-main a:hover,
.page-main a:focus {
  color: #333;
  text-decoration-color: #333;
}

.page-intro h1 {
  margin: 0 0 1rem;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.home-main {
  padding-top: 5rem;
  padding-bottom: 6rem;
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 520px) minmax(360px, 1fr);
  gap: 48px;
  align-items: start;
}

.home-copy h1 {
  margin: 0;
  color: #333528;
  font-size: clamp(2.8rem, 5vw, 4.2rem);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

.home-copy h1 em {
  font-style: italic;
}

.title-colon {
  display: inline-block;
  font-style: normal;
  font-size: 0.82em;
  margin-left: 0.03em;
  transform: translateY(-0.04em);
}

.home-introduction {
  display: grid;
  grid-template-columns: minmax(260px, 0.48fr) minmax(280px, 0.52fr);
  gap: 64px;
  align-items: center;
  max-width: 996px;
  margin: 4rem auto 5rem;
}

.home-intro-text {
  margin: 0;
  color: #5f6052;
  font-size: 1.2rem;
  line-height: 1.55;
}

.home-curator-image {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(140, 126, 106, 0.22);
  background: rgba(255, 255, 255, 0.28);
}

.home-curator-image img {
  display: block;
  width: 100%;
  height: auto;
}

.home-image-panel {
  width: 100%;
  background: transparent;
  box-shadow: none;
}

.home-image-panel img {
  display: block;
  width: 100%;
  height: auto;
  box-shadow: 0 14px 30px rgba(51, 53, 40, 0.12);
}

.home-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 38px;
  margin-top: 5rem;
}

.home-feature {
  min-height: 250px;
  padding: 2rem 2.25rem;
  background: #F6F4E5;
}

.home-feature:nth-child(3) {
  background: #fff;
}

.feature-card-icon {
  width: 26px;
  height: 26px;
  margin-bottom: 1.25rem;
  color: #6f6a58;
}

.feature-card-icon svg {
  display: block;
  width: 100%;
  height: 100%;
  stroke-width: 1.6;
}

.home-feature h2 {
  margin: 0 0 1rem;
  color: #333528;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.home-feature p {
  margin: 0;
  color: #68685d;
  font-size: 0.95rem;
  line-height: 1.35;
}

.home-feature a {
  display: inline-block;
  margin-top: 0.35rem;
  color: #333528;
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.home-feature a::after {
  content: " ->";
  letter-spacing: 0;
}

.highlight-manuscript {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 5rem;
  background: #F6F4E5;
}

.highlight-copy {
  padding: 4rem 4.5rem;
}

.section-label {
  margin: 0 0 1.25rem;
  color: #333528;
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.1;
  text-transform: none;
}

.highlight-copy .section-label::after {
  content: "";
  display: block;
  width: 72px;
  height: 1px;
  margin-top: 0.85rem;
  background: rgba(140, 126, 106, 0.45);
}

.highlight-copy h2 {
  max-width: 330px;
  margin: 0 0 1.8rem;
  color: #333528;
  font-size: 2.25rem;
  font-style: italic;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.highlight-copy > p:not(.section-label) {
  max-width: 315px;
  margin: 0;
  color: #66665c;
  font-size: 1rem;
  line-height: 1.45;
}

.highlight-meta {
  display: flex;
  gap: 1.5rem;
  margin-top: 2.25rem;
}

.highlight-meta div + div {
  border-left: 1px solid #d8d3c0;
  padding-left: 1.5rem;
}

.highlight-meta span {
  display: block;
  margin-bottom: 0.25rem;
  color: #77766c;
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 0.5rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.highlight-meta strong {
  color: #333528;
  font-size: 0.9rem;
  font-weight: 400;
  line-height: 1.2;
}

.highlight-cover {
  margin-top: 2.25rem;
  display: flex;
  justify-content: center;
}

.highlight-cover img {
  display: block;
  width: 130px;
  height: auto;
  box-shadow: 0 14px 28px rgba(51, 53, 40, 0.18);
}

.highlight-read-more {
  display: block;
  width: fit-content;
  margin: 1rem 0 0;
  color: #5f6052;
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.highlight-read-more::after {
  content: " ->";
  letter-spacing: 0;
}

.highlight-read-more:hover {
  color: #333528;
}

.highlight-quote {
  display: grid;
  min-height: 560px;
  place-items: center;
  padding: 4rem;
  background: #474139;
}

.highlight-quote blockquote {
  max-width: 360px;
  margin: 0;
  color: #d6d1c6;
  font-size: 1.55rem;
  font-style: italic;
  line-height: 1.15;
  text-align: center;
}

.curator-note {
  max-width: none;
  margin: 0;
  padding: 0;
  border-top: 0;
  text-align: left;
}

.curator-note h2 {
  margin: 0 0 1rem;
  color: #333528;
  font-size: 2.5rem;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}

.curator-note h2::after {
  content: none;
}

.curator-note p {
  margin: 0 0 1.25rem;
  color: #4b4038;
  font-size: 1.25rem;
  font-style: normal;
  line-height: 1.35;
}

.curator-note p:last-child {
  margin-bottom: 0;
}

.curator-note a {
  color: #333528;
  text-decoration-color: #8C7E6A;
  text-underline-offset: 0.18em;
}

.contact-button {
  display: inline-block;
  padding: 0.65rem 1.15rem;
  border: 1px solid #474139;
  border-radius: 4px;
  background: #474139;
  color: #fff;
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.page-main .contact-button,
.page-main .contact-button:visited,
.page-main .contact-button:hover,
.page-main .contact-button:focus,
.page-main .contact-button:active {
  color: #fff;
}

.page-main .contact-button:hover,
.page-main .contact-button:focus {
  border-color: #2f2a25;
  background: #2f2a25;
  box-shadow: 0 8px 18px rgba(71, 65, 57, 0.2);
  transform: translateY(-1px);
}

.page-main .contact-button:active {
  box-shadow: 0 3px 8px rgba(71, 65, 57, 0.18);
  transform: translateY(0);
}

.alphabet-nav {
  display: flex;
  flex-wrap: nowrap;
  gap: 14px;
  align-items: center;
  padding: 0.5rem 0;
}

.alphabet-nav a {
  font-family: 'Work Sans', Arial, sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  min-height: 32px;
  text-decoration: none;
  padding: 0.45rem 0.75rem;
  color: #555;
  border-radius: 0.4rem;
  border: 1px solid transparent;
  font-size: 0.95rem;
}

@media (max-width: 700px) {
  .alphabet-nav {
    flex-wrap: wrap;
    gap: 8px;
    overflow-x: visible;
    white-space: normal;
  }

  .alphabet-nav a {
    min-width: 36px;
    min-height: 36px;
  }
}

.alphabet-nav a.active,
.alphabet-nav a:hover {
  background: #e9e2d8;
  color: #1a1a1a;
  border-color: #ccc;
}

.main-content {
  display: grid;
  grid-template-columns: 300px minmax(0, 640px);
  gap: 72px;
  align-items: start;
  max-width: 996px;
  margin: 3rem auto 0;
}

.directory-intro {
  margin: 0 0 1.5rem;
  color: #555;
}

.directory-grid {
  display: block;
  margin-top: 2.5rem;
}

.directory-card {
  --directory-row-height: 4.35rem;
  --directory-row-gap: 0.7rem;
  background: #FEFFD6;
  padding: 0 0 3rem;
  border-bottom: 1px solid rgba(140, 126, 106, 0.34);
}

.directory-card + .directory-card {
  margin-top: 3rem;
}

.directory-card.is-empty {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 1.25rem;
  align-items: baseline;
  padding-bottom: 1.4rem;
  opacity: 0.72;
}

.directory-card h2 {
  margin: 0 0 1.35rem;
  color: #8C7E6A;
  font-size: 4rem;
  font-weight: 500;
  line-height: 0.9;
}

.directory-card.is-empty h2 {
  margin-bottom: 0;
}

.directory-card-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: baseline;
  margin-bottom: 1.35rem;
}

.directory-card-header h2 {
  margin-bottom: 0;
}

.directory-count,
.directory-empty-note,
.directory-toggle {
  color: #8C7E6A;
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  line-height: 1.3;
  text-transform: uppercase;
}

.directory-toggle {
  justify-self: end;
  appearance: none;
  border: 0;
  border-bottom: 1px solid rgba(96, 21, 22, 0.3);
  border-radius: 0;
  background: transparent;
  color: #601516;
  cursor: pointer;
  padding: 0 0 0.12rem;
}

.directory-toggle:hover,
.directory-toggle:focus {
  color: #401011;
  border-bottom-color: #401011;
}

.directory-toggle:focus-visible {
  outline: 2px solid rgba(96, 21, 22, 0.55);
  outline-offset: 5px;
}

.directory-card ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--directory-row-gap) 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.directory-card li {
  font-size: 1.16rem;
}

.directory-card a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: var(--directory-row-height);
  padding: 0.7rem 1.05rem;
  border: 1px solid rgba(140, 126, 106, 0.16);
  border-radius: 0.35rem;
  background: #F5F0E7;
  color: #8C7E6A;
  font-weight: 500;
  text-decoration: none;
  transition:
    background-color 180ms ease,
    border-color 180ms ease,
    color 180ms ease;
}

.directory-card a:hover,
.directory-card a:focus {
  background: #EFE7DA;
  color: #5f554c;
  border-color: rgba(140, 126, 106, 0.36);
}

.directory-card a:focus-visible {
  outline: 2px solid rgba(140, 126, 106, 0.62);
  outline-offset: 3px;
}

.author-left,
.author-right {
  background: #FEFFD6;
  padding: 0;
}

.left-panel {
  padding: 0;
}

.image-placeholder {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #d9d2c4;
  display: grid;
  place-items: center;
  color: #666;
  border-radius: 0.5rem;
  margin-bottom: 1.5rem;
}

.author-image {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #F6F4E5;
  overflow: hidden;
  margin-bottom: 1.75rem;
}

.author-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.active-period {
  margin: 1rem 0 1.5rem;
}

.active-period .label {
  font-family: 'Work Sans', Arial, sans-serif;
  display: block;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #777;
  margin-bottom: 0.35rem;
}

.active-period .period {
  font-size: 1rem;
  font-weight: bold;
  color: #212121;
}

.metadata-card {
  padding-top: 0;
  overflow-wrap: break-word;
}

.metadata-item {
  margin-bottom: 1.35rem;
  color: #333;
  font-size: 1.25rem;
  line-height: 1.35;
}

.metadata-item strong,
.metadata-bio strong {
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
}

.metadata-item strong {
  margin-right: 0.35rem;
  vertical-align: 0.12em;
}

.metadata-bio {
  margin-top: 2rem;
}

.metadata-bio strong {
  display: block;
  margin-bottom: 1rem;
}

.metadata-bio p {
  margin: 0;
  color: #444;
  font-size: 1.25rem;
  line-height: 1.55;
}

.work-entry + .work-entry {
  margin-top: 4rem;
}

.author-name {
  margin-top: 0;
  margin-bottom: 0.25rem;
  font-size: 3rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.02;
}

.work-title {
  margin: 0;
  font-size: 2rem;
  font-style: italic;
  font-weight: 500;
  color: #544a41;
}

.publisher-line {
  font-family: 'Work Sans', Arial, sans-serif;
  margin: 0 0 2.25rem;
  color: #666;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tour-figure {
  width: fit-content;
  max-width: 100%;
  margin: 2rem auto;
  text-align: center;
}

.tour-figure img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-inline: auto;
}

.tour-caption {
  margin-top: 0.7rem;
  color: #544a41;
  line-height: 1.35;
  text-align: center;
}

.tour-caption-title {
  display: block;
  font-weight: 600;
}

.tour-caption-attribution {
  display: block;
  margin-top: 0.15rem;
  color: #777;
  font-family: 'Work Sans', Arial, sans-serif;
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.quote {
  margin: 0 0 1rem;
  padding-left: 1rem;
  border-left: 4px solid #8C7E6A;
  color: #333;
  font-style: italic;
}

.quote p {
  margin: 0;
}

.commentary {
  margin: 0 0 1.5rem;
  color: #4b4b4b;
}

.site-footer {
  padding: 1.5rem max(2rem, calc((100% - 996px) / 2));
  background: #F6F4E5;
  border-top: 1px solid #ddd;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-links a {
  font-family: 'Newsreader', Georgia, 'Times New Roman', serif;
  margin-right: 1.25rem;
  text-decoration: none;
  color: #555;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.footer-note {
  font-family: 'Work Sans', Arial, sans-serif;
  color: #777;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .site-header {
    flex-wrap: wrap;
    column-gap: 4rem;
    row-gap: 0.9rem;
  }

  .brand {
    flex: 1 1 min-content;
    min-width: 0;
    font-size: 1.25rem;
    line-height: 1.15;
    letter-spacing: -0.035em;
  }

  .nav-toggle {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .main-nav {
    display: none;
    flex: 1 0 100%;
    width: 100%;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(140, 126, 106, 0.28);
  }

  .site-header.nav-open .main-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

  .main-nav a {
    width: 100%;
    margin-left: 0;
    padding: 0.55rem 0;
    font-size: 1.2rem;
    line-height: 1.2;
  }
}

@media (max-width: 900px) {
  .site-header {
    padding: 1.5rem 2rem;
  }

  .page-main {
    padding: 2rem;
  }

  .page-main > h1 {
    line-height: 1.05;
  }

  body:has(.main-content) .page-main {
    padding-top: 0.75rem;
  }

  .home-main {
    padding-top: 3rem;
    padding-bottom: 4rem;
  }

  .home-hero {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .home-copy h1 {
    font-size: 3rem;
  }

  .home-image-panel {
    max-width: none;
  }

  .home-introduction {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin: 3rem auto 4rem;
  }

  .home-curator-image {
    order: 2;
    max-width: 420px;
  }

  .curator-note {
    order: 1;
  }

  .footer-links a {
    display: block;
    margin: 0 0 0.8rem;
  }

  .contact-button {
    display: table;
    margin: 0 auto;
  }

  .home-feature-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .highlight-manuscript {
    grid-template-columns: 1fr;
  }

  .highlight-copy {
    padding: 3rem 2rem;
  }

  .highlight-quote {
    min-height: 320px;
    padding: 3rem 2rem;
  }

  .directory-grid {
    display: block;
  }

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

  .main-content {
    display: flex;
    flex-direction: column;
    max-width: 560px;
    gap: 0;
  }

  .author-right,
  .work-entry {
    display: contents;
  }

  .author-name {
    order: 1;
    margin: 0 0 0.45rem;
    font-size: 2.45rem;
    line-height: 1;
  }

  .work-title {
    order: 2;
    margin: 0 0 0.35rem;
    font-size: 1.65rem;
    line-height: 1.08;
  }

  .publisher-line {
    order: 3;
    margin: 0 0 1rem;
  }

  .author-left {
    order: 4;
    margin: 1rem 0 1.25rem;
  }

  .work-entry > :not(.work-title):not(.publisher-line) {
    order: 5;
  }

  .author-image {
    margin-bottom: 1rem;
  }

  .metadata-card,
  .author-metadata,
  .author-bio {
    margin-top: 0;
  }

}

@media (max-width: 560px) {
  .directory-card {
    --directory-row-height: 3.8rem;
  }

  .directory-card-header {
    grid-template-columns: auto 1fr;
  }

  .directory-toggle {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .directory-card ul {
    grid-template-columns: 1fr;
  }
}
