/* Base layout styles for every losse-web page (was inline in partials/layout_styles.html). */
html,
body {
    background: #fff;
    color: #232323;
    font-family: 'Abel', Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.8;
    font-weight: 400;
    min-height: 100vh;
    letter-spacing: 0.01em;
}

main {
    max-width: 1100px;
    margin: 48px auto 0 auto;
    padding: 0 32px 24px 32px;
}

article h1,
h1 {
    font-family: 'Julius Sans One', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-size: 1.50rem;
    font-weight: 400;
    color: #222;
    line-height: 1.2;
    margin-bottom: 1.1em;
    margin-top: 0.6em;
}

article h2,
h2 {
    font-family: 'Abel', Arial, Helvetica, sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-size: 1.1rem;
    font-weight: 400;
    color: #232323;
    margin-top: 2.0em;
    margin-bottom: 0.65em;
}

article h3,
h3 {
    font-family: 'Abel', Arial, Helvetica, sans-serif;
    font-size: 1.03rem;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    font-weight: 400;
    color: #232323;
    margin-top: 1.4em;
    margin-bottom: 0.55em;
}

article p,
p {
    font-family: 'Abel', Arial, Helvetica, sans-serif;
    font-size: 1rem;
    color: #393939;
    line-height: 1.9;
    margin-bottom: 1.17em;
}

article ul,
ul,
article ol,
ol {
    margin-bottom: 1em;
    padding-left: 1.5em;
}

article ul,
.prose ul {
    list-style: disc;
}

article ol,
.prose ol {
    list-style: decimal;
}

.prose > * + * {
    margin-top: 1em;
}

.blog-post-content p {
    font-size: 1.125rem;
    line-height: 1.85;
}

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
    line-height: 1.25;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.prose pre {
    background: #f7f7f8;
    color: #1f2937;
    padding: 1rem 1.25rem;
    border-radius: 8px;
    overflow-x: auto;
    font-size: 0.95em;
    line-height: 1.6;
}

.prose code {
    background: #f0f2f4;
    padding: 0.1em 0.3em;
    border-radius: 4px;
    font-size: 0.95em;
}

.prose pre code {
    background: transparent;
    padding: 0;
}

.prose hr {
    border: 0;
    border-top: 1px solid #e5e7eb;
    margin: 2rem 0;
}

.prose a {
    color: #0f766e;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.prose a:hover {
    color: #115e59;
}

.prose table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.25rem 0;
    font-size: 0.95rem;
}

.prose th,
.prose td {
    border: 1px solid #e5e7eb;
    padding: 0.5rem 0.65rem;
    text-align: left;
    vertical-align: top;
}

.prose th {
    background: #f8fafc;
    font-weight: 600;
    color: #1f2937;
}

.prose tbody tr:nth-child(even) {
    background: #fafafa;
}

.prose ul.contains-task-list,
.prose .contains-task-list {
    list-style: none;
    padding-left: 0;
}

.prose .task-list-item {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 0.45rem;
}

.prose .task-list-item input[type="checkbox"] {
    margin-top: 0.35rem;
}

.prose img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.prose img.alignleft {
    float: left;
    margin: 0.35rem 1rem 0.75rem 0;
    max-width: min(45%, 360px);
}

.prose img.alignright {
    float: right;
    margin: 0.35rem 0 0.75rem 1rem;
    max-width: min(45%, 360px);
}

.prose img.alignwide,
.prose img.wide {
    width: 100%;
    max-width: 100%;
    display: block;
    margin: 1rem 0;
}

.prose figure {
    margin: 1.2rem 0;
}

.prose figcaption {
    margin-top: 0.45rem;
    color: #6b7280;
    font-size: 0.88rem;
    text-align: center;
}

.prose kbd {
    border: 1px solid #d1d5db;
    border-bottom-width: 2px;
    border-radius: 6px;
    background: #f9fafb;
    padding: 0.08rem 0.35rem;
    font-size: 0.85em;
}

.prose mark {
    background: #fef9c3;
    color: inherit;
    padding: 0 0.15em;
}

.prose details {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.65rem 0.8rem;
    background: #fcfcfd;
    margin: 1rem 0;
}

.prose summary {
    cursor: pointer;
    font-weight: 600;
}

.prose:after {
    content: "";
    display: block;
    clear: both;
}

.blog-yt-embed {
    margin: 1.5rem 0 1.75rem;
}

.blog-yt-embed-frame {
    position: relative;
    width: 100%;
    padding-top: 56.25%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid #dbe3ea;
    background: #0f172a;
    box-shadow: 0 8px 22px rgba(15, 23, 42, 0.15);
}

.blog-yt-embed-iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
}

.prose figure.blog-inline-image {
    margin: 1rem 0 1.15rem;
    max-width: min(100%, 760px);
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.blog-inline-image-link {
    display: block;
    text-decoration: none !important;
}

.blog-inline-image-media {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    border: 1px solid #d5dbe3;
    background: #f3f4f6;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7);
}

.prose figure.blog-inline-image-left {
    float: left;
    margin: 0.35rem 1.9rem 1rem 0;
    max-width: min(32%, 280px);
    width: min(32%, 280px);
    box-sizing: border-box;
    shape-outside: margin-box;
    shape-margin: 0.9rem;
}

.prose figure.blog-inline-image-right {
    float: right;
    margin: 0.35rem 0 1rem 1.9rem;
    max-width: min(32%, 280px);
    width: min(32%, 280px);
    box-sizing: border-box;
    shape-outside: margin-box;
    shape-margin: 0.9rem;
}

.prose figure.blog-inline-image-center {
    margin-left: auto;
    margin-right: auto;
    clear: both;
}

@media (max-width: 1024px) {
    .blog-post-content p {
        font-size: 1.0625rem;
        line-height: 1.8;
    }

    .prose figure.blog-inline-image-left,
    .prose figure.blog-inline-image-right {
        float: none;
        margin: 1rem auto 1.1rem;
        max-width: 100%;
        width: 100%;
    }
}

@media (prefers-color-scheme: dark) {
    .blog-yt-embed-frame {
        border-color: #334155;
        box-shadow: 0 10px 26px rgba(2, 6, 23, 0.5);
    }

    .blog-inline-image-media {
        border-color: #334155;
        box-shadow: 0 10px 24px rgba(2, 6, 23, 0.45);
    }
}

article li,
li {
    font-family: 'Abel', Arial, Helvetica, sans-serif;
    font-size: 1em;
    margin-bottom: 0.45em;
}

article blockquote,
blockquote {
    font-family: 'Abel', Arial, Helvetica, sans-serif;
    font-style: italic;
    color: #7a7a7a;
    border-left: 3px solid #e2e2e2;
    margin: 1.6em 0;
    padding: 0.1em 1.1em;
    background: #fafafa;
}

.site-title {
    font-family: 'Julius Sans One', 'Abel', Arial, Helvetica, sans-serif;
    font-weight: 400;
    font-size: 2.1rem;
    letter-spacing: 0.06em;
    margin-top: 2.2rem;
    margin-bottom: 1.3rem;
    text-align: center;
    display: block;
}

/* --- FOOTER --- */
footer a,
footer a:visited {
    text-decoration: none !important;
    color: #232323;
}

.footer-icon {
    vertical-align: middle;
    display: inline-block;
    flex-shrink: 0;
    line-height: 1;
    margin-right: 6px;
}

.footer-link-label {
    display: inline;
    vertical-align: middle;
    font-size: 0.98em;
}

footer ul {
    margin: 0;
    padding: 0;
}

footer li {
    list-style: none;
    margin: 0;
    padding: 0;
}
    
