:root {
  --ink: #1a2430;
  --navy: #10243e;
  --green: #315f4b;
  --muted: #5a6670;
  --line: rgba(16, 36, 62, 0.12);
  --cream: #f7f3ea;
  --warm-white: #fbf8f1;
  --rail: rgba(49, 95, 75, 0.35);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family:
    "Source Sans 3",
    "Segoe UI",
    system-ui,
    -apple-system,
    sans-serif;
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(49, 95, 75, 0.12), transparent 55%),
    radial-gradient(900px 500px at 90% 0%, rgba(16, 36, 62, 0.08), transparent 50%),
    var(--cream);
  line-height: 1.5;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--green);
  font-weight: 700;
}

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

.photos-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.25rem 0;
  padding-top: max(1.25rem, env(safe-area-inset-top));
}

.photos-brand img {
  display: block;
  height: 3rem;
  width: auto;
}

.photos-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem 1.25rem;
}

.photos-nav a {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.photos-nav a:hover {
  color: var(--green);
}

.photos {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 3rem;
}

.photos-intro {
  margin-bottom: 2.75rem;
  max-width: 38rem;
}

.photos-kicker {
  margin: 0 0 0.65rem;
  color: var(--green);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.photos h1 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2.1rem, 5.5vw, 3.25rem);
  line-height: 1.06;
  letter-spacing: -0.045em;
}

.photos-lede {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
}

.story {
  position: relative;
  margin: 0;
  padding: 0 0 0 0;
  list-style: none;
}

.story::before {
  content: "";
  position: absolute;
  top: 0.35rem;
  bottom: 2rem;
  left: 1.05rem;
  width: 2px;
  background: linear-gradient(180deg, var(--green), var(--rail), transparent);
}

.story-beat {
  position: relative;
  display: grid;
  gap: 1.15rem;
  margin: 0 0 2.75rem;
  padding-left: 2.75rem;
}

.story-beat:last-child {
  margin-bottom: 1.5rem;
}

.story-beat::before {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0.7rem;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(49, 95, 75, 0.15);
}

.story-meta {
  max-width: 36rem;
}

.story-step {
  display: inline-block;
  margin: 0 0 0.4rem;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.story-meta h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.45rem, 3.5vw, 1.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.story-meta p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.story-pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: 1.2rem;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 40px rgba(16, 36, 62, 0.08);
}

.photo-card img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
}

.photo-card--tall {
  max-width: 26rem;
}

.photo-card--tall img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: unset;
}

.story-beat--spotlight .photo-card--tall {
  margin-inline: 0;
}

.photo-card figcaption {
  padding: 1rem 1.25rem 1.2rem;
}

.photo-title {
  margin: 0;
  color: var(--navy);
  font-size: 1.05rem;
  font-weight: 800;
}

.photo-credit {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.photo-credit a {
  text-decoration: underline;
  text-underline-offset: 0.15em;
}

.story-beat--finale .story-meta h2 {
  color: var(--green);
}

.story-close {
  max-width: 34rem;
  margin: 0.5rem 0 0 2.75rem;
  padding: 1.15rem 1.25rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.5;
  border-left: 3px solid var(--green);
  background: rgba(255, 255, 255, 0.45);
  border-radius: 0 0.75rem 0.75rem 0;
}

.photos-foot {
  width: min(920px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 0 0 max(2rem, env(safe-area-inset-bottom));
  color: var(--muted);
  font-size: 0.95rem;
}

.photos-foot p {
  margin: 0;
}

.photos-foot a {
  color: var(--navy);
  text-decoration: none;
}

.photos-foot a:hover {
  color: var(--green);
}

@media (min-width: 720px) {
  .story::before {
    left: 1.35rem;
  }

  .story-beat {
    padding-left: 3.25rem;
    margin-bottom: 3.25rem;
  }

  .story-beat::before {
    left: 1rem;
  }

  .story-pair {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.15rem;
  }

  .story-beat--spotlight {
    grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.85fr);
    align-items: start;
    gap: 1.5rem 1.75rem;
  }

  .story-beat--spotlight .story-meta {
    grid-column: 1 / -1;
  }

  .story-beat--spotlight .photo-card--tall {
    grid-column: 2;
    max-width: none;
    justify-self: end;
  }

  .story-close {
    margin-left: 3.25rem;
  }
}

@media (max-width: 520px) {
  .photos-top,
  .photos,
  .photos-foot {
    width: min(920px, calc(100% - 1.5rem));
  }

  .story-close {
    margin-left: 0;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .story-beat {
    animation: story-rise 700ms cubic-bezier(0.22, 1, 0.36, 1) both;
    animation-timeline: view();
    animation-range: entry 0% cover 28%;
  }
}

@keyframes story-rise {
  from {
    opacity: 0.35;
    transform: translateY(0.85rem);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}
