/* Guys Book Club — shared stylesheet */

/* ─── Reset & base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #f5f4f0;
  --surface:    #ffffff;
  --border:     #e2e0da;
  --text:       #1a1916;
  --muted:      #6b6760;
  --accent:     #2d4a3e;        /* deep forest green */
  --accent-lt:  #e8f0ec;
  --link:       #2d4a3e;
  --link-hover: #1a2e25;
  --nav-w:      220px;
  --max-w:      900px;
  --radius:     10px;
  --font-sans:  system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", serif;
}

html { font-size: 16px; }

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a { color: var(--link); text-decoration: underline; text-decoration-color: transparent; transition: color 0.15s, text-decoration-color 0.15s; }
a:hover { color: var(--link-hover); text-decoration-color: currentColor; }

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

/* ─── Page shell ────────────────────────────────────────────── */
.page-wrap {
  max-width: calc(var(--nav-w) + var(--max-w) + 80px);
  margin: 0 auto;
  padding: 0 20px;
}

/* ─── Site header / nav bar ─────────────────────────────────── */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .page-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.site-title {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
}
.site-title:hover { color: var(--accent); text-decoration-color: transparent; }

/* hamburger */
.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 10px;
  cursor: pointer;
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1;
}

/* horizontal nav on desktop */
.site-nav ul {
  list-style: none;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.site-nav a {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
}
.site-nav a:hover,
.site-nav a.active { background: var(--accent-lt); color: var(--accent); }
.site-nav a.active { font-weight: 600; }

/* ─── Page heading ───────────────────────────────────────────── */
.page-heading-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin-bottom: 28px;
}

.page-heading {
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
  line-height: 1.2;
}

/* ─── Card ───────────────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 24px 0;
  margin-top: auto;
}

.site-footer .page-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-note { font-size: 0.75rem; color: var(--muted); }

/* ─── Book-list filter bar ───────────────────────────────────── */
.book-filter {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 32px;
}

.book-filter-spacer {
  width: 40px;
  flex-shrink: 0;
}

.book-filter-members {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.book-filter button {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.book-filter button:hover {
  background: var(--accent-lt);
  color: var(--accent);
  border-color: var(--accent);
}

.book-filter button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

/* ─── Book-list table ────────────────────────────────────────── */
.book-table { width: 100%; border-collapse: collapse; font-size: 0.875rem; }
.book-table th {
  text-align: left;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 10px 10px;
  border-bottom: 2px solid var(--border);
}
.book-table td { padding: 7px 10px; vertical-align: top; border-bottom: 1px solid var(--border); }
.book-table tr:last-child td { border-bottom: none; }
.book-table tr:hover td { background: var(--bg); }
.book-table .col-who { width: 44px; text-align: center; font-weight: 600; color: var(--accent); font-size: 0.8rem; }
.book-table .col-date { width: 100px; color: var(--muted); white-space: nowrap; }
.book-table .col-book { }

/* ─── Contact list ───────────────────────────────────────────── */
.contact-list { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.contact-list li a {
  display: block;
  padding: 10px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}
.contact-list li a:hover { border-color: var(--accent); background: var(--accent-lt); color: var(--accent); }

.contact-group { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--border); }
.contact-group a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.contact-group a:hover { background: var(--link-hover); color: #fff; }

/* ─── Meeting detail block ───────────────────────────────────── */
.meeting-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.meeting-info { }
.meeting-info h2 { font-size: 1.1rem; font-weight: 600; color: var(--accent); margin-bottom: 16px; }
.detail-row { display: flex; flex-direction: column; margin-bottom: 14px; }
.detail-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.detail-value { font-size: 0.95rem; color: var(--text); }
.detail-value strong { font-size: 1.1rem; }

.zoom-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 20px;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.15s;
}
.zoom-link:hover { background: var(--link-hover); color: #fff; }

.book-cover { }
.book-cover img { border-radius: 8px; box-shadow: 0 4px 20px rgba(0,0,0,0.15); max-height: 420px; width: auto; }

/* ─── Home hero ──────────────────────────────────────────────── */
.hero-photo { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; }
.hero-photo img { width: 100%; object-fit: cover; }
.hero-quote {
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-style: italic;
  line-height: 1.7;
  color: var(--muted);
  border-left: 3px solid var(--accent);
  padding-left: 18px;
  margin: 8px 0 6px;
}
.hero-attribution { font-size: 0.82rem; color: var(--muted); text-align: right; margin-top: 6px; }

/* ─── Rotation image ─────────────────────────────────────────── */
.rotation-wrap { text-align: center; }
.rotation-wrap img { border-radius: var(--radius); box-shadow: 0 2px 16px rgba(0,0,0,0.10); max-width: 100%; }
.rotation-caption { margin-top: 12px; font-size: 0.82rem; color: var(--muted); font-style: italic; }

/* ─── Responsive ─────────────────────────────────────────────── */
@media (max-width: 760px) {
  .nav-toggle { display: block; }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 12px 20px 16px;
    z-index: 99;
  }
  .site-nav.open { display: block; }
  .site-nav ul { flex-direction: column; gap: 2px; }
  .site-nav a { padding: 8px 12px; font-size: 0.95rem; }

  .site-header { position: sticky; top: 0; }

  .layout { flex-direction: column; gap: 0; padding: 24px 0 40px; }
/* nav handled by top bar on mobile */
  .main-content { width: 100%; }

  .meeting-grid { grid-template-columns: 1fr; }
  .book-cover { text-align: center; }
  .book-cover img { max-height: 320px; margin: 0 auto; }

  .page-heading { font-size: 1.4rem; margin-bottom: 20px; }

  .card { padding: 20px; }

  .site-footer .page-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }

  .book-table .col-who { width: 36px; }
  .book-table .col-date { width: 80px; font-size: 0.78rem; }
  .book-table { font-size: 0.82rem; }
}

@media (max-width: 480px) {
  .page-wrap { padding: 0 14px; }
  .contact-list { grid-template-columns: 1fr 1fr; }
}
