/* ═══════════════════════════════════════════════
   OUTSIDE LANDS DATA NARRATIVE — styles.css
   Brooke Wangenheim
════════════════════════════════════════════════ */

/* ── Fonts ── */
/* ── Fonts ── */
@import url("https://fonts.googleapis.com/css2?family=Crimson+Text:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&family=Work+Sans:ital,wght@0,100..900;1,100..900&display=swap");

:root {
  --ink: #1a1a1a;
  --ink-mid: #444;
  --ink-light: #777;
  --col-width: 680px;
  --wide-width: 640px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  background-color: white;
  color: var(--ink);
  font-family: "Inter", sans-serif;
  font-weight: 500;
  font-size: 15px;
  line-height: 1.65;
  letter-spacing: -0.02em;
  -webkit-font-smoothing: antialiased;
}

.hero {
  position: relative;
  width: 100%;
  height: 92vh;
  min-height: 500px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
  filter: brightness(0.55);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 clamp(20px, 5vw, 80px) clamp(40px, 7vh, 80px);
}

.hero-text {
  max-width: var(800px);
  color: white;
  animation: fadeUp 1s ease both;
}

.hero-text h1 {
  font-family: "Inter", sans-serif;
  font-size: clamp(38px, 7vw, 82px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
  color: white;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.4);
  margin-bottom: 14px;
}

.hero-text h2 {
  font-family: "Crimson Text", serif;
  font-size: clamp(18px, 2.5vw, 26px);
  font-weight: 300;
  font-style: italic;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.35;
  margin-bottom: 10px;
  max-width: 800px;
}

main {
  padding: 0 20px 80px;
}

.chart-section,
.prose-section {
  max-width: var(--wide-width);
  margin: 60px auto 0;
}

.chart-section h3 {
  font-family: "Roboto", sans-serif;
  font-size: clamp(18px, 3.5vw, 26px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--ink);
  margin-bottom: 22px;
  max-width: var(--col-width);
}

p {
  margin-bottom: 22px;
}

.chart-figure {
  margin: 32px 0 28px;
}

.chart-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 4px;
  box-shadow: 0 2px 18px rgba(0, 0, 0, 0.1);
}

.notes-section {
  max-width: var(--col-width);
  margin: 52px auto 0;
  padding-top: 20px;
}

.notes-label {
  font-family: "Roboto", sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 10px;
}

.notes-text {
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.6;
  font-style: italic;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(24px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .hero {
    height: 70vh;
  }

  .hero-text h1 {
    font-size: 38px;
  }

  .chart-section h3 {
    font-size: 20px;
  }

  .prose-section,
  .chart-section,
  .divider,
  .notes-section {
    margin-top: 40px;
  }
}
