/* Macfarlane Crusade Fund — Static Site */

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

:root {
  --bg-page: #f8f9fa;
  --bg-card: #ffffff;
  --text-headline: #111111;
  --text-body: #6b7280;
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --nav-text: #ffffff;
  --card-border: rgba(0, 0, 0, 0.08);
  --font-heading: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg-page: #111111;
    --bg-card: #0a0a0a;
    --text-headline: #ffffff;
    --text-body: #a1a1aa;
    --nav-text: #ffffff;
    --card-border: rgba(255, 255, 255, 0.05);
  }
}

html {
  scroll-behavior: smooth;
}

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

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  color: var(--text-headline);
  font-weight: 600;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--primary-hover);
}

/* ── Background Image ── */
.bg-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-image: url('/images/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.bg-overlay::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-page);
  opacity: 0.88;
}

/* ── Navigation ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(17, 17, 17, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 0 2rem;
}

.nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.nav-logo img {
  height: 28px;
  width: auto;
}

.nav-logo span {
  color: var(--nav-text);
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  color: var(--nav-text);
  font-size: 0.9rem;
  font-weight: 500;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
  opacity: 1;
  color: var(--nav-text);
}

/* ── Hero ── */
.hero {
  text-align: center;
  padding: 6rem 2rem 4rem;
  max-width: 800px;
  margin: 0 auto;
}

.hero h1 {
  font-size: 2.5rem;
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
}

.hero p {
  font-size: 1.15rem;
  color: var(--text-body);
  max-width: 500px;
  margin: 0 auto;
}

/* ── Content Sections ── */
.content {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
}

.section {
  margin-bottom: 3rem;
}

.section h2 {
  font-size: 1.4rem;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--card-border);
}

.report-list {
  max-width: 800px;
  margin: 0 auto 4rem;
  padding: 0 2rem;
  list-style: none;
}

.report-item {
  background: var(--bg-card);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  padding: 1.5rem 2rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: border-color 0.2s;
}

.report-item:hover {
  border-color: var(--primary);
}

.report-item .meta {
  display: flex;
  flex-direction: column;
}

.report-item .title {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text-headline);
  font-size: 1rem;
}

.report-item .date {
  font-size: 0.85rem;
  color: var(--text-body);
  margin-top: 0.25rem;
}

.report-item .download {
  font-size: 0.85rem;
  font-weight: 500;
  white-space: nowrap;
}

/* ── Empty State ── */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  color: var(--text-body);
  font-size: 0.95rem;
}

/* ── Footer ── */
footer {
  text-align: center;
  padding: 2rem;
  font-size: 0.8rem;
  color: var(--text-body);
  opacity: 0.6;
  border-top: 1px solid var(--card-border);
  max-width: 1100px;
  margin: 0 auto;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .hero h1 {
    font-size: 1.75rem;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .nav-logo span {
    font-size: 0.85rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .report-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
}
