/*
Theme Name: Ghost Casper
Theme URI: https://ghost.org/
Author: Trae
Author URI: https://trae.com/
Description: 一个仿照 Ghost 官方默认主题 Casper 的 WordPress 主题。简洁、内容优先、卡片式文章列表、大尺寸 Hero 封面。Casper-style WordPress theme inspired by the Ghost default theme.
Version: 1.0.0
Requires at least: 5.5
Tested up to: 6.4
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ghost-casper
Tags: blog, two-columns, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, custom-colors, custom-header
*/

/* ------------------------------------------------------------------ */
/* 1. CSS Variables / Design Tokens                                   */
/* ------------------------------------------------------------------ */
:root {
    --color-bg: #ffffff;
    --color-text: #15171a;
    --color-secondary: #6c7378;
    --color-meta: #979797;
    --color-border: #e5e5e5;
    --color-light: #f6f6f7;
    --color-white: #ffffff;
    --color-accent: #15171a;
    --color-accent-text: #ffffff;
    --color-overlay: rgba(0, 0, 0, 0.55);

    --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
        Ubuntu, Cantarell, "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
    --font-mono: "SF Mono", "Roboto Mono", Menlo, Consolas, monospace;

    --header-height: 88px;
    --container: 1200px;
    --container-narrow: 720px;
    --radius: 6px;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 20px;
    --space-5: 32px;
    --space-6: 48px;
    --space-7: 64px;
    --space-8: 96px;
}

/* ------------------------------------------------------------------ */
/* 2. Reset & Base                                                    */
/* ------------------------------------------------------------------ */
*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

html {
    font-size: 62.5%;
}

img,
picture,
video,
canvas,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

a:hover {
    opacity: 0.75;
}

ul,
ol {
    margin: 0 0 0 1.6em;
    padding: 0;
}

button {
    font-family: inherit;
    cursor: pointer;
}

h1, h2, h3, h4, h5, h6 {
    margin: 0;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
}

p {
    margin: 0 0 1.5em;
}

figure {
    margin: 0;
}

/* ------------------------------------------------------------------ */
/* 3. Accessibility                                                    */
/* ------------------------------------------------------------------ */
.screen-reader-text {
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    clip-path: inset(50%);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
    word-wrap: normal !important;
}

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    z-index: 1000;
    background: var(--color-accent);
    color: var(--color-accent-text);
    padding: 12px 20px;
    font-weight: 700;
}

.skip-link:focus {
    left: 0;
}

:focus-visible {
    outline: 2px solid var(--color-accent);
    outline-offset: 2px;
}

/* ------------------------------------------------------------------ */
/* 4. Header                                                           */
/* ------------------------------------------------------------------ */
.site-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--header-height);
    color: #fff;
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.site-header.is-scrolled,
body:not(.has-site-cover) .site-header {
    position: sticky;
    background: var(--color-bg);
    color: var(--color-text);
    box-shadow: 0 1px 0 var(--color-border);
}

.site-header__inner {
    max-width: var(--container);
    height: 100%;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.site-header__left,
.site-header__right {
    display: flex;
    align-items: center;
    gap: 20px;
    flex: 1;
}

.site-header__right {
    justify-content: flex-end;
}

.site-header__nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.site-header__nav a {
    font-size: 1.4rem;
    font-weight: 600;
    color: inherit;
    opacity: 0.85;
}

.site-header__nav a:hover {
    opacity: 0.6;
}

/* Custom logo */
.site-logo img {
    max-height: 36px;
    width: auto;
}

/* Text logo fallback */
.site-logo__text {
    font-size: 2.1rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-header__btn {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    border: 1px solid currentColor;
    background: transparent;
    color: inherit;
    transition: background 0.2s ease, color 0.2s ease;
}

.site-header__btn--primary {
    background: currentColor;
    color: var(--color-bg) !important;
    border-color: currentColor;
}

.site-header__btn:hover {
    opacity: 1;
}

/* Search toggle */
.search-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: inherit;
}

.search-toggle svg {
    width: 20px;
    height: 20px;
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: inherit;
    flex-direction: column;
    gap: 4px;
    align-items: center;
    justify-content: center;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ------------------------------------------------------------------ */
/* 5. Hero / Site Cover                                                */
/* ------------------------------------------------------------------ */
.site-cover {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    padding: var(--header-height) 24px var(--space-8);
    text-align: center;
    color: #fff;
    background-color: #15171a;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.site-cover::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--color-overlay);
    z-index: -1;
}

.site-cover__inner {
    max-width: 720px;
}

.site-cover__title {
    font-size: 6rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin: 0 0 16px;
}

.site-cover__desc {
    font-size: 2.2rem;
    font-weight: 400;
    line-height: 1.4;
    opacity: 0.9;
    margin: 0 0 32px;
}

.site-cover__more {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin: 0 auto;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    color: #fff;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ------------------------------------------------------------------ */
/* 6. Post Feed (Home / Archive grid)                                  */
/* ------------------------------------------------------------------ */
.post-feed {
    max-width: var(--container);
    margin: 0 auto;
    padding: var(--space-8) 24px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 48px 40px;
}

.post-feed .post-card:first-child {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 32px;
    align-items: center;
    padding-bottom: 48px;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 8px;
}

.post-feed .post-card:first-child .post-card__image {
    margin: 0;
}

.post-feed .post-card:first-child .post-card__title {
    font-size: 3.4rem;
}

.post-feed .post-card:first-child .post-card__excerpt {
    font-size: 1.7rem;
}

/* Card */
.post-card {
    display: flex;
    flex-direction: column;
}

.post-card__link {
    display: block;
    color: inherit;
}

.post-card__image {
    position: relative;
    margin-bottom: 24px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-light);
    border-radius: var(--radius);
}

.post-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card__link:hover .post-card__image img {
    transform: scale(1.03);
}

.post-card__image--placeholder {
    background: linear-gradient(135deg, #2b2d33 0%, #4a4e57 100%);
}

.post-card__content {
    flex: 1;
}

.post-card__tag {
    display: inline-block;
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--color-meta);
}

.post-card__tag--featured::before {
    content: "★ ";
    color: #f0a020;
}

.post-card__title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.15;
    letter-spacing: -0.01em;
    margin: 0 0 12px;
}

.post-card__link:hover .post-card__title {
    opacity: 0.75;
}

.post-card__excerpt {
    font-size: 1.6rem;
    line-height: 1.55;
    color: var(--color-secondary);
    margin: 0 0 20px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.post-card__meta {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 1.3rem;
    color: var(--color-meta);
}

.post-card__meta .sep {
    opacity: 0.6;
}

/* ------------------------------------------------------------------ */
/* 7. Pagination                                                       */
/* ------------------------------------------------------------------ */
.pagination {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px var(--space-8);
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.pagination a,
.pagination span {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 999px;
    border: 1px solid var(--color-border);
    color: var(--color-text);
    transition: background 0.2s ease, color 0.2s ease;
}

.pagination a:hover {
    background: var(--color-accent);
    color: var(--color-accent-text);
    border-color: var(--color-accent);
}

.pagination .current {
    background: var(--color-accent);
    color: var(--color-accent-text);
    border-color: var(--color-accent);
}

.pagination__dots {
    border: 0;
    padding: 0;
    color: var(--color-meta);
}

/* ------------------------------------------------------------------ */
/* 8. Single Post / Page                                              */
/* ------------------------------------------------------------------ */
.article-hero {
    position: relative;
    min-height: 56vh;
    display: flex;
    align-items: flex-end;
    padding: var(--header-height) 24px 40px;
    color: #fff;
    background-color: #15171a;
    background-size: cover;
    background-position: center;
    isolation: isolate;
}

.article-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.65) 100%);
    z-index: -1;
}

.article-hero__inner {
    max-width: var(--container-narrow);
    margin: 0 auto;
    width: 100%;
    text-align: center;
}

.article-hero__tag {
    display: inline-block;
    margin-bottom: 16px;
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    opacity: 0.85;
}

.article-hero__title {
    font-size: 4.8rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0 0 20px;
}

.article-hero__meta {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    font-size: 1.4rem;
    opacity: 0.9;
}

.article-hero__meta .sep {
    opacity: 0.6;
}

.article-hero__meta img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    object-fit: cover;
}

/* Article body */
.article {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 56px 24px;
}

.article__content {
    font-size: 1.7rem;
    line-height: 1.75;
    color: var(--color-text);
}

.article__content > * {
    margin-bottom: 1.5em;
}

.article__content > *:first-child {
    margin-top: 0;
}

.article__content h2 {
    font-size: 2.8rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
}

.article__content h3 {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 1.4em 0 0.5em;
}

.article__content h4 {
    font-size: 1.9rem;
    font-weight: 700;
    margin: 1.2em 0 0.4em;
}

.article__content a {
    color: var(--color-accent);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.article__content a:hover {
    text-decoration: none;
    opacity: 0.7;
}

.article__content ul,
.article__content ol {
    padding-left: 1.6em;
}

.article__content li {
    margin-bottom: 0.5em;
}

.article__content blockquote {
    margin: 1.8em 0;
    padding: 0.2em 0 0.2em 1.2em;
    border-left: 3px solid var(--color-accent);
    font-size: 1.9rem;
    font-style: italic;
    color: var(--color-secondary);
}

.article__content img {
    border-radius: var(--radius);
    margin: 1.8em auto;
}

.article__content figure {
    margin: 1.8em 0;
}

.article__content figcaption {
    text-align: center;
    font-size: 1.4rem;
    color: var(--color-meta);
    margin-top: 8px;
}

.article__content pre {
    background: #1b1c1f;
    color: #f6f6f7;
    padding: 20px 24px;
    border-radius: var(--radius);
    overflow-x: auto;
    font-size: 1.4rem;
    line-height: 1.6;
}

.article__content code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    background: var(--color-light);
    padding: 2px 6px;
    border-radius: 4px;
}

.article__content pre code {
    background: none;
    padding: 0;
    color: inherit;
}

.article__content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8em 0;
    font-size: 1.5rem;
}

.article__content th,
.article__content td {
    border: 1px solid var(--color-border);
    padding: 10px 14px;
    text-align: left;
}

.article__content th {
    background: var(--color-light);
    font-weight: 700;
}

.article__content hr {
    border: 0;
    border-top: 1px solid var(--color-border);
    margin: 2.4em 0;
}

.article__content cite {
    font-style: italic;
}

/* Article footer */
.article__footer {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px 48px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--color-border);
    padding-top: 32px;
    margin-top: 48px;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag-list a {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--color-light);
    color: var(--color-secondary);
}

.tag-list a:hover {
    background: var(--color-accent);
    color: var(--color-accent-text);
    opacity: 1;
}

.share-buttons {
    display: flex;
    gap: 8px;
}

.share-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--color-secondary);
}

.share-buttons a:hover {
    background: var(--color-accent);
    color: var(--color-accent-text);
    opacity: 1;
}

.share-buttons svg {
    width: 16px;
    height: 16px;
}

/* Author card */
.author-card {
    max-width: var(--container-narrow);
    margin: 0 auto 48px;
    padding: 0 24px;
    display: flex;
    gap: 20px;
    align-items: center;
    text-align: left;
}

.author-card__avatar img {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
}

.author-card__name {
    font-size: 1.8rem;
    font-weight: 800;
    margin: 0 0 4px;
}

.author-card__bio {
    font-size: 1.4rem;
    color: var(--color-secondary);
    margin: 0;
}

/* ------------------------------------------------------------------ */
/* 9. Page header (archive / search)                                  */
/* ------------------------------------------------------------------ */
.page-header {
    max-width: var(--container);
    margin: 0 auto;
    padding: calc(var(--header-height) + 48px) 24px 32px;
    text-align: center;
    border-bottom: 1px solid var(--color-border);
}

.page-header h1 {
    font-size: 4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin: 0 0 12px;
}

.page-header__desc {
    font-size: 1.6rem;
    color: var(--color-secondary);
    margin: 0;
}

/* ------------------------------------------------------------------ */
/* 10. Comments                                                        */
/* ------------------------------------------------------------------ */
.comments-area {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 24px 64px;
}

.comments-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin: 0 0 32px;
}

.comment-list {
    list-style: none;
    margin: 0 0 48px;
    padding: 0;
}

.comment-list .children {
    list-style: none;
    margin-left: 32px;
    padding-left: 24px;
    border-left: 2px solid var(--color-border);
}

.comment-body {
    margin-bottom: 32px;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.comment-meta img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.comment-author {
    font-weight: 700;
}

.comment-content {
    font-size: 1.5rem;
    line-height: 1.6;
}

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

.comment-reply-link {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-accent);
}

.comment-form {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 6px;
}

.comment-form input,
.comment-form textarea {
    width: 100%;
    font-family: inherit;
    font-size: 1.5rem;
    padding: 10px 14px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-bg);
}

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

.comment-form .submit {
    align-self: flex-start;
    font-size: 1.4rem;
    font-weight: 600;
    padding: 10px 24px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    border: 0;
}

/* ------------------------------------------------------------------ */
/* 11. Footer                                                          */
/* ------------------------------------------------------------------ */
.site-footer {
    background: var(--color-bg);
    border-top: 1px solid var(--color-border);
    padding: 64px 24px 32px;
    text-align: center;
}

.site-footer__inner {
    max-width: var(--container);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.site-footer__logo {
    font-size: 2.4rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.site-footer__logo img {
    max-height: 40px;
    width: auto;
}

.site-footer__social {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.site-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-light);
    color: var(--color-secondary);
}

.site-footer__social a:hover {
    background: var(--color-accent);
    color: var(--color-accent-text);
    opacity: 1;
}

.site-footer__social svg {
    width: 16px;
    height: 16px;
}

.site-footer__nav {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.site-footer__nav a {
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--color-secondary);
}

.site-footer__nav a:hover {
    color: var(--color-text);
    opacity: 0.7;
}

.site-footer__credit {
    font-size: 1.3rem;
    color: var(--color-meta);
    margin-top: 8px;
}

/* ------------------------------------------------------------------ */
/* 12. 404 / No results                                               */
/* ------------------------------------------------------------------ */
.error-page {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: calc(var(--header-height) + 64px) 24px 96px;
    text-align: center;
}

.error-page__code {
    font-size: 12rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: var(--color-light);
    margin: 0 0 16px;
}

.error-page__title {
    font-size: 3rem;
    font-weight: 800;
    margin: 0 0 16px;
}

.error-page__desc {
    font-size: 1.6rem;
    color: var(--color-secondary);
    margin: 0 0 32px;
}

.error-page .search-form {
    max-width: 480px;
    margin: 0 auto;
    display: flex;
    gap: 8px;
}

.error-page .search-form input {
    flex: 1;
    font-size: 1.5rem;
    padding: 12px 16px;
    border: 1px solid var(--color-border);
    border-radius: 999px;
}

.error-page .search-form .submit {
    font-size: 1.4rem;
    font-weight: 600;
    padding: 12px 24px;
    border-radius: 999px;
    background: var(--color-accent);
    color: var(--color-accent-text);
    border: 0;
}

/* Search form (header overlay) */
.search-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(21, 23, 26, 0.92);
    display: none;
    align-items: flex-start;
    justify-content: center;
    padding: 15vh 24px 24px;
}

.search-overlay.is-open {
    display: flex;
}

.search-overlay__form {
    width: 100%;
    max-width: 640px;
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 2px solid rgba(255,255,255,0.6);
    padding-bottom: 8px;
}

.search-overlay__form input {
    flex: 1;
    background: transparent;
    border: 0;
    color: #fff;
    font-size: 3rem;
    font-weight: 700;
    outline: none;
}

.search-overlay__form input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-overlay__close {
    width: 40px;
    height: 40px;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 2.4rem;
    line-height: 1;
}

/* ------------------------------------------------------------------ */
/* 13. Responsive                                                      */
/* ------------------------------------------------------------------ */
@media (max-width: 900px) {
    .site-cover__title { font-size: 4.6rem; }
    .site-cover__desc { font-size: 1.8rem; }
    .article-hero__title { font-size: 3.4rem; }
    .post-feed .post-card:first-child {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .post-feed .post-card:first-child .post-card__title { font-size: 2.8rem; }
}

@media (max-width: 700px) {
    html { font-size: 56.25%; }

    .site-header__nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 80%;
        max-width: 320px;
        height: 100vh;
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 8px;
        background: var(--color-bg);
        color: var(--color-text);
        padding: 88px 24px 24px;
        transition: right 0.3s ease;
        box-shadow: -4px 0 24px rgba(0,0,0,0.08);
    }
    .site-header__nav.is-open { right: 0; }
    .site-header__nav a { font-size: 1.6rem; padding: 8px 0; }

    .nav-toggle { display: flex; }
    .site-header__right .site-header__btn { display: none; }

    .post-feed {
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 56px 24px;
    }
    .post-card__title { font-size: 2.2rem; }

    .article { padding: 40px 20px; }
    .article__content { font-size: 1.6rem; }
    .article__content h2 { font-size: 2.2rem; }

    .author-card { flex-direction: column; text-align: center; }
    .article__footer { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
    .site-cover { min-height: 60vh; }
    .site-cover__title { font-size: 3.6rem; }
    .site-cover__desc { font-size: 1.6rem; }
    .article-hero__title { font-size: 2.6rem; }
    .error-page__code { font-size: 8rem; }
    .pagination { flex-wrap: wrap; justify-content: center; }
}

/* WordPress core alignment classes */
.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin: 1.5em auto; }
.alignwide { max-width: 1000px; margin-left: calc(50% - 500px); }
.alignfull { max-width: 100vw; margin-left: calc(50% - 50vw); }

.wp-caption { max-width: 100%; }
.wp-caption-text,
.gallery-caption {
    text-align: center;
    font-size: 1.4rem;
    color: var(--color-meta);
    margin-top: 8px;
}

.sticky { display: block; }
.bypostauthor { display: block; }

/* Block editor: cover image, buttons */
.wp-block-cover,
.wp-block-image img { border-radius: var(--radius); }

.wp-block-button__link {
    border-radius: 999px;
    font-weight: 600;
}

/* Selection */
::selection {
    background: var(--color-accent);
    color: var(--color-accent-text);
}
