:root {
  --fg: #1a1a1a;
  --muted: #6a6a6a;
  --accent: #2a5db0;
  --bg: #fafaf7;
  --border: #e2e2dd;
  --max-width: 40rem;

  /* Vertical rhythm: every margin/padding is a multiple of --unit. */
  --unit: 0.5rem;
  --space-1: var(--unit);            /* 0.5rem */
  --space-2: calc(var(--unit) * 2);  /* 1rem */
  --space-3: calc(var(--unit) * 3);  /* 1.5rem */
  --space-4: calc(var(--unit) * 4);  /* 2rem */
  --space-6: calc(var(--unit) * 6);  /* 3rem */
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #ececec;
    --muted: #9a9a9a;
    --accent: #8ab4f8;
    --bg: #17171a;
    --border: #2c2c30;
  }
}

* { box-sizing: border-box; }

html { color-scheme: light dark; }

body {
  margin: 0;
  padding: var(--space-3);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  line-height: 1.5;
  color: var(--fg);
  background: var(--bg);
}

main {
  max-width: var(--max-width);
  margin: 0 auto;
}

/* Header — the club name is the loudest thing on the page. */
header {
  margin-bottom: var(--space-6);
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.15;
  letter-spacing: -0.01em;
}

#club-tagline {
  margin: var(--space-1) 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Sections — symmetric breathing room around every divider. */
section {
  border-top: 1px solid var(--border);
  margin-top: var(--space-6);
  padding-top: var(--space-6);
}

/* h2 sits quietly as a small-caps label directly under the divider. */
h2 {
  margin: 0 0 var(--space-3);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: var(--muted);
}

/* Currently reading */
.book-title {
  margin: 0;
  font-size: 1.375rem;
  line-height: 1.25;
  font-weight: 600;
}

.book-author {
  margin: var(--space-1) 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

.target-line {
  margin: var(--space-3) 0 0;
}

.target {
  display: inline-block;
  padding: 0.1rem 0.5rem;
  background: var(--accent);
  color: #fff;
  border-radius: 0.25rem;
  font-weight: 600;
}

.notes {
  margin: var(--space-2) 0 0;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Meeting details */
.meeting-details {
  margin: 0;
}

.meeting-details dt {
  margin-top: var(--space-3);
  font-size: 0.875rem;
  color: var(--muted);
}

.meeting-details dt:first-of-type {
  margin-top: 0;
}

.meeting-details dd {
  margin: 0;
}

/* Previously read */
#read-list {
  margin: 0;
  padding-left: 2.25rem;
}

#read-list li {
  padding: var(--space-1) 0;
}

.error {
  margin: 0;
  padding: var(--space-2);
  color: #b00020;
}
