/* Public catalogue of the parish library. Colours and fonts follow the parish website. */
:root {
  --gold: #D4AF37;
  --blue: #003366;
  --burgundy: #800020;
  --ink: #3E2723;
  --muted: #6b5c57;
  --green: #2E6B3F;
  --line: rgba(212, 175, 55, 0.4);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Open Sans', system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: #fff; }
a { color: var(--blue); }

.bar { background: var(--blue); border-bottom: 3px solid var(--gold); }
.bar-inner { max-width: 44rem; margin: 0 auto; padding: 0.9rem 1rem; }
.parish { color: #fff; text-decoration: none; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 1.25rem; line-height: 1.25; }
.parish:hover { text-decoration: underline; }

.page { max-width: 44rem; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
h1 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; color: var(--burgundy); font-size: 2.3rem; line-height: 1.1; margin: 0.5rem 0 0.75rem; }
.intro { max-width: 40rem; margin: 0 0 0.75rem; }
.borrow-cta { margin: 1rem 0 0; }
.borrow-cta a {
  display: inline-block; padding: 0.6rem 1.2rem; font-weight: 600; text-decoration: none;
  color: var(--blue); border: 1px solid var(--blue); border-radius: 4px;
}
.borrow-cta a:hover { color: #fff; background: var(--blue); }

.search { margin: 1.5rem 0 1rem; }
.search label { display: block; font-weight: 600; color: var(--blue); margin-bottom: 0.4rem; }
.search-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search input, .search select {
  flex: 1 1 12rem; min-width: 0; min-height: 46px; padding: 0.6rem 0.8rem;
  font: inherit; font-size: 16px; color: var(--ink); background: #fff;
  border: 1px solid var(--gold); border-radius: 4px;
}
.search select { flex: 1 1 10rem; }
.search input:focus, .search select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(0, 51, 102, 0.2); }
.search button {
  min-height: 46px; padding: 0.6rem 1.4rem; font: inherit; font-weight: 600; cursor: pointer;
  color: #fff; background: var(--blue); border: 0; border-radius: 4px;
}
.search button:hover { background: var(--burgundy); }

.count { color: var(--muted); margin: 0 0 0.25rem; }
.empty { color: var(--muted); padding: 1rem 0; }
.books { list-style: none; margin: 0; padding: 0; }
.book { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 0; border-bottom: 1px solid var(--line); }
.cover { flex: 0 0 auto; display: block; width: 60px; height: 90px; object-fit: cover; border-radius: 3px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); background: #eef3f8; }
.cover-blank { display: flex; align-items: center; justify-content: center; background: var(--blue); color: var(--gold); font-family: 'Cormorant Garamond', Georgia, serif; font-size: 2rem; font-weight: 700; }
.title { margin: 0; font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.35rem; font-weight: 700; line-height: 1.2; color: var(--blue); }
.meta { margin: 0.15rem 0 0; color: var(--muted); font-size: 0.95rem; }
.status { margin: 0.35rem 0 0; font-size: 0.95rem; font-weight: 600; }
.status-in { color: var(--green); }
.status-out { color: var(--muted); font-weight: 400; }
.pages { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1.5rem 0 0; }

.foot { border-top: 1px solid var(--line); }
.foot p { max-width: 44rem; margin: 0 auto; padding: 1rem; color: var(--muted); font-size: 0.95rem; }
