/* Background #41b02a; --bg-green-mid is a slightly darker tone for the gradient */
:root {
  --bg-green: #41b02a;
  --bg-green-mid: #348f22;
  --text-cream: #f8faf5;
  --text-muted: #e3f0dc;
  --shadow: rgba(0, 0, 0, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 112.5%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Newsreader", "Georgia", serif;
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-cream);
  background-color: var(--bg-green);
  background-image:
    radial-gradient(ellipse 120% 80% at 50% -20%, var(--bg-green-mid), transparent 55%),
    radial-gradient(ellipse 90% 60% at 100% 100%, rgba(0, 0, 0, 0.2), transparent 50%);
}

.page {
  max-width: 58rem;
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 2.5rem) 4rem;
}

.site-header {
  text-align: center;
  margin-bottom: clamp(1rem, 2.5vw, 1.5rem);
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(244, 241, 232, 0.12);
}

.site-title {
  font-family: "Fraunces", "Georgia", serif;
  font-optical-sizing: auto;
  font-weight: 600;
  font-size: clamp(2rem, 5vw, 3.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem;
  color: var(--text-cream);
  text-shadow: 0 2px 24px var(--shadow);
}

.site-lead {
  margin: 0 auto;
  max-width: 36rem;
  font-size: clamp(1.05rem, 2.2vw, 1.2rem);
  color: var(--text-muted);
  font-weight: 400;
}

.site-lead strong {
  color: inherit;
  font-weight: 600;
}

.intro-prose {
  margin: 0 auto clamp(2.5rem, 6vw, 3.5rem);
  max-width: 48rem;
}

.intro-prose p {
  margin: 0 0 1.1em;
  font-size: clamp(1rem, 2vw, 1.125rem);
  color: var(--text-muted);
}

.intro-prose p:last-child {
  margin-bottom: 0;
}

.intro-prose strong {
  color: var(--text-cream);
  font-weight: 700;
}

/* Extra air between the second image and the closing paragraphs */
.panel:last-of-type + .intro-prose {
  margin-top: clamp(1.25rem, 3.5vw, 2.25rem);
}

.panel {
  margin-bottom: clamp(3rem, 8vw, 5rem);
}

.panel:last-of-type {
  margin-bottom: 0;
}

.panel-figure {
  margin: 0;
  border-radius: 4px;
  overflow: hidden;
  box-shadow:
    0 4px 6px var(--shadow),
    0 12px 40px var(--shadow);
  background: rgba(0, 0, 0, 0.25);
}

.panel-figure img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}
