:root {
  --ivory: #f8f6f2;
  --charcoal: #1a1a1a;
  --burgundy: #740000;
  --gray: #e8e8e8;
  --white: #ffffff;
  --muted: #64615d;
  --line: rgba(26, 26, 26, 0.14);
  --shadow: 0 18px 50px rgba(26, 26, 26, 0.09);
  --serif: "Playfair Display", Georgia, serif;
  --sans: "Inter", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--ivory);
  color: var(--charcoal);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(116, 0, 0, 0.45);
  outline-offset: 3px;
}

.sr-only,
.skip-link {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  width: auto;
  height: auto;
  clip: auto;
  z-index: 100;
  top: 1rem;
  left: 1rem;
  padding: 0.75rem 1rem;
  background: var(--charcoal);
  color: var(--white);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 5vw;
  background: rgba(248, 246, 242, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-family: var(--serif);
  font-weight: 800;
  letter-spacing: 0;
}

.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 800;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.nav-link {
  padding: 0.75rem 0.85rem;
  color: #343230;
  font-size: 0.92rem;
  font-weight: 700;
  transition: color 180ms ease, background 180ms ease;
}

.nav-link:hover,
.nav-link[aria-current="page"] {
  color: var(--burgundy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  background: var(--white);
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px auto;
  background: var(--charcoal);
}

.hero,
.page-hero,
.section-pad,
.stats-band,
.site-footer {
  width: min(1120px, 90vw);
  margin: 0 auto;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.72fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: calc(100vh - 76px);
  padding: 4rem 0 5rem;
  border-bottom: 1px solid var(--line);
}

.hero-copy {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 0.9rem;
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 800;
  line-height: 1.04;
}

h1 {
  font-size: clamp(3rem, 8vw, 7rem);
}

.page-hero h1 {
  max-width: 980px;
  font-size: clamp(2.4rem, 5vw, 5.15rem);
}

h2 {
  font-size: clamp(2rem, 4vw, 3.6rem);
}

h3 {
  font-size: 1.45rem;
}

.subtitle {
  color: var(--burgundy);
  font-size: clamp(1.2rem, 2.4vw, 1.75rem);
  font-weight: 700;
}

.hero p,
.page-hero p,
.feature-panel p,
.bio-copy p {
  color: #3c3935;
  font-size: 1.05rem;
}

.hero-image {
  margin: 0;
}

.hero-image img,
.split-hero img,
.contact-reasons img {
  width: 100%;
  border: 1px solid var(--line);
  object-fit: cover;
  box-shadow: var(--shadow);
}

.hero-image img {
  aspect-ratio: 4 / 5;
}

.hero-image figcaption {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0.78rem 1.1rem;
  border: 1px solid var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease;
}

.button:hover {
  transform: translateY(-2px);
  background: #5f0000;
}

.button-outline {
  background: transparent;
  color: var(--burgundy);
}

.button-outline:hover {
  background: var(--burgundy);
  color: var(--white);
}

.button-small {
  min-height: 40px;
  padding: 0.62rem 0.85rem;
}

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1rem;
  color: var(--burgundy);
  font-size: 0.88rem;
  font-weight: 800;
  text-transform: uppercase;
}

.text-link::after {
  content: "";
  width: 22px;
  height: 1px;
  background: currentColor;
  transition: width 180ms ease;
}

.text-link:hover::after {
  width: 34px;
}

.text-link-light {
  color: var(--white);
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}

.stat {
  min-height: 150px;
  padding: 1.7rem 1.2rem;
  border-right: 1px solid var(--line);
}

.stat:last-child {
  border-right: 0;
}

.stat strong {
  display: block;
  font-family: var(--serif);
  font-size: clamp(2.1rem, 4vw, 3.2rem);
  line-height: 1;
}

.stat span {
  display: block;
  margin-top: 0.8rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.section-pad {
  padding: clamp(3rem, 6vw, 5.5rem) 0;
}

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

.feature-panel {
  min-height: 330px;
  padding: clamp(1.5rem, 3vw, 2.4rem);
  border: 1px solid var(--line);
  background: var(--white);
}

.feature-panel-dark {
  background: var(--charcoal);
  color: var(--white);
}

.feature-panel-dark p {
  color: rgba(255, 255, 255, 0.78);
}

.section-heading {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: end;
  margin-bottom: 1.4rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--line);
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.section-heading h2 {
  max-width: 820px;
}

.card-grid,
.publication-grid,
.publication-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

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

.archive-card,
.publication-card,
.book-card,
.bio-list article,
.contact-form,
.contact-reasons {
  border: 1px solid var(--line);
  background: var(--white);
}

.archive-card {
  min-height: 390px;
  padding: 1.45rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.archive-card:hover,
.publication-card:hover,
.book-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}

.card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 1.3rem;
  color: var(--burgundy);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.source {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 1rem 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(116, 0, 0, 0.22);
  background: #fbfafa;
  color: var(--burgundy);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.publication-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin: 1.2rem 0 0.6rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.mini-pub-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.28rem;
}

.mini-pub-mark {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--burgundy);
  font-size: 0.58rem;
  font-weight: 900;
  overflow: hidden;
}

.mini-pub-mark img {
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.publication-list,
.verification-note {
  color: var(--muted);
  font-size: 0.82rem;
}

.source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.source-links a {
  border-bottom: 1px solid currentColor;
  color: var(--burgundy);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.publication-card {
  min-height: 330px;
  padding: 1.25rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.publication-mark {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  margin-bottom: 1.3rem;
  border: 1px solid var(--burgundy);
  color: var(--burgundy);
  font-size: 0.88rem;
  font-weight: 900;
}

.publication-mark img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.pub-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}

.pub-type {
  display: inline-block;
  margin-top: 0.7rem;
  padding-top: 0.7rem;
  border-top: 1px solid var(--line);
  color: var(--burgundy);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.page-hero {
  padding: clamp(3rem, 7vw, 6rem) 0 clamp(2rem, 4vw, 3rem);
  border-bottom: 1px solid var(--line);
}

.split-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 380px);
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}

.split-hero img {
  aspect-ratio: 4 / 5;
}

.archive-tools {
  padding-bottom: 1rem;
}

.archive-tools label {
  display: block;
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.archive-tools input {
  width: 100%;
  min-height: 54px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.filter-button {
  min-height: 40px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--charcoal);
  font-size: 0.82rem;
  font-weight: 800;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.filter-button:hover,
.filter-button.is-active {
  border-color: var(--burgundy);
  background: var(--burgundy);
  color: var(--white);
}

.empty-state {
  padding: 2rem;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  text-align: center;
}

.books-grid {
  display: grid;
  gap: 1.25rem;
}

.book-card {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) 1fr;
  gap: 1.5rem;
  padding: 1rem;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.book-cover {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  min-height: 380px;
  align-items: center;
  padding: 1.25rem;
  background: #f1eee8;
  border-right: 1px solid var(--line);
}

.book-cover[data-cover-count="1"] {
  grid-template-columns: minmax(0, 1fr);
}

.book-cover-side {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  margin: 0;
}

.book-cover-side figcaption {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.book-placeholder {
  width: 100%;
  height: 100%;
}

.book-cover img {
  width: auto;
  max-width: 100%;
  max-height: 360px;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  box-shadow: 0 14px 32px rgba(26, 26, 26, 0.18);
}

.book-placeholder {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 360px;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    var(--charcoal);
  background-size: 100% 42px;
  color: var(--white);
}

.book-placeholder span {
  color: #d7b7b7;
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.15em;
}

.book-placeholder strong {
  font-family: var(--serif);
  font-size: 2rem;
  line-height: 1.05;
}

.book-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.bio-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 1.25rem;
}

.bio-copy {
  padding: 2rem 0;
  border-top: 3px solid var(--burgundy);
}

.bio-list {
  display: grid;
  gap: 0.9rem;
}

.bio-list article {
  padding: 1.35rem;
}

.contact-layout {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 1.25rem;
  align-items: start;
}

.contact-reasons,
.contact-form {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.contact-reasons ul {
  padding-left: 1.2rem;
  margin-bottom: 1.5rem;
}

.contact-reasons li {
  margin: 0.45rem 0;
}

.contact-reasons img {
  max-height: 520px;
  aspect-ratio: 4 / 5;
  object-position: center top;
}

.field {
  margin-bottom: 1rem;
}

.field label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.82rem;
  font-weight: 800;
  text-transform: uppercase;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 0.82rem 0.9rem;
  border: 1px solid var(--line);
  background: var(--ivory);
  color: var(--charcoal);
}

.field select {
  min-height: 50px;
}

.field textarea {
  resize: vertical;
}

.form-note {
  color: var(--muted);
  font-size: 0.85rem;
}

.form-note[data-status="success"] {
  color: #215c32;
  font-weight: 800;
}

.form-note[data-status="error"] {
  color: var(--burgundy);
  font-weight: 800;
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  padding: 2rem 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.site-footer a {
  color: var(--burgundy);
  font-weight: 800;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 76px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 5vw 1rem;
    background: var(--ivory);
    border-bottom: 1px solid var(--line);
  }

  .site-nav.is-open {
    display: flex;
  }

  .nav-link {
    padding: 0.9rem 0;
    border-bottom: 1px solid var(--line);
  }

  .hero,
  .split-hero,
  .bio-section,
  .contact-layout,
  .book-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
  }

  .hero-image img,
  .split-hero img {
    max-height: 620px;
  }

  .stats-band,
  .feature-grid,
  .card-grid,
  .publication-grid,
  .publication-strip,
  .archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .book-card {
    padding: 0;
  }
}

@media (max-width: 640px) {
  .site-header {
    padding: 0 1rem;
  }

  .brand span:last-child {
    max-width: 190px;
    line-height: 1.1;
  }

  .hero,
  .page-hero,
  .section-pad,
  .stats-band,
  .site-footer {
    width: min(100% - 2rem, 1120px);
  }

  h1,
  .page-hero h1 {
    font-size: 2.55rem;
  }

  h2 {
    font-size: 2rem;
  }

  .stats-band,
  .feature-grid,
  .card-grid,
  .publication-grid,
  .publication-strip,
  .archive-grid {
    grid-template-columns: 1fr;
  }

  .stat {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .section-heading {
    grid-template-columns: 1fr;
  }

  .book-cover,
  .book-placeholder {
    min-height: 320px;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }
}
