
:root {
    --hue-base: 200;
    --hue-contrast: 44;
    --clr-background: hsl(var(--hue-base), 25%, 10%);
    --clr-foreground: hsl(var(--hue-base), 15%, 80%);
    --clr-base-darkest: hsl(var(--hue-base), 30%, 10%);
    --clr-base-dark: hsl(var(--hue-base), 40%, 15%);
    --clr-base: hsl(var(--hue-base), 50%, 35%);
    --clr-base-light: hsl(var(--hue-base), 60%, 80%);
    --clr-base-lightest: hsl(var(--hue-base), 70%, 90%);
    --clr-fade-darkest: hsl(var(--hue-base), 20%, 10%);
    --clr-fade-dark: hsl(var(--hue-base), 20%, 25%);
    --clr-fade: hsl(var(--hue-base), 20%, 40%);
    --clr-fade-light: hsl(var(--hue-base), 15%, 60%);
    --clr-fade-lightest: hsl(var(--hue-base), 10%, 75%);
    --clr-contrast-darkest: hsl(var(--hue-contrast), 60%, 60%);
    --clr-contrast-dark: hsl(var(--hue-contrast), 60%, 60%);
    --clr-contrast: hsl(var(--hue-contrast), 30%, 60%);
    --clr-contrast-light: hsl(var(--hue-contrast), 50%, 85%);
    --clr-contrast-lightest: hsl(var(--hue-contrast), 75%, 90%);
    --clr-success: #22AE73;
    --clr-danger: hsl(348, 75%, 50%);
    --clr-danger-dark: hsl(348, 50%, 15%);
    --clr-danger-light: hsl(348, 50%, 85%);
    
    /* FONTS */
    --font-sans: source-sans-3, sans-serif;
    --font-serif: source-serif-4-display, serif;
    --font-script: lindsey-signature, serif;
    --font-size-min: 15px;
    --font-size-max: 22px;
    --font-size-calc: calc(calc(0.5vh + 0.25vw) + 10px);
    --font-size-clamp: clamp(var(--font-size-min), var(--font-size-calc), var(--font-size-max));
    --line-height: 1.75;
    --letter-spacing: 0.055em;
}

* {
    box-sizing: border-box;
}

html {
    font-size: var(--font-size-min);
    font-size: var(--font-size-calc);
    font-size: var(--font-size-clamp);
    scroll-behavior: smooth;
}


body {
    margin: 0;
    padding: 0;
    font-weight: 300;
    color: var(--clr-foreground);
    font-family: var(--font-sans);
    line-height: var(--line-height);
    letter-spacing: var(--letter-spacing);
    background: var(--clr-background);
    overflow: hidden scroll;
    -webkit-backface-visibility: hidden;
}

header {}
main {}

section {
    padding: 2rem 0;
}

footer {
    padding-top: 2rem;
}

.copyright {
    color: var(--clr-fade);
    font-size: max(13px, 0.65rem);
    font-weight: 300;
    margin: 0;
}

/* NAVIGATION */

nav.social {
    display: flex;
    justify-content: center;
    margin: 2rem 0;
}

nav.social a {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0.25rem;
    padding: 0.15rem;
    overflow: hidden;
    border-radius: 50%;
    background: var(--clr-fade-dark);
    transition: all 0.5s ease-out;
    /* opacity: 0.5; */
}

nav.social a img {
    display: block;
    width: 2rem;
    height: 2rem;
    opacity: 0.75;
}

nav.social a:hover {
    opacity: 1;
    background: var(--clr-fade-light);
    transform: rotate(360deg);
}



/* CONTAINER */

.container {
    width: 40rem;
    max-width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
}

.container.narrow {
    width: 26rem;
}

.container.wide {
    width: 54rem;
}

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

/* CARD - REFACTOR (checkout specific) */

.card {
    width: 100%;
    margin: 0 auto;
    border-radius: 15px;
    background: hsl(200,50%,5%);
    color: hsl(200, 10%, 75%);
    position: relative;
}

.flex-row {
    padding: 1.5rem 0;
}

.flex-row > .container {
    padding: 0 1.5rem;
}

@media (min-width: 60rem) {
    
    .card {
        max-width: 54rem;
    }

    .flex-row {
        display: flex;
        flex-direction: row;
    }

    .flex-row.reverse {
        flex-direction: row-reverse; 
    }

    .flex-1 { flex: 1; }
    .flex-2 { flex: 2; }
    .flex-3 { flex: 3; }

    .flex-row > .container,
    .flex-row > .container.narrow {
        max-width: unset;
    }

    .flex-row:not(.reverse) > div:not(:last-child),
    .flex-row.reverse > div:not(:first-child) {
        border-right: 1px solid hsl(200, 50%, 10%);
    }

}



/* FONTS */

h1 {
    font-size: 2rem;
    margin: 1em 0 0.5em 0;
}

h2 {
    font-size: 1.5rem;
    margin: 3em 0 0.5em 0;
}

h2:first-child {
    margin-top: 1.5em;
}

h3 {
    font-size: 1.25rem;
    margin: 2em 0 0 0;
}

h3 ~ p {
    margin-top: 0;
}

h4 {
    font-size: 1.1rem;

}

h5 {
    font-size: 1rem;

}

h6 {
    font-size: 1rem;

}

p {
    margin: 1.5em 0;
}

a {
    color: currentColor;    
    text-decoration: none;
}

strong {
    font-weight: 600;
}

strong.more {
    font-weight: 900;
}

.focus {
   color: var(--clr-contrast-dark);
}

.small {
    font-size: 0.85em;
}

p.small > img:only-child {
    width: 50%;
}

.smaller {
    font-size: 0.65em;
}

.large {
    font-size: 1.5em;
    line-height: 1.5;
}

.larger {
    font-size: 2.5em;
    line-height: 1.35;
}

.largest {
    font-size: 3.5em;
    line-height: 1.2;
}

.fade {
    opacity: 0.5;
}

.faded {
    color: var(--clr-fade);
}

.hand {
    font-family: var(--font-script);
}

.signature {
    font-size: 2em;
    line-height: 1;
    margin: 0 0 2em 0.5em;
    transform: rotate(-3deg);
    font-family: var(--font-script);
}

ul {
    list-style: disc;
    margin: 1em 3em;
    padding: 0;
}

ul li {
    margin: 1em 0;
    padding: 0 0 0 1em;
    position: relative;
}

ul.checklist li::marker,
li.check::marker {
    content:"✔";
    color: var(--clr-contrast-dark);
}

dl {
    display: grid;
    grid-template-columns: 50% auto;
}

dt {
    text-transform: uppercase;
    font-size: 0.75em;
    font-weight: 900;
    opacity: 0.5;
    margin: 0.44em 0.25rem 0 0;
    text-align: right;
}

dd {
    display: inline-block;
    font-size: 0.85em;
    font-weight: 600;
    margin: 0.25em 0 0 0.25rem;
    text-align: left;
}


.video-player {
    width: 100%;
    max-width: 25rem;
    aspect-ratio: 16/9;
    border-radius: .5rem;
    overflow: hidden;
    margin: 4rem auto;
    box-shadow: 0 0 .5rem black, 0 0 4rem var(--clr-base);
}

.video-player.wide {
    width: calc(100% + 3rem);
    margin: 1rem -1.5rem;
}

.video-player > iframe {
    width: 100%;
    aspect-ratio: 16/9;
}


blockquote {
    display: block;
    width: 100vw;
    margin: 2.5em calc(50% - 50vw);
    padding: 1.5em;
    font-size: clamp(20px, 3vw, 3rem);
    font-weight: 900;
    line-height: 1.25em;

    /* Background stuff */
    position: relative;
    isolation: isolate;
    transform: translateZ(500px);
}

blockquote p {
    max-width: 44ch;
    text-align: center;
    margin: 0 auto;
}

blockquote strong {
    font-weight: 900;
    color: var(--clr-contrast-dark);
}


p img {
    display: block;
    width: 100%;
    max-width: 460px;
    margin: 1.5rem auto;
    border-radius: 10px;
}

p > img:only-child {
    margin: 3rem auto;
}

.marked p:first-child img {
    max-width: none;
}



/* BUTTONS */

.button {
    font-size: .9rem;
    line-height: 2;
    margin: 1em 0;
    border: none;
    outline: none;
    display: inline-block;
    text-decoration: none;
    text-transform: uppercase;
    padding: 0.85em 2em 0.75em;
    background: var(--clr-contrast-dark);
    color: var(--clr-background);
    letter-spacing: 0.1em;
    font-weight: 600;
    border-radius: 4px;
}





/* 
Navigation is built desktop first as most elements have the least styling there.
*/

header nav{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    padding-block: 2rem;
}

.nav-link {
    color: var(--clr-foreground);
    outline: none;
    text-decoration: none;
    margin: 0.5em;
    padding: 0.5em .25em;
    letter-spacing: .25em;
    opacity: 0.75;
    font-weight: 400;
    text-transform: uppercase;
    border-bottom: 3px solid transparent;
}

.nav-link.active {
    opacity: 1;
    pointer-events: none;
    color: var(--clr-contrast-dark);
    border-bottom: 3px solid currentColor;
}

.nav-link:hover {
    opacity: 1;
    text-decoration: none;
}

.font-replace--chrysalis {
    display: inline-block;
    margin-right: .2em;
    width: 1.5em;
    height: 1.5em;
    color: transparent;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
    background-image: url('../assets/chrysalis-64.png');
}