/*  */
:root {
    --primary: #1C3745;
    --primary: #104875;
    --primary-light: #456d82;
    --accent: #cce0f3;
    --primary-bg: #e9eadf;
    --heading-font-family: Arial, Helvetica, sans-serif;
    --ease: all 500ms cubic-bezier(0.16, 1, 0.3, 1);
    --img-shadow: 0 1px 1px hsl(0deg 0% 0% / .075), 0 2px 2px hsl(0deg 0% 0% / .075), 0 4px 4px hsl(0deg 0% 0% / .075), 0 8px 8px hsl(0deg 0% 0% / .075), 0 16px 16px hsl(0deg 0% 0% / .075);
    --gap-reduce: 4rem;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    margin: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    color: var(--primary);
    background-color: var(--primary-bg);
    /* display: flex;
    flex-direction: column;
    height: 100vh; */
}

::after,
::before {
    box-sizing: border-box;
}

h1 {
    font-size: 3.5rem;
    line-height: 4rem;
    margin: 0;
    font-weight: bold;
    font-family: var(--heading-font-family);
}

.heading h1 {
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.4rem;
    line-height: 3.2rem;
    margin: 0;
    margin-bottom: 1.25rem;
    font-weight: bold;
    font-family: var(--heading-font-family);
    margin-bottom: .75rem;
    margin-top: 1.5rem;
}

h3 {
    font-size: 1.6rem;
    line-height: 2rem;
    margin-bottom: 1rem;
    margin-top: 1rem;
}

p {
    margin: 0 0 1rem;
}

.container {
    max-width: 1200px;
    padding: 0 1rem;
    margin: auto;
    box-sizing: border-box;
    width: 100%;
}

.content {
    padding: 4rem 0;
}

.content h1 {
    margin-bottom: 1.25rem;
}

.content p,
.content li {
    font-size: 1.2rem;
    line-height: 2rem;
    max-width: 80ch;
}

.row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4rem;
}

.heading {
    padding: 8rem 0 4rem;
}

.heading-home {
    font-size: 1.2rem;
    line-height: 2rem;
    max-width: 80ch;
    font-weight: normal;
    margin: auto auto 1rem;
}

.btn {
    background: var(--accent);
    color: var(--primary);
    padding: 1rem;
    display: flex;
    width: fit-content;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
    margin: 2rem 0;
    border: 1px solid var(--accent);
    cursor: pointer;
    font-size: 1rem;
}

.btn:hover {
    background-color: var(--primary);
    color: var(--accent-light);
}

.btn:focus {
    border-radius: 6px;
    background-color: var(--primary-font);
    color: var(--accent-light);
}

.heading p {
    font-size: 1.6rem;
    line-height: 2.4rem;
}

a {
    color: inherit;
    transition: .2s ease-out;
}

a:hover {
    color: var(--primary);
    text-decoration: none;
    transition: var(--ease);
}

a:focus {
    background-color: var(--primary);
    text-decoration: none;
    color: var(--primary-bg);
    border-radius: 2px;
}

/*----------Header Navigation----------*/
header {
    background-color: var(--primary-bg);
}

.header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 0;
    gap: 2rem;
    border-bottom: 1px dotted var(--primary-light);
}

.header-logo {
    font-size: 1.2rem;
    text-decoration: none;
    font-family: var(--heading-font-family);
    color: var(--primary);
}

.header-nav__list {
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    gap: 2rem;
}

.header-nav__list a {
    color: var(--primary);
}

.header-nav a:hover {
    color: var(--primary);
}

.header-nav a:focus {
    color: var(--primary-bg);
}

.header-nav .button-menu {
    background: 0;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: .75rem 1rem;
    font-size: .85rem;
    border-radius: 6px;
    text-transform: uppercase;
    display: none;
    align-items: center;
    cursor: pointer;
    font-weight: bold;
    transition: .2s ease-out;
}

.header-nav .button-menu:focus,
.header-nav .button-menu:hover {
    background-color: var(--primary);
    color: var(--primary-bg);
    border: 1px solid var(--primary);
}

.header-nav .button-menu span {
    font-size: 1.15rem;
    padding-right: .35rem;
}

/*----------Footer Navigation----------*/
footer {
    background-color: var(--primary-bg);
    margin-top: auto;
}

footer .container {
    padding: 2rem 3rem;
    /* border-top: 1px solid var(--accent-light); */
}

footer .row {
    gap: 0;
}

footer .col-40 {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

footer h3,
footer a,
footer span {
    font-size: .85rem;
    color: var(--primary);
}

footer a:hover {
    color: var(--primary);
}

footer h3 {
    text-transform: uppercase;
    font-weight: normal;
    margin-top: 0;
}

footer ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: .5rem;
    flex-direction: column;
}

footer span,
footer span a {
    color: #516976;
}

/*----------Extra----------*/

/*-----Skip to Main-----*/
a.skip-main {
    color: var(--accent);
}

.skip-main {
    position: absolute;
    padding: .5rem;
    background-color: var(--accent);
    border-bottom-right-radius: 2px;
    top: -40px;
    left: 0;
    z-index: 100;
    transition: var(--ease)
}

.skip-main:focus,
.skip-main:active {
    top: 0;
}

/*---Columns---*/

.col-67 {
    flex: 0 0 calc(67% - var(--gap-reduce));
    max-width: calc(67% - var(--gap-reduce));
}

.col-60 {
    flex: 0 0 calc(60% - var(--gap-reduce));
    max-width: calc(60% - var(--gap-reduce));
}

.col-40 {
    flex: 0 0 calc(40% - var(--gap-reduce));
    max-width: calc(40% - var(--gap-reduce));
}

.col-33 {
    flex: 0 0 calc(33% - var(--gap-reduce));
    max-width: calc(33% - var(--gap-reduce));
}

.col-20 {
    flex: 0 0 calc(20% - var(--gap-reduce));
    max-width: calc(20% - var(--gap-reduce));
}

.secondary-bg {
    background: #bad7df;
    background: var(--accent-light);
}

.sr-only {
    left: -200vw;
    position: absolute;
}

.center-items {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.center-items .btn {
    margin-top: 1rem;
}

.margin-increase {
    margin-top: 4rem;
}

p.margin-increase {
    margin-top: 2rem;
}

a.current-page {
    color: var(--primary);
    text-decoration: none;
}

.speaker-img {
    max-height: 480px;
    background: #d4d4d4;
    border-radius: 6px;
    box-shadow: var(--img-shadow);
    margin-bottom: 2rem;
}

.carousel-img {
    background: #d4d4d4;
    border-radius: 6px;
    width: 100%;
}

iframe {
    border-radius: 6px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
}

.book-details {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.book-details p,
.book-details .btn {
    margin: 0;
}

.contact-form {
    display: flex;
    flex-direction: column;
    margin-bottom: 1rem;
}

.contact-form label {
    margin-bottom: .5rem;
    font-size: 1rem;
}

.contact-form input,
.contact-form textarea {
    margin-bottom: 1rem;
    padding: .75rem;
    border-radius: 4px;
    box-shadow: none;
    border: 1px solid var(--accent);
    font-size: 1rem;
    font-family: Verdana, sans-serif;
    width: 100%;
}

.contact-form textarea {
    height: 100px;
}

.contact-form .btn {
    margin: 0;
}

.carousel {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: row;
    anchor-name: --carousel;
    anchor-scope: --carousel;
    --img-shadow: 0 1px 1px hsl(0deg 0% 0% / .075), 0 2px 2px hsl(0deg 0% 0% / .075), 0 4px 4px hsl(0deg 0% 0% / .075), 0 8px 8px hsl(0deg 0% 0% / .075), 0 16px 16px hsl(0deg 0% 0% / .075);
    /* height: calc(90vh - 2.5rem); */
    aspect-ratio: 16 / 9;
    overflow: auto;
    overscroll-behavior-inline: contain;
    margin: 0 auto;
    position: relative;
    container-type: size;
    scroll-snap-type: inline mandatory;
    scroll-marker-group: after;
    scroll-behavior: smooth;
    width: calc(100% - 96px);
    width: 100%;
    margin-top: -1rem;

    &.paginated {
        display: block;
        white-space: normal;
        columns: 1;
    }
}

@keyframes interactive-when-visible {
    0% {
        interactivity: auto;
    }
}

.carousel.paginated.discrete .item {
    interactivity: inert;
    animation: interactive-when-visible steps(1);
    animation-timeline: view(inline);
}

.slides {
    &>* {
        min-width: 80%;
        margin: 2%;
        position: relative;
    }

    & .item {
        height: 100%;
        box-shadow: 5px 5px 5px rgba(0, 0, 0, 0.5);
        box-shadow: var(--img-shadow);
        /* border: 1px solid #444; */
    }
}

.tabpanels.cards {
    padding-left: 50%;
    padding-right: 50%;
}

.itemized>* {
    scroll-snap-align: center;
}

.tabpanels>* {
    container-type: scroll-state;

    &>* {
        interactivity: inert;
        /* opacity: 0.5; */
        transition: opacity 0.1s;

        @container scroll-state(snapped: inline) {
            interactivity: auto;
            opacity: 1;
        }
    }
}

.cards .item {
    min-width: 240px;
    height: calc(100cqh - 32px);
    margin: 8px;
    display: inline-block;
    box-shadow: 5px 5px 5px var(--primary);
    box-shadow: var(--img-shadow);
    border: 1px solid #444;
}

.paginated::column {
    scroll-snap-align: center;
}

/* ::scroll-button pseudo-elements: */
.carousel::scroll-button(*) {
    position-anchor: --carousel;
    position: absolute;
    width: 3rem;
    height: 3rem;
    border-radius: 50%;
}

.carousel::scroll-button(inline-start) {
    content: "◀" / "Previous";
    position-area: left center;
    color: var(--primary);
    border-color: var(--primary);
    background-color: var(--primary-bg);
    margin-right: 1rem;
}

.carousel::scroll-button(inline-end) {
    content: "▶" / "Next";
    position-area: right center;
    color: var(--primary);
    border-color: var(--primary);
    background-color: var(--primary-bg);
    margin-left: 1rem;
}

.carousel::scroll-button(*):disabled {
    opacity: 25%;
}

/* ::scroll-marker pseudo-elements: */
.carousel::scroll-marker-group {
    overflow: auto;
    display: block;
    scroll-behavior: smooth;
    scrollbar-width: none;
    text-align: center;
    white-space: nowrap;
    height: 2.5rem;
}

.itemized>*::scroll-marker,
.paginated::column::scroll-marker {
    content: "" / attr(data-label);
    width: 1.5rem;
    height: 1.5rem;
    border-radius: 50%;
    border: 1px solid var(--primary);
    display: inline-block;
}

.itemized>*::scroll-marker:target-current,
.paginated::column::scroll-marker:target-current {
    background: var(--primary-light);
}

@media screen and (max-width: 1199px) {
    :root {
        --gap-reduce: 2rem;
    }

    .container {
        max-width: 900px;
    }

    .heading {
        padding: 6rem 0 4rem;
    }

    .cover-img,
    .speaker-img {
        width: auto;
        max-width: 100%;
    }

    .margin-increase {
        margin-top: 2rem;
    }

    .row {
        gap: 4rem;
    }
}

@media screen and (max-width: 899px) {
    h1 {
        font-size: 2.75rem;
        line-height: 3.2rem;
    }

    h2 {
        font-size: 2rem;
        line-height: 2.7rem;
    }

    .heading p {
        font-size: 1rem;
        line-height: 1.6rem;
    }

    .header-nav {
        flex-direction: column;
        align-items: flex-start;
    }

    .container {
        max-width: 60ch;
    }

    .content {
        padding: 3rem 0;
    }

    .content p,
    .content li,
    .heading-home {
        font-size: 1rem;
        line-height: 1.6rem;
    }

    .cover-img,
    .speaker-img {
        max-height: 320px;
        margin: auto;
        width: auto;
    }

    .speaker-img {
        margin: auto;
    }

    .heading {
        padding: 4rem 0 2rem;
    }

    .row {
        flex-direction: column;
        flex-wrap: nowrap;
        align-items: center;
        gap: 3rem;
    }

    .col-20,
    .col-33,
    .col-40,
    .col-60,
    .col-67 {
        flex: 0 0 100%;
        max-width: 100%;

    }

    .margin-increase {
        margin-top: 1rem;
    }

    .book-details {
        align-items: center;
        margin-top: 2rem;
    }

    footer .container {
        padding: 2rem 1rem;
    }

    footer .row {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        align-items: flex-start;
        gap: 1rem;
    }

    footer .col-20 {
        flex: 0 0 calc(33% - 1rem);
        max-width: calc(33% - 1rem);
    }

    footer .col-40 {
        margin-top: 4rem;
        margin-left: 0;
        align-items: flex-start;
    }

    /* Mobile Menu */

    .header-nav {
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        gap: 0;
    }

    .header-nav__list {
        flex-direction: column;
        flex: 1 100%;
        display: none;
        border-top: 1px solid var(--primary-bg);
        margin-top: 1.5rem;
        padding: 2rem 0 1rem;
    }

    .header-nav .header-nav__list.open {
        display: flex;
    }

    .header-nav .button-menu {
        display: flex;
    }
}

/* @media screen and (max-width: 513px) {
    
} */
