/*
Theme Name: Public Art Theme 1.0
Author: Public Art
Description: A custom WordPress theme for Public Art.
Version: 1.0.0
Tags: custom, blog, portfolio
*/
/* ===== Reset & Base ===== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #222;
    background-color: #fff;
}

a {
    color: #0066cc;
    text-decoration: none;
    transition: all 0.3s;
}

a:hover {
    opacity: 0.8;
    transition: all 0.3s;
}

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

/* ===== Layout ===== */
.site {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden; /* 追加 */
}

.site-content {
    flex: 1;
}

.container {
    max-width: 1310px;
    margin: 0 auto;
    padding: 0 50px;
}

/* ===== Header ===== */
.site-header {
    padding: 1rem 0;
}

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

.site-branding .site-title {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.site-branding .site-title a {
    color: #fff;
}

.site-branding .site-description {
    font-size: 0.875rem;
    color: #aaa;
    margin-top: 0.25rem;
}

/* ===== Navigation ===== */
.main-navigation ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.main-navigation a {
    color: #ddd;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    transition: color 0.2s;
}

.main-navigation a:hover {
    color: #fff;
    text-decoration: none;
}

/* ===== Main Content ===== */

/* ===== Posts ===== */
.post {
    border-bottom: 1px solid #eee;
}

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

.entry-header .entry-title {
    font-size: 1.75rem;
    font-weight: 400;
    line-height: 1.3;
    margin-bottom: 0.5rem;
}

.entry-header .entry-title a {
    color: #111;
}

.entry-header .entry-title a:hover {
    color: #0066cc;
    text-decoration: none;
}

.entry-meta {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 1rem;
}

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

:where(.entry-content) {
    font-size: 1rem;
    line-height: 1.8;
}

:where(.entry-content p) {
    margin-bottom: 1.25rem;
}

:where(.entry-content h1),
:where(.entry-content h2),
:where(.entry-content h3),
:where(.entry-content h4),
:where(.entry-content h5),
:where(.entry-content h6) {
    margin: 2rem 0 0.75rem;
    line-height: 1.3;
}

:where(.entry-content ul),
:where(.entry-content ol) {
    margin: 0 0 1.25rem 1.5rem;
}

:where(.entry-content blockquote) {
    border-left: 4px solid #0066cc;
    margin: 1.5rem 0;
    padding: 0.5rem 1.5rem;
    color: #555;
    font-style: italic;
}

:where(.entry-thumbnail) {
    margin-bottom: 1.5rem;
}

:where(.entry-thumbnail img) {
    width: 100%;
    height: auto;
    border-radius: 4px;
}

/* ===== Sidebar ===== */
.content-area {
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.widget-area {
    position: sticky;
    top: 1.5rem;
}

.widget {
    margin-bottom: 2rem;
}

.widget-title {
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid #111;
}

.widget ul {
    list-style: none;
}

.widget ul li {
    padding: 0.4rem 0;
    border-bottom: 1px solid #eee;
    font-size: 0.9rem;
}

/* ===== Footer ===== */
.site-footer {
    background: #111;
    color: #fff;
    padding: 40px 0 50px;
}

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

.site-footer a {
    color: #ddd;
}

/* ===== Pagination ===== */
.navigation.pagination {
    margin-top: 2rem;
    text-align: center;
}

.nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
}

.nav-links .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #333;
    font-size: 0.9rem;
}

.nav-links .page-numbers.current,
.nav-links .page-numbers:hover {
    background: #111;
    border-color: #111;
    color: #fff;
    text-decoration: none;
}

/* ===== Single Post ===== */
.post-navigation {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #eee;
}

.post-navigation a {
    font-size: 0.9rem;
    color: #555;
}

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

.comments-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

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

.comment {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.comment-author {
    font-weight: 700;
    font-size: 0.9rem;
}

.comment-metadata {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 0.5rem;
}

/* ===== Forms ===== */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
textarea {
    width: 100%;
    padding: 0.6rem 0.875rem;
    border: 1px solid #989898;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    margin-bottom: 1rem;
}

input[type="text"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #0066cc;
    box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}

button,
input[type="submit"],
.button {
    display: inline-block;
    padding: 0.6rem 1.5rem;
    background: #111;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.2s;
}

button:hover,
input[type="submit"]:hover,
.button:hover {
    opacity: 0.8;
    text-decoration: none;
}

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

    .widget-area {
        position: static;
    }

    .site-footer .container {
        flex-direction: column;
        text-align: center;
    }
}

.wp-block-embed {
    margin-bottom: 2rem;
}