* {
  box-sizing: border-box;
}

:root {
  --bg: #f6f3ec;
  --surface: #fffdfa;
  --text: #1f1c18;
  --muted: #6e675f;
  --line: #d9d1c6;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

a {
  color: inherit;
}

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

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(246, 243, 236, 0.94);
  position: sticky;
  top: 0;
  backdrop-filter: blur(6px);
  z-index: 10;
}

.header-inner {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.logo {
  text-decoration: none;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
}

.site-nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.site-nav a {
  text-decoration: none;
  color: var(--muted);
}

.site-nav a.active {
  color: var(--text);
}

.page-header {
  padding: 5rem 0 2rem;
}

.eyebrow {
  margin: 0 0 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  color: var(--muted);
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  line-height: 1.05;
  max-width: 10ch;
  margin-bottom: 1rem;
}

.intro {
  font-size: 1.1rem;
  max-width: 46rem;
  color: var(--muted);
}

.section-title {
  font-size: 1.55rem;
  margin-bottom: 1.25rem;
}

.featured-books {
  padding: 0 0 3rem;
}

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

.book-card {
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 1rem;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 140ms ease, border-color 140ms ease;
}

.book-card:hover {
  transform: translateY(-2px);
  border-color: #b7ad9f;
}

.book-card img {
  width: 100%;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  margin-bottom: 0.9rem;
  background: #ece7de;
}

.book-year {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-bottom: 0.25rem;
}

.book-card h3 {
  font-size: 1.2rem;
  margin-bottom: 0.2rem;
}

.book-card p {
  color: var(--muted);
  margin-bottom: 0;
}

.publication-listing {
  padding: 0 0 4rem;
}

.publication-item {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
  padding: 1.2rem 0;
  border-top: 1px solid var(--line);
}

.publication-item:last-child {
  border-bottom: 1px solid var(--line);
}

.publication-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.publication-copy h3 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
}

.publication-copy p {
  color: var(--muted);
  max-width: 58rem;
  margin-bottom: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 16, 12, 0.66);
  display: grid;
  place-items: center;
  padding: 1rem;
  z-index: 1000;
}

.modal-backdrop[hidden] {
  display: none !important;
}

.modal {
  width: min(900px, 100%);
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.25rem;
  padding: 1.25rem;
  position: relative;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.18);
}

.modal-cover {
  width: 100%;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
  border: 1px solid var(--line);
  background: #ece7de;
}

.modal-copy {
  padding-right: 2rem;
}

.modal-kicker {
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  margin-bottom: 0.7rem;
}

.modal-copy h2 {
  font-size: 2rem;
  line-height: 1.05;
  margin-bottom: 1rem;
}

.modal-copy a {
  text-decoration: underline;
}

.modal-close {
  position: absolute;
  top: 0.6rem;
  right: 0.8rem;
  border: 0;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
}

@media (max-width: 900px) {
  .book-grid {
    grid-template-columns: 1fr;
  }

  .modal {
    grid-template-columns: 1fr;
  }

  .modal-cover {
    max-width: 260px;
  }
}

@media (max-width: 700px) {
  .publication-item {
    grid-template-columns: 1fr;
  }

  .header-inner {
    align-items: flex-start;
    padding: 1rem 0;
    flex-direction: column;
  }

  .page-header {
    padding-top: 3rem;
  }
}
