:root {
  --ink: #20261f;
  --muted: #697067;
  --line: #d8ddd6;

  --paper: #f7f5ef;
  --paper-deep: #eee9de;

  --green: #41604d;
  --green-mid: #607a63;
  --green-light: #879a7c;
  --green-pale: #b8c3aa;

  --cream: #fbfaf6;

  --max: 1180px;
}


/* =========================================================
   BASE
   ========================================================= */

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.65;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}


/* =========================================================
   ACCESSIBILITY
   ========================================================= */

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 1000;
  padding: 0.75rem 1rem;
  background: #ffffff;
  border: 1px solid var(--line);
}


/* =========================================================
   PARENT WEBSITE BAR
   ========================================================= */

.parent-bar {
  position: relative;
  z-index: 10;
  background: #f7f5ef;
  border-bottom: 1px solid rgba(53, 84, 67, 0.16);
}

.parent-bar a {
  display: block;
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 0.9rem 0;
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.025em;
  text-decoration: none;
}

.parent-bar__arrow {
  display: inline-block;
  margin-right: 0.45rem;
  transition: transform 0.18s ease;
}

.parent-bar a:hover {
  text-decoration: underline;
}

.parent-bar a:hover .parent-bar__arrow {
  transform: translateX(-3px);
}


/* =========================================================
   HERO
   ========================================================= */

.hero {
  min-height: 82vh;
  display: flex;
  align-items: center;
  color: #ffffff;

  background:
    radial-gradient(
      circle at 15% 15%,
      rgba(184, 195, 170, 0.95) 0%,
      rgba(135, 154, 124, 0.96) 28%,
      rgba(96, 122, 99, 0.98) 62%,
      rgba(65, 96, 77, 1) 100%
    );
}

.hero__inner {
  width: min(var(--max), calc(100% - 3rem));
  max-width: 900px;
  margin: 0 auto;
  padding: 5.5rem 0 6rem;
}

.hero__logo {
  width: 285px;
  max-width: 70vw;
  height: auto;
  margin-bottom: 2.5rem;
}

.eyebrow {
  margin: 0 0 0.65rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.kicker {
  margin: 0 0 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 1rem;
  opacity: 0.95;
}

.hero h1 {
  max-width: 850px;
  margin: 0;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 400;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.lede {
  max-width: 760px;
  margin: 2.2rem 0 0;
  font-size: clamp(1.15rem, 2vw, 1.45rem);
  line-height: 1.55;
}

.hero__byline {
  max-width: 640px;
  margin: 2.4rem 0 0;
  padding-top: 1.3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.88rem;
  line-height: 1.55;
  opacity: 0.95;
}

.hero__byline-name {
  display: block;
  margin-bottom: 0.2rem;
  font-size: 1.02rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.intro-line {
  margin-top: 1.8rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.95rem;
  opacity: 0.9;
}


/* =========================================================
   CHAPTER NAVIGATION
   ========================================================= */

.chapter-nav {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 2.3rem 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--line);
}

.chapter-nav a {
  padding: 0.85rem 1.2rem;
  text-decoration: none;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.91rem;
  border-right: 1px solid var(--line);
}

.chapter-nav a:nth-child(3n) {
  border-right: 0;
}

.chapter-nav a:hover {
  background: rgba(65, 96, 77, 0.07);
}

.chapter-nav span {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--green);
  font-family: Georgia, "Times New Roman", serif;
  font-style: italic;
}


/* =========================================================
   MAIN SECTIONS
   ========================================================= */

main {
  display: block;
}

.chapter {
  width: min(var(--max), calc(100% - 3rem));
  margin: 0 auto;
  padding: 7rem 0;
  border-bottom: 1px solid var(--line);
}

.chapter--opening {
  padding-top: 5rem;
}

.chapter__grid {
  display: grid;
  grid-template-columns:
    minmax(0, 1.8fr)
    minmax(260px, 0.9fr);
  gap: 5rem;
  align-items: start;
}

.chapter__grid--center {
  align-items: center;
}

.chapter__text {
  max-width: 720px;
}

.chapter__text--wide {
  max-width: 860px;
}

.chapter h2 {
  margin: 0 0 1.6rem;
  font-size: clamp(2.3rem, 5vw, 4.4rem);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.035em;
}

.chapter p {
  font-size: 1.1rem;
}

.standout {
  margin: 2rem 0;
  padding-left: 1.5rem;
  border-left: 4px solid var(--green);
  font-size: 1.35rem !important;
  line-height: 1.45;
}


/* =========================================================
   QUOTATIONS
   ========================================================= */

blockquote {
  margin: 2.7rem 0 0;
  padding: 1.7rem 0 0;
  border-top: 1px solid var(--line);
  font-size: 1.35rem;
  font-style: italic;
  line-height: 1.5;
}

blockquote cite {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.83rem;
  font-style: normal;
  line-height: 1.45;
}


/* =========================================================
   FIELD RECORD
   ========================================================= */

.field-record {
  position: sticky;
  top: 2rem;
  padding: 1.7rem 1.8rem;
  background: var(--paper-deep);
}

.field-record h3 {
  margin: 0 0 1.2rem;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.field-record dl {
  margin: 0;
}

.field-record dt {
  margin-top: 1rem;
  color: var(--green);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.field-record dd {
  margin: 0.2rem 0 0;
  font-size: 0.95rem;
  line-height: 1.5;
}


/* =========================================================
   OPENING BEFORE / AFTER GALLERY
   ========================================================= */

.opening-gallery {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 24px 18px;
  margin-top: 3.5rem;
  align-items: start;
}

.portfolio-photo {
  min-width: 0;
  margin: 0;
}

.portfolio-photo img {
  display: block;
  width: 100%;
  height: auto;
}


/* BEFORE -- LARGE IMAGE */

.opening-gallery .portfolio-photo:first-child {
  grid-column: 1 / -1;
}

.opening-gallery .portfolio-photo:first-child img {
  width: 100%;
  height: auto;
}


/* AFTER -- TWO IMAGES */

.opening-gallery .portfolio-photo:nth-child(2) img,
.opening-gallery .portfolio-photo:nth-child(3) img {
  width: 100%;
  height: auto;
}


/* CAPTIONS */

.portfolio-photo figcaption {
  margin-top: 0.55rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.4;
}


/* =========================================================
   MAIN PORTFOLIO PHOTOGRAPHS
   FULL IMAGE -- NO HEAD CROPPING
   ========================================================= */

.portfolio-section-photo {
  margin: 0 0 4.2rem;
}

.portfolio-section-photo img {
  display: block;

  /* Whole frame always shown -- never cropped.
     Bounded by height so portrait and square photographs
     do not run for two screens. */

  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 74vh;

  margin-right: auto;
}

.portfolio-section-photo figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}


/* =========================================================
   SECTION FILM
   Bounded the same way as the photographs so a vertical
   film does not run past a screen.
   ========================================================= */

.portfolio-section-video {
  margin: 0 0 4.2rem;
}

.portfolio-section-video video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 74vh;
  margin-right: auto;
  background: #20261f;
}

.portfolio-section-video figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}


/* =========================================================
   SECTION VIDEO
   ========================================================= */

.portfolio-section-video {
  margin: 4rem 0 0;
}

.portfolio-section-video video {
  display: block;

  /* Source is 1080x1920 portrait. Bounded by height,
     as with the portrait photographs. */

  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 74vh;

  margin-right: auto;
  background: #20261f;
}

.portfolio-section-video figcaption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}


/* =========================================================
   ORGANISING PRINCIPLE
   ========================================================= */

.chapter--compass {
  width: 100%;
  max-width: none;

  padding-left:
    max(1.5rem, calc((100% - var(--max)) / 2));

  padding-right:
    max(1.5rem, calc((100% - var(--max)) / 2));

  background: #526f59;
  color: var(--cream);
}

.chapter--compass .chapter__grid {
  max-width: var(--max);
  margin: 0 auto;
}

.chapter--compass .eyebrow {
  color: #e2e8dc;
}

.chapter--compass p {
  color: #ffffff;
}

.principle {
  margin: 0;
}

.principle img {
  display: block;
  width: 100%;
  height: auto;
  background: white;
}

.principle figcaption {
  margin-top: 0.6rem;
  color: #e2e8dc;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.78rem;
  line-height: 1.45;
}


/* =========================================================
   RECOGNITION
   ========================================================= */

.chapter--recognition {
  padding-bottom: 8rem;
}

.recognition-gallery {
  display: grid;
  grid-template-columns:
    repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 4.2rem;
  align-items: start;
}

.recognition-gallery .portfolio-section-photo {
  min-width: 0;
  margin-bottom: 0;
}

.recognition-gallery img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 52vh;
  margin-right: auto;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
  display: flex;
  gap: 3rem;
  justify-content: space-between;
  align-items: flex-start;

  padding:
    3.5rem
    max(1.5rem, calc((100% - var(--max)) / 2));

  background: #354c3c;
  color: #f3f4ef;

  font-family: Arial, Helvetica, sans-serif;
}

.footer__text {
  max-width: 820px;
}

footer p {
  max-width: 800px;
  margin: 0;
  font-size: 0.84rem;
  line-height: 1.6;
}

.footer__parent-link {
  display: inline-block;
  margin-top: 1.4rem;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

.footer__parent-link:hover {
  text-decoration: underline;
}

.footer__top-link {
  white-space: nowrap;
  color: #ffffff;
  text-decoration: none;
  font-size: 0.84rem;
}

.footer__top-link:hover {
  text-decoration: underline;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

  .chapter-nav {
    grid-template-columns: 1fr 1fr;
  }

  .chapter-nav a:nth-child(3n) {
    border-right: 1px solid var(--line);
  }

  .chapter-nav a:nth-child(2n) {
    border-right: 0;
  }

  .chapter__grid {
    grid-template-columns: 1fr;
    gap: 2.8rem;
  }

  .field-record {
    position: static;
  }

  footer {
    flex-direction: column;
  }
}


/* =========================================================
   MOBILE BEFORE / AFTER GALLERY
   ========================================================= */

@media (max-width: 700px) {

  .opening-gallery {
    grid-template-columns: 1fr;
  }

  .opening-gallery .portfolio-photo:first-child {
    grid-column: auto;
  }

  .opening-gallery .portfolio-photo:first-child img,
  .opening-gallery .portfolio-photo:nth-child(2) img,
  .opening-gallery .portfolio-photo:nth-child(3) img {
    height: auto;
  }

  .portfolio-section-photo img {
    width: 100%;
    max-height: none;
  }

  .portfolio-section-video video {
    width: 100%;
    max-height: none;
  }

  .recognition-gallery {
    grid-template-columns: 1fr;
  }

  .recognition-gallery img {
    width: 100%;
    max-height: none;
  }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

  .parent-bar a,
  .hero__inner,
  .chapter,
  .chapter-nav {
    width: min(100% - 2rem, var(--max));
  }

  .parent-bar a {
    padding: 0.8rem 0;
  }

  .hero {
    min-height: auto;
  }

  .hero__inner {
    padding: 4.5rem 0;
  }

  .hero__logo {
    width: 240px;
  }

  .chapter-nav {
    grid-template-columns: 1fr;
  }

  .chapter-nav a,
  .chapter-nav a:nth-child(2n),
  .chapter-nav a:nth-child(3n) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .chapter {
    padding: 4.5rem 0;
  }

  .chapter--compass {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .standout {
    font-size: 1.15rem !important;
  }
}