:root {
  color-scheme: light;
  --ink: #222;
  --body: #333;
  --muted: #777;
  --line: #eee;
  --paper: #fff;
  --accent: #002dff;
  --wrap: 1000px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--body);
  background: var(--paper);
  font-family: "Libre Franklin", "Helvetica Neue", helvetica, arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

a { color: inherit; }

.wrap,
.nav-inner,
.content {
  width: min(var(--wrap), calc(100% - 96px));
  margin-inline: auto;
}

.site-header {
  height: 420px;
  min-height: 420px;
  position: relative;
  background: #fafafa;
  overflow: hidden;
}

.custom-header,
.custom-header-media {
  position: absolute;
  inset: 0;
}

.custom-header-media {
  height: 100vh;
  max-height: 100%;
  overflow: hidden;
}

.custom-header-media::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 78%, rgba(0, 0, 0, 0.3) 100%);
  pointer-events: none;
}

.custom-header-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.site-branding {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  top: 96px;
}

.site-branding .wrap {
  padding-inline: 48px;
}

.brand {
  color: var(--accent);
  display: inline-flex;
  flex-direction: column;
  text-decoration: none;
  text-transform: uppercase;
}

.brand span {
  font-size: clamp(30px, 2.2vw, 36px);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: 0;
}

.brand small {
  margin-top: 3px;
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 400;
  letter-spacing: 0.42em;
}

.site-nav {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  min-height: 72px;
}

.nav-inner {
  display: flex;
  align-items: center;
  min-height: 72px;
  padding-inline: 28px;
  position: relative;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 26px 20px;
}

.site-nav a {
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.site-nav a.active,
.site-nav a:hover {
  color: #767676;
}

.scroll-cue {
  margin-left: auto;
  padding: 20px 0 20px 24px;
  color: #767676;
  font-size: 34px;
  font-weight: 300;
  line-height: 1;
  text-decoration: none;
}

main {
  border-bottom: 1px solid var(--line);
  padding: 88px 0 120px;
}

.content {
  display: grid;
  grid-template-columns: 300px minmax(0, 620px);
  column-gap: 80px;
  align-items: start;
  font-size: 16px;
}

.content > :not(h1) {
  grid-column: 2;
}

.content h1 {
  grid-column: 1;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.content p {
  margin: 0 0 1.5em;
}

.content h2 {
  clear: both;
  margin: 2.2em 0 0.7em;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: 0;
}

.content h2:first-child { margin-top: 0; }

.content div {
  margin-top: 0;
}

.content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto 28px;
}

.content figure {
  margin: 34px 0 60px;
}

.content figcaption {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
}

.alignleft {
  float: left;
  max-width: min(42%, 300px);
  margin: 0 24px 12px 0 !important;
}

.alignright {
  float: right;
  max-width: min(42%, 300px);
  margin: 0 0 12px 24px !important;
}

.has-text-align-right { text-align: right; }

@media (max-width: 900px) {
  .wrap,
  .nav-inner,
  .content {
    width: min(100% - 48px, var(--wrap));
  }

  .site-header {
    height: 320px;
    min-height: 320px;
  }

  .site-branding .wrap {
    padding-inline: 0;
  }

  .site-branding {
    top: 58px;
  }

  .nav-inner {
    flex-wrap: wrap;
    align-content: center;
    gap: 0 4px;
    padding-inline: 0;
  }

  .nav-item > a {
    padding: 14px 12px;
  }

  .site-nav a {
    font-size: 14px;
  }

  .scroll-cue {
    display: none;
  }

  main {
    padding: 64px 0 80px;
  }

  .content {
    display: block;
    font-size: 16px;
  }

  .content h1 {
    margin-bottom: 32px;
  }

  .alignleft,
  .alignright {
    float: none;
    max-width: 100%;
    margin: 10px auto 24px !important;
  }

  .has-text-align-right { text-align: left; }
}