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

File#: _1_chameleonic-header
Title: Chameleonic Header
Descr: Header component whose theme adapts on scroll to the underneath section
Usage: codyhouse.co/license

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

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

@font-face {
    font-family: 'General';
    src: url(./fonts/GeneralSans-Regular.otf);
}

@font-face {
    font-family: 'general_medium';
    src: url(./fonts/GeneralSans-Semibold.otf);
}

* {
    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;
    animation: load 1.5s 0.5s;
}

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%;
}

/* -------------------------------- 
  
  Icons 
  
  -------------------------------- */

.cd-icon {
    --size: 1em;
    font-size: var(--size);
    height: 1em;
    width: 1em;
    display: inline-block;
    color: inherit;
    fill: currentColor;
    line-height: 1;
    flex-shrink: 0;
    max-width: initial;
}

.cd-icon use {
    /* SVG symbols - enable icon color corrections */
    color: inherit;
    fill: currentColor;
}

/* -------------------------------- 
  
  Component 
  
  -------------------------------- */

:root {
    --cha-header-height: 54px;

    /* light theme colors */
    --color-primary: hsl(250, 84%, 54%);
    --color-bg: hsl(0, 0%, 100%);
    --color-contrast-medium: hsl(225, 4%, 47%);
    --color-contrast-high: hsl(230, 7%, 23%);
    --color-contrast-higher: hsl(230, 13%, 9%);
}

[data-theme="dark"] {
    /* update the color variables on dark mode */
    --color-primary: hsl(131, 100%, 21%);
    --color-bg: hsl(232, 11%, 15%);
    --color-contrast-medium: hsl(231, 3%, 57%);
    --color-contrast-high: hsl(240, 5%, 82%);
    --color-contrast-higher: hsl(240, 100%, 99%);
}

@media (min-width: 64rem) {
    :root {
        --cha-header-height: 70px;
    }
}

.cha-header-clip {
    position: absolute;
    z-index: 3;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    -webkit-clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
    pointer-events: none;
}

.cha-section {
    background-color: var(--color-bg);
    color: var(--color-contrast-high);
}

.cha-header {
    height: var(--cha-header-height);
    background-color: var(--color-bg);
    pointer-events: auto;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transform: translateZ(0);
}

.logo {
    font-family: "General" !important;
    text-decoration: none;
}

.cha-header__logo {
    display: block;
    width: 40px;
    height: 40px;
}

.cha-header__nav {
    display: none;
}

.cha-header__nav-list {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.cha-header__nav-list a {
    text-decoration: none;
}

.cha-header__nav-link,
.cha-header__nav-btn {
    font-size: 1rem;
}

.cha-header__nav-link {
    color: var(--color-contrast-higher);
    text-decoration: none;
    transition: opacity 0.3s;
}

.cha-header__nav-link:hover {
    opacity: 0.5;
}

.cha-header__trigger,
.cha-modal__close {
    display: block;
}

.cha-header__trigger .cd-icon,
.cha-modal__close .cd-icon {
    --size: 24px;
    display: block;
    color: var(--color-contrast-higher);
}

.cha-modal {
    position: fixed;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-color: var(--color-bg);
    display: none;
    z-index: 15;
}

.cha-modal__inner {
    height: 100%;
    overflow: auto;
}

.cha-modal__header {
    background-color: var(--color-bg);
    padding: 0 1.5rem;
    position: -webkit-sticky;
    position: sticky;
    z-index: 1;
    top: 0;
    height: var(--cha-header-height);
}

.cha-modal__label {
    color: var(--color-contrast-medium);
}

.cha-modal__nav {
    padding: 3rem 1.5rem;
}

.cha-modal__nav-list {
    display: grid;
    gap: 0.25rem;
}

.cha-modal__nav-link {
    font-size: 1.375rem;
    text-decoration: none;
    display: block;
    color: var(--color-contrast-higher);
    padding: 0.25rem 0;

}

.head-font {
    font-family: 'general_medium';
    font-size: 2rem;
    color: rgb(10, 10, 10) !important;

}

mark {
    background: rgb(255, 223, 44);
}

@media (min-width: 64rem) {
    .cha-header__nav {
        display: block;
    }

    .cha-header__trigger,
    .cha-modal {
        display: none !important;
    }
}

@media (min-width: 100rem) {}

/* -------------------------------- 
  
  Utilities 
  
  -------------------------------- */

.cd-container {
    width: calc(100% - 3rem);
    margin-left: auto;
    margin-right: auto;
}

.cd-max-width-sm {
    max-width: 48rem;
}

.cd-max-width-lg {
    max-width: 120rem;
}

.cd-position-relative {
    position: relative;
}

.cd-padding-y-3xl {
    padding-top: 7rem;
    padding-bottom: 4rem;
}

.cd-padding-y-2xl {
    padding-top: 2rem;
    padding-bottom: 4rem;
}

.cd-height-100\% {
    height: 100%;
}

.cd-flex {
    display: flex;
}

.cd-block {
    display: block;
}

.cd-justify-between {
    justify-content: space-between;
}

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




.container {
    padding-top: 2em;

    margin: 0 auto;
}



h1 span {
    display: block;
    animation: reveal 1.5s cubic-bezier(0.77, 0, 0.175, 1) 0.5s;
    width: 100%;
    font-size: 2rem !important;
}

@keyframes reveal {
    0% {
        transform: translate(100%, 0);
        opacity: 0;
    }

    100% {
        transform: translate(0, 0);
        opacity: 100%;
    }
}


@keyframes load {
    0% {

        opacity: 0;
    }

    100% {

        opacity: 100%;
    }
}


















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

File#: _1_feature-v6
Title: Feature v6
Descr: A section containing a list of features
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%;
}

/* -------------------------------- 
  
  Icons 
  
  -------------------------------- */

.cd-icon {
    --size: 1em;
    font-size: var(--size);
    height: 1em;
    width: 1em;
    display: inline-block;
    color: inherit;
    fill: currentColor;
    line-height: 1;
    flex-shrink: 0;
    max-width: initial;
}

.cd-icon use {
    /* SVG symbols - enable icon color corrections */
    color: inherit;
    fill: currentColor;
}

/* -------------------------------- 
  
  Component 
  
  -------------------------------- */

.feature-v6 {
    position: relative;
    z-index: 1;
}

.feature-v6__grid {
    display: grid;
    gap: 3rem;
}

.feature-v6__grid>* {
    min-width: 0;
}

.feature-v6__img {
    width: 100%;
    border-radius: 0.375em;
    margin-bottom: 1rem;
}

.feature-v6__icon-wrapper {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    box-shadow: 0 0 0 1px hsla(230, 13%, 9%, 0.05);
    background-color: hsl(0, 0%, 100%);
    margin-bottom: 1rem;
}

.feature-v6__icon {
    --size: 24px;
    color: hsl(250, 84%, 54%);
}

.feature-v6__description {
    color: hsl(225, 4%, 47%);
    line-height: 1.58;
}

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

/* -------------------------------- 
  
  Utilities 
  
  -------------------------------- */

.cd-margin-x-auto {
    margin-left: auto;
    margin-right: auto;
}

.cd-margin-bottom-2xs {
    margin-bottom: 0.75rem;

}

.cd-margin-bottom-xs {
    margin-bottom: 1rem;
}

.cd-padding-y-xl {
    padding-top: 4.5rem;
    padding-bottom: 4.5rem;
}

.cd-container {
    width: calc(100% - 3rem);
    margin-left: auto;
    margin-right: auto;
}

.cd-max-width-adaptive-lg {
    max-width: 32rem;
}

@media (min-width: 64rem) {
    .cd-max-width-adaptive-lg {
        max-width: 64rem;
    }
}

@media (min-width: 85.5rem) {
    .cd-max-width-adaptive-lg {
        max-width: 80rem;
    }
}

.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;
    font-family: 'general_medium';


}

.project-link {
    text-decoration: none;
}

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

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





.cssbuttons-io {
    position: relative;
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.05em;
    border-radius: 0.8em;
    border: none;
    background: #ffffff;
    color: rgb(13, 13, 13);
    overflow: hidden;
    margin: 20px 0px 20px 0px;
    border: 1px solid rgb(31, 31, 31);
    border-radius: 25px;
}

.cssbuttons-io i {
    width: 1.2em;
    margin-right: 2em;
}

.cssbuttons-io span {
    position: relative;
    z-index: 10;
    transition: color 0.4s;
    display: inline-flex;
    align-items: center;
    padding: 0.5em 1.0em 0.5em 1.0em;
}

.fa-solid {
    font-size: 1em;
}












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

File#: _2_article
Title: Article
Descr: Article template
Usage: codyhouse.co/license

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

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

body {
    background-color: hsl(0, 0%, 100%);
    font-family: 'general';
    color: hsl(230, 7%, 23%);
    font-size: 1.2rem;
}

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%;
    border-radius: 0.375em;
}

@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 */
    --ad5-color-primary-hsl: 250, 84%, 54%;
    --ad5-color-bg-hsl: 0, 0%, 100%;
    --ad5-color-contrast-high-hsl: 230, 7%, 23%;
    --ad5-color-contrast-higher-hsl: 230, 13%, 9%;
    --ad5-color-contrast-medium-hsl: 225, 4%, 47%;
    --ad5-color-accent-hsl: 342, 89%, 48%;
    --ad5-color-contrast-lower-hsl: 240, 4%, 85%;

    /* spacing */
    --ad5-space-xs: 0.5rem;
    --ad5-space-md: 1.25rem;
    --ad5-space-lg: 2rem;
    --ad5-space-sm: 0.75rem;

    /* typography */
    --ad5-text-md: 1.2rem;
    --ad5-text-base: 1rem;
    --ad5-text-sm: 0.833rem;
    --ad5-text-sm: 0.833rem;
}

@media(min-width: 64rem) {
    :root {
        /* spacing */
        --ad5-space-xs: 0.75rem;
        --ad5-space-md: 2rem;
        --ad5-space-lg: 3.125rem;
        --ad5-space-sm: 1.125rem;

        /* typography */
        --ad5-text-md: 1.5625rem;
        --ad5-text-base: 1.25rem;
        --ad5-text-sm: 1rem;
        --ad5-text-sm: 1rem;
    }
}

/* component */


/* utility classes */
:where(.ad5-media-wrapper-16\:9) {
    position: relative;
    height: 0;
}

.ad5-media-wrapper-16\:9 {
    padding-bottom: 56.25%;
}

.ad5-media-wrapper-16\:9>* {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.ad5-media-wrapper-16\:9>*:not(iframe) {
    object-fit: cover;
}

@media (min-width: 90rem) {
    .ad5-text-component__block--outset {
        width: calc(100% + 12rem);
    }

    .ad5-text-component__block--outset img {
        display: block;
        width: 100%;
    }

    .ad5-text-component__block--outset:not(.ad5-text-component__block--right) {
        margin-left: -6rem;
    }

    .ad5-text-component__block--right.ad5-text-component__block--outset {
        margin-right: -6rem;
    }
}

.ad5-gap-xs {
    gap: var(--ad5-space-xs);
}

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

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

@media (min-width: 48rem) {

    .ad5-text-component__block--left,
    .ad5-text-component__block--right {
        width: 45%;
    }

    .ad5-text-component__block--left img,
    .ad5-text-component__block--right img {
        display: block;
        width: 100%;
    }

    .ad5-text-component__block--left {
        float: left;
        margin-right: calc(var(--ad5-space-sm) * var(--ad5-space-multiplier, 1));
    }

    .ad5-text-component__block--right {
        float: right;
        margin-left: calc(var(--ad5-space-sm) * var(--ad5-space-multiplier, 1));
    }


}

@media (min-width: 90rem) {

    .ad5-text-component__block--left,
    .ad5-text-component__block--right {
        width: 50%;
    }
}

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

.ad5-text-center {
    /* text-align: center; */
}

.ad5-text-gap-md {
    --ad5-space-multiplier: 1.25;
}

.ad5-line-height-lg {
    line-height: 1.58;
}

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

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

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

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

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

.ad5-text-component ul {
    /* list-style-type: disc; */
}

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

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

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

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

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

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

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

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

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

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

.ad5-text-component h2 {
    font-family: "general";
    font-size: 1.5em;
}

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

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

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

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

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

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

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

.ad5-text-component h3 {
    font-family: "general_medium";
    font-size: 1em;
}

.ad5-max-width-adaptive-sm {
    max-width: 22rem;
}

@media(min-width: 48rem) {
    .ad5-max-width-adaptive-sm {
        max-width: 45rem;
    }

    .ad5-max-width-xs {
        max-width: 100%;
    }



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

    .ad5-max-width-xs {
        max-width: 70%;


    }

}


@media(max-width: 418rem) {
    .ad5-container {
        width: calc(85% - 2*var(--ad5-space-md));
        margin-left: auto;
        margin-right: auto;
    }


}









.ad5-container {
    width: calc(100% - 2*var(--ad5-space-md));
    margin-left: auto;
    margin-right: auto;
}

.ad5-radius-lg {
    border-radius: 0.5em;
}

.ad5-width-100\% {
    width: 100%;
}

.ad5-block {
    display: block;
}

.ad5-margin-bottom-lg {
    margin-bottom: var(--ad5-space-lg);
}

.ad5-max-width-lg {
    max-width: 80rem;
}

.ad5-color-contrast-medium {
    --ad5-color-o: 1;
    color: hsla(var(--ad5-color-contrast-medium-hsl), var(--ad5-color-o, 1));
}

.ad5-text-sm {
    font-size: var(--ad5-text-sm);
}

.ad5-text-base {
    font-size: var(--ad5-text-base);
}

.ad5-text-gap-2xs {
    --ad5-space-multiplier: 0.25;
}

.ad5-justify-center {
    justify-content: center;
}

.ad5-flex {
    display: flex;
}

.ad5-text-md {
    font-size: var(--ad5-text-md);
}

.ad5-margin-bottom-md {
    margin-bottom: var(--ad5-space-md);
}



.ad5-padding-y-lg {
    padding-top: var(--ad5-space-lg);
    padding-bottom: var(--ad5-space-lg);
}

.ad5-col-6 {
    grid-column-end: span 6;
}

.head-font {
    font-family: 'General' !important;
}
















#form {
    padding: 20px 0px;
}


#form p {
    font-size: 12px;
    font-family: 'general';
}



.field {
    margin-bottom: 10px;
}

.field label {
    display: block;
    font-size: 12px;
    color: #777;
}

.field input {
    display: block;
    min-width: 250px;
    line-height: 2.5;
    font-size: 12px;
}

input[type="submit"] {
    display: block;
    padding: 6px 30px;
    font-size: 12px;
    /* border: 0.8px solid rgb(31, 31, 31); */
    border-radius: 50px;
    padding: 10px 20px;
    background-color: #1b1b1b;




    color: rgb(255, 255, 255);
    font-family: 'general';


}

.cssbuttons-io {
    position: relative;
    font-family: inherit;
    font-weight: 500;
    font-size: 16px;
    letter-spacing: 0.05em;
    border-radius: 0.8em;
    border: none;
    background: #ffffff;
    color: rgb(13, 13, 13);
    overflow: hidden;
    margin: 20px 0px 20px 0px;
    border: 1px solid rgb(31, 31, 31);
    border-radius: 25px;
}




.field {
    border: 1px solid rgb(197, 197, 197);
    position: relative;
    cursor: pointer;
    border-radius: 5px;
    max-width: 20em;
    margin: 15px 0px 15px 0px;
}

.field input {
    width: 100%;
}

::placeholder {
    padding: 5px;

}





.text {
    color: #fff;

}



.input {
    color: transparent;
    text-shadow: 0 0 0 #00ff37;

    padding: 5px;



    &:focus {
        outline: none;
    }
}

input[type=text] {
    width: 100%;
    padding: 0px 20px;
    /* margin: 8px 0; */
    box-sizing: border-box;
    color: #9b9b9b;

}

#button {
    transition: all 0.6s ease;
}

#button:hover {
    color: white;
    background-color: #1b1b1b;
    transition: all 0.6s ease;




    &:focus {
        outline: none;
    }
}







Components / Newsletter Card Theme: default Info page Compatible with: Any CSS framework Copy: HTML CSS View code Download

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

File#: _1_newsletter-card
Title: Newsletter Card
Descr: A card containing a newsletter form
Usage: codyhouse.co/license

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

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

body {
    background-color: hsl(0, 0%, 100%);
    font-family: system-ui, sans-serif;
    color: hsl(230, 7%, 23%);
    font-size: 1rem;
}

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 */
    --nm2-color-primary-hsl: 250, 84%, 54%;
    --nm2-color-bg-hsl: 0, 0%, 100%;
    --nm2-color-contrast-high-hsl: 230, 7%, 23%;
    --nm2-color-contrast-higher-hsl: 230, 13%, 9%;
    --nm2-color-success-hsl: 170, 78%, 36%;
    --nm2-color-contrast-medium-hsl: 225, 4%, 47%;
    --nm2-color-bg-light-hsl: 0, 0%, 100%;
    --nm2-color-bg-dark-hsl: 240, 4%, 95%;
    --nm2-color-white-hsl: 0, 0%, 100%;
    --nm2-color-primary-darker-hsl: 250, 84%, 38%;
    --nm2-color-primary-light-hsl: 250, 84%, 60%;
    --nm2-color-contrast-lower-hsl: 240, 4%, 85%;
    --nm2-color-contrast-low-hsl: 240, 4%, 65%;
    --nm2-color-accent-hsl: 342, 89%, 48%;

    /* spacing */
    --nm2-space-2xs: 0.375rem;
    --nm2-space-xs: 0.5rem;
    --nm2-space-sm: 0.75rem;
    --nm2-space-md: 1.25rem;

    /* typography */
    --nm2-text-sm: 0.833rem;
    --nm2-text-sm: 0.833rem;
}

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

        /* typography */
        --nm2-text-sm: 1rem;
        --nm2-text-sm: 1rem;
    }
}

/* buttons */
.nm2-btn {
    position: relative;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 1em;
    white-space: nowrap;
    text-decoration: none;
    background: hsl(var(--nm2-color-bg-dark-hsl));
    color: hsl(var(--nm2-color-contrast-higher-hsl));
    cursor: pointer;
    text-decoration: none;
    line-height: 1.2;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    transition: all 0.2s ease;
    will-change: transform;
    padding: var(--nm2-space-2xs) var(--nm2-space-sm);
    border-radius: 0.25em;
}

.nm2-btn:focus-visible {
    box-shadow: 0px 0px 0px 2px hsl(var(--nm2-color-bg-hsl)), 0px 0px 0px 4px hsla(var(--nm2-color-contrast-higher-hsl), 0.15);
    outline: none;
}

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

.nm2-btn--primary {
    background: hsl(var(--nm2-color-primary-hsl));
    color: hsl(var(--nm2-color-white-hsl));
    box-shadow: inset 0px 1px 0px hsla(var(--nm2-color-white-hsl), 0.15), 0px 1px 3px hsla(var(--nm2-color-primary-darker-hsl), 0.25), 0px 2px 6px hsla(var(--nm2-color-primary-darker-hsl), 0.1), 0px 6px 10px -2px hsla(var(--nm2-color-primary-darker-hsl), 0.25);
}

.nm2-btn--primary:hover {
    background: hsl(var(--nm2-color-primary-light-hsl));
    box-shadow: inset 0px 1px 0px hsla(var(--nm2-color-white-hsl), 0.15), 0px 1px 2px hsla(var(--nm2-color-primary-darker-hsl), 0.25), 0px 1px 4px hsla(var(--nm2-color-primary-darker-hsl), 0.1), 0px 3px 6px -2px hsla(var(--nm2-color-primary-darker-hsl), 0.25);
}

.nm2-btn--primary:focus {
    box-shadow: inset 0px 1px 0px hsla(var(--nm2-color-white-hsl), 0.15), 0px 1px 2px hsla(var(--nm2-color-primary-darker-hsl), 0.25), 0px 1px 4px hsla(var(--nm2-color-primary-darker-hsl), 0.1), 0px 3px 6px -2px hsla(var(--nm2-color-primary-darker-hsl), 0.25), 0px 0px 0px 2px hsl(var(--nm2-color-bg-hsl)), 0px 0px 0px 4px hsl(var(--nm2-color-primary-hsl));
}

/* form elements */
.nm2-form-control {
    font-size: 1em;
    padding: var(--nm2-space-2xs) var(--nm2-space-xs);
    background: hsl(var(--nm2-color-bg-dark-hsl));
    line-height: 1.2;
    box-shadow: inset 0px 0px 0px 1px hsl(var(--nm2-color-contrast-lower-hsl));
    transition: all 0.2s ease;
    border-radius: 0.25em;
}

.nm2-form-control::placeholder {
    opacity: 1;
    color: hsl(var(--nm2-color-contrast-low-hsl));
}

.nm2-form-control:focus,
.nm2-form-control:focus-within {
    background: hsl(var(--nm2-color-bg-hsl));
    box-shadow: inset 0px 0px 0px 1px hsla(var(--nm2-color-contrast-lower-hsl), 0), 0px 0px 0px 2px hsl(var(--nm2-color-primary-hsl)), 0 0.3px 0.4px rgba(0, 0, 0, 0.025), 0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
    outline: none;
}

/* icons */
.nm2-icon {
    height: var(--nm2-size, 1em);
    width: var(--nm2-size, 1em);
    display: inline-block;
    color: inherit;
    fill: currentColor;
    line-height: 1;
    flex-shrink: 0;
    max-width: initial;
}

.nm2-icon--xl {
    --nm2-size: 64px;
}

/* component */


/* utility classes */
.nm2-text-sm {
    font-size: var(--nm2-text-sm);
}

.nm2-color-contrast-medium {
    --nm2-color-o: 1;
    color: hsla(var(--nm2-color-contrast-medium-hsl), var(--nm2-color-o, 1));
}

.nm2-margin-top-sm {
    margin-top: var(--nm2-space-sm);
}

.nm2-margin-top-xs {
    margin-top: var(--nm2-space-xs);
}

.nm2-radius-md {
    border-radius: 0.25em;
}

.nm2-padding-xs {
    padding: var(--nm2-space-xs);
}

.nm2-bg-success {
    --nm2-bg-o: 1;
    background-color: hsla(var(--nm2-color-success-hsl), var(--nm2-bg-o, 1));
}

.nm2-gap-2xs {
    gap: var(--nm2-space-2xs);
}

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

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

.nm2-margin-bottom-md {
    margin-bottom: var(--nm2-space-md);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.nm2-margin-bottom-xs {
    margin-bottom: var(--nm2-space-xs);
}

.nm2-margin-x-auto {
    margin-left: auto;
    margin-right: auto;
}

.nm2-max-width-xs {
    max-width: 38rem;
}

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

.nm2-padding-md {
    padding: var(--nm2-space-md);
}

.nm2-shadow-sm {
    box-shadow: 0 0.3px 0.4px rgba(0, 0, 0, 0.025), 0 0.9px 1.5px rgba(0, 0, 0, 0.05), 0 3.5px 6px rgba(0, 0, 0, 0.1);
}

:where(.nm2-inner-glow) {
    position: relative;
}

.nm2-inner-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    pointer-events: none;
    box-shadow: inset 0 0 0.5px 1px hsla(0, 0%, 100%, 0.075);
}

.nm2-bg-light {
    --nm2-bg-o: 1;
    background-color: hsla(var(--nm2-color-bg-light-hsl), var(--nm2-bg-o, 1));
}

.nm2-bg-opacity-20\% {
    --nm2-bg-o: 0.2;
}