@import url('https://fonts.googleapis.com/css2?family=Alexandria:wght@100..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Nunito:ital,wght@0,900;1,900&display=swap');

:root {
    --text-default: #1A0D00;
    --text-inverse: #FFFFFF;
    --surface: #FFFDF0;
    --surface-secondary: #FFD9D7;
    --orange: #FFA54D;
    --button-primary: #1A0D00;
    --button-primary-hover: #331900;
  }

/* Generic styling */
body {
    background-color: var(--surface);
    color: var(--text-default);
    font-family: "Alexandria", sans-serif;
    font-size: 1rem;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
    line-height: 1.6;
}

header {
    background-color: var(--orange);
    border-bottom-left-radius: 3rem;
    border-bottom-right-radius: 3rem;
    padding: 2rem 0 3rem;
    max-width: 1280px;
    margin-left: auto;
    margin-right: auto;
}

.content-area {
    box-sizing: border-box;
    margin-left: auto;
    margin-right: auto;
    padding: 1rem;
    max-width: 64rem;
    width: 100%;
}

h1, h3, .button, .stat--value, .quote--callout, .testimonial__quote {
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-weight: 900;
    font-style: normal;
}

h1 {
    line-height: 1.3;
    margin-block-end: -.5rem;
}

figcaption {
    font-size: .75rem;
    margin-top: .5rem;
    text-align: right;
    font-style: italic;
}

/* .description a.k.a. h2 */
.description {
    font-size: 1rem;
    font-weight: 400;
    margin-block-end: 2rem;
}

h3, h4 {
    text-align: center;
}

h3 {
    font-size: 1.5rem;
}

h4 {
    font-size: .75rem;
    font-weight: 400;
    margin-block-end: -1.25rem;
}


/* Specific styling for: logo */
.masthead {
    line-height: 1;
    padding-top: 1rem;
    padding-bottom: 1rem;
}

#logo {
    background: url(images/tdsb.jpg) no-repeat;
    background-size: contain;
    height: 32px;
    margin-bottom: .25rem;
    text-indent: -9999px;
    width: 79px;
}

#logo__description {
    font-size: .75rem;
    font-weight: 500;
}

/* Specific styling for: header */
.header__graphic {
    position: relative;
    width: 100%;
}

.header__graphic--main {
    height: 100%;
    max-height: 16rem;
}

.header__graphic--aside1, .header__graphic--aside2 {
    position: absolute;
    width: 20%;
}

.header__graphic--aside1 {
    left: 0;
    top: -2rem;
}

.header__graphic--aside2 {
    left: 3rem;
    bottom: -.5rem;
}

.header__copy {
    width: 100%;
}

.button {
    background-color: var(--button-primary);
    border-radius: 16rem;
    color: var(--text-inverse);
    display: inline-block;
    font-size: 1rem;
    text-decoration: none;
    padding: 1rem 2rem;
}

.button:hover, .button:focus {
    background-color: var(--button-primary-hover);
}

.footer {
    background: 
    url('images/callout--mask-1.svg') no-repeat top center;

    background-size: contain;
    background-color: #F4BD71;
    text-align: center;
    padding: 6rem 3rem;
    max-width: none;
}

/* Specific styling for: story */
.stat {
    line-height: 1.1;
    margin-bottom: 2rem;
}

.stat--value {
    display: block;
    font-size: 2rem;
    font-style: italic;
}

.quote--callout {
    align-items: center;
    background: 
    url('images/callout--mask-2.svg') no-repeat bottom center,
    url('images/callout--mask-1.svg') no-repeat top center,
    url('images/leo-rivas-wtxcaDIdOCM-unsplash.jpg') no-repeat center center;

    background-size: contain, auto contain, cover;
    color: var(--text-inverse);
    display: flex;
    font-size: 3rem;
    font-style: italic;
    letter-spacing: .05rem;
    line-height: 1.1;
    text-align: center;
    justify-content: center;
    margin-top: -1.5rem; /* opposite of padding */
    margin-bottom: -1.5rem; /* opposite of padding */
    padding-top: 6rem;
    padding-bottom: 6rem;
    text-shadow: 0px 4px 48px rgba(0, 0, 0, 0.75);
    max-width: none;
    width: 100%;
}

/* Specific styling for: testimonials */
.testimonial {
    align-items: center;
    background-color: var(--surface-secondary);
    border-radius: 3rem;
    display: flex;
}

iframe#instagram-embed-0 {
    display: none !important;
}

.testimonial__quote {
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.3;
    padding: 2rem 1rem;
    text-align: center;
}

.testimonial__attribution {
    display: block;
    font-family: "Alexandria", sans-serif;
    font-size: .75rem;
    font-weight: 400;
    margin-top: 1rem;
}

/* Specific styling for: opportunities */
#callout {
    --space: 2rem;

    display: grid;
    align-content: center;
    overflow: hidden;
    gap: var(--space);
    width: 100%;
    font-family: "Nunito", sans-serif;
    font-size: 1.5rem;
    line-height: 1.5;
    font-weight: 900;
    font-style: italic;
    margin: 3rem 0;
}

.marquee {
  --duration: 90s;
  --gap: var(--space);

  display: flex;
  overflow: hidden;
  user-select: none;
  gap: var(--gap);
  transform: skewY(-3deg);
}

.marquee__group {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: var(--gap);
  min-width: 100%;
  animation: scroll var(--duration) linear infinite;
}

@media (prefers-reduced-motion: reduce) {
  .marquee__group {
    animation-play-state: paused;
  }
}

.marquee__group img {
  max-width: clamp(10rem, 1rem + 28vmin, 20rem);
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 1rem;
}

.marquee__group p {
  background-image: linear-gradient(
    75deg,
    #1069BC 0%,
    #1069BC 11%,
    #1069BC 22%,
    #42822C 33%,
    #42822C 44%,
    var(--orange) 56%,
    var(--orange) 67%,
    var(--orange) 78%,
    hsl(307deg 71% 48%) 89%,
    hsl(307deg 71% 48%) 100%
  );
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.marquee--borders {
  border-block: 3px solid var(--surface-secondary);
  padding-block: 0.75rem;
}

.marquee--reverse .marquee__group {
  animation-direction: reverse;
  animation-delay: calc(var(--duration) / -2);
}

@keyframes scroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(calc(-100% - var(--gap)));
  }
}

/* Viewports */
/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {
    body {
        font-size: 1.25rem;
    }

    h4 {
        margin-block-end: -1.5rem;
    }

    .header__inner {
        align-items: center;
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-between;
        max-height: 75vh;
    }

    .header__graphic {
        max-width: 28rem;
    }

    .header__graphic--main {
        max-height: none;
        height: auto;
        position: relative;
        top: -6rem;
        left: 0;
        width: 100%;
        max-width: 48rem;
    }

    .header__graphic--aside1 {
        left: 0;
        top: -6rem;
    }
    
    .header__graphic--aside2 {
        left: 3rem;
        top: 9rem;
    }

    .stats {
        display: flex;
        flex-direction: row-reverse;
        justify-content: space-around;
    }

    iframe#instagram-embed-0 {
        display: block !important;
        margin-bottom: 0 !important;
        max-width: 300px !important;
    }

    .testimonial {
        border-top-left-radius: 3rem;
        border-bottom-left-radius: 3rem;
    }

    .testimonial__quote {
        font-size: 1.5rem;
        text-align: left;
    }

}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {
    .header__graphic--aside2 {
        left: 3rem;
        top: 12rem;
    }

    .quote--callout {
        background-size: contain, contain, 1270px auto;
        max-width: 1280px;
        min-height: 24rem;
    }
    
}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {
    .footer {
        padding: 9rem 3rem 6rem;
    }
}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {
    .footer {
        padding: 12rem 3rem 6rem;
    }
}