/* ------------------------------------------------------------------------------------------- Reset */
* {
    margin: 0;
    padding: 0;
    border: 0;
    font-size: inherit;
    box-sizing: border-box;
    unicode-bidi: unset;
}

/* For images to not be able to exceed their container */
img {
    width: 100%;
    height: auto;
}

table {
    border-collapse: collapse;
}

textarea {
    white-space: revert;
}

/* ------------------------------------------------------------------------------------------- Fonts & Colors */
@font-face {
    font-family: "light";
    src: url(../fonts/Poppins-Light.ttf) format('truetype');
}

@font-face {
    font-family: "regular";
    src: url(../fonts/Poppins-Regular.ttf) format('truetype');
}

@font-face {
    font-family: "semibold";
    src: url(../fonts/Poppins-SemiBold.ttf) format('truetype');
}

@font-face {
    font-family: "bold";
    src: url(../fonts/Poppins-Bold.ttf) format('truetype');
}
@font-face {
    font-family: "medium";
    src: url(../fonts/Poppins-Medium.ttf) format('truetype');
}

@font-face {
    font-family: "italic";
    src: url(../fonts/Poppins-Italic.ttf) format('truetype');
}

.menu-label::after  {
  font-family: "Font Awesome 6 Free"; 
  font-weight: 900; 
}

:root {
    --offblk: #111;
    --dkgry: #333;
    --smoke: #666;
    --mdgry: #aaa;
    --ltgry: #ccc;
    --linen: #eee;
    --cotton: #fff;
    --warmteal: #5b7b79;
    --brightteal: #438270;
    --iceberg: #e3eeed;
    --chiffon: #FDE291;
    --blk-rgb: 0,0,0;
    --cotton-rgb: 255,255,255;
}

/* ------------------------------------------------------------------------------------------- Global */
body {
    font-size: 16px;
    font-family: 'light', sans-serif;
    color: var(--dkgry);
    background-color: var(--cotton);
    text-rendering: optimizeLegibility;
}
header {
    border-bottom: 1px solid var(--ltgry);
}
main p {
    padding: .5rem 0;
}
b {
    font-family: 'medium';
}
ul, li {
    margin-left: 1.5em;
}
ul.nobull li {
    list-style-type: none;
}
li {
    padding: .75rem 0 1rem;
}
a {
    color: inherit;
}
a[href="#"] {
    cursor: default;
}
button {
    cursor: pointer;
}
a:focus-visible,
footer a:focus-visible {
    outline: 3px dotted var(--cotton);
    outline-offset: .2em;
}
button:focus-visible,
header a:focus-visible,
.a11y a:focus-visible,
.blog a:focus-visible,
.dei a:focus-visible,
.lgbtq a:focus-visible,
.about main a:focus-visible,
.links a:focus-visible,
.notfound a:focus-visible,
.bloglist a:focus-visible,
.post main a:focus-visible {
    outline: 3px dotted var(--dkgry);
    outline-offset: .2em;
}
/* header & footer */
header,
.about main,
footer {
    width: 100%;
    padding: 1.5rem 3vw 0;
}
header {
    padding-bottom: 1.5rem;
    color: var(--dkgry);
}

header .wide,
header nav .menu,
footer nav,
.blog .nrw {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    align-items: center;
}
.sitename {
    font-size: 2.25rem;
    font-family: 'semibold';
    color: var(--warmteal);
}
.sitename a {
    font-family: "semibold";
    text-decoration: none;
}
.sitename a:hover,
.sitename a:focus-visible {
    text-shadow: 0 0 4px var(--ltgry);
}
nav {
    gap: 2em;
}

header nav a {
    padding: .5rem 1rem;
    font-family: 'medium';
    font-size: 1rem;
    color: var(--warmteal);
    text-decoration: none;
}
.current {
    color: var(--dkgry); 
}

header nav a:not(a[href="#"]):hover,
header nav a:not(a[href="#"]):focus-visible {
    background-color: var(--iceberg);
    border-radius: .5em;
}

footer {
    color: var(--cotton);
    background-color: var(--dkgry);
}
footer div.wide {
    display: flex;
    flex-flow: row-reverse nowrap;
    justify-content: space-between;
    padding: 1.5rem 0 2.5rem;
}
.copyright,
footer nav a {
    font-size: .75rem;
}
.tag.wide {
    line-height: 1.2;
    padding: 2rem 0 3rem;
    border-bottom: .5px solid var(--mdgry);
}

.copyright {
    color: var(--mdgry);
    letter-spacing: .1em;
}
footer nav a {
    color: var(--linen);
    font-family: 'regular';
    text-decoration: underline;
}
footer nav a:hover,
footer nav a:focus-visible {
    color: var(--chiffon);
}
@keyframes fadeUp {
    0%    { opacity: 0; margin-bottom: -1em; padding-top: 1em;}
    50%   { opacity: .5; }
    100%  { opacity: 1; margin-bottom: 0; padding-top: 0;}
  }
.indent {
    padding-left: 2rem;
}
.hide {
    display:  none;
}

/* ------------------------------------------------------------------------------------------- Home */
.wide {
    margin: 0 auto;
    max-width: 1140px;
}
.nrw {
    margin: 0 auto;
    max-width: 940px;
}
.home main > div {
    width: 100%;
}
.intro,
.dei {
    padding: 4em 4vw;
}
.blog {
    padding: 3em 4vw;
}
.hero,
.age,
.enby,
.a11y,
.lgbtq {
    padding: 6em 4vw 0;
}

.hero,
.enby {
    color: var(--cotton);
    background-color: var(--warmteal);
}
.age {
    color: var(--cotton);
    background-color: var(--dkgry);
}
.a11y,
.lgbtq {
    color: var(--warmteal);
    background-color: var(--iceberg);
}
.dei {
    background-color: var(--chiffon);
}
.home .hero h1,
.tag {
    font-size: 2.5rem;
    font-family: 'semibold';
    text-align: center;
}
.hero h1 {
    line-height: 1.2;
    animation: fadeUp 1s ease-in-out;
}

.imgHolder {
    position: relative;
    margin-top: 4em;
}
.imgHolder img {
    display: block;
    border-radius: 2em 2em 0 0;
}
.hero .imgHolder {
    animation: fadeUp 1s ease-in-out;
}
.attr {
    position: absolute;
    width: fit-content;
    bottom: 0;
    right: 0;
    padding: .3em 1em;
    font-size: .75rem;
    color: var(--linen);
    background-color: rgba(var(--blk-rgb),.5);
    z-index: 2;
}

.intro p,
.blog p {
    font-size: 1.65rem;
    line-height: 1.75;
}
.blog .nrw {
    gap: 2em;
    padding: 0 3rem;
}
.blog a {
    color: var(--warmteal);
    font-size: 1.65rem;
    font-family: 'semibold';
    padding: .5rem 1rem;
    text-decoration: none;
    background-color: var(--iceberg);
    border-radius: .5em;
    white-space: nowrap;
}
.blog a:hover,
.blog a:focus-visible {
    margin-right: -.5em;
}

.home blockquote {
    font-size: 2.5rem;
    line-height: 1.2;
}

.home blockquote span {
    float:left;
    font-size: 7rem;
    font-family: 'semibold';
    line-height: .9;
    padding-right: .35em;
}
cite {
    display: block;
    padding-top: 1em;
    font-style: normal;
    font-size: .75rem;
    text-align: right;
}

/* ------------------------------------------------------------------------------------------- Menu */
.navigation .menu {
    list-style: none;
    overflow: hidden;
}

.navigation a {
    width: 100%;
    display: block;
    padding: 15px 30px;
    text-align: center;
}

.navigation .menu-btn {
    display: none;
}

.navigation .menu-label {
    display: none;
}

.navigation .menu {
    clear: none;
    float: right;
    max-height: none;
} 


/* ------------------------------------------------------------------------------------------- About */
.about {
    position: relative;
}
.aboutme {
    display: flex;
    flex-flow: row nowrap;
    gap: 4em;
    margin: 1em auto;
    max-width: 1140px;
}
.about h1 {
    margin: 0 auto;
    max-width: 1140px;
    color: var(--smoke);
    font-size: 1rem;
    font-family: 'medium';
    text-transform: uppercase;
}
.aboutme img {
    width: 45%;
    height: fit-content;
    border-radius: 2em;
    z-index: 2;
}
.aboutme p {
    line-height: 1.6;
}

p.quote {
    font-size: 2.25rem;
    font-family: 'semibold';
    line-height: 1.2;
}
p.extra {
    font-size: .8rem;
    line-height: normal;
}

/* ------------------------------------------------------------------------------------------- Not Found */
html:has(.notfound) {
    block-size: 100%; 
}
.notfound,
.links {
    min-block-size: 100%; 
    background-color: var(--iceberg);
}
.notfound main {
    margin-top: 20vh;
    display: flex;
    flex-flow: column nowrap;
    align-items: center;
    min-height: 100vh;
}
.notfound h1 {
    font-size: 2.3rem;
    font-family: 'semibold';
    color: var(--warmteal);
}
.notfound h2 {
    font-size: 1.6rem;
    font-family: 'medium';
    color: var(--dkgry);
}
.notfound p:last-of-type {
    margin-top: 1.5em;
}
a.pgNav {
    text-decoration: none;
}

/* ------------------------------------------------------------------------------------------- Links */
.links main {
    margin: 0 auto;
    max-width: 1140px;
    text-align: center;
}
.links .pic {
    max-width: 120px;
    margin-top: 3em;
    border-radius: 50%;
    border: .3em solid var(--warmteal);
}
.links h1 {
    font-size: 1.3rem;
    font-family: 'medium';
    padding-top: .25em;
}
.links h2 {
    font-size: 1.1rem;
    font-family: 'semibold';
    padding: 1em .5em .5em;
}
.links a {
    display: block;
    width: 60%;
    padding: 1em;
    margin: 0 auto .5em;
    border-radius: 2em;
    color: var(--cotton);
    text-align: center;
    background-color: var(--warmteal);
    text-decoration: none;
}
.links a:hover,
.links a:focus-visible {
    background-color: var(--smoke);
}
.about footer,
.links footer {
    margin-top: 3em;
}

/* ------------------------------------------------------------------------------------------- Blog Home */
.bloghome .hero {
    padding: 4em 0;
}
.bloghome .hero .wide {
    text-align: center;
    width: 80%;
}
.bloghome .hero p:first-of-type {
    color: var(--linen);
    font-size: 1.2rem;
    font-family: 'medium';
    text-transform: uppercase;
}
.bloghome .hero .tag {
    padding: .25rem 0;
    line-height: 1.2;
    text-wrap: balance;
    border: 0;
}
.bloglist {
    color: var(--warmteal);
    background-color: var(--iceberg);
}
.bloglist {
    padding: 3rem 4vw;
}

.bloglist h1,
.post h1 {
    color: var(--dkgry);
    font-size: 2rem;
    font-family: 'medium';
    padding-bottom: .5em;
}
.bloglist a {
    display: block;
    text-decoration: none;
}
.blogcard {
    display: flex;
    align-items: center;
    margin-bottom: 2em;
    background-color: var(--cotton);
    border-radius: 20px;
}
.blogcard:hover,
.blogcard:focus-visible {
    box-shadow: 0 0 7px 0 var(--mdgry);
}

.img-container {
    width: 35%;
    aspect-ratio: 5/4;
    border-radius: 20px 0 0 20px;
  transform-origin: center center;
    overflow: hidden;
}

.img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.4s ease-in-out;
}

.img-container img:hover {
    transform: scale(1.2);
}

.bloginfo {
    width: 65%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 1rem 2rem;
    color: var(--dkgry);
}
.bloginfo .title {
    color: var(--dkgry);
    font-size: 1.8rem;
    font-family: 'semibold';
    line-height: 1.2;
    padding-bottom: .25em;
}
.bloginfo .subtitle {
    color: var(--smoke);
}
.pgNav {
    padding: 1rem 2rem;
    color: var(--cotton);
    background-color: var(--warmteal);
    border-radius: .5em;
}
.pgNav.next i {
    padding-left: .5em;
}
.pgNav.back i {
    padding-right: .5em;
}
.pgNav:hover,
.pgNav:focus-visible {
    color: var(--iceberg);
    background-color: var(--dkgry);
    box-shadow: 0 0 4px 0 var(--mdgry);
}

.meta {
    display: flex;
    flex-flow: row nowrap;
    align-items: center;
    gap: .5em;
}
.date {
    padding-right: 1.5em;
}
.date,
.length,
.cat {
    font-size: .8rem;
}
.cat {
    width: fit-content;
    margin-right: .5rem;
    padding: .5rem .75rem;
    border-radius: .5em;
}

.cat.experiences {
    background-color: #93cdcb; 
}
.cat.experiences::after {
    content: "Experiences";
}
.cat.design {
    background-color: #EF7F71;
}
.cat.design::after {
    content: "Design";
}
.cat.research {
    background-color: #9BACD9;
}
.cat.research::after {
    content: "Research";
}
.cat.career {
    background-color: #99B2DD;
}
.cat.career::after {
    content: "Career";
}
.bloghome main nav {
    display: flex;
    flex-direction: row;
    gap: 1rem;
    margin: 0 auto;
    width: fit-content;
}
.bloghome .pageof {
    font-size: .9rem;
    text-align: center;
    padding-bottom: 1em;
}

/* ------------------------------------------------------------------------------------------- Post */
.cover {
    padding: 3rem 4vw 1rem;
}
.cover img {
    aspect-ratio: 19/9;
    border-radius: 2em;
    object-fit: cover;
}
.tight {
    margin: 0 auto;
    max-width: 860px;
}

.post .cat {
    float: left;
    margin-right: 2em;
}
.post h1 {
    margin-top: 1em;
}
.post h2 {
    font-size: 1.5rem;
    font-family: 'semibold';
    margin-top: 1.5em
}
.post h3 {
    padding: .5rem 0 0;
    font-size: 1.1rem;
    font-family: "medium";
}
h3 + p {
    padding-top: 0;
}
h3 + figure {
    padding-top: .75rem;
}

.post .subh {
    width: 100%;
    margin-bottom: 1em;
    padding: 1rem;
    font-size: 1rem;
    color: var(--smoke);
    background-color: rgba(var(--blk-rgb),.05);
    border: 1px solid var(--ltgry);
}
figure {
    margin-bottom: 1em;
}
figcaption {
    color: var(--smoke);
    font-size: .7rem;
    margin-top: -.5em;
    padding-left: 1.5em;
}
.article figcaption {
    text-align: center;
}
.article {
    padding: 1rem 4vw 2rem;
}
.article a,
.lastly a {
    color: #438270;
}
.lastly {
    padding-bottom: 1.5em;
}
.bio {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-between;
    padding: 1rem 0 3rem;
    border-top: 1px solid var(--mdgry);
}
.bio > img {
    max-width: 140px;
    border-radius: 50%;
    border: .3em solid var(--warmteal);
}
.author {
    display: flex;
    flex-flow: column nowrap;
    justify-content: center;
    width: 50%;
}
.author span {
    display: block;
}
.author .prefix {
    color: var(--mdgry);
    text-transform: uppercase;
    font-family: 'medium';
    padding-bottom: .5em;
}
.author .name {
    font-size: 1.6rem;
    font-family: 'semibold';
}
.author .title {
    font-family: 'medium';
    color: var(--smoke);
}
.connect {
    display: flex;
    flex-flow: row nowrap;
    align-items: flex-start;
    gap: 1em;
}
.connect a {
    display: block;
    padding: .75rem .5rem .5rem;
    background-color: var(--warmteal);
    border-radius: 50%;
    aspect-ratio: 1/1;
}
.connect a:hover img,
.connect a:focus-visible img {
    background-color: var(--dkgry);
}
.connect i {
    font-size: 1.4rem;
    color: var(--cotton);

}
.imgbk {
    background-color: var(--ltgry);
    border-radius: 1em;
}
.article blockquote {
    margin: 1rem 2rem;
    padding: 2rem;
    background-color: rgba(var(--blk-rgb),.05);
    border-left: 4px solid var(--brightteal);
}
.article blockquote span {
    display: block;
    padding-top: 1.5rem;
}

.posters img:not(.posters .bio img) {
    display: block;
    margin: .5rem auto;
    width: 90%;
    border-radius: 1rem;
}
.posters a {
    font-family: "regular";
}

/* QA checks: images with no alt tag and external links with no target 
img:not(img[alt]),
a[href^=http]:not(a[target]) {
  border: 3px solid red;
}

a[href*=uxforthewin] {
    background-color: #ff0;
}
*/

@media only screen and (max-width: 900px) {
    header .wide {
        align-items: flex-start;
    }
    header nav a:hover,
    header nav a:focus-visible {
        border-radius: unset;
    }
    header nav {
        display: flex;
        flex-direction: column;
        align-items: flex-end;
        gap: 0;
    }
    footer div.wide {
        flex-direction: column;
        gap: 1em;
    }
    footer nav {
        justify-content: center;
    }
    .copyright {
        text-align: center;
    }
    .navigation .menu-label {
        display: inline-block;
        padding: .75em 1em;
        background-color: var(--iceberg);
        border-radius: .5em;
        user-select: none;
        cursor: pointer;
    }
    
    .navigation .menu-btn:checked ~ .menu-label,
    .menu-label:hover {
        background-color: var(--linen);
    }
    
    .navigation .menu-btn:checked ~ .menu-label span {
        display: none;
    }
    .navigation .menu-btn:checked ~ .menu-label::after {
        content: "\f00d";
    }

    .navigation .menu-btn:not(.menu-btn:checked) ~ .menu { /* closed */
        clear: both;
        max-width: 0;
        max-height: 0;
        transition: max-height .2s ease-out;
    }

    .navigation .menu-btn:checked ~ .menu { /* open */
        max-width: unset;
        max-height: 240px;
        width: 94vw;
        margin-top: 3.25rem;
        position: absolute;
        display: flex;
        flex-direction: column;
        align-items: center;
        background-color: var(--cotton);
        border-radius: .5em;
        box-shadow: 0 0 .2em 0 var(--ltgry);
        z-index: 10;
    }
    
    .blog .nrw {
        display: flex;
        flex-direction: column;
        gap: 1em;
    }
    .home blockquote span {
        float: unset;
        display: block;
    }
    .imgHolder {
        margin-top: 2em;
    }
    
    .aboutme {
        flex-direction: column-reverse;
        gap: 1em;
    }
    
    /* blog */
    .blogcard {
        flex-direction: column;
    }
    .img-container,
    .bloginfo {
        width: 100%;
    }
    
    .img-container {
        aspect-ratio: 9/3;
        border-radius: 20px 20px 0 0;
    }

}
