/* Defaults */

@font-face {
    font-family: 'Work Sans';
    src: url('../fonts/WorkSans-Italic.woff2') format('woff2');
    font-weight: 100 900;
    font-style: italic;
    font-display: swap;
}

@font-face {
    font-family: 'Work Sans';
    src: url('../fonts/WorkSans-Regular.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --padding: 1.5rem;
    --color-black: #000;
    --color-white: #fff;
    --color-grey: #3B3B3B;
    --color-light: #efefef;
    --color-text-grey: var(--color-grey);
    --color-brand-blue: #285F77;
    --color-brand-orange: #F17105;
    --color-brand-yellow: #DED70B;
    --color-brand-green: #98B84D;
    --color-code-light-grey: #cacbd1;
    --color-code-comment: #a9aaad;
    --color-code-white: #c5c9c6;
    --color-code-red: #d16464;
    --color-code-orange: #de935f;
    --color-code-yellow: #f0c674;
    --color-code-green: #a7bd68;
    --color-code-aqua: #8abeb7;
    --color-code-blue: #7e9abf;
    --color-code-purple: #b294bb;
    --color-masto-dark: #563ACC;
    --color-masto-light: #858AFA;
    --color-rss-dark: #F17105;
    --color-rss-light: #F29605;
    --font-family-headings: 'Work Sans', Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
    /* Using Modern Font Stacks - https://modernfontstacks.com/ */
    /* Sans serif */
    --font-family-sans: Inter, Roboto, 'Helvetica Neue', 'Arial Nova', 'Nimbus Sans', Arial, sans-serif;
    /* Old Style */
    --font-family-serif: 'Iowan Old Style', 'Palatino Linotype', 'URW Palladio L', P052, serif;
    /* Monospace Code */
    --font-family-mono: ui-monospace, 'Cascadia Code', 'Source Code Pro', Menlo, Consolas, 'DejaVu Sans Mono', monospace;
}

* {
    margin: 0;
    padding: 0;
    --color-background: var(--color-white);
    --color-heading: var(--color-brand-blue);
    --color-text: var(--color-black);
    --color-mastodon: var(--color-masto-dark);
    --color-rss: var(--color-rss-dark);
    --color-email: var(--color-code-red);
}

html {
    font-family: var(--font-family-sans);
    font-size: 1.1rem;
    color: var(--color-text);
    background: var(--color-background);
    height: 100%;
}

img {
    width: 100%;
}

body {
    padding: 0;
    margin: 0 auto;
    height: 100%;
}

li {
    list-style: none;
    margin: 1rem;
}

a {
    color: currentColor;
    text-decoration: none;
}

article a, .reply a {
    font-weight: 600;
    text-decoration: underline;
}

strong, b {
    font-weight: 600;
}

.small-text {
    font-size: 0.75rem;
}

/* Header */

.header {
    padding: var(--padding) 10% 4rem 10%;
    position: relative;
    background-color: var(--color-brand-blue);
    color: var(--color-white);

}

.header-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-right: auto;
    margin-left: auto;
    max-width: 80rem;
}

.logo {
    font-family: var(--font-family-headings);
    font-weight: 700;
    padding: 1rem;
    color: var(--color-white);
    font-size: 2.0rem;
    text-decoration: underline 3px var(--color-brand-orange);
}

.menu {
    display: flex;
    align-items: center;
}

.menu a {
    padding: 1rem;
    display: block;
}

.menu a[aria-current] {
    text-decoration: underline;
    text-decoration-color: var(--color-brand-yellow);
    text-decoration-thickness: 0.2em;
}

.rss svg {
    fill: var(--color-rss);
}

.email svg {
    fill: var(--color-email);
}

.navicon {
    display: inline-block;
    width: 20px;
}


.replyicon {
    display: inline-block;
    width: 20px;
    padding-left: 1%;
}

.articlereply {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
}


/* Basic styling for the footer */
.footer {
    position: sticky;
    top: 100vh;
    display: flex;
    flex-direction: column;
    /* Stack items vertically */
    flex-wrap: wrap;
    align-items: center;
    /* Center the content vertically */
    padding: 20px;
}

/* Style for each row of text */
.footer-row {
    display: flex;
    margin: 10px;
    /* Add spacing between rows */
}

.footer-text {
    margin-right: 10px;
    /* Add spacing between text items */
}



/* Body */

.section {
    padding: 3rem 0;
}

.text {
    line-height: 1.6rem;
}

.text a, footer a {
    text-decoration: underline;
    text-decoration-color: var(--color-heading);
    text-decoration-thickness: 0.1em;
}

.text a:hover, footer a:hover {
    text-decoration-thickness: 0.2em;
}

.text :first-child {
    margin-top: 0;
}

.text :last-child {
    margin-bottom: 0;
}

.text p,
.text ul,
.text ol {
    margin-bottom: 1.5rem;
}

.text ul,
.text ol {
    margin-left: 1rem;
}

.text ul p,
.text ol p {
    margin-bottom: 0;
}

.text ul>li {
    list-style: disc;
}

.text ol>li {
    list-style: decimal;
}

.text ul ol,
.text ul ul,
.text ol ul,
.text ol ol {
    margin-bottom: 0;
}


h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-family-headings);
    color: var(--color-heading);
    font-weight: 700;
}

.text h1,
h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.25em;
}

.text h2,
.h2 {
    font-size: 1.25rem;
    margin-bottom: 1.25rem;
}

.text .codeblock {
    display: grid;
}

.text code {
    font-family: var(--font-family-mono);
    font-size: 1em;
    background: var(--color-light);
    padding: 0 .5rem;
    display: inline-block;
    color: var(--color-black);
}

.text pre {
    margin: 3rem 0;
    background: var(--color-black);
    color: var(--color-white);
    padding: 1.5rem;
    overflow-x: scroll;
    overflow-y: hidden;
    line-height: 1.5rem;
}

.text pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.text dt {
    font-weight: 600;
}

.text blockquote {
    font-style: italic;
    line-height: 1.325em;
    border-left: 2px solid var(--color-heading);
    padding-left: 1rem;
    margin: 1rem;
    color: var(--color-text-grey);
}

.text blockquote footer {
    font-size: .875rem;
    font-style: italic;
}

.text figure {
    margin: 3rem 0;
}

figcaption {
    font-size: 0.75rem;
    font-style: normal;
    text-align: center;
    display: block;
    color: var(--color-text);
}

hr {
    border: 0;
    background: var(--color-heading);
    height: 2px;
    width: 30%;
    margin: 3rem auto;
}

.meta {
    padding: 0 0 1.5rem 0;
    font-size: 0.8rem;
}

.reply {
    padding: 1.5rem 0;
}

/* Footnotes */

.footnotes {
    font-style: italic;
}

/* Pagination */

.pagination {
    padding-top: 1rem;
    position: relative;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

/* Pages */

/* General styling */

section.content {
    margin: 2rem auto 0;
    max-width: 1000px;
    padding: 0 15% 0 15%;
}

/* Homepage*/

section.intro {
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    margin-bottom: 2rem;
    padding: 0 0 8rem 0;
    clip-path: polygon(0% 0%, 100% 0%, 100% 85%, 0% 100%);
    /*Diagonal from bottom left to bottom right */
}

.intro-inner, .home-2-inner, .posts-inner {
    margin-right: auto;
    margin-left: auto;
    max-width: 75rem;
    padding: 0 15% 0 15%;
}

.home-3-inner {
    max-width: 35rem;
    margin-right: auto;
    margin-left: auto;
    line-height: 1.5rem;
    padding: 0 15% 0 15%;
}

.intro-left, .intro-right {
    width: 50%;
}

.posts-inner {
    max-width: 40rem;
    padding: 0 15% 0 15%;
}

.intro-right {
    border-radius: 4%;
    overflow: hidden;
}


section.intro h1, section.intro h2 {
    color: var(--color-white);
}

section.intro h2 {
    font-size: 2rem;
    color: #EAE20B;
    position: relative;
}

section.home-2 {
    color: var(--color-black);
    padding: 0 0 2rem 0;
}

section.home-3 {
    text-align: center;
    background-color: var(--color-brand-blue);
    color: var(--color-white);
    margin-bottom: 2rem;
    padding: 4rem 0 4rem 0;
}

section.home-3 h2 {
    font-size: 2rem;
    color: var(--color-white);
    margin-bottom: 2rem;
}



/* Rotating Text Styling */
.rotating-text-wrapper {
    position: relative;
    display: inline-block;
    overflow: hidden;
    /* Hide content that goes outside the wrapper */
    padding: 0;
}

/* Add this to keep height */
.rotating-text-wrapper::after {
    content: "";
    display: block;
    width: 0;
}

.rotating-text {
    display: inline-block;
    white-space: nowrap;
    /* Prevent text from wrapping */
    position: relative;
    transition: all 0.3s ease-in-out;
}

.cursor {
    display: inline-block;
    width: 4px;
    height: 1.75rem;
    /* Reduce the height slightly */
    background-color: #EAE20B;
    /* Cursor color */
    margin-left: 0rem;
    animation: blink 1s infinite;
    /* Flashing animation */
    vertical-align: middle;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

.intro .rotating-text {
    font-size: 2rem;
    color: #EAE20B;
    position: relative;
    transition: all 0.3s ease-in-out;
}

/*  EO rotating text */


/* Intro Section */
.intro {
    padding: 20px;
}

.intro-inner {
    display: flex;
    flex-wrap: wrap;
    /* Allow items to wrap on smaller screens */
    align-items: center;
    /* Vertically align items */
    gap: 20px;
    /* Space between the divs */
}

.intro-left,
.intro-right {
    flex: 1;
    /* Allows both divs to grow and shrink */
    margin-bottom: 20px;
}

.intro-left {
    max-width: 60%;
}

.intro-right {
    max-width: 40%;
    display: flex;
    align-items: flex-end;
}

.profile-image {
    max-width: 100%;
    height: auto;
}

/* Media Queries for Intro Section */

/* Between 1000px and 700px */
@media (max-width: 1000px) {
    .intro-left {
        max-width: 70%;
    }

    .intro-right {
        max-width: 30%;
    }
}

/* Below 700px */
@media (max-width: 700px) {
    .intro-inner {
        flex-direction: column;
        /* Stack items vertically */
    }

    .intro-left {
        width: 100%;
        /* Take up full width */
    }

    .intro-left h1, .intro-left span.rotating-text {
        font-size: 1.2rem;
    }

    .intro-right {
        max-width: 100%;
        /* Take up full width */
    }


    .intro-right {
        order: 1;
        /* Ensure it appears below intro-left */
    }

    .intro-left {
        order: 2;
    }
}


/* Homepage link boxes */

.home-links-container {
    padding: 1.5rem 2rem;
}

.home-links {
    display: flex;
    justify-content: space-around;
    /* Or space-between, space-evenly, etc. */
    gap: 20px;
    /* Adjust as needed */
    flex-wrap: wrap;
    /* Allow items to wrap on smaller screens */
}

.home-link-item {
    flex: 1;
    /* Allow items to grow and shrink */
    min-width: 200px;
    /* Adjust as needed for minimum width */
    text-align: center;
}

.home-link-image-container {
    display: flex;
    justify-content: center;
    height: 70px;
    /* Set a fixed height to keep the images aligned */
    align-items: center;
    margin-bottom: 10px;
}

.home-link-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    /* Makes the image fit inside, retaining aspect ratio */
}

.home-link-item h3 {
    margin-top: 0;
}

.home-links>div {
    display: flex;
    /* Make each div a flex container */
    flex-direction: column;
    /* Ensure children are stacked vertically */
    align-items: center;
    /* Center align items horizontally */
    justify-content: center;
    /* Center align items vertically */
    text-align: center;
    width: calc(100%/3);
    /* Setting the width of columns at one third each */
    margin: 0 10px;
    padding: 1rem 1.5rem;
    box-shadow: 0px 0px 20px 2px rgba(0, 0, 0, 0.06);
}

/* Media query for narrow screens */
@media (max-width: 800px) {
    .home-links {
        flex-direction: column;
        /* Stacks the boxes vertically */
    }

    .home-links>div {
        width: 80%;
        /* Full width for each box when stacked */
        margin: 1rem auto;
        /* Adjust the margin for vertical stacking */
    }
}

.home-links img {
    width: 60px;
}

.home-links img, .home-links h3, .home-links p {
    padding: 1rem 0;
}



/* Blog list */
.post-list {
    display: flex;
    justify-content: space-between;
    padding-bottom: 0.5rem;
    max-width: 800px;
    margin: 0 auto;;
}

.post-list-date {
    font-size: .85rem;
}

/* Blog listing */

h2.post-year {
    margin: 1.5rem 0 .5rem 0;
}

section.blog-listing {
    margin: 2rem auto;
    max-width: 1000px;
}