@font-face {
    font-family: "AtkinsonHyperlegible";
    src: url("Assets/Atkinson-Hyperlegible-Regular-102a.woff2") format("woff2");
}
@font-face {
    font-family: "AtkinsonHyperlegible";
    src: url("Assets/Atkinson-Hyperlegible-Bold-102.ttf") format("woff2");
    font-weight: bold;
}
@font-face {
    font-family: "AtkinsonHyperlegible";
    src: url("Assets/Atkinson-Hyperlegible-BoldItalic-102a.woff2") format("woff2");
    font-weight: bold;
    font-style: italic;
}
@font-face {
    font-family: "AtkinsonHyperlegible";
    src: url("Assets/Atkinson-Hyperlegible-Italic-102a.woff2") format("woff2");
    font-style: italic;
}

h1 {
    font-family: "AtkinsonHyperlegible";
    font-size: 300%;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
    font-style: italic;
    margin: 0;
    text-align: center;
}

h2 {
    font-family: "AtkinsonHyperlegible";
    font-size: 200%;
    color: rgba(255, 255, 255, 0.6);
    font-weight: bold;
    margin: 0;
    text-align: center;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
}

body::before {
    content: "";
    position: fixed;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-image: url("Assets/LandingBackground.jpg");
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-attachment: fixed;
    filter: blur(0px);
    z-index: -1;
}

.headingDiv {
    max-width: fit-content;
    margin-inline: auto;
    text-align: center;
    margin-bottom: 20px;
}

.subheadingDiv {
    max-width: fit-content;
    margin-inline: auto;
    text-align: center;
}

.frostedGlass {
    position: relative;
    backdrop-filter: blur(5px);
    background-color: #6c6c6c66;
    outline: 2px solid rgba(255, 255, 255, 0.6);
    box-shadow: inset 3px 3px 6px rgba(255, 255, 255, 0.4), inset -3px -3px 6px rgba(0, 0, 0, 0.4);
    margin: 50px;
    margin-inline: 10vh;
    min-height: calc(100vh - 40px);
    box-sizing: border-box;
    padding: 30px;
    border-radius: 10px;
}

.return-button {
    position: absolute;
    top: 25px;
    left: 25px;
    padding: 8px 16px;
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.8);
    background-color: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.return-button:hover {
    background-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.fade-letter {
    opacity: 0;
    display: inline-block;
    animation: fadeInLetter 1s forwards ease-out;
}

@keyframes fadeInLetter {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-section {
    opacity: 0;
    display: inline-block;
    white-space: pre-wrap;
    animation: fadeInLetter 1s forwards ease-out;
}

.separator {
    white-space: pre-wrap;
}

h2 a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s;
}

h2 a:hover {
    color: rgba(255, 255, 255, 1);
    text-decoration: underline;
}

/* Blog Layout & Three-Column Structure */
.blog-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
    justify-content: center;
    width: 100%;
    margin-top: 30px;
    box-sizing: border-box;
}

.blog-sidebar-left {
    flex: 0 0 220px;
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.blog-sidebar-right {
    flex: 0 0 260px;
    position: sticky;
    top: 30px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-height: calc(100vh - 60px);
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent;
}

.blog-posts-container {
    display: flex;
    flex-direction: column;
    gap: 25px;
    flex: 1 1 0;
    min-width: 0;
    max-width: 760px;
    margin: 0;
    width: 100%;
}

.sidebar-panel {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 18px;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.15), inset -1px -1px 3px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    text-align: left;
}

.sidebar-title {
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 1.15rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    margin: 0 0 12px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 8px;
    text-align: left;
}

.sidebar-text {
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 0.95rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.85);
    margin: 0;
}

/* Outline Styling */
.outline-nav {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.outline-empty {
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    font-style: italic;
}

.outline-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 8px 10px;
    border-radius: 6px;
    text-decoration: none;
    background-color: rgba(255, 255, 255, 0.04);
    border-left: 3px solid transparent;
    transition: all 0.2s ease-in-out;
}

.outline-item:hover {
    background-color: rgba(255, 255, 255, 0.14);
    border-left-color: rgba(255, 255, 255, 0.5);
    transform: translateX(2px);
}

.outline-item.active {
    background-color: rgba(255, 255, 255, 0.2);
    border-left-color: #ffffff;
    box-shadow: inset 1px 1px 2px rgba(255, 255, 255, 0.2);
}

.outline-item-title {
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 0.92rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.3;
}

.outline-item-date {
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Contact Links Styling */
.contact-links {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.contact-group-label {
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: rgba(255, 255, 255, 0.5);
    font-weight: bold;
}

.contact-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.88);
    text-decoration: none;
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 0.88rem;
    transition: background-color 0.2s, color 0.2s, transform 0.2s;
    word-break: break-all;
}

.contact-link:hover {
    background-color: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    transform: translateY(-1px);
    border-color: rgba(255, 255, 255, 0.35);
}

.contact-icon {
    font-size: 0.95rem;
    line-height: 1;
    opacity: 0.85;
    flex-shrink: 0;
}

.contact-icon-svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.2s, transform 0.2s;
}

.contact-link:hover .contact-icon-svg {
    opacity: 1;
}

/* Blog Entries */
.blog-entry {
    background-color: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 24px;
    box-shadow: inset 1px 1px 3px rgba(255, 255, 255, 0.15), inset -1px -1px 3px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    text-align: left;
    scroll-margin-top: 30px;
}

.blog-entry-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    padding-bottom: 10px;
}

.blog-entry-title {
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(255, 255, 255, 0.95);
    margin: 0;
    text-align: left;
}

.blog-entry-date {
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

.blog-entry-content {
    font-family: "AtkinsonHyperlegible", sans-serif;
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.85);
}

.blog-entry-content p {
    margin: 0 0 14px 0;
}

.blog-entry-content p:last-child {
    margin-bottom: 0;
}

.blog-entry-content h1,
.blog-entry-content h2,
.blog-entry-content h3,
.blog-entry-content h4 {
    color: rgba(255, 255, 255, 0.95);
    margin: 18px 0 10px 0;
    text-align: left;
}

.blog-entry-content ul,
.blog-entry-content ol {
    margin: 0 0 14px 20px;
    padding: 0;
}

.blog-entry-content li {
    margin-bottom: 6px;
}

.blog-entry-content a {
    color: rgba(255, 255, 255, 0.95);
    text-decoration: underline;
    transition: color 0.2s;
}

.blog-entry-content a:hover {
    color: #ffffff;
}

.blog-entry-content blockquote {
    border-left: 3px solid rgba(255, 255, 255, 0.4);
    margin: 14px 0;
    padding-left: 14px;
    font-style: italic;
    color: rgba(255, 255, 255, 0.75);
}

.blog-entry-content code {
    background: rgba(0, 0, 0, 0.25);
    padding: 2px 6px;
    border-radius: 4px;
    font-family: monospace;
    font-size: 0.95em;
}

.blog-entry-content pre {
    background: rgba(0, 0, 0, 0.35);
    padding: 14px;
    border-radius: 6px;
    overflow-x: auto;
    margin: 14px 0;
}

.blog-entry-content pre code {
    background: none;
    padding: 0;
}

.blog-entry-content hr {
    border: 0;
    height: 1px;
    background: rgba(255, 255, 255, 0.2);
    margin: 18px 0;
}

.no-posts {
    text-align: center;
    font-family: "AtkinsonHyperlegible", sans-serif;
    color: rgba(255, 255, 255, 0.6);
    font-style: italic;
}

/* Responsive Breakpoints */
@media (max-width: 1150px) {
    .blog-layout {
        flex-wrap: wrap;
        gap: 20px;
    }
    .blog-sidebar-left {
        flex: 1 1 200px;
        position: static;
        max-height: none;
    }
    .blog-posts-container {
        flex: 2 1 400px;
    }
    .blog-sidebar-right {
        flex: 1 1 100%;
        position: static;
        max-height: none;
        flex-direction: row;
        gap: 20px;
    }
    .blog-sidebar-right .sidebar-panel {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .frostedGlass {
        margin: 20px 10px;
        padding: 20px 15px;
    }

    .return-button {
        position: static;
        display: inline-block;
        margin-bottom: 15px;
    }

    .blog-layout {
        flex-direction: column;
    }

    .blog-sidebar-left,
    .blog-sidebar-right,
    .blog-posts-container {
        flex: 1 1 100%;
        max-width: 100%;
    }

    .blog-sidebar-right {
        flex-direction: column;
    }
}