:root {
  --bg: #ffffff;
  --text: #222222;
  --muted: #555555;
  --border: #dddddd;

  --month-bar: #b34722;
  --month-text: #8b2b1b;

  --link: #0000cc;
  --author: #b34722;

  --price-bg: #e1e4ff;
  --price-text: #3730a3;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 Georgia, "Times New Roman", serif;
}

.wrap {
  width: min(1100px, 100% - 2rem);
  margin-inline: auto;
}

header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 1.25rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

h1 {
  margin: 0;
  font-size: 1.3rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95rem;
}

.nav a:hover {
  color: var(--text);
  text-decoration: underline;
}

.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin: 1rem 0;
}

.card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.section-year {
  margin-top: 1.25rem;
}

.section-year > h3 {
  font-size: 1rem;
  margin: 1rem 0 0.25rem;
  font-weight: 600;
}

.month-label {
  margin: 0.85rem 0 0.25rem;
  padding-left: 0.5rem;
  border-left: 3px solid var(--month-bar);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  color: var(--month-text);
}

.month-list {
  list-style-type: square;
  padding-left: 1.3rem;
  margin: 0.25rem 0 1rem;
}

.month-list li {
  margin: 0.18rem 0;
  font-size: 0.95rem;
}

.entry-main {
  /* first line: same size as before */
}

.entry-meta {
  margin-top: 0.1rem;
  margin-left: 1.3rem;  /* indent under the text */
  font-size: 0.85rem;
  color: #6b7280;       /* muted gray for the meta line */
}

.entry-date {
  margin-left: 0.25rem;
  color: #6b7280;  /* or whatever muted color you like */
  font-weight: 600;
  font-style: normal;
}

.meta {
  color: var(--muted);
  font-size: 0.9rem;
}

a.book-link {
  color: var(--link);
  text-decoration: underline;
}

a.book-link:hover {
  color: #000080;
}

a.author-link {
  color: var(--author);
  text-decoration: none;
}

a.author-link:hover {
  text-decoration: underline;
}

.press-name {
  font-weight: 600;
  color: #111827;       /* dark text, not the orange */
}

.price-chip {
  display: inline-block;
  margin-left: 0.4rem;
  padding: 0 0.35rem;
  border-radius: 4px;
  background: var(--price-bg);
  color: var(--price-text);
  font-size: 0.8rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  white-space: nowrap;
}

.footer {
  padding: 2rem 0 3rem;
  color: var(--muted);
  text-align: center;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.85rem;
}

.filters summary {
  cursor: pointer;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-size: 0.9rem;
}

.filters-row {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding-top: 0.75rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.85rem;
}

select,
input[type="search"],
button {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.35rem 0.55rem;
  font-size: 0.85rem;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

button {
  cursor: pointer;
}

.note {
  font-size: 0.9rem;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.status {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
}

.status strong {
  color: var(--text);
}

.add-to-calendar {
  border: none;
  background: transparent;
  font-size: 0.8rem;
  text-decoration: underline;
  cursor: pointer;
  color: var(--link);
  padding: 0;
}
.add-to-calendar:hover {
  opacity: 0.8;
}

.calendar-link {
  font-size: 0.8rem;
  text-decoration: underline;
  color: var(--link);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
}

.calendar-link:hover {
  opacity: 0.8;
}

