:before *:after {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
    height: 950dvh;
}

body {
    margin: 0;
    /* min-height : 100dvh;*/
    background-color: aqua;
}

.wrapper {
    display: grid;
    width: auto;
    border: white solid 2px;
    border-radius: 10px;
    background: #733426;
    margin-top: 10px;
    margin-bottom: 10px;
}

header {
    display: flex;
    border-radius: 10px;
    border: yellow solid 2px;
    margin: auto;
    box-shadow: 0 2px 4px rgb(0, 0, 0, 0.8) inset;
}

header h1 {
    flex: 1 1 auto;
    margin: 0;
    color: #fff;
    line-height: 4;
    text-align: center;
    letter-spacing: 4px;
    text-shadow: 0 -2px 2px rgb(0, 0, 0, 0.6);
    background: linear-gradient(to bottom, hsl(54 34% 25% / 0.822) 1px, hsl(259 39% 89% / 0.7) 2px, rgb(8, 32, 33, 0.504)) transparent;
    border-top-left-radius: 10px;
    border-top-right-radius: 10px;
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}

header h1 sup {
    font-size: 0.6em;
    font-weight: bold;
}

.nav-main {
    position: static;
    background-color: lightblue;
    margin-right: auto;
    top: 76px;
    left: 0;
    line-height: 0;
}

/**
     * Nav Main Menu Toggle
     * Button Element
     * no background
     * no border
     * cursor pointer - show pointer on hover
     */
.nav-main-menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 0;
}

/** 
     * SET SVG TRANSFORMS
     * based on individual elements not SVG box 
     */
.nav-main-menu-toggle svg * {
    transform-box: fill-box;
}

/** 
     * HAMBURGER MENU ICON 
     * 3 RECTANGLES
     * set transition properties
     * set transform origin x and y to center
     * - rotate and translate will be based on center
     */
.nav-main-menu-toggle rect:nth-child(1) {
    transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(2) {
    transition: all 2.25s linear;
    transform-origin: center;
}

.nav-main-menu-toggle rect:nth-child(3) {
    transition: all 2s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    transform-origin: center;
}

/**
     * JAVASCRIPT WILL ADD 
     * - aria-expanded="true" 
     * - to .nav-main-menu-toggle 
     * turn hamburger menu into X
     * turn units are same as rotate in degrees
     * scale will make middle rectangle disappear
     */
.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(1) {
    rotate: 45deg;
    translate: 0 10px;
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(2) {
    rotate: 0deg;
    translate: 0 10;
}

.nav-main-menu-toggle[aria-expanded="true"] rect:nth-child(3) {
    rotate: -45deg;
    translate: 0 -10px;
}

/* END - .nav-main-menu-toggle */

/**
     * Nav Main Menu - the UL
     * transform translateX -100%
     * - move off screen
     * - negative move away from element
     * - positive move toward element
     * - translate percentage based on width of element
     * - not the parent element
     * position absolute
     * width 100vw
     * height 100vh
     * remove default margin and padding
     * remove list style
     * display flex
     * flex direction column
     * visibility hidden
     * - hide menu
     * - will be shown by javascript
     * box shadow
     * clip path will hide shadow on top
     * - zero pixels will clip shadow at box edge
     * - negative pixels will extend shadow beyond box edge
     */
#nav-main-menu {
    transform: translateX(-100%);
    transition: all 1s ease-in-out;
    position: absolute;
    width: auto;
    height: auto;
    background: hsl(212.45deg 50% 100% / 70%);
    backdrop-filter: blur(5px);
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    visibility: hidden;
    flex-direction: column;
    box-shadow: 0px 0px 10px black;
    clip-path: inset(0px 0px -10px 0px);
}

/**
     * Show Nav Main Menu - the UL
     * :not() selector
     * if hidden attribute is not present
     * - show menu
     * - translateX 0 
     * - move on screen
     * transition all properties that change
     * - duration 1.8 seconds
     * - ease-in-out timing function
     */
#nav-main-menu:not([hidden]) {
    visibility: visible;
    transform: translateX(0);
    transition: all 1.8s ease-in-out;
}

/**
     * Anchor Elements
     * color inherit
     * - inherit color from parent element
     * display flex
     * - can set width and height
     * - entire element is clickable
     * line height 3
     * - 3 times the font size
     * padding 0 2em left and right
     * - 2em is 2 times the font size
     * transition all properties that change
     * - duration .25 seconds
     * - ease-in-out timing function
     */
#nav-main-menu li a {
    color: inherit;
    display: flex;
    line-height: 3;
    padding: 0 2em;
    transition: all .25s ease-in-out;
}

#nav-main-menu li a:hover,
#nav-main-menu li a:focus {
    background: whitesmoke;
}

/* END - .nav-main */

section {
    margin: auto;
    border: white solid 2px;
    border-radius: 10px;
    padding: 10px;
    box-shadow: 0 4px 4px rgb(0, 0, 0, 0.8);
    background: linear-gradient(to bottom, hsl(0 0% 0% / 0.8) 0%, hsl(0 0% 100% / 0.6) 5%, hsl(0 0% 100%) 20%) #fff;
}

h2 {
    margin: 24px 0 6px;
}

p {
    margin: 0 0 16px;
    line-height: 1.6;
    max-width: 60ch;
    padding-left: 91px;
}

img {
    width: 68%;
    margin: auto;
}

footer {
    display: flex;
    border: #0000;
    margin: 0 20px 20px;
}

footer a {
    color: white;
    text-decoration: none;
    line-height: 2;
}

footer :first-child {
    margin-right: auto;
}

footer :last-child {
    margin-left: 1rem;
}

footer a[href^="javascript"] {
    position: relative;
    color: #000;
    background-color: #fff;
    border-radius: 3px;
    padding: 0 10px;
    box-shadow: 0 2px 2px #000;
}

footer a[href^="javascript"]:active {
    top: 2px;
    box-shadow: none;
}

.cta-more-link-primary {
    color: hsl(0, 0%, 100%);
    box-shadow: 0px 2px 6px hsla(0, 0%, 0%, 0.8);
    background: linear-gradient(to bottom, hsla(0, 0%, 100%, 0.8) 0px, hsl(204, 97%, 49%) 2px, hsl(218, 82%, 47%));
    
}

.cta-more-link-large {
    font-size: 1.8em;
}

.cta-more-link {
    font-size: 1.2em;
    line-height: 2;
    margin: auto;
    padding: 0 1em;
    text-decoration: none;
    border-radius: .5em;
    border: 1px solid hsl(0, 0%, 0%);
    font-weight: bold;
    transition: all .5s ease-in-out;
}

.callout {
    font-family: sans-serif;
    background: linear-gradient(to right, #ff7402 0%, #201202 80%);
}

.callout-heading {
    color: white;
    font-size: 2.25em;
    text-transform: uppercase;
    margin: 0 0 32px;
}

.callout-intro {
    color: white;
    font-size: small;
    margin: auto;
}

.subscribe-newsletter {
    --color-white-20: hsla(0, 0%, 100%, 0.20);
    --color-white-40: hsla(0, 0%, 100%, 0.40);
    --color-white-60: hsla(0, 0%, 100%, 0.60);
    --color-white-80: hsla(0, 0%, 100%, 0.80);
    --color-black-20: hsla(0, 0%, 0%, 0.20);
    --color-black-40: hsla(0, 0%, 0%, 0.40);
    --color-black-60: hsla(0, 0%, 0%, 0.60);
    --color-black-80: hsla(0, 0%, 0%, 0.80);
    --color-button-dark: hsla(266, 47%, 30%, 1.00);
    --color-button-light: hsla(54, 86%, 58%, 1.00);
    --z-index: -1;
}

.subscribe-newsletter {
    transition: all 1s ease-in;
    background: var(--color-white-20);
    border-radius: .5em;
}

.subscribe-newsletter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}

.subscribe-newsletter fieldset {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
}

.subscribe-newsletter fieldset:first-child {
    flex: 1 1 auto;
}

.subscribe-newsletter fieldset:last-child::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("images/Yin\ and\ Yang.gif") no-repeat center;
    z-index: var(--z-index, -1);
}

.subscribe-newsletter input:not([type="radio"]):not([type="checkbox"]) {
    appearance: none;
    border: none;
    border-radius: 0;
}

.subscribe-newsletter input {
    position: relative;
    font-family: inherit;
    font-size: 1.2em;
    line-height: 2.4;
    letter-spacing: 0.05em;
    padding: 0 .5em;
    margin: 0;
    color: var(--color-button-dark);
}

.subscribe-newsletter input[type=email] {
    background: var(--color-white-60);
}

.subscribe-newsletter input[type=email]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--color-button-dark);
}

.subscribe-newsletter input::placeholder {
    position: relative;
    color: var(--color-button-dark);
    opacity: .4
}

.subscribe-newsletter input::placeholder {
    transition: 2s cubic-bezier(1, 1.65, 0.35, 1.32), opacity .25s ease;
}

.subscribe-newsletter input:focus::placeholder {
    transform: translateX(100%);
    transition: transform 1s cubic-bezier(0.15, 0.69, 0.7, -0.42), opacity 2s ease;
    opacity: 0
}

.subscribe-newsletter input[type=submit],
.subscribe-newsletter input[type=submit]:invalid {
    background: var(--color-button-dark);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 1em;
    transition: all 1s .5s ease-in;
    transform-origin: right center;
    transform: scale(1);
    box-shadow: 0 0 0px 0px var(--color-black-60);
}

.subscribe-newsletter:valid input[type=submit] {
    color: var(--color-button-dark);
    background: var(--color-button-light);
    transform: scale(1);
    box-shadow: -2px 2px 4px var(--color-black-60), -2px -2px 4px var(--color-black-60);
}

.subscribe-newsletter fieldset input[type=submit]:disabled {
    background: var(--color-white-80);
    color: black;
    transform: scale(1);
    box-shadow: 0 0 0px 0px var(--color-black-60);
}

.subscribe-newsletter label {
    color: var(--color-white-80);
    line-height: 1.625em;
    padding: 0 .5em;
}

.subscribe-newsletter.sending {
    background: var(--color-white-60);
}

.subscribe-newsletter.received {
    background: var(--color-white-20);
}

.subscribe-newsletter .subscribe-newsletter-message-error {
    background: var(--color-button-dark);
}

.subscribe-newsletter .subscribe-newsletter-message-success {
    background: var(--color-white-80);
    color: var(--color-button-dark);
    font-size: 1.6em;
    flex: 1;
    text-align: center;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    padding: 0;
}

.cards .card {
    flex: 0 0 calc(100% - 20px);
    display: flex;
    margin: 10px;
    min-width: 0;
    background: lightblue;
}

.cards .card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 0 0 100%;
}

.cards .card-figure {
    position: relative;
    margin: 0;
    line-height: 0;
    overflow: hidden;
}

.cards .card-figure-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transform-origin: 80% 12%;
    transform: rotate(0) scale(1);
    transition: all 2s;
    filter: grayscale(100);
}

.cards .card-figure-caption {
    padding: 0 10px;
}

.cards .card-link:hover .card-figure-image {
    transform: rotate(6deg) scale(2);
    filter: grayscale(0);
}

.cards .card-figure-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    background: hsla(228, 3%, 34%, 0.5);
    color: rgb(196, 156, 156);
    backdrop-filter: blur(5px);
    line-height: 2;
    font-style: italic;
}

.cards .card-section {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    padding: 10px;
    background-color: lightcoral;
}

.cards .card-section-title {
    margin-bottom: 0;
    border-bottom: 1px solid;
}

.cards .card-section-meta {
    display: flex;
    flex-wrap: wrap;
}

.cards .card-section-meta * {
    flex: 0 0 50%;
    font-size: .8em;
    line-height: 2;
}

.cards .card-section-meta :nth-child(even) {
    text-align: right;
}

.cards .card-section-excerpt {
    flex-grow: 1;
}

.cards .card-section-button {
    align-self: flex-end;
    margin: 10px;
    padding: 0 1em;
    border-radius: .5em;
    border: 1px solid;
    line-height: 2;
}

/*  @media (min-width: 48rem) {
    .wrapper {
    margin : 20px auto;
    }
    header h1 {
    font-size : 2.75em;
    line-height : 2;
    align-self : flex-end;
    border-top-left-radius : 0;
    border-top-right-radius : 0;
    }
    .nav-main-menu-toggle {
        display: none;
    }
    img {
    width : auto;
    float : right;
    margin : 0 0 2px 4px;
    }
    }
        h2 {
        margin : 24px 0 6px;
        }
        p {
        margin : 0 0 16px;
        line-height : 1.6;
        max-width : 60ch;
        }
.callout {
    font-family: sans-serif;
    background: linear-gradient(to right, #9b4431 0%, #26110d 80%);
    padding: 12px;
}

.callout-heading {
    color: white;
    font-size: 3em;
    text-transform: uppercase;
    margin: auto;
}

.callout-intro {
    color: white;
    font-size: 1.5em;
    margin: 0 0 16px;
}

.subscribe-newsletter {
    --color-white-20: hsla(0, 0%, 100%, 0.20);
    --color-white-40: hsla(0, 0%, 100%, 0.40);
    --color-white-60: hsla(0, 0%, 100%, 0.60);
    --color-white-80: hsla(0, 0%, 100%, 0.80);
    --color-black-20: hsla(0, 0%, 0%, 0.20);
    --color-black-40: hsla(0, 0%, 0%, 0.40);
    --color-black-60: hsla(0, 0%, 0%, 0.60);
    --color-black-80: hsla(0, 0%, 0%, 0.80);
    --color-button-dark: hsla(266, 47%, 30%, 1.00);
    --color-button-light: hsla(54, 86%, 58%, 1.00);
    --z-index: -1;
}

.subscribe-newsletter {
    transition: all 1s ease-in;
    background: var(--color-white-20);
    border-radius: .5em;
}

.subscribe-newsletter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    overflow: hidden;
}

.subscribe-newsletter fieldset {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0;
    margin: 0;
    border: none;
}

.subscribe-newsletter fieldset:first-child {
    flex: 1 1 auto;
}

.subscribe-newsletter fieldset:last-child::after {
    content: "";
    position: absolute;
    width: 100%;
    height: 100%;
    background: url("images/Yin\ and\ Yang.gif") no-repeat center;
    z-index: var(--z-index, -1);
}

.subscribe-newsletter input:not([type="radio"]):not([type="checkbox"]) {
    appearance: none;
    border: none;
    border-radius: 0;
}

.subscribe-newsletter input {
    position: relative;
    font-family: inherit;
    font-size: 1.2em;
    line-height: 2.4;
    letter-spacing: 0.05em;
    padding: 0 .5em;
    margin: 0;
    color: var(--color-button-dark);
}

.subscribe-newsletter input[type=email] {
    background: var(--color-white-60);
}

.subscribe-newsletter input[type=email]:focus {
    outline: none;
    box-shadow: inset 0 0 0 2px var(--color-button-dark);
}

.subscribe-newsletter input::placeholder {
    position: relative;
    color: var(--color-button-dark);
    opacity: .4
}

.subscribe-newsletter input::placeholder {
    transition: 2s cubic-bezier(1, 1.65, 0.35, 1.32), opacity .25s ease;
}

.subscribe-newsletter input:focus::placeholder {
    transform: translateX(100%);
    transition: transform 1s cubic-bezier(0.15, 0.69, 0.7, -0.42), opacity 2s ease;
    opacity: 0
}

.subscribe-newsletter input[type=submit],
.subscribe-newsletter input[type=submit]:invalid {
    background: var(--color-button-dark);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 1em;
    transition: all 1s .5s ease-in;
    transform-origin: right center;
    transform: scale(1);
    box-shadow: 0 0 0px 0px var(--color-black-60);
}

.subscribe-newsletter:valid input[type=submit] {
    color: var(--color-button-dark);
    background: var(--color-button-light);
    transform: scale(1);
    box-shadow: -2px 2px 4px var(--color-black-60), -2px -2px 4px var(--color-black-60);
}

.subscribe-newsletter fieldset input[type=submit]:disabled {
    background: var(--color-white-80);
    color: black;
    transform: scale(1);
    box-shadow: 0 0 0px 0px var(--color-black-60);
}

.subscribe-newsletter label {
    color: var(--color-white-80);
    line-height: 1.625em;
    padding: 0 .5em;
}

.subscribe-newsletter.sending {
    background: var(--color-white-60);
}

.subscribe-newsletter.received {
    background: var(--color-white-20);
}

.subscribe-newsletter .subscribe-newsletter-message-error {
    background: var(--color-button-dark);
}

.subscribe-newsletter .subscribe-newsletter-message-success {
    background: var(--color-white-80);
    color: var(--color-button-dark);
    font-size: 1.6em;
    flex: 1;
    text-align: center;
}
*/
@media screen and (min-width: 768px) {
    .wrapper {
        margin: auto;
    }

    .nav-main {
        margin: 21px 240px;
        /* padding-top: 0; */
    }

    #nav-main-menu {
        position: relative;
        visibility: visible;
        transform: translateX(0);
        transition: none;
        background: transparent;
        display: flex;
        flex-direction: row;
    }

    .nav-main-menu-toggle {
        display: none;
    }

    .callout {
        padding: 80px;
        margin: auto;
        width: auto;
        position: static;
    }

    .subscribe-newsletter {
        flex-direction: row;
        height: 8em;
        align-items: center;
    }

    .subscribe-newsletter:valid input[type=submit] {
        transform: scale(1.2);
    }

    .subscribe-newsletter fieldset:last-child::after {
        content: "";
        position: absolute;
        width: 100%;
        height: 100%;
        background: url("images/Yin\ and\ Yang.gif") no-repeat center;
        z-index: var(--z-index, -1);
    }
}

.cards .card {
    flex: 0 0 calc(25% - 20px);
    flex: 0 0 calc(33.333% - 20px);
    flex: 0 0 calc(50% - 20px);
}