:root {
  --snow: #EEF3F2;
  --frost: #E1EAE7;
  --spruce: #163A2E;
  --spruce-soft: #2C5446;
  --river: #2A6F8F;
  --river-light: #6FA9C4;
  --granite: #56645F;
  --lichen: #C4D4A8;
  --lake: #235E79;
  --white: #FFFFFF;

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 38rem;
}

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

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--snow);
  color: var(--spruce);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-variation-settings: "wdth" 100;
}

h1,
h2 {
  margin: 0;
  font-weight: 750;
  line-height: 1.05;
  text-wrap: balance;
}

p,
ul,
dl {
  margin: 0;
}

a {
  color: var(--river);
  text-underline-offset: 0.2em;
  text-decoration-thickness: 1px;
}

a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--river);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: 74rem;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip {
  position: absolute;
  left: var(--gutter);
  top: -100px;
  padding: 0.5rem 0.75rem;
  background: var(--spruce);
  color: var(--snow);
  z-index: 10;
}

.skip:focus {
  top: 12px;
}

/* Header */

.site-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-block: 1.5rem;
}

.wordmark {
  color: var(--spruce);
  text-decoration: none;
  font-size: 1.375rem;
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  letter-spacing: 0.01em;
}

.header-link {
  color: var(--spruce);
  font-weight: 500;
}

/* Hero */

.hero-head {
  padding-top: clamp(2.5rem, 7vw, 5rem);
}

.hero h1 {
  max-width: 15ch;
  font-size: clamp(2.5rem, 6.6vw, 5.75rem);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
  line-height: 0.98;
  letter-spacing: -0.015em;
}

.hero-land {
  display: block;
  width: 100%;
  height: clamp(170px, 24vw, 360px);
  object-fit: cover;
  object-position: center bottom;
  margin-top: clamp(0.5rem, 2vw, 1.5rem);
}

.hero-water {
  background: var(--lake);
  color: var(--snow);
  padding-block: 0.5rem clamp(3rem, 7vw, 4.5rem);
}

.lead {
  max-width: var(--measure);
  font-size: clamp(1.125rem, 1.6vw, 1.3125rem);
  line-height: 1.55;
  color: var(--snow);
}

.button {
  display: inline-block;
  margin-top: 2.25rem;
  padding: 0.9rem 1.4rem;
  background: var(--spruce);
  color: var(--snow);
  font-weight: 600;
  text-decoration: none;
  border-radius: 3px;
}

.button:hover {
  background: var(--spruce-soft);
}

.button-light {
  background: var(--snow);
  color: var(--spruce);
}

.button-light:hover {
  background: var(--white);
}

.hero-water :focus-visible {
  outline-color: var(--snow);
}

/* Section headings */

section h2 {
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-variation-settings: "wdth" 115;
  letter-spacing: -0.005em;
}

/* Power flow */

.power {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.flow {
  margin: 2.5rem 0 0;
}

.flow svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.flow-v {
  display: none !important;
  max-width: 360px;
}

.flow figcaption {
  max-width: var(--measure);
  margin-top: 2rem;
  color: var(--spruce-soft);
}

.f-label {
  font-family: var(--font);
  font-size: 15px;
  fill: var(--spruce-soft);
}

.f-strong {
  font-weight: 700;
  fill: var(--spruce);
}

.f-muted {
  fill: var(--granite);
}

.f-river {
  fill: none;
  stroke: var(--river);
  stroke-width: 6;
  stroke-linecap: round;
}

.f-link {
  fill: none;
  stroke: var(--spruce);
  stroke-width: 8;
}

.f-fibre {
  fill: none;
  stroke: var(--river);
  stroke-width: 3;
  stroke-dasharray: 2 9;
  stroke-linecap: round;
}

.f-grid {
  fill: none;
  stroke: var(--granite);
  stroke-width: 2;
  opacity: 0.55;
}

.f-station rect {
  fill: var(--snow);
  stroke: var(--spruce);
  stroke-width: 3;
}

.f-station path {
  stroke: var(--river);
  stroke-width: 3;
}

.f-dulabra rect {
  fill: var(--spruce);
}

/* One orchestrated moment: the power path draws in on load */

@media (prefers-reduced-motion: no-preference) {
  .f-river,
  .f-link {
    stroke-dasharray: 1;
    stroke-dashoffset: 1;
    animation: draw 1.1s cubic-bezier(.45, 0, .25, 1) forwards;
  }

  .f-link {
    animation-delay: 1s;
    animation-duration: 0.5s;
  }

  .f-dulabra,
  .f-fibre {
    opacity: 0;
    animation: appear 0.6s ease-out 1.45s forwards;
  }

  .f-fibre {
    animation-delay: 1.75s;
  }
}

@keyframes draw {
  to { stroke-dashoffset: 0; }
}

@keyframes appear {
  to { opacity: 1; }
}

/* Audiences */

.audiences-band {
  background: var(--frost);
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.audiences {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: stretch;
}

.audience {
  min-width: 0;
  border-radius: 6px;
  overflow: hidden;
}

.audience-labrador {
  background: var(--snow);
}

.audience-institutions {
  background: var(--spruce);
  color: var(--snow);
}

.audience-body {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.audience ul {
  margin-top: 1.25rem;
  padding: 0;
  list-style: none;
}

.audience li {
  position: relative;
  padding-left: 1.5rem;
}

.audience li + li {
  margin-top: 0.9rem;
}

.audience li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 0.55rem;
  height: 0.55rem;
  background: var(--lichen);
  border: 1.5px solid var(--spruce-soft);
}

.audience-institutions li::before {
  border-color: var(--lichen);
}

.audience-institutions li {
  color: var(--frost);
}

.audience-institutions :focus-visible {
  outline-color: var(--lichen);
}

/* Strategy */

.strategy {
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.strategy p {
  max-width: var(--measure);
  margin-top: 1.25rem;
}

/* Contact */

.treeline {
  display: block;
  width: 100%;
  height: clamp(56px, 7vw, 100px);
  object-fit: cover;
  object-position: center bottom;
  margin-bottom: -1px;
}

.contact {
  background: var(--spruce);
  color: var(--snow);
  padding-block: clamp(3.5rem, 9vw, 6.5rem);
}

.contact h2 {
  font-size: clamp(2.25rem, 5.5vw, 4.5rem);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
}

.contact p {
  max-width: var(--measure);
  margin-top: 1.25rem;
  color: var(--frost);
}

.email {
  display: inline-block;
  margin-top: 2rem;
  color: var(--lichen);
  font-size: clamp(1.375rem, 3vw, 2rem);
  font-weight: 600;
  overflow-wrap: anywhere;
}

.contact :focus-visible {
  outline-color: var(--lichen);
}

/* Footer */

.site-footer {
  background: var(--spruce);
  color: var(--frost);
  font-size: 0.9375rem;
  padding-bottom: 2rem;
}

.site-footer p {
  padding-top: 1.5rem;
  border-top: 1px solid var(--spruce-soft);
}

/* 404 */

.notfound {
  padding-block: clamp(4rem, 14vw, 9rem);
}

.notfound h1 {
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  font-weight: 800;
  font-variation-settings: "wdth" 125;
}

.notfound p {
  margin-top: 1.5rem;
}

/* Narrow screens */

@media (max-width: 760px) {
  .flow-h {
    display: none !important;
  }

  .flow-v {
    display: block !important;
  }

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

}
