*,
*:before,
*:after {
    box-sizing: inherit;
}

:root {
    --color-cream: #fff8ec;
    --color-soft-pink: #f3d6cf;
    --color-rose: #a7445b;
    --color-deep-rose: #7c263c;
    --color-navy: #17243b;
    --color-blue: #2f5d82;
    --color-gold: #b7791f;
    --color-white: #ffffff;
    --color-black: #121212;
    --color-shadow: rgba(23, 36, 59, 0.25);
    --font-heading: Georgia, "Times New Roman", serif;
    --font-body: Arial, Helvetica, sans-serif;
    --space-small: 0.75rem;
    --space-medium: 1rem;
    --space-large: 1.5rem;
    --radius-small: 0.5rem;
    --radius-large: 1.25rem;
}

html {
    font-family: sans-serif;
    min-height: 100dvh;
    box-sizing: border-box;
}

body {
    font-family: var(--font-body);
    margin: 0;
    min-height: 100dvh;
    background: 
        linear-gradient(
            180deg,
            rgba(47, 93, 129, 0.61),
            rgba(47, 93, 129, 0.58),
            rgba(47, 93, 129, 0.63),
            rgba(47, 93, 129, 0.62) 41%,
            rgba(47, 93, 129, 0.84) 52%,
            #2f5d81 78.99%,
            rgba(47, 93, 129, 0.8) 93.28%,
            hsla(68, 30%, 61%, 0.126)
        ), 
    url(images/brush-strokes-fade.webp) repeat-x scroll, 
    url(images/starry-night.webp) repeat-x left bottom,
        fixed 
    url(images/canvas.webp) repeat-x,
        fixed,
        #17243b
}

.wrapper {
    display: grid;
    width: min(100%, 1030px);
    margin: 0 auto;
    overflow: visible;
    border-radius: 10px;
    margin-top: 0px;
    margin-bottom: 10px;
    box-shadow: 0 2px 2px #000;
    background: #ede0d4;
    border-left: 8px solid var(--color-gold);
    border-right: 8px solid var(--color-gold);
}

.site-header {
    display: flex;
    min-height: 25rem;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-radius: var(--radius-large);
    box-shadow: 0 1rem 2rem rgba(23, 36, 59, 0.62);
    background:
      linear-gradient(rgba(23, 36, 59, 0.22), rgba(23, 36, 59, 0.50)),
      url("images/canvas-texture.webp") no-repeat center / cover,
      url("images/eiffel-tower.webp") repeat center / 360px auto,
      var(--color-blue);
    margin: 20px;
    background-blend-mode: normal, multiply;
}


.nav-main {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    position:relative;
    z-index: 9999;
    padding: var(--space-medium);
    background-color: var(--color-cream);
}

.site-logo {
    color: var(--color-deep-rose);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    font-weight: bold;
    text-decoration: none;
}

.nav-main-menu-toggle {
    padding: 0.35rem;
    line-height: 0;
    width: 3rem;
    height: 3rem;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-deep-rose);
    border-radius: var(--radius-small);
    color: var(--color-deep-rose);
    background-color: var(--color-soft-pink);
    cursor: pointer;
    position: relative;
    display: flex;
}

/* the hidden MENU text */
.nav-main-menu-toggle::after {
    content: "MENU";
    position: absolute;
    left: 52%;
    transform: translateX(-47%) translateY(-10px);
    opacity: 0;
    color: var(--color-navy);
    font-size: 0.65rem;
    font-weight: bold;
    letter-spacing: 0.04em;
    line-height: 1;
    pointer-events: none;
}

.line {
    fill: none;
    stroke: var(--color-navy);
    stroke-width: 5.5;
    stroke-linecap: round;
    transition: stroke-dasharray 400ms, stroke-dashoffset 400ms;
}

.top {
    stroke-dasharray: 40 121;
}

.middle {
    stroke-dasharray: 40 111;
}

.bottom {
    stroke-dasharray: 40 121;
}

/* JAVASCRIPT WILL ADD - aria-expanded="true" - to .nav-main-menu-toggle */

.nav-main-menu-toggle[aria-expanded="true"] .top {
    stroke-dashoffset: -68px;
}

.nav-main-menu-toggle[aria-expanded="true"] .middle {
    stroke-dashoffset: -20px;
    opacity: 0;
}

.nav-main-menu-toggle[aria-expanded="true"] .bottom {
    stroke-dashoffset: -68px;
}

/* show MENU when open */
.nav-main-menu-toggle[aria-expanded="true"]::after {
    animation: menuWordRise 0.45s ease forwards;
}

@keyframes menuWordRise {
    0% {
        top: 34px;
        opacity: 0;
    }
    100% {
        top: 15px;
        opacity: 1;
    }
}

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

#nav-main-menu {
    transform: translateX(-200%);
    transition: all 1s ease-in-out;
    position: absolute;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    visibility: hidden;
    margin-top: 420px;
    border-radius: 12px;
}

#nav-main-menu:not([hidden]) {
    visibility: visible;
    transform: translateX(0);
    transition: all 1.8s cubic-bezier(0.2, -0.46, 0.81, 1.85);     
}

#nav-main-menu li a {
    display: flex;
    line-height: 3;
    padding: 0 2em;
    transition: all .25s ease-in-out;
    text-decoration: none;
    color: var(--color-white);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-small);
    color: var(--color-navy);
    font-weight: bold;
    background-color: var(--color-soft-pink);
}

#nav-main-menu li a:hover {
    background-color: var(--color-deep-rose);
    color: var(--color-white);
    border-radius: 50%;
}

#nav-main-menu li a:focus {
    background: var(--color-cream);
    color: var(--color-blue);
    outline: 2px solid var(--color-blue);
    outline-style: dashed;
}

#nav-main-menu li a:active {
    background: var(--color-blue);
    color: var(--color-white);
}

.hero-content {
    max-width: 42rem;
    padding: var(--space-large);
    border-radius: var(--radius-large);
    color: var(--color-white);
    background-color: rgba(124, 38, 60, 0.81);
    border: 2px solid var(--color-gold);
    margin: 30px 20px;
    box-shadow: inset 0 2px 4px #3b2f2f, 0 6px 14px rgba(100, 80, 24, 0.18);
}

.hero-kicker {
    margin-bottom: 0.35rem;
    font-weight: bold;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--color-cream);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: clamp(2.25rem, 8vw, 5rem);
    line-height: 1;
}

.hero-text {
    max-width: 35rem;
    margin-top: var(--space-medium);
    font-size: 1.05rem;
}
/* END - .nav-main */

.heading-text {
    margin-left: 30px;
}

section {
    position: relative;
    border: 2px solid var(--color-gold);
    border-radius: 18px;
    padding: 24px;
    margin: 30px 20px;
    box-shadow: inset 0 2px 4px #3b2f2f, 0 6px 14px rgba(100, 80, 24, 0.18);
    background: 
        transparent 
        linear-gradient(
            to bottom, 
            hsla(345, 36%, 32%, 0.726), 
            hsla(11.67, 60.58%, 88.29%, 0.4), 
            rgba(233, 220, 207, 0.48)
        );
}

section img {
    float: right;
    margin: 0 0 15px 20px;
    border: 4px solid var(--color-gold);
    box-shadow: 0 4px 10px rgba(77, 60, 16, 0.62);
}

section h2 {
    display: inline-block;
    background: url(images/paint-stroke.webp), var(--color-blue);
    color: var(--color-cream);
    padding: 10px 18px;
    border-left: 8px solid var(--color-gold);
    border-radius: 6px;
    margin: 5px 0 18px 0;
    border-bottom: 2px solid #062212;
    font-family: Georgia, 'Times New Roman', Times, serif;
}

p {
    margin: 5px 0 10px;
    line-height: 1.7;
    max-width: 60ch;
}

img {
    width: 100%;
}

.section-subscribe {
    padding: 0px;
}

.section-blog {
    padding: 0px;
    border: none;
    box-shadow: none;
    background: none;
}

.visually-hidden {
    display: none;
}

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

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

.cards .card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
}

.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: sepia(3);
    border-radius: 10px;
    border: 0px;
}

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

.cards .card-link:hover .card-figure-image {
    transition: all 1.25s ease-in;
    transform: scale(1.5);
    filter: hue-rotate(360deg);
} 

.cards .card-figure-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0px;
    background: hsla(28, 9%, 39%, 0.5);
    color: hsla(0, 0%, 100%, 1);
    backdrop-filter: blur(5px);
    line-height: 2;
    font-style: italic;
}

.cards .card-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 10px;
    border-radius: 5px;
    margin: 10px 0px;
}

.card-link > .card-section {
    position: relative;
    z-index: 99;
    transition: all .25s ease-in;
}

.card-link:hover > .card-section {
    transform: translateY(-10%);
    background: #201b1b;
    color: #fdf6ec;
}

.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: 2px solid #201b1b;
    line-height: 2.5;
    margin-top: auto;
}

.cards .card-section-button:hover {
    color: #201b1b;
    border-radius: 10px;
    transform: translateY(-10px);
    box-shadow: inset 0 0 0 3px var(--color-deep-rose), 
                inset 0 0 0 5px var(--color-navy), 
                inset 0 0 0 8px var(--color-blue),
                inset 0 0 0 10px var(--color-gold);
    background: var(--color-cream);
}

.cards .card-section-button:active {
    transition: all 0.2s;
    transform: translateY(-5px);
    box-shadow: 0 2px 0 -2px var(--color-cream),
      0 8px 0 -4px var(--color-navy),
      0 12px 10px -3px var(--color-blue);
}

/* email subscribe 1 */
.callout {
    font-family: sans-serif;
    position: relative;
    overflow: visible;
    padding: var(--space-large);
    border-radius: 16px;
    color: var(--color-white);
    background:
      linear-gradient(135deg, var(--color-navy), var(--color-deep-rose));
    box-shadow: 0 1rem 2rem var(--color-shadow);
}

.callout-heading {
    display: inline-block;
    background: url(images/paint-stroke.webp), var(--color-blue);
    color: var(--color-cream);
    box-shadow: -1px .5px #201b1b92;
    border-radius: 8px;
    padding: 12px 18px;
    font-size: clamp(1rem, 4vw, 2rem);
    line-height: 1.1;
    text-shadow: 0 2px 2px #3b2f2f;
    text-transform: uppercase;
    margin: 5px 0 18px 0;
}

.callout-intro {
    color: #f5ebe0;
    font-size: 1.2em;
    line-height: 1.6;
    max-width: 55ch;
}

.subscribe-newsletter {
    --z-index: -1;
}

.subscribe-newsletter {
    transition: all 1s ease-in;
    border-radius: .5em;
}

.subscribe-newsletter {
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
    gap: 5px;
}

.subscribe-newsletter {
    overflow: visible;
    margin-top: 24px;
    padding: 12px;
    border: 4px dotted #d4a373d9;
    border-radius: 18px;
    background: rgba(244, 214, 207, 0.51);
    backdrop-filter: blur(4px);
    box-shadow: 0 6px 16px rgba(78, 64, 36, 0.35);
}

.subscribe-newsletter label {
    color: #000000;
    font-weight: bold;
}

.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/spinner-double.svg") 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"],
.subscribe-newsletter input[type=text]{
    background: #fdf6ec;
    color: #201b1b;
    border-radius: 12px;
}

.subscribe-newsletter input[type=email]:focus,
.subscribe-newsletter input[type=text]: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: 4s cubic-bezier(1, 1.15, 0.60, 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: #f5ebe0;
    font-weight: bold;
    text-transform: uppercase;
    padding: 0 1em;
    transition: all 1s .5s ease-in;
    transform-origin: center;
    transform: scale(1);
    box-shadow: 0 0 0px 0px var(--color-brown-shadow);
}

.subscribe-newsletter input[type="submit"] {
    position: relative;
    z-index: 1;
    overflow: visible;
    background: linear-gradient(135deg, #17243b, #2f5d82);
    color: #fdf6ec;
    border-radius: 999px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(212, 163, 115, 0.65);
    transition: transform 0.25s ease, box-shadow 0.25s ease; 
    background-color: var(--color-white);
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
}

.subscribe-newsletter:valid input[type=submit] {
    background-color: var(--color-white);
    outline: 3px solid var(--color-gold);
    outline-offset: 3px;
    transform: scale(1);
    box-shadow: -3px -3px 4px var(--color-brown-shadow), -2px -2px 4px var(--color-brown-shadow);
}

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

.subscribe-newsletter input[type="submit"]:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 0 63px rgba(212, 163, 115, 1);
}

.subscribe-newsletter input[type="submit"]:active {
    transform: translateY(1px) scale(0.98);
}

.subscribe-newsletter label {
    line-height: 1.625em;
    padding: 0 .5em;
}

.subscribe-newsletter.sending {
    background: var(--color-soft-pink);
    color: #000000;
}

.subscribe-newsletter.received {
    background: var(--color-soft-pink);
}

.subscribe-newsletter-message {
    font-size: 14px;
}

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

.subscribe-newsletter .subscribe-newsletter-message-success {
    color: var(--color-deep-rose);
    font-size: 2em;
    flex: 1;
    text-align: center;
    text-shadow: 0 2px 5px var(--color-navy);
    margin-top: 10px;
}
/* email subscribe 1 end */

footer {
    display: flex;
    gap: 20px;
    margin: 0 20px 20px;
    font-family: var(--font-heading);
}

footer a {
    color: var(--color-navy);
    text-decoration: none;
    line-height: 2;
}

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

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

footer a,
footer a[href^="javascript"]:active {
    top: 2px;
}

footer a:hover {
    color: var(--color-cream);
    background-color: var(--color-deep-rose);
}

footer a:visited {
    background-color: var(--color-rose);
}

footer a:focus {
    color: var(--color-cream);
    outline: 2px solid var(--color-navy);
}

footer a:active {
    color: var(--color-cream);
}

@media (min-width: 768px) {
    .wrapper {
        margin: 10px auto;
        margin-top: 10px;
    }

    header h1 {
        padding: 8px 10px;
        font-size: 2.50em;
        line-height: 2;
        align-self: flex-end;
        border-top-left-radius: 15px;
        border-top-right-radius: 15px;
    }

    .nav-main {
      flex-wrap: nowrap;
        position: static;
        top: auto;
        left: auto;
        z-index: auto;
        padding: 0px 10px;    
    }

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

    #nav-main-menu {
        position: relative;
        visibility: visible;
        transform: translateX(0);
        transition: none;
        background: transparent;
        display: flex;
        flex-direction: row;
        border: none;
        font-weight: bold;
        margin-top: 20px;
    }

    #nav-main-menu li a {
        background-color: var(--color-cream);
    }

    #nav-main-menu li a:hover {
      
      color: var(--color-white);
      background-color: var(--color-deep-rose);
    }

    #nav-main-menu li a:focus {
      color: var(--color-navy);
      outline: 2px solid var(--color-blue);
      background: none;
      outline-style: dashed;
    }

    #nav-main-menu li a:active {
      background-color: var(--color-blue);
      
    }

    .nav-list {
      display: flex;
      width: auto;
      flex-direction: row;
      flex-wrap: wrap;
      justify-content: flex-end;
      margin: 0;
    }

    img {
        width: 350px;
        float: right;
        margin: 10px 5px 10px 8px;
    }

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

    .cards .card:first-child {
        flex: 1 1 auto;
    }

    .callout {
        padding: 20px;
    }

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

    .subscribe-newsletter input[type="submit"] {
      margin-left: auto;
      align-self: center;
      transform: translateY(-2px);
      flex: 0 0 auto;
    }

    .subscribe-newsletter fieldset:last-child {
        margin-left: auto;
        align-self: center;
    }

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