/*
Theme Name: Haroom House
Theme URI: https://donakkigi.com
Author: Haroom Team
Author URI: https://donakkigi.com
Description: Lifestyle and finance blog theme for young professionals.
Version: 1.1.4
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: haroom
Tags: blog, two-columns, custom-colors, custom-menu, custom-logo, featured-images, translation-ready
*/

/* ==========================================================================
   CSS Variables
   ========================================================================== */
:root {
    --background: 0 0% 100%;
    --foreground: 222 47% 13%;
    --card: 0 0% 100%;
    --card-foreground: 222 47% 13%;
    --primary: 222 55% 20%;
    --primary-foreground: 0 0% 100%;
    --secondary: 222 30% 96%;
    --secondary-foreground: 222 47% 18%;
    --muted: 220 20% 96%;
    --muted-foreground: 222 12% 45%;
    --accent: 158 64% 42%;
    --accent-foreground: 0 0% 100%;
    --border: 222 20% 91%;
    --ring: 158 64% 42%;

    --bg-color: hsl(var(--background));
    --text-color: hsl(var(--foreground));
    --card-bg: hsl(var(--card));
    --primary-color: hsl(var(--primary));
    --primary-text: hsl(var(--primary-foreground));
    --secondary-color: hsl(var(--secondary));
    --secondary-text: hsl(var(--secondary-foreground));
    --muted-color: hsl(var(--muted));
    --muted-text: hsl(var(--muted-foreground));
    --accent-color: hsl(var(--accent));
    --border-color: hsl(var(--border));

    --radius: 0.9rem;
    --max-width: 72rem;
    --page-padding: 1.25rem;
    --article-max-width: 72rem;
    --content-max-width: 56rem;
    --single-content-width: 72rem;

    --font-sans: "Noto Sans KR", "Gothic A1", sans-serif;
    --font-display: "Gothic A1", "Noto Sans KR", sans-serif;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-sans);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--primary-color);
    line-height: 1.2;
}

p {
    margin-bottom: 1rem;
    line-height: 1.7;
}

a {
    color: var(--accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: hsl(var(--accent) / 0.8);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
}

.container--narrow {
    max-width: var(--content-max-width);
}

.container--article {
    width: 100%;
    max-width: var(--article-max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    box-sizing: border-box;
    min-width: 0;
}

.site-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.site-main article {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
}

.container--wide {
    width: 100%;
    max-width: var(--max-width);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    box-sizing: border-box;
    min-width: 0;
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes float-up {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-float-up {
    animation: float-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@media (prefers-reduced-motion: reduce) {
    .animate-float-up {
        animation: none;
    }
}

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background-color: hsla(var(--background) / 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-color);
}

.site-header__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.25rem;
    height: 4rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.site-logo,
.custom-logo-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    flex-shrink: 0;
}

.site-navigation {
    display: flex;
    align-items: center;
    flex: 1;
    justify-content: flex-end;
    min-width: 0;
}

.site-navigation__list,
.site-navigation ul,
.mobile-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 0.375rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.site-navigation a {
    display: block;
    padding: 0.5rem 0.875rem;
    border-radius: 0.5rem;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.2s ease, background-color 0.2s ease;
    white-space: nowrap;
}

.site-logo__icon {
    width: 2.25rem;
    height: 2.25rem;
    display: grid;
    place-items: center;
    border-radius: var(--radius);
    background-color: var(--primary-color);
    color: var(--primary-text);
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.125rem;
}

.site-logo__icon-img {
    width: 2.25rem;
    height: 2.25rem;
    border-radius: var(--radius);
    display: block;
    flex-shrink: 0;
    object-fit: cover;
}

.site-logo__text {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.custom-logo {
    max-height: 2.5rem;
    width: auto;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a,
.mobile-navigation a.current-menu-item {
    color: var(--primary-color);
    background-color: var(--secondary-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    margin-right: -0.5rem;
    color: var(--primary-color);
}

.menu-toggle svg {
    width: 1.5rem;
    height: 1.5rem;
}

.mobile-navigation {
    display: none;
    border-top: 1px solid var(--border-color);
    background-color: var(--bg-color);
    padding: 0.75rem 1.25rem 0;
}

.mobile-navigation.is-open {
    display: flex;
    flex-direction: column;
}

.mobile-navigation ul {
    flex-direction: column;
    width: 100%;
    gap: 0;
}

.mobile-navigation a {
    display: block;
    padding: 0.75rem 0;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-color);
    text-decoration: none;
    border-bottom: 1px solid hsla(var(--border) / 0.6);
}

.mobile-navigation a:hover,
.mobile-navigation .current-menu-item > a {
    color: var(--accent-color);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
    position: relative;
    overflow: hidden;
}

.hero__glow {
    position: absolute;
    top: -6rem;
    right: -6rem;
    width: 24rem;
    height: 24rem;
    border-radius: 50%;
    background-color: hsla(var(--accent) / 0.1);
    filter: blur(80px);
    pointer-events: none;
}

.hero__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.25rem 3rem;
    display: grid;
    gap: 2.5rem;
    align-items: center;
}

@media (min-width: 768px) {
    .hero__inner {
        grid-template-columns: 1fr 1fr;
        padding-top: 6rem;
        padding-bottom: 4rem;
    }
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    background-color: hsla(var(--accent) / 0.1);
    padding: 0.375rem 0.75rem;
    border-radius: 9999px;
}

.hero__title {
    margin-top: 1.25rem;
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.15;
}

@media (min-width: 768px) {
    .hero__title {
        font-size: 3rem;
    }
}

.hero__title .text-accent {
    color: var(--accent-color);
}

.hero__subtitle {
    margin-top: 1.25rem;
    font-size: 1rem;
    color: var(--muted-text);
    line-height: 1.75;
    max-width: 28rem;
}

@media (min-width: 768px) {
    .hero__subtitle {
        font-size: 1.125rem;
    }
}

.hero__actions {
    margin-top: 1.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    border-radius: var(--radius);
    font-size: 0.875rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.2s ease, transform 0.1s ease;
    border: none;
    cursor: pointer;
}

.btn:active {
    transform: scale(0.98);
}

.btn--primary {
    background-color: var(--primary-color);
    color: var(--primary-text);
}

.btn--primary:hover {
    background-color: hsla(var(--primary) / 0.9);
    color: var(--primary-text);
}

.btn svg {
    width: 1rem;
    height: 1rem;
}

.hero__image-wrapper {
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: 0 24px 60px -24px rgba(20, 40, 80, 0.4);
}

.hero__image {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

/* ==========================================================================
   Categories
   ========================================================================== */
.categories-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1rem 1.25rem;
}

.categories-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.category-card {
    display: block;
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    padding: 1.25rem;
    background-color: var(--card-bg);
    text-decoration: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

.category-card:hover {
    border-color: hsla(var(--accent) / 0.6);
    background-color: hsla(var(--secondary) / 0.4);
}

.category-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.category-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--primary-color);
}

.category-card__arrow {
    width: 1rem;
    height: 1rem;
    color: var(--muted-text);
    transition: color 0.2s ease, transform 0.2s ease;
}

.category-card:hover .category-card__arrow {
    color: var(--accent-color);
    transform: translateX(2px);
}

.category-card__desc {
    margin-top: 0.375rem;
    font-size: 0.875rem;
    color: var(--muted-text);
}

/* ==========================================================================
   Featured post
   ========================================================================== */
.featured-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 2rem 1.25rem 3.5rem;
}

.featured-section .section-header {
    margin-bottom: 1.25rem;
}

.featured-card {
    display: grid;
    grid-template-columns: 1fr;
    border-radius: 1.5rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    text-decoration: none;
}

@media (min-width: 768px) {
    .featured-card {
        grid-template-columns: 1fr 1fr;
    }
}

.featured-card__image-wrapper {
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: var(--secondary-color);
    min-height: 220px;
}

.featured-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.featured-card:hover .featured-card__image {
    transform: scale(1.05);
}

.featured-card__content {
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

@media (min-width: 768px) {
    .featured-card__content {
        padding: 2.5rem;
    }
}

.featured-card__label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
}

.featured-card__title {
    margin-top: 0.75rem;
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

@media (min-width: 768px) {
    .featured-card__title {
        font-size: 1.875rem;
    }
}

.featured-card:hover .featured-card__title {
    color: var(--accent-color);
}

.featured-card__excerpt {
    margin-top: 0.75rem;
    color: var(--muted-text);
    line-height: 1.7;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.featured-card__meta {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-text);
}

.featured-card__meta-dot,
.post-card__meta-dot,
.single-meta-dot {
    width: 0.25rem;
    height: 0.25rem;
    border-radius: 50%;
    background-color: var(--border-color);
}

/* ==========================================================================
   Post grid & cards
   ========================================================================== */
.posts-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3.5rem var(--page-padding);
    width: 100%;
    box-sizing: border-box;
}

.posts-section.category-posts {
    padding-top: 1rem;
}

.category-header.container--wide {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.section-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.post-grid {
    display: grid;
    gap: 1.5rem;
    grid-template-columns: 1fr;
}

@media (min-width: 640px) {
    .post-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .post-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .category-posts .post-grid,
    .archive .post-grid,
    .search .post-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1280px) {
    .category-posts .post-grid,
    .archive .post-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.post-card {
    display: block;
    animation: float-up 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.post-card__link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.post-card__inner {
    border-radius: 1rem;
    border: 1px solid var(--border-color);
    background-color: var(--card-bg);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.post-card:hover .post-card__inner {
    box-shadow: 0 16px 40px -18px rgba(20, 40, 80, 0.35);
    transform: translateY(-4px);
}

.post-card__image-wrapper {
    aspect-ratio: 3 / 2;
    overflow: hidden;
    background-color: var(--secondary-color);
}

.post-card__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.post-card:hover .post-card__image {
    transform: scale(1.05);
}

.post-card__content {
    padding: 1.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.post-card__category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 0.5rem;
}

.post-card__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.125rem;
    line-height: 1.35;
    color: var(--primary-color);
    transition: color 0.2s ease;
}

.post-card:hover .post-card__title {
    color: var(--accent-color);
}

.post-card__excerpt {
    margin-top: 0.5rem;
    font-size: 0.875rem;
    color: var(--muted-text);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.post-card__meta {
    margin-top: auto;
    padding-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.75rem;
    color: var(--muted-text);
}

.post-card__meta-clock {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.post-card__meta-clock svg {
    width: 0.875rem;
    height: 0.875rem;
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
}

.empty-state p {
    color: var(--muted-text);
    margin: 0;
}

/* ==========================================================================
   Single post — one shared shell for title / image / body
   ========================================================================== */
.single-post {
    width: 100%;
    max-width: 100%;
    min-width: 0;
}

.single-shell {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding-left: var(--page-padding);
    padding-right: var(--page-padding);
    padding-bottom: 2.5rem;
    box-sizing: border-box;
    min-width: 0;
}

.single-header {
    padding-top: 3rem;
    padding-bottom: 1.5rem;
}

.single-back {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--muted-text);
    text-decoration: none;
    transition: color 0.2s ease;
}

.single-back:hover {
    color: var(--accent-color);
}

.single-back svg {
    width: 1rem;
    height: 1rem;
}

.single-title {
    margin-top: 1rem;
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--primary-color);
    overflow-wrap: break-word;
    word-break: keep-all;
}

@media (min-width: 768px) {
    .single-title {
        font-size: 2.5rem;
    }
}

.single-meta {
    margin-top: 1.25rem;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.9375rem;
    color: var(--muted-text);
}

.single-featured-image {
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin: 0 0 2rem;
    width: 100%;
    max-width: 100%;
}

.single-featured-image img {
    width: 100%;
    max-height: 360px;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: center;
    display: block;
}

.single-content {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding-bottom: 1.5rem;
    font-size: 1.1875rem;
    line-height: 1.95;
    letter-spacing: 0.015em;
    color: hsla(var(--foreground) / 0.92);
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.single-content p,
.single-content li,
.single-content .wp-block-paragraph,
.single-content .wp-block-group,
.single-content td,
.single-content th,
.single-content figcaption,
.single-content blockquote,
.single-content span,
.single-content div {
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: break-word;
    word-wrap: break-word;
    word-break: break-word;
}

.single-content p {
    margin-bottom: 1.75rem;
}

.single-content h2 {
    font-size: 1.75rem;
    margin-top: 2.75rem;
    margin-bottom: 1rem;
    overflow-wrap: break-word;
    word-break: keep-all;
}

.single-content h3 {
    font-size: 1.4375rem;
    margin-top: 2rem;
    margin-bottom: 0.875rem;
    overflow-wrap: break-word;
    word-break: keep-all;
}

.single-content h4 {
    font-size: 1.25rem;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
}

.single-content ul,
.single-content ol {
    margin: 1rem 0 1.5rem 1.5rem;
}

.single-content li {
    margin-bottom: 0.5rem;
    line-height: 1.75;
    letter-spacing: 0.01em;
}

.single-content blockquote {
    border-left: 4px solid var(--accent-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    background-color: var(--secondary-color);
    border-radius: 0 0.5rem 0.5rem 0;
    font-style: italic;
    color: var(--muted-text);
}

.single-content img {
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    max-width: 100%;
    height: auto;
}

.single-content a {
    text-decoration: underline;
    text-underline-offset: 2px;
    overflow-wrap: break-word;
    word-break: break-word;
}

.single-content table {
    width: 100%;
    max-width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    table-layout: fixed;
}

.single-content th,
.single-content td {
    border: 1px solid var(--border-color);
    padding: 0.75rem 1rem;
    text-align: left;
    overflow-wrap: break-word;
}

.single-content th {
    background-color: var(--secondary-color);
}

.single-content :where(pre, code) {
    white-space: pre-wrap;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

.comments-section {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border-color);
    width: 100%;
    max-width: 100%;
    font-size: 1rem;
}
.related-section {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 4rem 1.25rem 0;
}

.related-title {
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 1.25rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

/* ==========================================================================
   Archive / category
   ========================================================================== */
.category-header {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
}

.category-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 2rem;
}

.category-tab {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.category-tab--active {
    background-color: var(--primary-color);
    color: var(--primary-text);
}

.category-tab:not(.category-tab--active) {
    background-color: var(--secondary-color);
    color: var(--secondary-text);
}

.category-tab:not(.category-tab--active):hover {
    background-color: hsla(var(--secondary) / 0.7);
}

.category-title {
    font-size: 1.875rem;
    font-weight: 800;
    color: var(--primary-color);
}

@media (min-width: 768px) {
    .category-title {
        font-size: 2.25rem;
    }
}

.category-desc {
    margin-top: 0.75rem;
    color: var(--muted-text);
}

/* ==========================================================================
   404
   ========================================================================== */
.error-404 {
    min-height: calc(100vh - 10rem);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 8rem 1.25rem;
}

.error-404__title {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.5rem;
    color: var(--primary-color);
}

.error-404__link {
    display: inline-block;
    margin-top: 1rem;
    color: var(--accent-color);
    font-weight: 500;
}

.error-404__link:hover {
    text-decoration: underline;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
    margin-top: 6rem;
    border-top: 1px solid var(--border-color);
    background-color: hsla(var(--secondary) / 0.4);
}

.site-footer__inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 1.25rem;
    display: grid;
    gap: 2rem;
    grid-template-columns: 1fr;
}

@media (min-width: 768px) {
    .site-footer__inner {
        grid-template-columns: 1.5fr 1fr;
    }
}

.site-footer__about p {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: var(--muted-text);
    max-width: 32rem;
    line-height: 1.7;
}

.site-footer__categories h4 {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 0.75rem;
}

.site-footer__categories ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.site-footer__categories li {
    margin-bottom: 0.5rem;
}

.site-footer__categories a {
    font-size: 0.875rem;
    color: var(--muted-text);
    text-decoration: none;
}

.site-footer__categories a:hover {
    color: var(--accent-color);
}

.site-footer__bottom {
    border-top: 1px solid hsla(var(--border) / 0.6);
}

.site-footer__copy {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 1.25rem;
    font-size: 0.75rem;
    color: var(--muted-text);
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.pagination,
.nav-links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 2rem 0;
}

.pagination a,
.pagination span,
.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-weight: 500;
    text-decoration: none;
    border: 1px solid var(--border-color);
    color: var(--muted-text);
    background-color: var(--card-bg);
    transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination a:hover,
.page-numbers:hover {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.pagination .current,
.page-numbers.current {
    background-color: var(--primary-color);
    color: var(--primary-text);
    border-color: var(--primary-color);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.comments-section .comment-form,
.comments-section .comment-list,
.comments-section p,
.comments-section label {
    font-size: 1rem;
    line-height: 1.75;
}

.edit-link {
    font-size: 0.875rem;
    margin-top: 1rem;
}

.edit-link a {
    color: var(--muted-text);
}

.comments-section h3,
.comment-reply-title {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment {
    padding: 1.5rem 0;
    border-bottom: 1px solid hsla(var(--border) / 0.5);
}

.comment-form input,
.comment-form textarea,
.search-field {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 0.875rem;
    font-family: var(--font-sans);
    color: var(--text-color);
    background-color: var(--bg-color);
    margin-bottom: 1rem;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent-color);
    box-shadow: 0 0 0 3px hsla(var(--accent) / 0.1);
}

.comment-form textarea {
    height: 10rem;
    resize: vertical;
}

/* ==========================================================================
   WordPress core extras
   ========================================================================== */
.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignleft {
    float: left;
    margin: 0 1.5rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.5rem;
}

.wp-caption {
    max-width: 100%;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 767px) {
    .site-navigation {
        display: none;
    }

    .menu-toggle {
        display: block;
    }

    .posts-section {
        padding: 2rem 1rem 3rem;
    }

    .single-header {
        padding-top: 2rem;
    }

    .single-title {
        font-size: 1.875rem;
    }

    .single-content,
    .single-content :where(p, li, td, th) {
        font-size: 1.0625rem;
        line-height: 1.9;
    }
}
