:root {
  --white: #FFFFFF;
  --salmon: #F2786C;
  --gray: #9A9A9A;
  --charcoal: #2A2C2F;
  --margin-side: 32px;
}

* { box-sizing: border-box; }

html,
body {
  margin: 0;
  background-color: var(--white);
  color: var(--charcoal);
  font-family: 'Inconsolata', monospace;
  -webkit-tap-highlight-color: transparent;
}

::-moz-selection {
  background-color: var(--salmon);
  color: black;
}

::selection {
  background-color: var(--salmon);
  color: black;
}

html body h1 {
  font-size: 32px;
  font-weight: bold;
  margin: 0.8em 0 0.8em 0;
}

html body h2 {
  font-size: 28px;
  font-weight: bold;
  margin: 0.8em 0 0.8em 0;
}

html body h3 {
  font-size: 28px;
  font-weight: bold;
  margin: 0.8em 0 0.8em 0;
}

html body h4 {
  font-size: 14px;
  font-weight: normal;
  line-height: 1.2em;
  margin: 0.8em 0 0.8em 0;
}

html body p {
  font-size: 14px;
  line-height: 1.1em;
  margin: 1em 0 1em 0;
}

html body a:link,
html body a:visited {
  color: black;
}
html body a:hover {
  color: var(--salmon);
}
html body a span {
  color: var(--charcoal);
}

.salmon {
  color: var(--salmon);
}

.salmon::-moz-selection {
  background-color: var(--salmon);
  color: white;
}

.salmon::selection {
  background-color: var(--salmon);
  color: white;
}

.weak {
  font-weight: 400;
}

.center {
  text-align: center;
}

/* Header icon */
.header-icon img {
  width: 36px;
  height: 36px;
  margin-right: 16px;
}

.header-icon {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.header-icon-align {
  margin-left: 52px;
}

/* Sections */

section.frame {
  padding: 72px 0;
}

section.small-frame {
  padding: var(--margin-side) 0;
}

section.separator-bottom {
  border-bottom-color: var(--salmon);
  border-bottom-style: solid;
  border-bottom-width: 8px;
}

section.footer {
  padding: 16px 0;
}

.content {
  margin-left: var(--margin-side);
  margin-right: var(--margin-side);
}

.space-bottom {
  margin-bottom: 48px;
}

.space-top {
  margin-top: 48px;
}

ul {
  padding-left: 26px;
}

/* Sections with dark theme */

section.dark {
  color: var(--gray);
  background: var(--charcoal);
}

section.dark ::-moz-selection {
  background-color: black;
  color: var(--salmon);
}

section.dark ::selection {
  background-color: black;
  color: var(--salmon);
}

section.dark strong,
section.dark h1,
section.dark h2,
section.dark h3 {
  color: white;
}

section.dark a:link,
section.dark a:visited {
  color: white;
}
section.dark a:hover {
  color: var(--salmon);
}
section.dark a span {
  color: white;
}

/* Menu */

#actionbar-mobile {
  background: white;
  position: fixed;
  width: 100%;
  top: 0;
  height: 64px;
  overflow: hidden;
  z-index: 1000;
  transition: height 0.25s ease-in, background-color 0.25s ease-in 0.25s;
}

#actionbar-mobile-space {
  margin-top: 64px;
}

#actionbar-mobile.open {
  background: var(--charcoal);
  height: 100vh;
  transition: height 0.25s ease-in 0.25s, background-color 0.25s ease-in;
}

#actionbar-mobile .header {
  display: flex;
  align-items: center;
  padding: 0 var(--margin-side);
  height: 64px;
}

#actionbar-mobile .header .logo {
  display: block;
  margin: auto;
}

#menu-dropdown {
  text-align: center;
}

#menu-dropdown a:link,
#menu-dropdown a:visited {
  color: transparent;
}

#menu-dropdown a:hover {
  color: var(--salmon);
}

/* Menu Desktop */

#actionbar {
  display: none;
  align-items: center;
  height: 170px;
}

#actionbar .space {
  flex: 1;
}

#actionbar p {
  margin-left: 32px;
}


/* Hamburger icon */

#nav-icon {
  display: block;
  position: absolute;
  width: 24px;
  height: 18px;
  cursor: pointer;
}

#nav-icon span {
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  background: black;
  left: 0;
  border-radius: 2px;
  transform: rotate(0deg);
  transition: .25s ease-in-out;
}

#nav-icon span:nth-child(1) {
  top: 0px;
}

#nav-icon span:nth-child(2),
#nav-icon span:nth-child(3) {
  top: 8px;
}

#nav-icon span:nth-child(4) {
  top: 16px;
}

#nav-icon.open span {
  background: white;
}

#nav-icon.open span:nth-child(1) {
  top: 8px;
  width: 0%;
  left: 50%;
  opacity: 0;
}

#nav-icon.open span:nth-child(2) {
  transform: rotate(45deg);
}

#nav-icon.open span:nth-child(3) {
  transform: rotate(-45deg);
}

#nav-icon.open span:nth-child(4) {
  top: 8px;
  width: 0%;
  left: 50%;
  opacity: 0;
}

/* Carousel */

.carousel {
  margin: 16px 0;
}

.carousel img {
  display: block;
  height: 360px;
  filter: grayscale(100%);
  opacity: 0.3;
  transition: opacity 0.3s, filter 0.3s;
}

.carousel img.is-selected {
  filter: none;
  opacity: 1;
}

.carousel .flickity-page-dots {
  bottom: -6px;
}

.carousel .flickity-page-dots .dot {
  width: 6px;
  height: 6px;
  background: #999999;
}

.carousel .flickity-button {
  display: none;
}

.carousel .flickity-prev-next-button.next {
  right: 20px;
}

.carousel .flickity-prev-next-button.previous {
  left: 20px;
}

/* Stike */

.strike {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

div.strike hr {
  border: none;
  flex: 1;
  margin-left: 16px;
  height: 2px;
  color: var(--salmon);
  background-color: var(--salmon);
}

.item {
  margin-bottom: 32px;
}

/* Responsive */

/* Phone */
@media only screen and (max-width : 719px) {
  section.small-frame .strike {
    margin-right: calc(-1 * var(--margin-side));
  }
}

/* Tablet */
@media only screen and (min-width : 720px) and (max-width : 1024px) {
  :root {
    --margin-side: 48px;
  }

  .grid {
    display: grid;
    grid-template-columns: 50fr 50fr;
    grid-template-rows: auto;
    grid-column-gap: 32px;
    grid-row-gap: 16px;
  }

  .grid h3 {
    margin-top: 14px;
  }

  .content {
    margin: 0 auto;
    max-width: 624px;
  }

  /* Carousel */

  .carousel {
    margin: 32px 0;
  }

  .carousel img {
    height: 460px;
  }

  .carousel .flickity-button {
    display: initial;
  }

}

/* Desktop */
@media only screen and (min-width : 1025px) {
  :root {
    --margin-side: 90px;
  }

  .grid {
    display: grid;
    grid-template-columns: 25fr 25fr 25fr 25fr;
    grid-template-rows: auto;
    grid-column-gap: 32px;
    grid-row-gap: 16px;
  }

  .grid h3 {
    margin-top: 14px;
  }

  .content {
    margin: 0 auto;
    max-width: 845px;
  }

  html body h1 {
    font-size: 48px;
  }

  html body h2 {
    font-size: 40px;
  }

  html body h3 {
    font-size: 28px;
  }

  html body h4 {
    font-size: 18px;
    line-height: 1.4em;
  }

  html body p {
    line-height: 1.3em;
  }

  section.frame {
    padding: 106px 0;
  }

  section.footer {
    padding: 32px 0;
  }

  .space-bottom {
    margin-bottom: 84px;
  }

  .space-top {
    margin-top: 84px;
  }

  .strike {
    margin-bottom: 32px;
  }

  /* Desktop Menu */

  #actionbar-mobile {
    display: none;
  }

  #actionbar-mobile-space {
    margin-top: 0;
  }

  #actionbar {
    display: flex;
  }

  /* Carousel */

  .carousel {
    margin: 32px 0;
  }

  .carousel img {
    height: 640px;
  }

  .carousel .flickity-button {
    display: initial;
  }

  .carousel .flickity-prev-next-button.next {
    right: 30px;
  }

  .carousel .flickity-prev-next-button.previous {
    left: 30px;
  }

}
