:root {
  --bg: #f4efe4;
  --panel: rgba(255, 255, 255, 0.72);
  --text: #1f2a1f;
  --muted: #5c6a5f;
  --accent: #b25a2b;
  --shadow: 0 24px 60px rgba(54, 42, 24, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(178, 90, 43, 0.18), transparent 35%),
    linear-gradient(135deg, #f8f4ec 0%, #ede4d0 100%);
}

.page {
  width: min(1280px, calc(100vw - 32px));
  margin: 0 auto;
  min-height: 100vh;
  padding: 48px 0;
}

.intro-panel,
.sidebar,
.viewer-panel {
  border-radius: 24px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.intro-panel {
  padding: 28px;
  margin-bottom: 24px;
}

.intro-panel h1 {
  margin-bottom: 18px;
}

.layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 24px;
}

.eyebrow {
  margin: 0;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-size: 0.8rem;
}

h1 {
  margin: 0;
  font-size: clamp(3rem, 10vw, 6rem);
  line-height: 0.95;
}

.intro {
  margin: 0;
  max-width: 56ch;
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--muted);
}

.card {
  width: fit-content;
  padding: 18px 22px;
  border-radius: 16px;
  background: var(--panel);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow);
}

.card p,
.card strong {
  display: block;
}

.card p {
  margin: 0 0 6px;
  color: var(--muted);
}

.sidebar {
  padding: 24px;
  align-self: start;
}

.sidebar h2 {
  margin: 0 0 18px;
}

.archive-group + .archive-group {
  margin-top: 20px;
}

.archive-label {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.78rem;
}

.group-list,
.report-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 10px;
}

.group-link,
.report-link {
  display: block;
  padding: 12px 14px;
  border-radius: 14px;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.55);
  transition: transform 160ms ease, background 160ms ease;
}

.group-link:hover,
.group-link:focus-visible,
.group-link.active,
.report-link:hover,
.report-link:focus-visible,
.report-link.active {
  background: rgba(178, 90, 43, 0.16);
  transform: translateX(4px);
}

.viewer-panel {
  padding: 20px;
}

.viewer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.viewer-label {
  margin: 0 0 4px;
  color: var(--muted);
}

.download-link {
  display: inline-block;
  padding: 10px 14px;
  border-radius: 999px;
  background: var(--accent);
  color: #fffaf2;
  text-decoration: none;
}

.pdf-frame {
  width: 100%;
  min-height: 75vh;
  border: 0;
  border-radius: 18px;
  background: #fff;
}

@media (max-width: 900px) {
  .page {
    padding: 20px 0;
  }

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

  .pdf-frame {
    min-height: 60vh;
  }

  .viewer-header {
    align-items: flex-start;
    flex-direction: column;
  }
}
