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

File#: _1_feature-v9
Title: Feature v9
Descr: A feature section with 2 blocks
Usage: codyhouse.co/license

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

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

body {
  background: rgb(70,52,69);
  font-family: "Poppins", sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1rem;
  &:before {
    position: absolute;
    z-index: 2;
    top: 0;
    content: "";
    width: 100%;
    height: 100%;
    background: rgb(70,52,69);
    background: -moz-linear-gradient(90deg, rgba(70,52,69,1) 10%, rgba(70,52,69,0) 100%);
    background: -webkit-linear-gradient(90deg, rgba(70,52,69,1) 10%, rgba(70,52,69,0) 100%);
    background: linear-gradient(90deg, rgba(70,52,69,1) 10%, rgba(70,52,69,0) 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#463445",endColorstr="#463445",GradientType=1);
  }
  &:after {
    position: absolute;
    z-index: 1;
    top: 0;
    content: "";
    width: 100%;
    height: 100%;
    background: -moz-linear-gradient(0deg, rgba(255,255,255,0.49763655462184875) 10%, rgba(255,255,255,0) 50%);
    background: -webkit-linear-gradient(0deg, rgba(255,255,255,0.49763655462184875) 10%, rgba(255,255,255,0) 50%);
    background: linear-gradient(0deg, rgba(255,255,255,0.49763655462184875) 10%, rgba(255,255,255,0) 50%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr="#ffffff",endColorstr="#ffffff",GradientType=1);
  }
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.0736rem;
}

h2 {
  font-size: 1.728rem;
}

h3 {
  font-size: 1.25rem;
}

h4 {
  font-size: 1.2rem;
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

a {
  color: hsl(250, 84%, 54%);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

@media (min-width: 64rem) {
  body {
    font-size: 1.25rem;
  }

  h1 {
    font-size: 3.051rem;
  }

    h2 {
    font-size: 2.44rem;
  }

    h3 {
    font-size: 1.75rem;
  }

    h4 {
    font-size: 1.5625rem;
  }
}

/* variables */
:root {
  /* colors */
  --fo2-color-primary-hsl: 250, 84%, 54%;
  --fo2-color-bg-hsl: 0, 0%, 100%;
  --fo2-color-contrast-high-hsl: 230, 7%, 23%;
  --fo2-color-contrast-higher-hsl: 230, 13%, 9%;
  --fo2-color-black-hsl: 230, 13%, 9%;
  --fo2-color-white-hsl: 0, 0%, 100%;
  --fo2-color-accent-hsl: 342, 89%, 48%;
  --fo2-color-contrast-lower-hsl: 240, 4%, 85%;

  /* spacing */
  --fo2-space-xs: 0.5rem;
  --fo2-space-sm: 0.75rem;
  --fo2-space-md: 1.25rem;
  --fo2-space-xl: 3.25rem;

  /* typography */
  --fo2-text-2xl: 2.0736rem;
  --fo2-text-sm: 0.833rem;
}

@media(min-width: 64rem){
  :root {
    /* spacing */
    --fo2-space-xs: 0.75rem;
    --fo2-space-sm: 1.125rem;
    --fo2-space-md: 2rem;
    --fo2-space-xl: 5.125rem;

    /* typography */
    --fo2-text-2xl: 3.051rem;
    --fo2-text-sm: 1rem;
  }
}

/* component */
.feature-v9:hover .feature-v9__block:not(:hover) .feature-v9__content {
  opacity: 0.5;
}
.feature-v9:hover .feature-v9__block:not(:hover)::after {
  background-color: hsla(var(--fo2-color-black-hsl), 0.8);
  -webkit-backdrop-filter: grayscale(100%);
          backdrop-filter: grayscale(100%);
}

.feature-v9__block {
  position: relative;
  display: flex;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  padding: var(--fo2-space-xl) var(--fo2-space-md);
  min-height: 50vh;
}
.feature-v9__block::before, .feature-v9__block::after {
  content: "";
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 0;
  width: 100%;
  transition: 0.2s;
}
.feature-v9__block:hover .feature-v9__content {
  -webkit-transform: translateY(-10px);
          transform: translateY(-10px);
}
@media (min-width: 48rem) {
  .feature-v9__block {
    min-height: 50vh;
  }
}
@media (min-width: 64rem) {
  .feature-v9__block {
    min-height: 100vh;
  }
}
@media (min-width: 80rem) {
  .feature-v9__block {
    min-height: 100vh;
  }
}

.feature-v9__content {
  position: relative;
  z-index: 2;
  color: hsl(var(--fo2-color-white-hsl));
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  margin: auto auto 0;
  transition: 0.2s;
}

.feature-v9__link {
  color: hsl(var(--fo2-color-black-hsl));
  text-decoration: none;
  display: inline-block;
  padding: var(--fo2-space-xs) var(--fo2-space-md);
  background-color: hsla(var(--fo2-color-white-hsl), 0.8);
  border-radius: 0.25em;
  -webkit-backdrop-filter: blur(5px);
          backdrop-filter: blur(5px);
  transition: background-color 0.2s;
}
.feature-v9__link:hover {
  background-color: hsla(var(--fo2-color-white-hsl), 1);
}

/* utility classes */
.fo2-margin-top-sm {
  margin-top: var(--fo2-space-sm);
}

.fo2-opacity-90\% {
  opacity: 0.9;
}

.fo2-color-inherit {
  color: inherit;
}

.fo2-text-2xl {
  font-size: var(--fo2-text-2xl);
}

.fo2-text-component :where(h1, h2, h3, h4) {
  line-height: var(--fo2-heading-line-height, 1.2);
  margin-top: calc(var(--fo2-space-md) * var(--fo2-space-multiplier, 1));
  margin-bottom: calc(var(--fo2-space-sm) * var(--fo2-space-multiplier, 1));
}

.fo2-text-component :where(p, blockquote, ul li, ol li) {
  line-height: var(--fo2-body-line-height, 1.4);
}

.fo2-text-component :where(ul, ol, p, blockquote, .fo2-text-component__block) {
  margin-bottom: calc(var(--fo2-space-sm) * var(--fo2-space-multiplier, 1));
}

.fo2-text-component :where(ul, ol) {
  padding-left: 1.25em;
}

.fo2-text-component ul :where(ul, ol), .fo2-text-component ol :where(ul, ol) {
  padding-left: 1em;
  margin-bottom: 0;
}

.fo2-text-component ul {
  list-style-type: disc;
}

.fo2-text-component ol {
  list-style-type: decimal;
}

.fo2-text-component img {
  display: block;
  margin: 0 auto;
}

.fo2-text-component figcaption {
  margin-top: calc(var(--fo2-space-xs) * var(--fo2-space-multiplier, 1));
  font-size: var(--fo2-text-sm);
  text-align: center;}

.fo2-text-component em {
  font-style: italic;
}

.fo2-text-component strong {
  font-weight: bold;
}

.fo2-text-component s {
  text-decoration: line-through;
}

.fo2-text-component u {
  text-decoration: underline;
}

.fo2-text-component mark {
  background-color: hsla(var(--fo2-color-accent-hsl), 0.2);
  color: inherit;
}

.fo2-text-component blockquote {
  padding-left: 1em;
  border-left: 4px solid hsl(var(--fo2-color-contrast-lower-hsl));
  font-style: italic;
}

.fo2-text-component hr {
  margin: calc(var(--fo2-space-md) * var(--fo2-space-multiplier, 1)) auto;
  background: hsl(var(--fo2-color-contrast-lower-hsl));
  height: 1px;
}

.fo2-text-component > *:first-child {
  margin-top: 0;
}

.fo2-text-component > *:last-child {
  margin-bottom: 0;
}

.fo2-text-component.fo2-line-height-xs {
  --fo2-heading-line-height: 1;
  --fo2-body-line-height: 1.1;
}

.fo2-text-component.fo2-line-height-sm {
  --fo2-heading-line-height: 1.1;
  --fo2-body-line-height: 1.2;
}

.fo2-text-component.fo2-line-height-md {
  --fo2-heading-line-height: 1.15;
  --fo2-body-line-height: 1.4;
}

.fo2-text-component.fo2-line-height-lg {
  --fo2-heading-line-height: 1.22;
  --fo2-body-line-height: 1.58;
}

.fo2-text-component.fo2-line-height-xl {
  --fo2-heading-line-height: 1.3;
  --fo2-body-line-height: 1.72;
}

.fo2-max-width-3xs {
  max-width: 26rem;
}

.fo2-text-center {
  text-align: center;
}

.fo2-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
}

.fo2-grid > * {
  min-width: 0;
  grid-column-end: span 12;
}

@media(min-width: 64rem){
  .fo2-col-6\@md {
    grid-column-end: span 6;
  }
}
/* --------------------------------

File#: _1_boxed-feature
Title: Boxed Feature
Descr: Feature section with a "boxed" layout
Usage: codyhouse.co/license

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

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

* {
  font: inherit;
  margin: 0;
  padding: 0;
  border: 0;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  background-color: hsl(0, 0%, 100%);
  font-family: system-ui, sans-serif;
  color: hsl(230, 7%, 23%);
  font-size: 1.125rem; /* 18px */
  line-height: 1.4;
}

h1, h2, h3, h4 {
  line-height: 1.2;
  color: hsl(230, 13%, 9%);
  font-weight: 700;
}

h1 {
  font-size: 2.5rem; /* 40px */
}

h2 {
  font-size: 2.125rem; /* 34px */
}

h3 {
  font-size: 1.75rem; /* 28px */
}

h4 {
  font-size: 1.375rem; /* 22px */
}

ol, ul, menu {
  list-style: none;
}

button, input, textarea, select {
  background-color: transparent;
  border-radius: 0;
  color: inherit;
  line-height: inherit;
  -webkit-appearance: none;
          appearance: none;
}

textarea {
  resize: vertical;
  overflow: auto;
  vertical-align: top;
}

a {
  color: hsl(250, 84%, 54%);
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

img, video, svg {
  display: block;
  max-width: 100%;
}

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

Buttons

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

.cd-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  white-space: nowrap;
  text-decoration: none;
  padding: 0.5rem 1rem;
  border-radius: 0.375em;
  font-size: 1em;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
  transition: 0.2s;
  will-change: transform;
}

.cd-btn:focus-visible {
  outline: none;
}

.cd-btn:active {
  transform: translateY(2px);
}

.cd-btn--primary {
  background: hsl(250, 84%, 54%);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15),
              0 1px 3px hsla(250, 84%, 38%, 0.25),
              0 2px 6px hsla(250, 84%, 38%, 0.1),
              0 6px 10px -2px hsla(250, 84%, 38%, 0.25);
  color: hsl(0, 0%, 100%);
}

.cd-btn--primary:hover {
  background: hsl(250, 84%, 60%);
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15),
              0 1px 2px hsla(250, 84%, 38%, 0.25),
              0 1px 4px hsla(250, 84%, 38%, 0.1),
              0 3px 6px -2px hsla(250, 84%, 38%, 0.25);
}

.cd-btn--primary:focus-visible {
  box-shadow: inset 0 1px 0 hsla(0, 0%, 100%, 0.15),
              0 1px 2px hsla(250, 84%, 38%, 0.25),
              0 1px 4px hsla(250, 84%, 38%, 0.1),
              0 3px 6px -2px hsla(250, 84%, 38%, 0.25),
              0 0 0 2px hsl(0, 0%, 100%),
              0 0 0 4px hsl(250, 84%, 54%);
}

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

Component

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

.boxed-feature {
  background-color: hsl(0, 0%, 100%);
  box-shadow: 0 0.9px 1.25px hsla(230, 13%, 9%, 0.025),
              0 3px 5px hsla(230, 13%, 9%, 0.05),
              0 12px 20px hsla(230, 13%, 9%, 0.09);
}

.boxed-feature__grid {
  display: grid;
}

.boxed-feature__grid > * {
  min-width: 0;
}

.boxed-feature__content {
  display: grid;
  grid-auto-rows: min-content;
  align-items: center;
  align-content: center;
  padding: 1.5rem;
  gap: 1rem;
}

.boxed-feature__title {
  font-size: 2.125rem;
}

.boxed-feature__description {
  color: hsl(225, 4%, 47%);
}

.boxed-feature__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.boxed-feature__img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

@media (min-width: 64rem) {
  .boxed-feature__grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* --invert at medium breakpoint */
  .boxed-feature--invert\@md .boxed-feature__grid > *:first-child {
    order: 2;
  }
}

@media (min-width: 85.5rem) {
  .boxed-feature__content {
    padding: 3rem;
  }
}

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

Utilities

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

.cd-link {
  color: hsl(250, 84%, 54%);
  text-decoration: none;
  background-image: linear-gradient(to right, hsl(250, 84%, 54%) 50%, hsla(250, 84%, 54%, 0.2) 50%);
  background-size: 200% 1px;
  background-repeat: no-repeat;
  background-position: 100% 100%;
  transition: background-position 0.2s;
}

.cd-link:hover {
  background-position: 0% 100%;
}

.cd-link--contrast-higher {
  color: hsl(230, 13%, 9%);
  background-image: linear-gradient(to right, hsl(230, 13%, 9%) 50%, hsla(230, 13%, 9%, 0.1) 50%);
}

.cd-text-center {
  text-align: center;
}

.cd-flex-center {
  justify-content: center;
  align-items: center;
}
