/*
Theme Name: Ambivalent Bits
Theme URI: https://yoursite.com
Author: Your Name
Description: A two-column blog theme with sideblog and blogroll, black and orange accents.
Version: 1.0
*/

/* ===== RESET & BASE ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: #111;
    background: #e0e0e0;
}

a {
    color: #c05000;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
    color: #ff6600;
}

/* ===== PAGE WRAPPER ===== */
/* 8px black outer border + 2px orange inner line via outline */
#page-wrapper {
    max-width: 1060px;
    margin: 30px auto;
    background: #fff;
    border: 8px solid #111;
    outline: 2px solid #ff6600;
    outline-offset: -10px;
}

/* ===== HEADER ===== */
#site-header {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 24px 28px 20px;
    background: #fff;
}

#site-logo {
    flex-shrink: 0;
}

#site-logo img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    display: block;
}

#site-logo-placeholder {
    width: 72px;
    height: 72px;
    background: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

#site-logo-placeholder span {
    color: #ff6600;
    font-size: 28px;
    font-weight: bold;
}

#site-title-group {
    flex: 1;
}

#site-title-group h1 {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    font-size: 2rem;
    font-weight: 800;
    color: #111;
    letter-spacing: -0.01em;
    line-height: 1.1;
}

#site-title-group h1 a {
    color: #111;
    text-decoration: none;
}

#site-title-group h1 a:hover {
    color: #ff6600;
}

/* ===== RANDOM QUOTATION (tagline) ===== */
#site-tagline {
    margin-top: 8px;
    font-size: 0.88rem;
    font-style: italic;
    color: #555;
    letter-spacing: 0.01em;
    line-height: 1.4;
}

#site-tagline .quote-source {
    display: block;
    margin-top: 3px;
    font-style: normal;
    font-size: 0.78rem;
    color: #999;
    letter-spacing: 0.04em;
}

/* ===== HEADER DIVIDER — 3px black + 2px orange, full width ===== */
.divider-bar {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.divider-bar .d-black {
    width: 100%;
    height: 3px;
    background: #111;
}

.divider-bar .d-orange {
    width: 100%;
    height: 2px;
    background: #ff6600;
}

/* ===== BODY LAYOUT ===== */
#body-wrap {
    display: flex;
    align-items: flex-start;
    padding: 0;
}

/* ===== MAIN COLUMN ===== */
#main-column {
    flex: 1 1 0;
    min-width: 0;
    padding: 28px 28px 36px 28px;
    border-right: 1px solid #ddd;
}

/* ===== POSTS ===== */
.post {
    margin-bottom: 44px;
    padding-bottom: 36px;
    border-bottom: 1px solid #e0e0e0;
}

.post:last-of-type {
    border-bottom: none;
}

.post-title {
    font-size: 1.45rem;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.25;
}

.post-title a {
    color: #111;
}

.post-title a:hover {
    color: #ff6600;
}

.post-meta {
    font-size: 0.78rem;
    color: #888;
    margin-bottom: 14px;
    letter-spacing: 0.04em;
}

.post-meta a {
    color: #888;
}

.post-meta a:hover {
    color: #ff6600;
}

.post-content {
    font-size: 1rem;
    line-height: 1.75;
    color: #222;
}

.post-content p {
    margin-bottom: 1em;
}

.post-content img {
    max-width: 100%;
    height: auto;
}

/* ===== BLOCKQUOTE ===== */
.post-content blockquote,
blockquote {
    margin: 1.25em 0 1.25em 2em;
    padding: 0.5em 0 0.5em 1.25em;
    border-left: 3px solid #ff6600;
    color: #444;
    font-style: italic;
}

.post-content blockquote p,
blockquote p {
    margin-bottom: 0.5em;
}

.post-content blockquote cite,
blockquote cite {
    display: block;
    margin-top: 0.5em;
    font-style: normal;
    font-size: 0.85em;
    color: #888;
}

.post-footer {
    margin-top: 14px;
    font-size: 0.8rem;
    color: #999;
}

.post-footer a {
    color: #c05000;
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    gap: 10px;
    margin-top: 20px;
    font-size: 0.85rem;
}

.pagination a, .pagination span {
    padding: 4px 10px;
    border: 1px solid #ccc;
    color: #333;
}

.pagination a:hover {
    background: #ff6600;
    color: #fff;
    border-color: #ff6600;
    text-decoration: none;
}

.pagination .current {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* ===== SIDEBAR ===== */
#sidebar {
    width: 260px;
    flex-shrink: 0;
    padding: 24px 20px 36px 20px;
    background: #fafafa;
}

.sidebar-section {
    margin-bottom: 32px;
}

.sidebar-title {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #111;
    border-bottom: 3px solid #ff6600;
    padding-bottom: 5px;
    margin-bottom: 14px;
}

/* ===== SIDEBLOG ===== */
.sideblog-post {
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px dotted #ccc;
    font-size: 0.88rem;
    line-height: 1.55;
    color: #333;
}

.sideblog-post:last-of-type {
    border-bottom: none;
}

.sideblog-post a.read-more {
    font-size: 0.8rem;
    color: #ff6600;
    font-style: italic;
}

.sideblog-more {
    margin-top: 10px;
    text-align: right;
}

.sideblog-more a {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #111;
    border-bottom: 1px solid #ff6600;
    padding-bottom: 1px;
}

.sideblog-more a:hover {
    color: #ff6600;
    text-decoration: none;
}

/* ===== SIDEBAR LISTS (blogroll, pages) ===== */
.sidebar-link-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Each item is a flex row: bullet sits flush left, link immediately after */
.sidebar-link-list li {
    display: flex;
    align-items: baseline;
    gap: 3px;
    margin-bottom: 6px;
    font-size: 0.78rem;
    padding: 0;
}

/* The › bullet rendered as a flex sibling — no absolute positioning */
.sidebar-link-list li::before {
    content: '›';
    color: #ff6600;
    font-weight: bold;
    font-size: 0.9rem;
    flex-shrink: 0;
    line-height: 1;
}

.sidebar-link-list li a {
    color: #333;
    line-height: 1.4;
}

.sidebar-link-list li a:hover {
    color: #ff6600;
}

/* Child pages — nested list from wp_list_pages, indented just enough */
.sidebar-link-list .children {
    list-style: none;
    padding: 0;
    margin: 4px 0 2px 12px;
    width: 100%;
}

/* ===== FOOTER ===== */
#site-footer {
    border-top: 1px solid #ddd;
    padding: 16px 28px;
    text-align: center;
    font-size: 0.78rem;
    color: #aaa;
    background: #fff;
}

#site-footer a {
    color: #888;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 760px) {
    #body-wrap {
        flex-direction: column;
    }

    #sidebar {
        width: 100%;
        border-top: 3px solid #111;
    }

    #main-column {
        border-right: none;
    }

    #page-wrapper {
        margin: 0;
        outline: none;
    }
}
