/* Normalization ------------------------------------------------------------ */

* {
  box-sizing: border-box;
}

html {
  color: rgba(0, 0, 0, .8);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 16px;
  line-height: 1.45;

  /* Prevent mobile browsers from adjusting text size. */
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;

  /* Render fonts with lighter, sharper shapes. */
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  min-width: 320px;
}

code,
pre {
  font-family: Menlo, Consolas, "Liberation Mono", monospace;
  font-size: .875em;
}

div,
dd,
dl,
dt,
footer,
header,
li,
nav,
p,
section,
ul {
  background: transparent;
  border: 0;
  font-size: 100%;
  list-style: none;
  margin: 0;
  outline: 0;
  padding: 0;
  vertical-align: baseline;
}

/* -------------------------------------------------------------------------- */

h1,
h2,
h3 {
  font-weight: 500;
  line-height: 1.2;
  margin: 1.414em 0 .5em;
}

h1 {
  font-size: 2.441em;
}

h2 {
  font-size: 1.953em;
}

h3 {
  font-size: 1.563em;
}

p {
  margin-bottom: 1.3em;
}

ul {
  list-style: none;
}

.headline--link {
  border: solid 3px #008391;
  border-radius: 8px;
  display: block;
  font-weight: 700;
  margin: 20px 30px 0 0;
  text-align: center;
  text-decoration: none;
  background-color: #fff;
  color: #008391;
  line-height: 30px;
}

.headline--link-img {
  padding: 5px;
  height: 150px;
  width: 150px;
  object-fit: contain;
}

.headline--navtitle {
  width: 100px;
  float: left;
  text-align: left;
  vertical-align: middle;
  line-height: 44px;
  color: rgba(0, 0, 0, .54);
}

.headline--link-label {
  margin-top: 10px;
}

footer {
  background-color: #78746d;
  color: #fff;
  padding: 24px 0 48px;
  position: relative;
}

footer::after {
  background-image: url(/img/sea-plants.svg);
  background-repeat: repeat-x;
  background-size: auto 100%;
  content: "";
  height: 120px;
  position: absolute;
  top: -83px;
  width: 100%;
  z-index: 1;
}

footer a {
  border-bottom: 1px dashed rgba(255, 255, 255, .54);
  color: #f6fdfd;
  text-decoration: none;
}

header {
  background-image: url(/img/cloud.svg);
  background-position: 60% 0;
  background-repeat: no-repeat;
  background-size: 480px;
}

main {
  overflow: hidden;
}

.action--scroll-up {
  animation: pulse 1.5s ease-in-out alternate infinite;
  display: block;
  fill: #fff;
  height: 36px;
  left: 50%;
  position: absolute;
  top: -100px;
  transform: translateX(-50%);
  width: 36px;
}

@keyframes pulse {
  0% {
    opacity: .5;
  }
  100% {
    opacity: 1;
  }
}

.action-icon {
  display: inline-block;
  width: 36px;
  height: 36px;
}

.code--builtin {
  color: #f90;
}

.code--comment {
  color: #8eb4b4;
}

.code--keyword {
  color: #f90;
}

.code--local {
  color: #0ff;
}

.code--operator {
  color: #ff0;
}

.code--package {
  color: #0cf;
}

.code--primitive {
  color: #9ff;
}

.code--rule {
  color: #fc0;
}

.code--string {
  color: #cfc;
}

.content {
  margin: 0 auto;
  padding: 8px 0;
  position: relative;
  width: 960px;
}

.copyright {
  font-size: 13px;
}

.nav--cncf {
  max-width: 100%;
}

.nav--cncf .nav--footer-cncf-logo {
  display: block;
  max-height: 4rem;
  margin-bottom: 3rem;
  max-width: 80%;
}

.example {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  margin: 160px 0;
  position: relative;
}

.example--editor {
  margin: 60px auto;
  width: 640px;
}

.example--editor--body {
  background-color: #05494a;
  border: solid 1px rgba(0, 0, 0, .13333);
  border-bottom-left-radius: 8px;
  border-bottom-right-radius: 8px;
  color: #fff;
  line-height: 20px;
  margin: 0;
  overflow: auto;
  padding: 12px 0 12px 12px;
}

.example--editor--close-button,
.example--editor--minimize-button,
.example--editor--zoom-button {
  background-color: #eee;
  border: solid 1px rgba(0, 0, 0, .13333);
  border-radius: 10px;
  display: inline-block;
  flex-grow: 0;
  flex-shrink: 0;
  height: 12px;
  margin: 11px 8px 11px 0;
  width: 12px;
}

.example--editor--close-button {
  background-color: #fd635f;
}

.example--editor--minimize-button {
  background-color: #febd41;
}

.example--editor--zoom-button {
  background-color: #34c749;
}

.example--editor--title {
  display: block;
  left: 72px;
  line-height: 20px;
  margin: 6px 0 6px 8px;
  overflow: hidden;
  position: absolute;
  right: 36px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.example--editor--titlebar {
  background-color: #ddd;
  border: solid 1px rgba(0, 0, 0, .8);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  color: rgba(0, 0, 0, .8);
  display: flex;
  overflow: hidden;
  padding: 0 12px;
  position: relative;
}

.example--graphic {
  width: 100%;
}

.example--title,
.examples--title,
.traits--title {
  text-indent: -99999em;
  line-height: 0;
  position: absolute;
}

.example--wave--bg {
  background-image: url(/img/wave--headline--fg.svg);
  background-repeat: repeat-x;
  bottom: -160px;
  height: 120px;
  left: -99999px;
  opacity: .13333;
  position: absolute;
  right: -99999px;
  transform: rotate3d(0, 0, 1, -3.35deg);
  z-index: -2;
}

.example--wave--fg {
  background-image: url(/img/wave--examples.svg);
  background-repeat: repeat-x;
  bottom: -167px;
  height: 120px;
  left: -99979px;
  position: absolute;
  right: -99999px;
  transform: rotate3d(0, 0, 1, -3.35deg);
  z-index: -1;
}

.example:nth-of-type(2n) > .example--wave--bg,
.example:nth-of-type(2n) > .example--wave--fg {
  transform: rotate3d(0, 0, 1, 3.35deg);
}

.example:last-of-type > .example--wave--bg,
.example:last-of-type > .example--wave--fg {
  display: none;
}

.examples {
  background-color: #006064;
  color: #fff;
  position: relative;
  z-index: 1;
}

.examples > .content {
  position: relative;
  top: -100px;
}

.examples--wave {
  background-image: url(/img/wave--examples.svg);
  background-repeat: repeat-x;
  height: 120px;
  left: -60px;
  position: absolute;
  right: -60px;
  top: -100px;
  transform: rotate3d(0, 0, 1, 2.35deg);
  z-index: -1;
}

.examples--wave::before {
  background-color: #006064;
  content: "";
  height: 480px;
  position: absolute;
  top: 120px;
  width: 100%;
}

.headline {
  overflow: hidden;
  position: relative;
  padding: 0 0 240px;
}

.headline--subtitle {
  color: rgba(0, 0, 0, .54);
  font-size: 1.25em;
  line-height: 1.2;
  margin-bottom: 48px;
}

.headline--title {
  margin: 64px 0 .25em;
}

.headline--wave--bg {
  background-image: url(/img/wave--headline--bg.svg);
  background-repeat: repeat-x;
  height: 120px;
  left: 0;
  position: absolute;
  right: 0;
  bottom: -60px;
  z-index: -2;
}

.headline--wave--bg::after {
  animation: rock 3s ease-in-out alternate infinite;
  background-image: url(/img/boat.svg);
  background-position: 66.6667% center;
  background-repeat: no-repeat;
  background-size: 320px;
  content: "";
  display: block;
  height: 320px;
  position: relative;
  top: -170px;
  width: 100%;
}

@keyframes rock {
  0% {
    transform: translate(12px, 0) rotate3d(0, 0, 1, -1deg);
  }
  100% {
    transform: translate(-8px, -16px) rotate3d(0, 0, 1, 1.5deg);
  }
}

.headline--wave--fg {
  background-image: url(/img/wave--headline--fg.svg);
  background-repeat: repeat-x;
  height: 120px;
  left: -11px;
  position: absolute;
  right: 0;
  bottom: -90px;
  z-index: -1;
}

.headline--wave--fg::after {
  background-color: #0097a7;
  content: "";
  height: 290px;
  position: absolute;
  top: 110px;
  width: 100%;
}

.nav--banner {
  display: flex;
  justify-content: flex-end;
  margin: 24px;
}

.nav--footer {
  color: #fff;
  margin: 24px 0;
}

.nav--menu {
  display: flex;
  justify-content: flex-start;
}

.nav--menu:first-child {
  flex-grow: 2;
}

.nav--menu-item {
  line-height: 72px;
  margin-right: 16px;
  white-space: nowrap;
}

.nav--menu-item:last-child {
  margin-right: 0;
}

.nav--menu-item.nav--home {
  background-image: url(/img/opa-logo.svg);
  background-repeat: no-repeat;
  background-size: 72px;
  font-size: 22px;
  font-weight: 500;
  flex-grow: 3;
  padding-left: 82px;
}

.nav--menu-item.nav--docs:last-child {
  margin-right: 24px;
}

.nav--menu-item > a {
  color: rgba(0, 0, 0, .54);
  text-decoration: none;
}

.nav--menu-item.nav--home > a {
  color: rgba(0, 0, 0, .8);
}

.nav--social-icon {
  fill: rgba(0, 0, 0, .4);
  height: 32px;
  margin: 20px 0;
  position: relative;
  width: 32px;
}

.nav--footer .nav--menu:first-child {
  flex-grow: 0;
  order: 1;
}

.nav--footer .nav--menu:last-child {
  flex-grow: 0;
  order: 0;
}

.nav--footer .nav--menu-item {
  line-height: 32px;
}

.nav--footer .nav--menu-item.nav--social:last-child {
  margin-right: 24px;
}


.nav--footer .nav--menu-item > a {
  border-bottom: 0;
  color: #f6fdfd;
}

.nav--footer .nav--social-icon {
  fill: #f6fdfd;
  margin: 0;
}

.trait {
  background-repeat: no-repeat;
  background-size: 48px;
  flex-basis: 288px;
  flex-grow: 1;
  margin: 48px 08px 16px;
  padding: 72px 0 0;
}

.trait:first-child {
  margin-right: 16px;
}

.trait:last-child {
  margin-left: 16px;
}

.trait--context-aware {
  background-image: url(/img/context-icon.svg);
}

.trait--declarative {
  background-image: url(/img/declarative-icon.svg);
}

.trait--unified {
  background-image: url(/img/unified-icon.svg);
}

.trait--title {
  font-size: 18px;
  font-weight: 500;
  margin: 0 0 12px;
}

.traits {
  background: rgb(0,151,167);
  background: linear-gradient(180deg, rgba(0,151,167,1) 0%, rgba(0,131,145,1) 50%);
  color: #fff;
  padding-bottom: 160px;
  position: relative;
  z-index: -1;
}

.traits--list {
  display: flex;
  justify-content: space-between;
}

.use-cases {
  background: rgb(233,226,211);
  background: linear-gradient(180deg, rgba(233,226,211,1) 0%, rgba(255,247,231,1) 100%);
  max-width: 100%;
  padding: 0 0 160px 0;
  position: relative;
}

.use-cases--content {
  width: 640px;
}

.use-cases--content::before {
  background-image: url(/img/viking-village.svg);
  background-repeat: no-repeat;
  background-size: contain;
  content: "";
  height: 210px;
  position: absolute;
  right: 40px;
  top: -124px;
  width: 280px;
}

.use-cases--toc {
  display: block;
  margin: 0 0 0 18px;
}

.use-cases--toc--item {
  color: rgba(0, 0, 0, 0.26667);
  display: list-item;
  list-style: disc;
  text-align: -webkit-match-parent;
}

.use-cases--toc--item > a {
  color: #006064;
  text-decoration: none;
}

.use-cases--wave {
  background-image: url(/img/wave--use-cases.svg);
  background-repeat: repeat-x;
  height: 120px;
  left: -60px;
  position: absolute;
  right: -60px;
  top: -40px;
  transform: rotate3d(0, 0, 1, 1.35deg);
  z-index: -1;
}

.use-cases--wave::before {
  background-color: #e9e2d3;
  content: "";
  height: 720px;
  position: absolute;
  top: 120px;
  width: 100%;
}

@media (min-width: 1672px) {
  .example {
    flex-direction: row;
    justify-content: space-between;
  }

  .example + .example {
    margin: 240px 0;
  }

  .example:nth-of-type(2n) {
    flex-direction: row-reverse;
  }

  .example--wave--bg {
    bottom: -240px;
  }

  .example--wave--fg {
    bottom: -247px;
  }

  .example--editor {
    margin: 0;
  }

  .example--graphic {
    width: 960px;
  }

  .examples > .content {
    width: 1624px;
  }
}

@media (max-width: 1007px) {
  #headline--get-started,
  #headline--learn-more {
    border-radius: 4px;
    line-height: 36px;
    margin: 0 12px 0 0;
    text-align: center;
    text-decoration: none;
    width: 120px;
  }

  .content {
    width: auto;
    padding: 8px 24px;
  }

  .headline--title {
    margin: 32px 0 .25em;
  }

  .headline--wave--bg::after {
    background-position: center 51%;
    background-size: 288px;
    width: 100%;
  }
}

@media (max-width: 767px) {
  .example--wave--bg {
    bottom: -100px;
  }

  .example--wave--fg {
    bottom: -107px;
  }

  .nav--banner .nav--menu-item.nav--docs {
    display: none;
  }

  .trait {
    flex-basis: auto;
    margin: 32px 0 16px 0;
    max-width: 480px;
  }

  .trait:first-child {
    margin-right: 0;
  }

  .trait:last-child {
    margin-left: 0;
  }

  .traits {
    padding-bottom: 240px;
  }

  .traits--list {
    flex-direction: column;
  }
}

@media (max-width: 687px) {
  .example--editor {
    width: 100%;
  }

  .example--editor--body {
    font-size: 13px;
  }

  .use-cases--content {
    width: auto;
  }

  .use-cases--content::before {
    right: 20px;
    top: -200px;
  }
}

@media (max-width: 559px) {
  h1 {
    font-size: 1.627em;
  }

  h2 {
    font-size: 1.302em;
  }

  h3 {
    font-size: 1.042em;
  }

  .example--editor--body {
    font-size: 12px;
  }

  .headline--title {
    margin: 32px 0 .6em;
  }

  .nav--banner .nav--menu-item {
    display: none;
  }

  .nav--menu-item.nav--home {
    display: block;
  }

  .nav--footer {
    flex-wrap: wrap;
  }
}
