@layer reset, base, layout, components, utilities, states, overrides, print;

@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda+SC:ital,opsz,wght@0,6..96,400..900;1,6..96,400..900&family=Funnel+Sans:ital,wght@0,300..800;1,300..800&display=swap');

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

    body {
        margin: 0;
    }

    /* http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed, 
figure, figcaption, footer, header, hgroup, 
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
	margin: 0;
	padding: 0;
	border: 0;
	font-size: 100%;
	font: inherit;
	vertical-align: baseline;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure, 
footer, header, hgroup, menu, nav, section {
	display: block;
}
body {
	line-height: 1;
}
ol, ul {
	list-style: none;
}
blockquote, q {
	quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
	content: '';
	content: none;
}
table {
	border-collapse: collapse;
	border-spacing: 0;
}
}

@layer base{
    :root{
        --text: #15005a;
        --background: #e8abbe;
        --primary: #d74b80;
        --secondary: #ffffff;
        --accent: #fdebff;
        --body-back: #943258;

        --title-font: "Bodoni Moda SC", serif;
        --rest-font: serif;
        --main-width: 100%;
        --img-width: 50%;
        --common-space: 2rem;
        --radius-card: 30px;
        --focus-border: 1px dashed var(--text);

    }
} 


@layer layout{

    body{
        background-color: var(--body-back);
        box-sizing: border-box;
    }

    header, main, footer{
        width: var(--main-width);
        max-width: 70rem;
        margin: auto;
    }

    img{
        width: var(--img-width);
        display: block;
        margin: auto;
        border-radius: 30px;
        box-shadow: 4px 4px 4px var(--primary);
    }

    main{
        container-type: inline-size;
    }

}

@layer components{
    header{
        background-color: var(--primary);
        margin-bottom: 0;
    }

    h1, h2, h3{
        font-family: var(--title-font);
    }

    p, a, .button, button{
        font-family: var(--rest-font);
    }

    .head-banner{
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 2rem;
        width: 100%;
        background-color: var(--primary);
        padding: 2rem;
        box-sizing: border-box;
    }

    .head-banner a{
        display: block;
        color: var(--secondary);
        text-decoration: none;
        text-shadow: 1px 1px 3px var(--text);
    }

    .h1-img a{
        font-size: 2rem;
    }

    nav{
        display: block;
        align-self: center;
    }

    nav ul{
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        text-align: center;
        font-size: 1.25rem;
        justify-content: center;
    }

    nav a{
        height: 100%;
        border-left: solid 1px var(--background);
        border-right: solid 1px var(--background);
        padding: 0rem 0.75rem;
    }

    .intro-title-hp,
    .intro-title-head,
    .intro-title-reels,
    .intro-title-past{
        padding: 5rem 0;
        font-size: 3rem;
        color: var(--text);
    }


    .page-title{
        text-align: center;
        display: block;
        margin: 5rem;
        width: 30%;
        font-size: 2rem;
        display: block;
        padding: var(--common-space);
        background-color: var(--accent);
        border-top-left-radius: 50px;
        border-bottom-right-radius: 50px;
        box-shadow: 4px 4px 10px var(--primary);
    }

    .intro-title-hp{
        background-image: url("backgrounds/giselle-background.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100%;
    }

    .intro-title-head{
        background-image: url("backgrounds/headshots-background.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100%;
    }

    .intro-title-reels{
        background-image: url("past production img/The Prom/giselle-alyssa-onstage.jpeg");
        background-position: left;
        background-repeat: no-repeat;
        background-size: 120%;
    }

    .intro-title-past{
        background-image: url("backgrounds/onstage-background.png");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 100%;
    }

    main{
        background-color: var(--primary);
        padding: 3rem;
        box-sizing: border-box;
    }

    section{
        width: 95%;
        background-color: var(--background);
        margin: var(--common-space) auto;
        border-radius: 50px;
    }

    h2{
        font-size: 2rem;
        display: block;
        text-align: center;
        padding: var(--common-space);
        background-color: var(--accent);
        width: 50%;
        margin: auto;
        border-top-left-radius: 50px;
        border-bottom-right-radius: 50px;
        box-shadow: 4px 4px 10px var(--primary);

    }

    .calendar h3{
        text-align: center;
        margin: 2rem;
        font-size: 1.75rem;
    }

    table{
        margin: auto;
        width: 100%;
    }

    th{
        text-align: center;
    }

    th, td{
        padding: 2rem 1rem;
        border: 1px solid var(--body-back);
        width: 2rem;
    }

    .hp-grid {
        display: grid;
        grid-template-columns: 1fr 1.5fr;
        align-items: center;
        gap: var(--common-space);
        width: 100%;
        max-width: 60rem;
        margin-inline: auto;
      }
    
      .hp-grid .diff-img {
        width: 100%;
        height: auto;
        display: block;
        margin: auto;
      }

      .section-icon{
        box-shadow: 0px 0px 0px;
        height: 5rem;
        margin-bottom: 1rem;;
      }

    .diff-img,
    .card img{
        width: 100%;
        box-shadow: 0px 0px 0px;
    }
    
      .hp-grid p {
        line-height: 1.5rem;
        padding: 0.5rem 2rem 2rem;
      }

    .button, button{
        width: 70%;
        display: block;
        margin: var(--common-space) auto;
        text-align: center;
        padding: 0.75rem;
        border-radius: 15px;
        border: 0px;
        background-color: var(--primary);
        font-size: 1.05rem;
    }

    #contact-form-sect{
        padding-bottom: 2rem;
    }

    #contact-form-sect p{
        width: 70%;
        margin: 2rem auto;
    }

    form{
        width: 70%;
        display: flex;
        flex-direction: column;
        flex-wrap: nowrap;
        margin: 1rem auto;
        font-size: 1.25rem;
    }

    label{
        margin: 0.5rem;
    }
    
    input, textarea{
        margin-bottom: 1.5em;
        padding: 0.5rem;
        border: 1px solid var(--background);
    }

    input:focus,
    textarea:focus{
        border: 5px solid var(--primary);
        outline: none;
    }

    .card-grid{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(10rem,100%),1fr));
        gap: var(--radius-card);
        margin: 2rem;
    }

    .card{
        background-color: var(--accent);
        border-radius: var(--radius-card);
        margin-bottom: 2rem;
        transition: 0.25s;
        padding-bottom: 1rem;
    }


    .card-grid a,
    .hp-grid a{
        text-decoration: none;
        color: var(--text);
    }

    .card h3{
        font-size: 1.15rem;
        font-weight: bold;
    }

    .card h3,
    .card p{
        padding: 1rem;
    }
    
    .headshots img{
        width: 90%;
        background-color: var(--accent);
        transition: 0.25s;
        margin: 1rem auto;
    }

    .headshots{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(15rem,100%),1fr));
        margin: 2rem;
        padding-bottom: 3rem;
    }

    .headshots img:hover{
        border: solid 10px var(--accent);
        transition: 0.25s;
    }

    .contact{
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(min(10rem,100%),1fr));
        text-align: center;
    }

    .contact a{
        display: block;
        background-color: var(--background);
        height: 100%;
        font-size: 1.25rem;
        color: var(--body-back);
        padding: 0.5rem;
        text-decoration: none;
        border: solid 0.5px var(--primary)
    }

    .pp-card-1,
    .pp-card-2{
        display: grid;
        grid-template-columns: 1fr 1fr;
        background-color: var(--accent);
        margin: 3rem;
        padding: 0;
        height: 15rem;
        border-radius: 50%;
        align-items: center;
        justify-content: center;
    }

    .pp-card-1 img{
        transform: rotate(5deg);
    }
    .pp-card-2 img{
        transform: rotate(-5deg);
    }

    .pp-card-1 h3,
    .pp-card-2 h3{
        text-align: center;
        width: 60%;
        font-weight: bold;
        font-size: 1.25rem;
        margin: 1rem auto;
        padding: 1rem;
        background-color: var(--secondary);
        border-top-left-radius: 50px;
        border-bottom-right-radius: 50px;
    }

    .pp-card-1 img:hover,
    .pp-card-2 img:hover{
        border: 5px solid var(--primary);
        transition: 0.25s;
        width: 55%;
    }

    .pp-gall{
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .pp-gall img{
        width: 90%;
        margin: 1rem auto;
    }

    em{
        font-style: italic;
    }

    .reel-card{
        display:block;
        margin: 2rem auto;
        text-align: center;
    }

    .reel-card h3{
        margin: 1rem auto;
        font-size: 1.25rem;
        font-weight: bold;
        border-top-left-radius: 50px;
        border-bottom-right-radius: 50px;
        width: 75%;
        padding: 1rem;
        background-color: var(--secondary);
    }

    .reel-card video{
        border-radius: 25px;
        box-shadow: 4px 4px 4px var(--primary);
        margin: 2rem auto;
        width: 75%;
    }

    .desc{
        font-size: 0.85rem;
        padding: 3rem;
    }

}

@layer utilities{
    .center{
        text-align: center;
    }

    .slightly-larger-font{
        font-size: 1.15rem;
    }

    .all-caps{
        text-transform:uppercase;
    }

    .indented{
        text-indent: 2rem;
    }
}

@layer states{
    .card:hover{
        padding: var(--common-space);
        transition: 0.25s;
    }

    .card-grid a:focus{
        background-color: var(--secondary);
        border: 3px dashed var(--text);
        outline: none;
    }

    .head-banner a:hover{
        background-color: var(--background);
        color: var(--text);
        text-shadow: 0px 0px 0px;
        align-items: center;
        justify-content: center;
        border-radius: var(--radius-card);
        transition: 0.5s;
    }

    .head-banner a:focus{
        background-color: var(--background);
        border: var(--focus-border);
        outline: none;
    }

    .button:hover,
    button:hover{
        background-color: var(--secondary);
        padding: 1.25rem;
        transition: 0.25s;
    }

    .button:focus,
    button:focus{
        background-color: var(--accent);
        border: 2px dashed var(--body-back);
        outline: none;
    }

    .img-link:focus-visible {
        outline: none;
    }
    
    .img-link:has(img):focus-visible img {
        outline: 3px dashed var(--body-back);
        outline-offset: 3px;
    }

    .contact a:focus{
        outline: none;
        border: 2px dashed var(--body-back);
        background-color: var(--accent);
    }

    nav [aria-current="page"]{
        background-color: var(--accent);
        color: var(--secondary);
        box-shadow: 0px 0px;
      } 
        

    .contact a:hover{
        background-color: var(--accent);
        color: var(--secondary);
        transition: 0.25s;
    }


}

@layer overrides{

    @media screen and (width < 900px){
        

        section{
            width: 100%;
        }

        h2{
            font-size: 1.5rem;
        }

        .card-grid{
            grid-template-columns: 1fr;
        }

        .card-grid h3,
        .card-grid p{
            padding: 1rem;
        }

        h1{
            text-align: center;
        }

        .head-banner{
            grid-template-columns: 1fr;
        }

        .page-title{
            box-sizing: border-box;
            margin: auto;
            width: 100%;
        }

        .intro-title-hp,
        .intro-title-head,
        .intro-title-reels,
        .intro-title-past{
            padding: 5rem;
            margin: 0;
        }


        .hp-grid {
            grid-template-columns: 1fr;
            margin-top: 3rem;
          }
  
          .hp-grid img,
          .diff-img{
              width: 50%;
              margin-inline: auto;
              margin-top: 1rem;
          }

          .pp-card-1,
    .pp-card-2{
        display: grid;
        grid-template-columns: 1fr;
        grid-template-areas: 
            "div"
            "a";
        background-color: var(--accent);
        margin: 2rem auto;
        border-radius: 50%;
        height: 100%;
    }

    .pp-card-1 img{
        transform: rotate(0deg);
        width: 80%;
    }
    .pp-card-2 img{
        transform: rotate(0deg);
        width: 80%;
    }

    .pp-card-1 h3,
    .pp-card-2 h3{
        width: 80%;
        display: block;
        margin: 1rem auto;
    }

    }

    @media screen and (width < 600px){

        header h2{
            width: 100%;
        }

        .intro-title-hp,
        .intro-title-head,
        .intro-title-reels,
        .intro-title-past{
            background-size: 150%;
            background-position: center;
            padding-right: 1rem;
            padding-left: 1rem;
            padding-top: 20rem;
            padding-bottom: 1rem;
        }
    }

    @container (width < 57rem) {
        .hp-grid {
          grid-template-columns: 1fr;
          margin-top: 3rem;
        }

        .hp-grid img,
        .diff-img{
            width: 50%;
            margin-inline: auto;
            margin-top: 1rem;
        }
      }



    .up-img{
        margin: 2rem auto;
    }

    .card p{
        font-size: 0.95rem;
    }


    @media (prefers-contrast: more){
        :root{
            --text: #000000;
            --background: #ffd6e3;
            --primary: #a92062;
            --secondary: #ffffff;
            --accent: #b5c4ff;
        }

        .hp-grid .button, hp-grid button{
            color: var(--secondary);
        }
    }
}

@layer print {
    @media print {
        body {
            background: white;
            color: black;
        }

        header, main, footer {
            width: 100%;
            padding: 0;
        }

        nav, .button, button {
            display: none;
        }

        img {
            max-width: 100%;
            break-inside: avoid;
        }

        a {
            color: black;
            text-decoration: underline;
        }
    }
}
