/*
Theme Name: Claude01
Theme URI: 
Author: 
Author URI: 
Description: A minimal blog theme with white background and black text.
Version: 1.4.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: claude01
Tags: blog, minimal, responsive
*/

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

html {
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

body {
    background-color: #ffffff;
    color: #111111;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1rem;
    line-height: 1.8;
    word-wrap: break-word;
}

/* =====================
   Typography
   ===================== */
h1, h2, h3, h4, h5, h6 {
    font-family: Georgia, 'Times New Roman', serif;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 0.75em;
    color: #111111;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.9rem; }

p {
    margin-bottom: 1.5em;
}

a {
    color: #111111;
    text-decoration: underline;
    text-underline-offset: 3px;
}

a:hover {
    color: #555555;
}

ul, ol {
    margin: 0 0 1.5em 1.5em;
}

li {
    margin-bottom: 0.25em;
}

blockquote {
    border-left: 3px solid #111111;
    margin: 1.5em 0;
    padding: 0.5em 1.5em;
    color: #444444;
    font-style: italic;
}

code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    background: #f5f5f5;
    padding: 0.1em 0.4em;
    border-radius: 2px;
}

pre {
    background: #f5f5f5;
    padding: 1.5em;
    overflow-x: auto;
    margin-bottom: 1.5em;
    border-radius: 2px;
}

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

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

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

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5em;
}

th, td {
    border: 1px solid #dddddd;
    padding: 0.5em 0.75em;
    text-align: left;
}

th {
    background: #f5f5f5;
    font-weight: 700;
}

/* =====================
   Layout
   ===================== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-content {
    flex: 1;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.content-area {
    width: 100%;
}

.has-sidebar .content-wrap {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: 4rem;
    align-items: start;
}

/* =====================
   Header
   ===================== */
.site-header {
    border-bottom: 1px solid #111111;
    padding: 1.5rem 0;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}

.site-branding {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.custom-logo {
    max-height: 50px;
    width: auto;
}

.site-title {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin: 0;
}

.site-title a {
    text-decoration: none;
    color: #111111;
}

.site-title a:hover {
    color: #555555;
}

.site-description {
    font-size: 0.85rem;
    color: #777777;
    margin: 0.2em 0 0;
}

/* =====================
   Navigation
   ===================== */
.main-navigation {
    position: relative;
}

.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-navigation a {
    text-decoration: none;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: #111111;
}

.main-navigation a:hover {
    color: #555555;
}

/* =====================
   Hamburger Menu (always visible)
   ===================== */
.menu-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    width: 32px;
    height: 32px;
}

.menu-toggle-bar {
    display: block;
    width: 24px;
    height: 1.5px;
    background: #111111;
    transition: transform 0.2s ease, opacity 0.2s ease;
    transform-origin: center;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(1) {
    transform: translateY(6.5px) rotate(45deg);
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(2) {
    opacity: 0;
}

.menu-toggle[aria-expanded="true"] .menu-toggle-bar:nth-child(3) {
    transform: translateY(-6.5px) rotate(-45deg);
}

.main-navigation #primary-menu {
    display: none;
    position: absolute;
    top: calc(100% + 1rem);
    right: 0;
    background: #ffffff;
    border: 1px solid #111111;
    min-width: 180px;
    z-index: 100;
    padding: 0.5rem 0;
}

.main-navigation #primary-menu.is-open {
    display: block;
}

.main-navigation #primary-menu li {
    padding: 0;
}

.main-navigation #primary-menu a {
    display: block;
    padding: 0.5em 1.25em;
}

.main-navigation #primary-menu a:hover {
    background: #f5f5f5;
}

/* =====================
   Main Content Area
   ===================== */
.site-main {
    padding: 3rem 0;
}

/* =====================
   Posts / Articles
   ===================== */
.post {
    margin-bottom: 4rem;
    padding-bottom: 4rem;
    border-bottom: 1px solid #dddddd;
}

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

.entry-header {
    margin-bottom: 1.5rem;
}

.entry-title {
    font-size: 1.6rem;
    margin-bottom: 0.5rem;
}

.entry-title a {
    text-decoration: none;
    color: #111111;
}

.entry-title a:hover {
    color: #555555;
}

.entry-meta {
    font-size: 0.85rem;
    color: #777777;
    font-family: Georgia, 'Times New Roman', serif;
}

.entry-meta a {
    color: #777777;
}

.entry-meta a:hover {
    color: #111111;
}

.entry-meta span {
    margin-right: 1em;
}

.entry-content {
    margin-bottom: 1.5rem;
}

.entry-footer {
    font-size: 0.85rem;
    color: #777777;
    font-family: Georgia, 'Times New Roman', serif;
}

.entry-footer a {
    color: #777777;
}

.entry-footer a:hover {
    color: #111111;
}

/* =====================
   Single Post
   ===================== */
.single .entry-title {
    font-size: 2rem;
}

/* Post Navigation */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dddddd;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
}

.nav-previous,
.nav-next {
    flex: 1;
}

.nav-next {
    text-align: right;
}

.nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #777777;
    margin-bottom: 0.3em;
}

.post-navigation a {
    text-decoration: none;
    color: #111111;
    font-weight: 700;
}

.post-navigation a:hover {
    color: #555555;
}

/* =====================
   Pages
   ===================== */
.page .entry-title {
    font-size: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #dddddd;
}

/* =====================
   Archive / Category / Tag
   ===================== */
.archive-header,
.search-header {
    margin-bottom: 3rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #dddddd;
}

.archive-title,
.search-title {
    font-size: 1.3rem;
    font-family: Georgia, 'Times New Roman', serif;
}

.archive-description {
    margin-top: 0.5em;
    font-size: 0.9rem;
    color: #555555;
}

/* =====================
   Pagination
   ===================== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-top: 3rem;
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 0.9rem;
}

.page-numbers {
    display: inline-block;
    padding: 0.4em 0.75em;
    border: 1px solid #dddddd;
    text-decoration: none;
    color: #111111;
    line-height: 1;
}

.page-numbers.current {
    background: #111111;
    color: #ffffff;
    border-color: #111111;
}

.page-numbers:hover:not(.current) {
    background: #f5f5f5;
}

/* =====================
   Search Form
   ===================== */
.search-form {
    display: flex;
    gap: 0;
    margin-bottom: 2rem;
}

.search-field {
    flex: 1;
    padding: 0.5em 0.75em;
    border: 1px solid #111111;
    border-right: none;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: #ffffff;
    color: #111111;
}

.search-submit {
    padding: 0.5em 1em;
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.03em;
}

.search-submit:hover {
    background: #444444;
    border-color: #444444;
}

/* =====================
   Sidebar
   ===================== */
.widget-area {
    font-size: 0.9rem;
}

.widget {
    margin-bottom: 2.5rem;
}

.widget-title {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #111111;
}

.widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.widget ul li {
    padding: 0.3em 0;
    border-bottom: 1px solid #f0f0f0;
}

.widget ul li:last-child {
    border-bottom: none;
}

.widget a {
    text-decoration: none;
    color: #333333;
}

.widget a:hover {
    color: #111111;
}

/* =====================
   Comments
   ===================== */
.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #dddddd;
}

.comments-title {
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}

.comment {
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #f0f0f0;
}

.comment:last-child {
    border-bottom: none;
}

.comment-meta {
    font-size: 0.85rem;
    color: #777777;
    margin-bottom: 0.75rem;
    font-family: Georgia, 'Times New Roman', serif;
}

.comment-author b {
    color: #111111;
    font-weight: 700;
}

.comment-content p {
    margin-bottom: 0.75em;
}

.comment-reply-link {
    font-size: 0.8rem;
    font-family: Georgia, 'Times New Roman', serif;
    text-decoration: none;
    color: #777777;
}

.comment-reply-link:hover {
    color: #111111;
}

.children {
    list-style: none;
    margin: 1.5rem 0 0 2rem;
    padding: 0;
}

/* Comment Form */
.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.1rem;
    margin-bottom: 1.5rem;
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    font-family: Georgia, 'Times New Roman', serif;
    margin-bottom: 0.3em;
    color: #555555;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.5em 0.75em;
    border: 1px solid #dddddd;
    font-size: 0.9rem;
    font-family: inherit;
    outline: none;
    background: #ffffff;
    color: #111111;
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    border-color: #111111;
}

.comment-form textarea {
    height: 120px;
    resize: vertical;
}

.form-submit .submit {
    padding: 0.6em 1.5em;
    background: #111111;
    color: #ffffff;
    border: 1px solid #111111;
    cursor: pointer;
    font-size: 0.9rem;
    font-family: Georgia, 'Times New Roman', serif;
    letter-spacing: 0.03em;
}

.form-submit .submit:hover {
    background: #444444;
    border-color: #444444;
}

/* =====================
   Footer
   ===================== */
.site-footer {
    border-top: 1px solid #111111;
    padding: 3rem 0 2rem;
    margin-top: auto;
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #dddddd;
}

.site-info {
    font-size: 0.8rem;
    color: #777777;
    font-family: Georgia, 'Times New Roman', serif;
    text-align: center;
}

.site-info a {
    color: #777777;
}

.site-info a:hover {
    color: #111111;
}

/* =====================
   404 Page
   ===================== */
.error-404 .page-title {
    font-size: 4rem;
    margin-bottom: 0.5rem;
}

.error-404 .page-content p {
    color: #555555;
}

/* =====================
   Responsive
   ===================== */
@media (max-width: 768px) {
    .has-sidebar .content-wrap {
        grid-template-columns: 1fr;
    }

    .footer-widgets {
        grid-template-columns: 1fr;
    }

    .post-navigation {
        flex-direction: column;
    }

    .nav-next {
        text-align: left;
    }

    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.3rem; }

    .error-404 .page-title {
        font-size: 3rem;
    }

    .main-navigation #primary-menu {
        right: 0;
        left: auto;
    }
}

@media (max-width: 480px) {
    body {
        font-size: 0.95rem;
    }

    .container {
        padding: 0 1rem;
    }

    .site-main {
        padding: 2rem 0;
    }
}
