@import url("../assets/brand/windwalker-brand.css?v=9");

:root {
  --navy: #0d3554;
  --navy-deep: #07273f;
  --blue: #087ea4;
  --blue-light: #dff4fa;
  --ice: #eefaff;
  --orange: #f45a17;
  --yellow: #ffd166;
  --ink: #173657;
  --muted: #526879;
  --line: #cfe0e8;
  --paper: #ffffff;
  --shadow: 0 18px 48px rgba(13, 53, 84, 0.14);
  --radius: 18px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: linear-gradient(180deg, #f7fdff 0%, #e9f8fd 45%, #fffaf3 100%);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  line-height: 1.58;
}

img {
  max-width: 100%;
}

a {
  color: var(--blue);
}

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: relative;
  z-index: 5;
  background: var(--navy-deep);
  color: #fff;
}

.site-header__inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 78px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-header .ww-brand {
  flex: 0 0 auto;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.site-header .ww-brand img {
  width: auto;
  height: 42px;
  max-width: min(330px, 58vw);
  filter: brightness(0) invert(1);
}

.primary-nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}

.primary-nav a {
  min-height: 44px;
  padding: 10px 12px;
  display: inline-flex;
  align-items: center;
  border-radius: 10px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.primary-nav a:hover,
.primary-nav a[aria-current="page"] {
  background: rgba(255, 255, 255, 0.14);
}

.chapter-nav {
  position: relative;
  z-index: 4;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.chapter-nav__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 10px 0;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.chapter-nav a {
  min-height: 42px;
  padding: 9px 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--navy);
  background: #fff;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.chapter-nav a[aria-current="page"],
.chapter-nav a:hover {
  color: #fff;
  border-color: var(--blue);
  background: var(--blue);
}

.hero {
  position: relative;
  min-height: 590px;
  display: grid;
  align-items: end;
  overflow: hidden;
  color: #fff;
  background: var(--navy);
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(4, 27, 46, 0.9) 0%, rgba(4, 27, 46, 0.58) 52%, rgba(4, 27, 46, 0.18) 100%),
    linear-gradient(0deg, rgba(4, 27, 46, 0.72), transparent 55%);
}

.hero__content {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(56px, 10vw, 112px) 0 clamp(54px, 8vw, 88px);
}

.hero__content > * {
  max-width: 720px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--yellow);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: clamp(3rem, 8vw, 6.8rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.35);
}

.hero__lede {
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.96);
  font-size: clamp(1.15rem, 2.6vw, 1.5rem);
  font-weight: 750;
  line-height: 1.4;
  text-shadow: 0 3px 18px rgba(0, 0, 0, 0.45);
}

.hero__caption {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.84rem;
  font-weight: 700;
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(48px, 8vw, 88px) 0;
}

.section {
  margin-top: clamp(48px, 8vw, 86px);
}

.section:first-child {
  margin-top: 0;
}

.section-heading {
  max-width: 760px;
  margin-bottom: 28px;
}

.section-heading h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
  letter-spacing: -0.02em;
}

.section-heading p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.intro-grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
}

.big-copy {
  margin: 0;
  color: var(--navy);
  font-size: clamp(1.3rem, 2.6vw, 1.75rem);
  font-weight: 800;
  line-height: 1.4;
}

.plain-copy {
  color: var(--muted);
  font-size: 1.05rem;
}

.photo-card {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.photo-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.photo-card figcaption {
  padding: 12px 16px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

.globe-locator {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: clamp(24px, 5vw, 52px);
  align-items: center;
  padding: clamp(24px, 5vw, 44px);
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.globe-locator__visual {
  position: relative;
  width: min(100%, 440px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: #000;
  box-shadow: 0 0 0 12px rgba(255, 255, 255, 0.05);
}

.globe-locator__visual img {
  width: 100%;
  display: block;
  aspect-ratio: 1;
  object-fit: cover;
}

.globe-pin {
  position: absolute;
  top: 49%;
  left: 50%;
  width: 26px;
  height: 26px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 0 7px rgba(244, 90, 23, 0.35);
  transform: translate(-50%, -50%);
}

.globe-pin::after {
  content: "Antarctica";
  position: absolute;
  top: 29px;
  left: 50%;
  padding: 5px 9px;
  border-radius: 7px;
  color: var(--navy-deep);
  background: #fff;
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
  transform: translateX(-50%);
}

.globe-locator h2 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.6rem);
  line-height: 1;
}

.globe-locator p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.05rem;
}

.globe-locator__credit {
  margin-bottom: 0;
  font-size: 0.82rem !important;
}

.globe-locator__credit a {
  color: #fff;
  font-weight: 900;
}

.distance-map {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.distance-map__canvas {
  position: relative;
  overflow: hidden;
  background: var(--navy-deep);
}

.distance-map__canvas > img {
  width: 100%;
  display: block;
  aspect-ratio: 2 / 1;
  object-fit: cover;
}

.map-marker {
  position: absolute;
  width: 18px;
  height: 18px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 8px rgba(4, 26, 43, 0.7);
  transform: translate(-50%, -50%);
}

.map-marker span {
  position: absolute;
  left: 50%;
  bottom: 22px;
  padding: 4px 7px;
  border-radius: 6px;
  color: var(--navy-deep);
  background: rgba(255, 255, 255, 0.94);
  font-size: clamp(0.62rem, 1.4vw, 0.82rem);
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
}

.map-marker--la {
  left: 17.2%;
  top: 31.1%;
}

.map-marker--new-york {
  left: 29.4%;
  top: 27.4%;
}

.map-marker--london {
  left: 50%;
  top: 21.4%;
}

.map-marker--tokyo {
  left: 88.8%;
  top: 30.2%;
}

.map-marker--south-pole {
  left: 50%;
  top: 93%;
  width: 24px;
  height: 24px;
  background: #42c7ef;
  box-shadow: 0 0 0 7px rgba(66, 199, 239, 0.32);
}

.map-marker--south-pole span {
  top: auto;
  bottom: 28px;
}

.distance-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
}

.distance-card {
  padding: 18px;
  background: #fff;
}

.distance-card strong {
  display: block;
  color: var(--blue);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1;
}

.distance-card strong small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.distance-card span {
  display: block;
  margin-top: 7px;
  color: var(--navy);
  font-size: 0.9rem;
  font-weight: 800;
}

.distance-map__note {
  margin: 0;
  padding: 14px 18px;
  color: var(--muted);
  background: var(--ice);
  font-size: 0.82rem;
}

.distance-comparison {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 18px;
  color: var(--navy);
  background: #fff4db;
  border-top: 1px solid #f4d793;
  font-size: 1rem;
}

.distance-comparison__number {
  flex: 0 0 auto;
  color: var(--orange);
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1;
}

.distance-map__note a,
.winter-story a {
  color: var(--blue);
  font-weight: 900;
}

.winter-story {
  margin: 0;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
  box-shadow: var(--shadow);
}

.winter-story > img {
  width: 100%;
  display: block;
  aspect-ratio: 2.53 / 1;
  object-fit: cover;
}

.winter-story__body {
  display: grid;
  grid-template-columns: minmax(190px, 0.7fr) minmax(0, 1.3fr);
  gap: 28px;
  align-items: center;
  padding: clamp(24px, 5vw, 42px);
  color: #fff;
}

.journey-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--line);
  box-shadow: var(--shadow);
}

.journey-step {
  position: relative;
  padding: 26px 22px;
  background: #fff;
}

.journey-step:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 1;
  top: 50%;
  right: -17px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: #fff;
  background: var(--orange);
  font-size: 1.25rem;
  font-weight: 900;
  line-height: 34px;
  text-align: center;
  transform: translateY(-50%);
}

.journey-step__icon {
  display: block;
  margin-bottom: 12px;
  font-size: 2rem;
}

.journey-step strong {
  display: block;
  color: var(--navy);
  font-size: 1.08rem;
}

.journey-step p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.journey-note {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.journey-note a {
  color: var(--blue);
  font-weight: 900;
}

.winter-story__number {
  margin: 0;
  color: #8ee7ff;
  font-size: clamp(3rem, 9vw, 6rem);
  font-weight: 900;
  line-height: 0.85;
}

.winter-story__number span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.74);
  font-size: 0.86rem;
  line-height: 1.35;
}

.winter-story h2 {
  margin: 0 0 12px;
  font-size: clamp(1.8rem, 4vw, 3rem);
  line-height: 1;
}

.winter-story p {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
}

.winter-story p + p {
  margin-top: 12px;
}

.winter-story__credit {
  font-size: 0.82rem;
}

.winter-story__credit a {
  color: #fff;
}

.ice-gallery,
.food-photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.ice-gallery figure,
.food-photo-strip figure {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 10px 32px rgba(13, 53, 84, 0.1);
}

.ice-gallery img,
.food-photo-strip img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ice-gallery figcaption,
.food-photo-strip figcaption {
  padding: 11px 13px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.fact-grid,
.animal-grid,
.impact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fact-card,
.impact-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 32px rgba(13, 53, 84, 0.08);
}

.fact-card__number {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 900;
  line-height: 1;
}

.fact-card h3,
.impact-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.22rem;
}

.fact-card p,
.impact-card p {
  margin: 0;
  color: var(--muted);
}

.callout {
  padding: clamp(24px, 5vw, 40px);
  border-radius: var(--radius);
  color: #fff;
  background: var(--navy);
  box-shadow: var(--shadow);
}

.callout--light {
  color: var(--ink);
  background: var(--blue-light);
  box-shadow: none;
}

.callout h2,
.callout h3 {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  line-height: 1.1;
}

.callout p {
  margin: 0;
  font-size: 1.05rem;
}

.callout p + p {
  margin-top: 12px;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.compare-card {
  padding: clamp(22px, 4vw, 32px);
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
}

.compare-card h3 {
  margin: 0 0 8px;
  color: var(--blue);
  font-size: 1.35rem;
}

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

.food-web {
  padding: clamp(24px, 5vw, 42px);
  border-radius: var(--radius);
  background: var(--navy-deep);
  color: #fff;
  box-shadow: var(--shadow);
}

.food-web__row {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1.25fr auto 1.2fr;
  align-items: stretch;
  gap: 10px;
}

.food-step {
  min-height: 138px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.09);
}

.food-step strong {
  color: var(--yellow);
  font-size: 1.1rem;
}

.food-step--krill {
  border-color: var(--yellow);
  background: rgba(255, 209, 102, 0.16);
  box-shadow: 0 0 0 4px rgba(255, 209, 102, 0.08);
}

.food-step--krill strong {
  font-size: 1.35rem;
}

.food-step span {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.food-arrow {
  align-self: center;
  color: var(--yellow);
  font-size: 1.75rem;
  font-weight: 900;
}

.food-web__note {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.82);
}

.food-photo-strip {
  margin-top: 16px;
}

.animal-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 32px rgba(13, 53, 84, 0.08);
}

.animal-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
}

.animal-card__body {
  padding: 20px;
}

.animal-card h3 {
  margin: 0 0 8px;
  color: var(--navy);
  font-size: 1.25rem;
}

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

.animal-card a {
  display: inline-block;
  margin-top: 12px;
  font-weight: 900;
}

.animal-deep-dive {
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(0, 1.18fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow);
}

.animal-deep-dive--reverse {
  grid-template-columns: minmax(0, 1.18fr) minmax(280px, 0.82fr);
}

.animal-deep-dive--reverse .animal-deep-dive__photo {
  order: 2;
}

.animal-deep-dive__photo {
  margin: 0;
  min-height: 100%;
  background: var(--navy-deep);
}

.animal-deep-dive__photo img {
  width: 100%;
  height: 100%;
  min-height: 460px;
  display: block;
  object-fit: cover;
}

.animal-deep-dive__photo figcaption {
  padding: 10px 14px;
  color: rgba(255, 255, 255, 0.82);
  background: var(--navy-deep);
  font-size: 0.82rem;
}

.animal-deep-dive__photo-pair {
  min-height: 100%;
  display: grid;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  background: var(--navy-deep);
}

.animal-deep-dive__photo-pair .animal-deep-dive__photo {
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.animal-deep-dive__photo-pair .animal-deep-dive__photo + .animal-deep-dive__photo {
  border-top: 3px solid #fff;
}

.animal-deep-dive__photo-pair .animal-deep-dive__photo img {
  min-height: 250px;
}

.animal-deep-dive__body {
  padding: clamp(26px, 5vw, 48px);
}

.animal-deep-dive__body h2 {
  margin: 0;
  color: var(--navy);
  font-size: clamp(2rem, 4.5vw, 3.3rem);
  line-height: 1;
}

.animal-deep-dive__intro {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.biology-facts {
  margin-top: 22px;
  display: grid;
  gap: 10px;
}

.biology-fact {
  padding: 15px 17px;
  border-left: 5px solid var(--blue);
  border-radius: 0 12px 12px 0;
  background: var(--ice);
}

.biology-fact strong {
  display: block;
  color: var(--navy);
  font-size: 1rem;
}

.biology-fact p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.93rem;
}

.biology-surprise {
  margin: 18px 0 0;
  padding: 17px 19px;
  border-radius: 12px;
  color: var(--navy);
  background: #fff4db;
  font-weight: 800;
}

.dive-records {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.dive-record {
  padding: 16px;
  border-radius: 12px;
  color: #fff;
  background: var(--navy);
}

.dive-record strong {
  display: block;
  color: var(--yellow);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.dive-record span {
  display: block;
  margin-top: 7px;
  font-size: 0.85rem;
}

.glossary-jump {
  position: sticky;
  z-index: 5;
  top: 88px;
  margin-top: -24px;
  padding: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 8px 28px rgba(13, 53, 84, 0.1);
  backdrop-filter: blur(10px);
}

.glossary-jump a {
  padding: 7px 10px;
  border-radius: 8px;
  color: var(--navy);
  background: var(--ice);
  font-size: 0.85rem;
  font-weight: 900;
  text-decoration: none;
}

.glossary-jump a:hover,
.glossary-jump a:focus-visible {
  color: #fff;
  background: var(--blue);
}

.glossary-group {
  scroll-margin-top: 160px;
}

.glossary-list {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.glossary-entry {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 26px rgba(13, 53, 84, 0.06);
}

.glossary-entry dt {
  color: var(--navy);
  font-size: 1.16rem;
  font-weight: 900;
}

.glossary-entry dt span {
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 800;
}

.glossary-entry dd {
  margin: 7px 0 0;
  color: var(--muted);
}

.glossary-tip {
  padding: clamp(24px, 5vw, 38px);
  border-radius: var(--radius);
  color: var(--navy);
  background: #fff4db;
}

.glossary-tip h2 {
  margin: 0 0 10px;
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.glossary-tip p {
  margin: 0;
}

.impact-card__tag {
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--navy);
  background: var(--yellow);
  font-size: 1.15rem;
  font-weight: 900;
}

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

.question-list li {
  padding: 14px 16px;
  border-left: 5px solid var(--blue);
  border-radius: 0 10px 10px 0;
  background: #fff;
  color: var(--navy);
  font-weight: 800;
}

.next-chapter {
  margin-top: clamp(52px, 9vw, 96px);
  padding: clamp(26px, 5vw, 42px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(120deg, var(--blue), var(--navy));
}

.next-chapter p {
  margin: 0 0 5px;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 800;
}

.next-chapter h2 {
  margin: 0;
  font-size: clamp(1.55rem, 4vw, 2.5rem);
  line-height: 1.05;
}

.button {
  min-height: 48px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  border-radius: 12px;
  color: var(--navy);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.sources {
  margin-top: clamp(48px, 8vw, 82px);
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.sources h2 {
  margin: 0 0 10px;
  color: var(--navy);
  font-size: 1.25rem;
}

.sources p {
  margin: 0 0 12px;
  color: var(--muted);
}

.sources ul {
  margin: 0;
  padding-left: 20px;
}

.sources li + li {
  margin-top: 8px;
}

.sources a {
  font-weight: 800;
}

.site-footer {
  color: rgba(255, 255, 255, 0.78);
  background: var(--navy-deep);
}

.site-footer__inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
}

.site-footer p {
  margin: 0;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
}

.site-footer a {
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

@media (max-width: 820px) {
  .site-header__inner {
    padding: 12px 0;
    align-items: flex-start;
    flex-direction: column;
  }

  .primary-nav {
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    overflow-x: auto;
  }

  .hero {
    min-height: 520px;
  }

  .intro-grid,
  .split,
  .globe-locator,
  .animal-deep-dive,
  .animal-deep-dive--reverse {
    grid-template-columns: 1fr;
  }

  .animal-deep-dive--reverse .animal-deep-dive__photo {
    order: 0;
  }

  .animal-deep-dive__photo img {
    min-height: 360px;
    max-height: 560px;
  }

  .animal-deep-dive__photo-pair {
    grid-template-rows: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .animal-deep-dive__photo-pair .animal-deep-dive__photo + .animal-deep-dive__photo {
    border-top: 0;
    border-left: 3px solid #fff;
  }

  .animal-deep-dive__photo-pair .animal-deep-dive__photo img {
    min-height: 300px;
  }

  .fact-grid,
  .animal-grid,
  .impact-grid,
  .ice-gallery,
  .food-photo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .distance-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-route {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .journey-step:nth-child(2)::after {
    display: none;
  }

  .winter-story__body {
    grid-template-columns: 1fr;
  }

  .food-web__row {
    grid-template-columns: 1fr;
  }

  .food-arrow {
    transform: rotate(90deg);
  }
}

@media (max-width: 560px) {
  .fact-grid,
  .animal-grid,
  .impact-grid,
  .compare-grid,
  .ice-gallery,
  .food-photo-strip {
    grid-template-columns: 1fr;
  }

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

  .dive-records {
    grid-template-columns: 1fr;
  }

  .animal-deep-dive__photo-pair {
    grid-template-columns: 1fr;
  }

  .animal-deep-dive__photo-pair .animal-deep-dive__photo + .animal-deep-dive__photo {
    border-top: 3px solid #fff;
    border-left: 0;
  }

  .glossary-list {
    grid-template-columns: 1fr;
  }

  .journey-route {
    grid-template-columns: 1fr;
  }

  .journey-step:not(:last-child)::after {
    top: auto;
    right: 50%;
    bottom: -17px;
    transform: translateX(50%) rotate(90deg);
  }

  .journey-step:nth-child(2)::after {
    display: block;
  }

  .map-marker:not(.map-marker--south-pole) span {
    display: none;
  }

  .hero h1 {
    font-size: clamp(3rem, 18vw, 5rem);
  }

  .next-chapter {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
