﻿﻿/* styles.css - modern responsive layout with clean fonts and gallery support */

/* CSS Reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-style: normal;
}

/* Colour Variables */
:root {
  --header-bg: #DADADA;
  --accent-red: #B00000;
  --accent-purple: #400080;
  --name-maroon: #800000;
  --confession-red: #D70000;
  --notes-green: #003C00;
  --text-color: #000;
  --page-bg: #ffffff;
  --site-bg: #f7f7f7;
  --container-max: 998px;
  --gap: 1rem;
  --muted: #444;
}

/* Base Styles */
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--site-bg);
  color: var(--text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  padding: 1.5rem 1.25rem;
}

/* Universal Image & Figure Styling */
img {
  display: block;
  margin: 0 auto;
  height: auto;
  max-width: 100%;
}
figure {
  text-align: center;
  margin: 0.75rem auto;
}

/* Layout */
.page-wrap {
  max-width: var(--container-max);
  margin: 0 auto;
  background: var(--page-bg);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  padding: 1rem;
}

/* Header */
.site-header {
  background: var(--header-bg);
  padding: 0.6rem 1rem;
  text-align: center;
  border-bottom: 1px solid rgba(0,0,0,0.06);
}
.site-header h1 {
  font-size: 1.25rem;
  font-weight: 700;
  color: #000;
  letter-spacing: 0.5px;
  margin: 0.25rem 0;
}

/* Main Content */
.site-main {
  padding: 1.25rem;
}

/* Hero Image */
.hero-figure {
  text-align: center;
  margin-bottom: 1rem;
}
.hero-caption {
  margin-top: 0.5rem;
  font-size: 1.05rem;
  color: var(--muted);
}

/* Case Overview */
.case-title {
  color: var(--accent-red);
  text-align: center;
  font-size: 1.25rem;
  margin: 0.5rem 0 0.75rem;
}

.quotes {
  text-align: center;
  margin-bottom: 0.75rem;
}
.quote {
  margin: 0.5rem auto;
  max-width: 780px;
  color: var(--accent-purple);
}
.quote-author {
  display: block;
  color: #000;
  margin-top: 0.35rem;
  font-size: 0.95rem;
}

.divider {
  border: 0;
  border-top: 1px solid #ddd;
  margin: 1rem auto;
}

/* Gallery Containers */
.photos-row,
.russell-photos,
.gallery-grid,
.efit-row,
.side-by-side {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  justify-items: center;
  align-items: start;
}

/* Lead Paragraph */
.lead {
  margin: 1rem 0 1.25rem;
  text-align: justify;
}

/* Russell Photos */
.russell-photos figure {
  width: 100%;
  max-width: 240px;
}

/* Captions */
.caption-row,
.caption-small,
.photos-row figcaption,
.papers-grid figcaption,
.person figcaption {
  text-align: center;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* Prosecution / Confession */
.section-heading {
  color: var(--accent-purple);
  font-size: 1.05rem;
  text-align: center;
  margin: 0.75rem 0;
}
.blockquote {
  text-align: center;
  color: var(--accent-purple);
  margin: 0.5rem auto 1rem;
  max-width: 820px;
}
.name {
  color: var(--name-maroon);
  font-weight: 600;
}
.centered {
  text-align: center;
}
.confession-heading {
  color: var(--confession-red);
  font-weight: 700;
  font-size: 1rem;
}
.confession-sub {
  color: var(--confession-red);
  font-weight: 700;
  display: block;
  margin-bottom: 0.35rem;
}
.confession-text {
  color: var(--accent-purple);
  font-size: 1rem;
}

/* Person Figure */
.person {
  text-align: center;
  margin: 1rem auto;
}
.person img {
  max-width: 220px;
}

/* Papers Grid */
.papers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin: 1rem 0;
}
.papers-grid img {
  border: 1px solid #999;
}

/* Trial Summary */
.trial-summary {
  margin-top: 1rem;
}

/* Bellfield / E-fit */
.bellfield-title {
  text-align: center;
  font-size: 1.1rem;
  margin-top: 0.5rem;
}
.bellfield-figure {
  text-align: center;
  margin: 0.5rem 0;
}
.bellfield-figure img {
  max-width: 240px;
}

/* Side-by-Side Images */
.side-by-side figure {
  width: 100%;
  max-width: 240px;
}

/* Bottom Gallery */
.bottom-gallery {
  margin-top: 1rem;
}

/* Footer */
.site-footer {
  background: #f0f0f0;
  padding: 0.9rem 1rem;
  text-align: center;
  margin-top: 1rem;
  font-size: 0.95rem;
  color: #000;
}

/* Links */
a {
  color: var(--accent-purple);
}

/* Responsive Padding for Small Screens */
@media (max-width: 480px) {
  body {
    padding: 1.75rem 1.5rem;
  }

  .page-wrap {
    padding: 1.25rem;
  }
}
