/*
Theme Name: Tamura (reading Murakami's 'Kafka on the Shore' at the time)
Theme URI: https://www.reuneker.nl/
Author: Alex Reuneker
Author URI: https://www.reuneker.nl/
Description: Custom WordPress theme for reuneker.nl, converted from a static HTML/CSS design. Two-column layout with a sidebar navigation (menu, recent posts, categories) and a main content column for posts and pages.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: tamura
*/

/* Lay-out */
#container {
    display: flex;
    width: min(1080px, 100%);
    flex-direction: column;
    min-height: 100vh;
    margin: 15px auto;
    padding: 0 1rem;
}
#content {
    display: flex;
    flex: 1;
}
#content nav {
    flex: 0 0 25%;
    padding: 0 2%;
    box-sizing: border-box;
}
#content main {
    flex: 0 0 75%;
    padding: 0 2%;
    box-sizing: border-box;
}
nav ul, .wp-block-latest-posts {
    margin: 0;
    /* padding-left: 0.75em; */
    padding-left: 1em;
    list-style-type: disc !important;
}
main article:not(:last-child) {
    margin-bottom: 40px;
}

/* Typography (general) */
body {
    font-family: Arial, sans-serif;
    font-size: 12pt;
    line-height: 2.2rem;
}
p {
    text-align: justify;
}
h1, h2, h3, h4, h5, h6 {
    font-size: inherit;
}
.meta {
    opacity: 75%;
}
article h2 {
	margin-bottom: 0;
}
article h2 + p.meta {
	margin-top: 0;
	line-height: 2.2em;
}
h2 .meta {
    font-weight: normal;
}
header {
    position: relative;
    text-align: center;
}
header h1>a {
    display: inline-flex;
    flex-direction: row;
    align-items: center;
    gap: 0.35em;
    color: #365d95;
}
/*
main article h2 {
	text-align: center;
}
*/

/* Media */
main figure {
    margin: 0;
}
main img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 5px;
}
footer *, header * {
    text-align: center;
}
figure {
    margin: 0;
    width: 100%;
}
figcaption {
    font-style: italic;
}
header svg {
    width: 1.25em;
    height: 1.25em;
    display: block;
    flex-shrink: 0;
}

/* Links */
a {
    color: #365d95;
    text-decoration: underline;
}
a:hover {
    text-decoration: none;
}
header a, nav a, article h2 a {
    text-decoration: none;
}
header a:hover, nav a:hover, article h2 a:hover {
    text-decoration: underline;
}
a[href^="http"]:not([href*="reuneker.nl"])::after {
    content: "⧉";
    font-size: 0.75em;
    margin-left: 5px;
    transform: rotate(90deg);
    display: inline-block;
    vertical-align: top;
    text-decoration: none;
}

/* Comments */
.comment-form-comment label {
    font-weight: bold;
    display: block;
}
#comment {
    width: 100%;
    font-size: inherit;
    font-family: inherit;
}
p.form-submit {
    text-align: right;
}
.comment-author img {
    display: none;
}

/* Devices */
#menu-toggle {
    display: none;
    background: none;
    border: 0;
    font-size: 1.6rem;
    cursor: pointer;
    padding: 0;
}
@media (max-width: 768px) {
    #container {
        width: 100%;
        padding: 0 0.5rem;
        box-sizing: border-box;
    }
    #content {
        flex-direction: column;
    }
    #content nav,
    #content main {
        width: 100%;
        flex: 0 0 auto;
    }
    #menu-toggle {
        display: block;
        margin: 0 auto;
    }
    nav {
        display: none;
    }
    nav.open {
        display: block;
    }
}

/* WordPress-specific helpers */
.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.alignleft { float: left; margin: 0 1.5em 1.5em 0; }
.alignright { float: right; margin: 0 0 1.5em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-style: italic; }

/* Pagination posts */
.pagination .nav-links {
	text-align: center;
	margin-top: 2rem;
}

.pagination .nav-links a {
	margin: 0 0.5em;
}

/* Comments */
#comments,
#comments * {
    text-align: left;
    font-size: 1em;
    line-height: 1.5;
}

.commentlist {
    margin: 0 0 0 1.5em;
    padding: 0;
    list-style: decimal;
}

.commentlist li {
    margin: 0 0 1.5em 0;
    padding: 0;
}

.comment-meta {
    margin: 0 0 0.5em 0;
}

.comment-author.vcard {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4em;
    margin: 0;
}

.comment-author.vcard img.avatar {
    margin: 0;
}

.comment-content {
    margin: 0.5em 0;
    padding: 0;
}

.comment-content p {
    margin: 0 0 0.5em 0;
}

.reply {
    margin: 0.5em 0 0 0;
    display: flex;
    align-items: center;
    gap: 1em;
}

.reply .edit-link {
    margin: 0;
}
#reply-title {
    display: inline-block;
    /* margin: 0 0 0 -25px; */
	margin: 0;
}
.comment-respond label {
	display: inline-block;
	min-width: 100px;
}
