/*
 * chosen.css
 * Hugo port of the Chosen WordPress theme by Compete Themes
 * Original: https://www.competethemes.com/chosen/
 * Licensed under GPLv2 or later
 */

/* ── Google Fonts ─────────────────────────────────────────────────────────── */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=Raleway:wght@400;600;700&display=swap');

/* ── Font Awesome ─────────────────────────────────────────────────────────── */
@import url('../fonts/font-awesome/css/all.min.css');

/* ── Reset / Base ─────────────────────────────────────────────────────────── */
*, *::before, *::after {
    box-sizing: border-box;
    -ms-word-wrap: break-word;
    word-wrap: break-word;
}

html {
    font-size: 16px;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Raleway', sans-serif;
    font-size: 1em;
    line-height: 1.5;
    color: #2B2B2B;
    background: #fff;
}

/* ── Typography ───────────────────────────────────────────────────────────── */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Playfair Display', serif;
    margin: 0;
    padding: 0;
    font-weight: 400;
    color: #2B2B2B;
}

h1 { font-size: 1.75em; line-height: 1.357; }
h2 { font-size: 1.3125em; line-height: 1.143; }
h3, h4, h5, h6 { font-size: 1em; line-height: 1.5; }

p { margin: 1.5em 0; }

a {
    color: #2B2B2B;
    text-decoration: none;
    transition: color 0.1s ease-in-out;
}
a:link, a:visited { color: #2B2B2B; }
a:hover, a:active, a:focus { color: #666; }

ul, ol {
    font-size: 1em;
    padding: 0;
    margin: 1.5em;
}
ul ul, ul ol, ol ul, ol ol { margin: 0 1.5em; }

pre {
    word-wrap: break-word;
    white-space: pre-wrap;
    background: #EDEDED;
    border: solid 1px #DEDEDE;
    padding: 0.75em;
    font-size: 0.875em;
    overflow-x: auto;
}

code {
    background: #EDEDED;
    padding: 0 0.375em;
    font-size: 0.9em;
}

pre code { padding: 0; background: none; }

blockquote {
    margin: 1.5em 1.5em 1.5em 0;
    padding-left: 1.5em;
    border-left: solid 3px #3a3a3a;
}
blockquote cite { display: block; text-align: right; }

hr { margin: 1.5em 0; border: none; border-top: 1px solid #D9D9D9; }

table {
    border-spacing: 0;
    border-collapse: collapse;
    margin: 1.5em 0;
    width: 100%;
}
td, th {
    padding: 0.75em;
    border: solid 1px #DEDEDE;
    text-align: left;
}
thead { background: #f5f5f5; }

img {
    max-width: 100%;
    height: auto;
	display: block;
	margin: auto;
}

figcaption, .wp-caption-text {
    font-size: 12px;
    line-height: 1.5;
    margin: 3px 0 0;
    color: #3a3a3a;
    text-align: center;
}

.alignleft  { float: left;  margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { text-align: center; margin: 1.5em auto; display: block; }

/* ── Forms ────────────────────────────────────────────────────────────────── */
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=search],
input[type=tel],
input[type=url],
textarea {
    width: 100%;
    max-width: 22.5em;
    font-family: 'Raleway', sans-serif;
    font-size: 1.0625em;
    padding: 10px 12px;
    background: #EDEDED;
    color: #545454;
    border: solid 1px #DEDEDE;
    border-radius: 0;
    -webkit-appearance: none;
    transition: all 0.1s ease-in-out;
}
textarea { max-width: 41.625em; overflow: auto; }
input[type=text]:focus,
input[type=email]:focus,
input[type=password]:focus,
input[type=search]:focus,
textarea:focus {
    outline: none;
    background: #fff;
}
input[type=submit] {
    font-family: 'Raleway', sans-serif;
    padding: 14px 16px;
    min-width: 100px;
    color: #fff;
    background: #2B2B2B;
    outline: none;
    border: none;
    border-radius: 0;
    -webkit-appearance: none;
    transition: all 0.1s ease-in-out;
    cursor: pointer;
}
input[type=submit]:hover,
input[type=submit]:focus { background: #545454; }

::placeholder { color: #666; }

/* ── Layout ───────────────────────────────────────────────────────────────── */
.overflow-container {
    position: relative;
    overflow: hidden;
    padding: 0 4.167%;
}

.max-width {
    max-width: 1400px;
    margin: 0 auto;
}

.main {
    margin: 0 auto;
}
.main::after {
    content: "";
    display: block;
    clear: both;
}

/* Two-column layout: content + sidebar */
.with-sidebar {
    display: flex;
    flex-wrap: wrap;
    gap: 3em;
    align-items: flex-start;
}
.blog-content {
    flex: 1 1 0%;
    min-width: 0;
}
.sidebar {
    flex: 0 0 260px;
    min-width: 0;
}

/* ── Accessibility ────────────────────────────────────────────────────────── */
.screen-reader-text {
    position: absolute;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
    height: 1px;
    width: 1px;
}

.skip-content {
    position: absolute;
    top: -100%;
    width: 100%;
    left: 0;
    display: block;
    text-align: center;
    color: #fff !important;
    z-index: 99;
    padding: 1.5em;
    background: #3a3a3a;
    transition: top 0.2s ease-in-out;
}
.skip-content:focus { top: 0; outline: none; }

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    text-align: center;
    padding-top: 39px;
}

.title-container {
    margin: 2.25em 0;
}

.site-title {
    font-family: 'Playfair Display', serif;
    font-size: 2.375em;
    line-height: 1.342;
    margin: 0;
}

.site-title a { color: #2B2B2B; }
.site-title a:hover { color: #666; }

.tagline {
    margin: 0;
    font-size: 0.875em;
    color: #666;
}

/* ── Navigation ───────────────────────────────────────────────────────────── */
.toggle-navigation {
    display: block;
    background: none;
    margin: 0 auto;
    padding: 0;
    border: none;
    cursor: pointer;
    font-size: 1.5em;
    color: #2B2B2B;
    line-height: 1;
}

.menu-primary-container {
    position: relative;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;
}
.menu-primary-container.open {
    max-height: 999px;
}

.menu-primary { margin-bottom: 2.25em; }
.menu-primary ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu-primary li { margin-bottom: 6px; }
.menu-primary a {
    display: inline-block;
    padding: 9px 12px;
    color: #2B2B2B;
    font-family: 'Raleway', sans-serif;
}
.menu-primary a:hover, .menu-primary a:focus { color: #666; text-decoration: underline; }
.menu-primary .current a { outline: solid 1px #3a3a3a; }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer {
    position: relative;
    left: -4.6%;
    width: 109.2%;
    padding: 1.5em 4.167%;
    margin-top: 3em;
    text-align: center;
    background: #f5f5f5;
    border-top: solid 1px #EDEDED;
    font-size: 0.875em;
    color: #545454;
}
.site-footer a { color: #545454; text-decoration: underline; }

/* ── Archive/List header ──────────────────────────────────────────────────── */
.archive-header {
    margin-bottom: 1.5em;
}
.archive-header h1 {
    font-family: 'Raleway', sans-serif;
    font-size: 1.0625em;
}
.archive-header span { font-weight: 600; }
.archive-header p { font-style: italic; margin: 0; }

/* ── Post list ────────────────────────────────────────────────────────────── */
.post-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.post-list li { margin-bottom: 3em; }

/* ── Entry / article ──────────────────────────────────────────────────────── */
.entry { margin-bottom: 3em; }

.featured-image {
    position: relative;
    height: 0;
    padding-bottom: 50%;
    overflow: hidden;
    margin-bottom: 1.5em;
}
.featured-image img {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    object-fit: cover;
}

.post-header {
    margin: 1.5em 0;
    text-align: center;
}

.post-title {
    font-family: 'Playfair Display', serif;
    font-size: 1.75em;
    line-height: 1.357;
    margin: 0;
}
.post-title a { color: #2B2B2B; }
.post-title a:hover { color: #666; }

.post-byline {
    font-size: 0.75em;
    line-height: 1.5;
    color: #666;
    margin-top: 0.5em;
}
.post-byline .post-author span { font-style: italic; text-transform: lowercase; }

.post-content {
    font-size: 1.0625em;
    line-height: 1.4118;
}
.post-content a { text-decoration: underline; }
.post-content::after {
    content: "";
    display: block;
    clear: both;
}

.post-meta {
    margin: 3em 0;
    font-size: 0.875em;
}
.post-categories, .post-tags { display: block; margin: 0.5em 0; }
.post-categories span, .post-tags span { margin-right: 2em; font-weight: 600; }
.post-categories a, .post-tags a { text-decoration: underline; margin-right: 1.5em; }

.post-tags ul { list-style: none; display: inline; margin: 0; padding: 0; }
.post-tags li { display: inline; }

/* ── Post navigation ──────────────────────────────────────────────────────── */
.further-reading {
    margin: 1.5em 0 3em;
    padding: 2.25em 0;
    border-top: solid 1px #D9D9D9;
    border-bottom: solid 1px #D9D9D9;
    font-size: 1.0625em;
    line-height: 1.4118;
    overflow: hidden;
}
.further-reading span { display: block; font-size: 0.75em; color: #666; margin-bottom: 0.25em; }
.further-reading a { color: #2B2B2B; }
.further-reading a:hover { color: #666; }
.further-reading .previous { margin-bottom: 1.5em; }

/* ── Read more / comments link ────────────────────────────────────────────── */
.more-link {
    display: inline-block;
    padding: 9px 16px;
    margin-right: 12px;
    background: #2B2B2B;
    color: #fff;
    transition: all 0.1s ease-in-out;
    font-size: 0.75em;
}
.more-link:link, .more-link:visited { color: #fff; }
.more-link:hover, .more-link:focus { background: #545454; color: #fff; }

.comments-link { font-size: 0.75em; color: #2B2B2B; }
.comments-link a { color: #2B2B2B; }
.comments-link a:hover { text-decoration: underline; }

/* ── Pagination ───────────────────────────────────────────────────────────── */
.pagination {
    clear: both;
    margin: 3em auto;
    text-align: center;
}
.pagination a, .pagination span {
    display: inline-block;
    margin: 0 18px;
}
.pagination .current {
    border: solid 1px #3a3a3a;
    padding: 5px 12px;
}

/* ── Sidebar ──────────────────────────────────────────────────────────────── */
.sidebar-title {
    font-family: 'Raleway', sans-serif;
    font-size: 0.6875em;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #666;
    border-bottom: solid 1px #D9D9D9;
    padding-bottom: 0.5em;
    margin: 2em 0 0.75em;
}
.sidebar-title:first-child { margin-top: 0; }

.sidebar-posts {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-post {
    padding: 0.5em 0;
    border-bottom: solid 1px #EDEDED;
}
.sidebar-post a {
    display: block;
    color: #2B2B2B;
    font-size: 0.9375em;
    line-height: 1.4;
}
.sidebar-post a:hover { color: #666; text-decoration: underline; }
.sidebar-post time {
    display: block;
    font-size: 0.75em;
    color: #999;
    margin-top: 2px;
}

.sidebar-taxonomy {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar-taxonomy li {
    padding: 4px 0;
    border-bottom: solid 1px #EDEDED;
    font-size: 0.9375em;
}
.sidebar-taxonomy a { color: #2B2B2B; }
.sidebar-taxonomy a:hover { color: #666; text-decoration: underline; }
.taxonomy-count { color: #999; font-size: 0.85em; }

/* ── 404 ──────────────────────────────────────────────────────────────────── */
.error-404 {
    text-align: center;
    padding: 6em 0;
}
.error-404 h1 {
    font-size: 6em;
    margin-bottom: 0.25em;
}

/* ── Syntax highlighting ──────────────────────────────────────────────────── */
.highlight { margin: 1.5em 0; }
.highlight pre {
    margin: 0;
    padding: 1em;
    overflow-x: auto;
    background: #EDEDED;
    border: solid 1px #DEDEDE;
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media all and (min-width: 43.75em) {
    .site-title { font-size: 3.188em; }
    .tagline { font-size: 0.75em; }

    .post-title { font-size: 2.375em; }
    .post-byline { font-size: 0.75em; }
    .post-categories, .post-tags { display: inline-block; margin: 1.5em 0; }
    .post-categories { margin-right: 1.5em; }

    .further-reading .previous { float: left; margin: 0 6% 0 0; }
    .further-reading div { display: inline-block; vertical-align: top; width: 47%; }
    .further-reading .next { text-align: right; }

    .entry { margin-bottom: 4.5em; }

    .archive-header { margin-bottom: 3em; }
}

@media all and (min-width: 56.25em) {
    .site-header { padding-top: 1.5em; }
    .title-container { margin: 3em 0 4.5em; }

    /* Desktop nav: show inline, hide hamburger */
    .toggle-navigation { display: none; }
    .menu-primary-container {
        max-height: none;
        overflow: visible;
    }
    .menu-primary ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
    .menu-primary li { margin: 0; }
    .menu-primary a { padding: 6px 16px; }

    .singular .post-header,
    .singular .post-content,
    .singular .post-meta,
    .error404 .post-header,
    .error404 .post-content,
    .error404 .post-meta {
        padding: 0 9.08406%;
    }
    .singular .post-header, .error404 .post-header { margin: 3em 0; }
    .singular .post-title, .error404 .post-title { font-size: 3.188em; }
}

@media all and (max-width: 56.24em) {
    /* Stack sidebar below content on small screens */
    .with-sidebar { flex-direction: column; }
    .sidebar { flex: 0 0 auto; width: 100%; }
}

@media all and (min-width: 68.75em) {
    .title-container { margin: 4.5em 0 6em; }
    .site-title { font-size: 4.188em; }
}
