/* Bookshop styles.
   Palette (see DESIGN.md):
   #23301f ink / #f6f2e9 paper / #9a3b26 accent / #d9d2c2 line */
:root {
  --ink: #23301f;
  --paper: #f6f2e9;
  --accent: #9a3b26;
  --line: #d9d2c2;
  --muted: #5a5a4e;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  background: var(--paper);
  color: var(--ink);
  line-height: 1.5;
  padding: 0 1rem 3rem;
  max-width: 60rem;
  margin-inline: auto;
}
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.site-header {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  justify-content: space-between;
  align-items: baseline;
  border-bottom: 2px solid var(--line);
  padding-block: 1rem;
}
.shop-name { font-size: 1.4rem; font-weight: bold; margin: 0; }
h1 { font-size: 1.8rem; }
h2 { font-size: 1.2rem; margin-top: 2rem; }
.filter { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin: 1.5rem 0; }
.filter label { font-weight: bold; }
input, select, textarea, button {
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0.45rem 0.6rem;
}
button {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  cursor: pointer;
}
button[type="button"]#filter-clear { background: #fff; color: var(--accent); }
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
  gap: 1rem;
}
.card {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.75rem;
  text-decoration: none;
  color: var(--ink);
}
.card img { width: 100%; height: 9rem; object-fit: cover; border-radius: 4px; background: var(--line); }
.card h3 { margin: 0.5rem 0 0; font-size: 1rem; }
.card .author { margin: 0.1rem 0; font-style: italic; }
.card .meta, .meta { color: var(--muted); font-size: 0.95rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1rem; }
.chips button { background: #fff; color: var(--accent); font-size: 0.9rem; padding: 0.25rem 0.6rem; }
.book-photo { max-width: 16rem; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--line); }
.stack { display: flex; flex-direction: column; gap: 0.4rem; max-width: 26rem; }
.stack label { font-weight: bold; margin-top: 0.4rem; }
.error { color: var(--accent); font-weight: bold; }
.notice {
  background: #fff3cd;
  border: 1px solid var(--accent);
  padding: 0.75rem 1rem;
  border-radius: 6px;
  margin: 1rem 0;
}
.reserved-note { background: var(--line); padding: 0.75rem 1rem; border-radius: 6px; }
table { border-collapse: collapse; width: 100%; }
th, td { border: 1px solid var(--line); padding: 0.4rem 0.6rem; text-align: left; font-size: 0.95rem; }
th { background: var(--line); }
footer { border-top: 2px solid var(--line); margin-top: 3rem; padding-top: 1rem; color: var(--muted); }
