* {
  box-sizing: border-box;
}

html {
  scroll-behavior: auto;
}

body {
  margin: 0;
  background: #f5f4ef;
  color: #14232c;
  font: 17px/1.6 system-ui,sans-serif;
}

a {
  color: #15586a;
  text-underline-offset: .2em;
}

a:hover {
  color: #092f3a;
}

a:focus-visible,summary:focus-visible {
  outline: 3px solid #ce782a;
  outline-offset: 5px;
}

header,main,footer {
  max-width: 1100px;
  margin: auto;
  padding: 1.3rem 1.5rem;
}

header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  border-bottom: 1px solid #d7dcd8;
}

header a.brand {
  font-weight: 800;
  text-decoration: none;
  color: inherit;
}

nav {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
  font-size: .9rem;
}

h1,h2,h3 {
  line-height: 1.15;
  letter-spacing: -.035em;
}

h1 {
  font-size: clamp(2.4rem,6vw,4.7rem);
  max-width: 900px;
  margin: .7rem 0 1rem;
}

h2 {
  font-size: clamp(1.7rem,4vw,2.8rem);
}

h3 {
  font-size: 1.35rem;
}

p {
  max-width: 760px;
}

.eyebrow {
  font-size: .8rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #536c72;
}

.lead {
  font-size: 1.2rem;
  max-width: 770px;
}

.muted,figcaption,footer {
  color: #53656c;
  font-size: .9rem;
}

.actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: .7rem 1.2rem;
  margin: 1.2rem 0;
}

.button {
  display: inline-block;
  padding: .7rem 1rem;
  border-radius: .35rem;
  background: #164f5d;
  color: white;
  font-weight: 650;
  text-decoration: none;
}

.button:hover {
  color: white;
  background: #113c46;
}

.secondary {
  background: transparent;
  border: 1px solid #adc1c5;
  color: #164f5d;
}

.secondary:hover {
  background: #e4ece9;
  color: #113c46;
}

figure {
  margin: 1.5rem 0;
}

img,video {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: .5rem;
  background: #dce3e0;
}

video {
  width: 100%;
  aspect-ratio: 16/10;
}

figcaption {
  margin-top: .7rem;
}

section {
  scroll-margin-top: 1.5rem;
  margin: 2.5rem 0;
}

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

.card {
  padding: 1.5rem;
  background: #fff;
  border: 1px solid #dce2dc;
  border-radius: .7rem;
}

.card h3 {
  margin-top: .5rem;
}

details {
  border-top: 1px solid #ced8d4;
  margin-top: 1.5rem;
  padding-top: 1rem;
}

summary {
  cursor: pointer;
  font-weight: 650;
}

footer {
  border-top: 1px solid #d7dcd8;
  margin-top: 3rem;
  padding-bottom: 2rem;
}

.loop {
  width: 420px;
}

code {
  font-size: .9em;
  overflow-wrap: anywhere;
}

.showcases:has(>section:target)>section:not(:target) {
  display: none;
}

.showcases>section {
  margin-top: 1rem;
}

li {
  margin: .45rem 0;
}

@media(max-width:650px) {
  body {
    font-size: 16px;
  }
  header,main,footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 1rem;
  }
  .actions {
    gap: .65rem 1rem;
  }
  h1 {
    font-size: 2.55rem;
  }
}

@media(min-width:950px) {
  .hero {
    display: grid;
    grid-template-columns: 1fr 1.15fr;
    align-items: center;
    gap: 2rem;
    margin: 1rem 0;
  }
  .hero h1 {
    font-size: 3.5rem;
  }
  .hero .lead {
    font-size: 1.05rem;
  }
  .hero figure {
    margin: 0;
  }
  .hero img {
    width: 100%;
  }
}
