/*
Josh's Custom CSS Reset
https://www.joshwcomeau.com/css/custom-css-reset/
*/

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

*:not(dialog) {
    margin: 0;
}

@media (prefers-reduced-motion: no-preference) {
    html {
        interpolate-size: allow-keywords;
    }
}

body {
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    font-family: -apple-system, BlinkMacSystemFont, avenir next, avenir, segoe ui, helvetica neue, Adwaita Sans, Cantarell, Ubuntu, roboto, noto, helvetica, arial, sans-serif;
}

img, picture, video, canvas, svg {
    display: block;
    max-width: 100%;
}

input, button, textarea, select {
    font: inherit;
}

p, h1, h2, h3, h4, h5, h6 {
    overflow-wrap: break-word;
}

p {
    text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
    text-wrap: balance;
}

#root, #__next {
    isolation: isolate;
}

/* Carl’s styles */

html {
    font-size: 16px;
}

header,
main,
footer {
    width: 100%;
    padding: 1rem;
    max-width: 40rem;
    margin: 0 auto;
}

main {
    margin: 2rem auto;
}

h1 {
    margin-bottom: 1rem;
}

h2 {
    margin: 2rem 0 .5rem;
}

h3 {
    margin-bottom: .25rem;
}

p, ul, ol {
    margin-bottom: 1rem;
}

p.big {
    font-size: 1.4rem;
}

.logos {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 0;
    margin: 0;
    padding: 0;
    border-left: 1px solid #ddd;
    border-top: 1px solid #ddd;
}

.logos li span {
    display: none;
}

.logos li {
    display: flex;
    align-items: center;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    height: 7rem;
    padding: 2rem;
    border-right: 1px solid #ddd;
    border-bottom: 1px solid #ddd;
}

.logos img {
    width: auto;
    height: 100%;
}

figure {
    margin: 2rem auto;
}

.wide {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    padding: 0 1rem;
    max-width: none; 
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

figure img {
    display: block;
    width: 100%;
    max-width: 80rem;
    height: auto;
}

figcaption {
    display: block;
    width: 100%;
    max-width: 80rem;
    text-align: left;
    margin-top: .25rem;
    font-style: italic;
}

blockquote {
   font-style: italic;
   border-left: 4px solid #ddd;
   padding-left: 1rem;
}

.tag {
    position: relative;
    bottom: .75rem;
}

.card {
    border: 1px solid #ccc;
    padding: 1rem;
    border-radius: .25rem;
    margin: 1rem auto;
    display: flex;
    align-items: center;
    justify-content: left;
    gap: 1.5rem;
}

.card .thumb {
    display: block;
    flex-shrink: 0;
    width: 10rem;
    height: 10rem;
    background: #ccc;
}

.card .body {
    flex-shrink: 1;
}

video {
    width: 100%;
    height: auto;
}

hr {
    width: 100%;
    height: 1px;
    background: #ddd;
    border: none;
    margin: 3rem auto;
}

/* YouTube embed */
.container {
    display: flex;
    justify-content: center;
}
    
iframe {
    aspect-ratio: 16 / 9;
    width: 100% !important;
    margin: 1rem auto;
}

iframe + iframe {
    margin-top: 0;
}