/*
Theme Name: Tentacle Archive
Theme URI: https://example.com/tentacle-archive
Author: OpenAI
Author URI: https://openai.com
Description: Minimal editorial masonry theme inspired by a clean tentacle archive layout.
Version: 1.2.2
Requires at least: 6.0
Tested up to: 6.8
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: tentacle-archive
Tags: blog, portfolio, grid-layout, one-column, custom-logo, featured-images, threaded-comments, translation-ready
*/

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');

:root {
    --ta-bg: #ffffff;
    --ta-text: #111827;
    --ta-muted: #6b7280;
    --ta-soft: #9ca3af;
    --ta-border: #e5e7eb;
    --ta-border-2: #f3f4f6;
    --ta-dark: #111111;
    --ta-dark-hover: #1f2937;
    --ta-radius-xl: 24px;
    --ta-radius-lg: 18px;
    --ta-shadow: 0 18px 50px rgba(17, 24, 39, 0.06);
    --ta-max: 1720px;
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    font-family: 'Inter', sans-serif;
    background: var(--ta-bg);
    color: var(--ta-text);
    overflow-x: hidden;
    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

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

button,
input,
textarea,
select {
    font: inherit;
}

.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 !important;
    width: 1px;
    word-wrap: normal !important;
}

.screen-reader-text:focus {
    background-color: #f1f1f1;
    clip: auto !important;
    clip-path: none;
    color: #21759b;
    display: block;
    font-size: 14px;
    font-weight: 700;
    height: auto;
    left: 5px;
    line-height: normal;
    padding: 15px 23px 14px;
    text-decoration: none;
    top: 5px;
    width: auto;
    z-index: 100000;
}

.site-wrap {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.site-main {
    flex: 1 1 auto;
}

.ta-container,
.site-topbar__inner,
.site-header__inner,
.site-footer__inner,
.page-hero,
.single-shell,
.pagination-shell,
.comments-area,
.archive-description,
.category-strip-wrap {
    width: min(calc(100% - 2rem), var(--ta-max));
    margin-inline: auto;
}

.site-topbar {
    border-bottom: 1px solid var(--ta-border);
    background: #fafafa;
}

.site-topbar__inner {
    min-height: 32px;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.18rem 0;
    color: var(--ta-muted);
    font-size: 0.76rem;
}

.site-topbar__label {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 0;
    border-radius: 0;
    background: transparent;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
}

.site-topbar__nav {
    min-width: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.site-topbar__nav::-webkit-scrollbar {
    display: none;
}

.site-topbar__nav .menu {
    list-style: none;
    display: inline-flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    padding: 0;
}

.site-topbar__nav li {
    list-style: none;
}

.site-topbar__nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.1rem 0;
    border-radius: 0;
    font-size: 0.76rem;
    line-height: 1.1;
    color: var(--ta-muted);
    background: transparent;
    border: 0;
    transition: color 0.2s ease, opacity 0.2s ease;
}

.site-topbar__nav a:hover {
    color: var(--ta-text);
    opacity: 1;
}

.site-topbar__nav li + li::before {
    content: "•";
    color: #d1d5db;
    margin-right: 0.7rem;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ta-border);
}

.site-header__inner {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 1.25rem;
    padding: 1rem 0;
}

.branding {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.branding__icon {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: #f5f5f5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    flex-shrink: 0;
}

.branding__text {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    min-width: 0;
    flex-wrap: wrap;
}

.site-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.site-title a:hover {
    opacity: 0.85;
}

.branding__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.18rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: #f3f4f6;
    color: var(--ta-muted);
}

.header-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-left: auto;
    border: 1px solid var(--ta-border);
    border-radius: 16px;
    background: #fff;
    color: var(--ta-text);
    cursor: pointer;
    transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.header-toggle:hover {
    border-color: #d7dce3;
    transform: translateY(-1px);
}

.header-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 2px 0;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

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

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

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

.header-panel {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.site-navigation {
    display: none;
}

.site-navigation ul {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 0;
    padding: 0;
}

.site-navigation .menu,
.footer-links .menu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.footer-links .menu {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links li {
    list-style: none;
}

.site-navigation a {
    font-size: 0.92rem;
    color: var(--ta-muted);
    transition: color 0.2s ease;
}

.site-navigation a:hover,
.site-navigation .current-menu-item > a,
.site-navigation .current_page_item > a {
    color: var(--ta-text);
}

.header-filters {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.5rem;
    flex-wrap: wrap;
    min-width: 0;
}

.category-strip-wrap {
    padding: 0.5rem 0 0.6rem;
    border-bottom: 1px solid rgba(229, 231, 235, 0.9);
    background: #fff;
}

.category-strip {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
    mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, #000 18px, #000 calc(100% - 18px), transparent);
}

.category-strip::-webkit-scrollbar {
    display: none;
}

.category-strip__label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding-right: 0.2rem;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #9ca3af;
    flex: 0 0 auto;
}

.category-strip__chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.68rem;
    border-radius: 999px;
    border: 1px solid #ececec;
    background: #f7f7f7;
    font-size: 0.78rem;
    line-height: 1;
    color: var(--ta-muted);
    transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease;
    opacity: 1;
    flex: 0 0 auto;
}

.category-strip__chip:hover {
    color: var(--ta-text);
    background: #f1f1f1;
    border-color: #e3e3e3;
}

.category-strip__chip.is-active {
    color: var(--ta-text);
    background: #efefef;
    border-color: #e1e1e1;
    font-weight: 600;
}

.filter-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.55rem 0.95rem;
    border-radius: 999px;
    font-size: 0.84rem;
    color: var(--ta-muted);
    background: transparent;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.filter-chip:hover {
    background: #f3f4f6;
    color: var(--ta-text);
}

.filter-chip.is-active {
    background: var(--ta-dark);
    color: #fff;
}

.page-hero {
    padding: 3rem 0 1.5rem;
}

.page-hero__title {
    margin: 0;
    font-size: clamp(2.1rem, 4.5vw, 4.1rem);
    line-height: 1;
    font-weight: 300;
    letter-spacing: -0.04em;
}

.page-hero__text,
.archive-description,
.entry-meta,
.entry-summary,
.card-meta,
.not-found p,
.search-form label,
.wp-caption-text,
.entry-content figcaption,
.comment-metadata,
.comment-awaiting-moderation,
.logged-in-as,
.comment-notes,
.comment-form label {
    color: var(--ta-soft);
}

.page-hero__text {
    font-size: clamp(1rem, 2vw, 1.15rem);
    margin-top: 0.5rem;
}

.archive-description {
    margin-bottom: 2rem;
}

.masonry-grid {
    width: min(calc(100% - 2rem), var(--ta-max));
    margin: 0 auto;
    column-count: 5;
    column-gap: 1.5rem;
}

.image-card {
    position: relative;
    display: inline-block;
    width: 100%;
    margin: 0 0 1.5rem;
    border-radius: var(--ta-radius-xl);
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: #f6f6f6;
    box-shadow: 0 1px 0 rgba(17, 24, 39, 0.02);
    break-inside: avoid;
    -webkit-column-break-inside: avoid;
    page-break-inside: avoid;
}

.image-card__link {
    position: relative;
    display: block;
}

.image-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--ta-shadow);
}

.image-card__media {
    position: relative;
}

.image-card__media img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

.image-card__placeholder {
    position: relative;
    min-height: 320px;
    display: flex;
    align-items: center;
    justify-content: center;
    background:
        radial-gradient(circle at top left, rgba(255,255,255,0.15), transparent 35%),
        linear-gradient(135deg, #111827 0%, #374151 48%, #6b7280 100%);
    color: rgba(255,255,255,0.85);
    font-size: clamp(2rem, 4vw, 3.5rem);
    transition: transform 0.5s ease;
}

.image-card:hover .image-card__media img,
.image-card:hover .image-card__placeholder {
    transform: scale(1.04);
}

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.35rem;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.48) 40%, transparent 80%);
    opacity: 0;
    transition: opacity 0.28s ease;
}

.image-card:hover .card-overlay,
.image-card:focus-within .card-overlay {
    opacity: 1;
}

.category-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    max-width: calc(100% - 2rem);
    padding: 0.32rem 0.8rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.16);
    backdrop-filter: blur(8px);
}

.card-title {
    margin: 0;
    color: #fff;
    font-size: 1.05rem;
    font-weight: 500;
    line-height: 1.15;
}

.card-meta {
    margin-top: 0.35rem;
    color: rgba(255,255,255,0.68);
    font-size: 0.85rem;
}

.pagination-shell {
    display: flex;
    justify-content: center;
    padding: 3.5rem 0 4.5rem;
}

.pagination-links,
.page-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.pagination-links .page-numbers,
.page-links a,
.page-links > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 1rem;
    border-radius: 999px;
    background: #111111;
    color: #fff;
    font-size: 0.84rem;
    transition: background 0.2s ease, transform 0.2s ease;
}

.pagination-links .page-numbers:not(.current):not(.dots),
.page-links a {
    background: #f3f4f6;
    color: var(--ta-text);
}

.pagination-links .page-numbers:not(.current):not(.dots):hover,
.page-links a:hover {
    background: #e5e7eb;
    transform: translateY(-2px);
}

.pagination-links .dots {
    background: transparent;
    color: var(--ta-muted);
    min-width: auto;
    height: auto;
    padding: 0;
}

.empty-state,
.not-found {
    width: min(calc(100% - 2rem), 900px);
    margin: 0 auto 4rem;
    padding: 2rem;
    border: 1px solid var(--ta-border);
    border-radius: var(--ta-radius-lg);
    background: #fafafa;
}

.single-shell {
    padding: 3rem 0 4rem;
}

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
}

.single-layout.has-sidebar {
    grid-template-columns: minmax(0, 780px) 340px;
    justify-content: center;
}

.single-primary {
    min-width: 0;
}

.single-header {
    max-width: 760px;
    text-align: center;
}

.single-header--centered,
.entry-content--single,
.taxonomy-links--centered,
.single-navigation--centered,
.comments-area {
    margin-left: auto;
    margin-right: auto;
}

.single-title,
.page-title,
.archive-title,
.search-title {
    margin: 0;
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.single-title,
.page-title {
    font-size: clamp(1.35rem, 2.4vw, 2rem);
    font-weight: 500;
}

.archive-title,
.search-title {
    font-size: clamp(2rem, 4vw, 3.3rem);
    font-weight: 300;
}

.entry-meta {
    margin-top: 1rem;
    font-size: 0.95rem;
}

.entry-meta a:hover,
.taxonomy-links a:hover,
.site-footer a:hover {
    color: var(--ta-text);
}

.entry-content,
.page-content {
    max-width: 820px;
    font-size: 1.02rem;
    color: #1f2937;
}

.entry-content--single {
    max-width: 760px;
    text-align: center;
}

.entry-content--single > * {
    margin-left: auto;
    margin-right: auto;
}

.entry-content--single ul,
.entry-content--single ol,
.entry-content--single blockquote,
.entry-content--single table,
.entry-content--single pre {
    text-align: left;
}

.entry-meta--single {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.2rem;
}

.entry-content--single p,
.entry-content--single .wp-block-embed,
.entry-content--single figure,
.entry-content--single .wp-caption,
.entry-content--single .wp-video,
.entry-content--single .wp-block-image,
.entry-content--single .wp-block-video {
    max-width: 760px;
}

.entry-content--single img,
.entry-content--single video,
.entry-content--single iframe,
.entry-content--single embed,
.entry-content--single object {
    display: block;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
}

.entry-content > *:first-child,
.page-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child,
.page-content > *:last-child,
.comment-content > *:last-child {
    margin-bottom: 0;
}

.entry-content p,
.page-content p,
.comment-content p {
    margin: 0 0 1.15rem;
}

.entry-content h1,
.entry-content h2,
.entry-content h3,
.entry-content h4,
.entry-content h5,
.entry-content h6,
.page-content h1,
.page-content h2,
.page-content h3,
.page-content h4,
.page-content h5,
.page-content h6 {
    line-height: 1.15;
    letter-spacing: -0.03em;
    margin: 2rem 0 0.75rem;
}

.entry-content ul,
.entry-content ol,
.page-content ul,
.page-content ol {
    padding-left: 1.25rem;
    margin: 0 0 1.2rem;
}

.entry-content blockquote,
.page-content blockquote {
    margin: 1.5rem 0;
    padding: 1.2rem 1.4rem;
    border-left: 3px solid var(--ta-dark);
    background: #fafafa;
    border-radius: 0 18px 18px 0;
}

.entry-content pre,
.page-content pre,
.entry-content code,
.page-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', 'Courier New', monospace;
}

.entry-content pre,
.page-content pre {
    overflow: auto;
    padding: 1rem;
    background: #111827;
    color: #fff;
    border-radius: 16px;
}

.entry-content table,
.page-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1.5rem;
}

.entry-content th,
.entry-content td,
.page-content th,
.page-content td {
    border: 1px solid var(--ta-border);
    padding: 0.7rem 0.8rem;
    text-align: left;
}

.taxonomy-links {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-top: 1.5rem;
}

.taxonomy-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    font-size: 0.82rem;
    background: #f3f4f6;
    color: var(--ta-muted);
    transition: all 0.2s ease;
}

.single-navigation {
    margin-top: 2.5rem;
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.single-navigation--premium {
    max-width: 760px;
    justify-content: center;
    align-items: stretch;
}

.single-nav-card {
    flex: 1 1 280px;
    max-width: 360px;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1rem 1.15rem;
    border-radius: 24px;
    border: 1px solid var(--ta-border);
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 12px 34px rgba(17, 24, 39, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    text-align: left;
}

.single-nav-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ta-shadow);
    border-color: #d7dce3;
}

.single-nav-card__eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ta-soft);
}

.single-nav-card__title {
    font-size: 0.98rem;
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--ta-text);
}

.single-navigation a {
    color: var(--ta-text);
}

.single-sidebar {
    min-width: 0;
}

.single-sidebar__sticky {
    position: sticky;
    top: 6.25rem;
}

.single-sidebar__panel {
    padding: 1.1rem;
    border: 1px solid var(--ta-border);
    border-radius: 28px;
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
    box-shadow: 0 16px 42px rgba(17, 24, 39, 0.06);
}

.single-sidebar__heading {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    margin-bottom: 1rem;
}

.single-sidebar__eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ta-soft);
}

.single-sidebar__title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.related-side-list {
    display: grid;
    gap: 0.85rem;
}

.related-side-card {
    border: 1px solid var(--ta-border);
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-side-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--ta-shadow);
    border-color: #d7dce3;
}

.related-side-card__link {
    display: block;
}

.related-side-card__link--compact {
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    align-items: stretch;
}

.related-side-card__thumb {
    background: #f5f5f5;
}

.related-side-card__thumb--compact {
    aspect-ratio: 4 / 5;
}

.related-side-card__thumb--placeholder {
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--ta-soft);
}

.related-side-card__thumb img {
    width: 100%;
    height: auto;
    display: block;
}

.related-side-card__thumb--compact img {
    height: 100%;
    object-fit: cover;
}

.related-side-card__body {
    padding: 1rem;
}

.related-side-card__body--compact {
    padding: 0.85rem 0.9rem;
    min-width: 0;
}

.single-sidebar__ads {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.single-ad-widget {
    padding: 1rem 1rem 1.05rem;
    border: 1px solid var(--ta-border);
    border-radius: 22px;
    background: #fff;
}

.single-ad-widget > *:first-child {
    margin-top: 0;
}

.single-ad-widget > *:last-child {
    margin-bottom: 0;
}

.single-ad-widget__label {
    display: inline-flex;
    margin-bottom: 0.55rem;
    padding: 0.26rem 0.6rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ta-soft);
    background: #f3f4f6;
}

.single-ad-widget__title {
    margin: 0 0 0.4rem;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.single-ad-widget p {
    margin: 0;
    font-size: 0.88rem;
    color: var(--ta-muted);
}

.single-ad-widget--placeholder {
    background: linear-gradient(180deg, #ffffff 0%, #fafafa 100%);
}

.related-side-card__badge {
    display: inline-flex;
    padding: 0.24rem 0.58rem;
    border-radius: 999px;
    font-size: 0.68rem;
    background: #f3f4f6;
    color: var(--ta-muted);
}

.related-side-card__title {
    margin: 0.7rem 0 0.35rem;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.related-side-card__title--compact {
    margin: 0.5rem 0 0;
    font-size: 0.9rem;
    line-height: 1.22;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.related-side-card__meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--ta-soft);
}

.related-posts {
    padding: 0 0 4rem;
}

.related-posts__title {
    width: min(calc(100% - 2rem), var(--ta-max));
    margin: 0 auto 1.25rem;
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.related-bottom-grid {
    width: min(calc(100% - 2rem), var(--ta-max));
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 1.25rem;
}

.related-bottom-card {
    min-width: 0;
    border: 1px solid var(--ta-border);
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.related-bottom-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ta-shadow);
    border-color: #d7dce3;
}

.related-bottom-card__link {
    display: block;
}

.related-bottom-card__thumb {
    aspect-ratio: 4 / 5;
    background: #f5f5f5;
}

.related-bottom-card__thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.related-bottom-card__thumb--placeholder {
    display: grid;
    place-items: center;
    font-size: 2rem;
}

.related-bottom-card__body {
    padding: 1rem 1rem 1.05rem;
}

.related-bottom-card__badge {
    display: inline-flex;
    padding: 0.28rem 0.65rem;
    border-radius: 999px;
    font-size: 0.72rem;
    background: #f3f4f6;
    color: var(--ta-muted);
}

.related-bottom-card__title {
    margin: 0.7rem 0 0.35rem;
    font-size: 1rem;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.related-bottom-card__meta {
    margin: 0;
    font-size: 0.82rem;
    color: var(--ta-soft);
}

.comments-area {
    padding: 0 0 4rem;
    max-width: 820px;
}

.comments-title,
.comment-reply-title {
    font-size: 1.1rem;
    letter-spacing: -0.02em;
}

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

.comment-body {
    padding: 1.1rem 1.15rem;
    border: 1px solid var(--ta-border);
    border-radius: 18px;
    margin-bottom: 1rem;
}

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

.comment-metadata {
    font-size: 0.85rem;
    margin: 0.35rem 0 0.75rem;
}

.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea,
.search-form input[type="search"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 14px;
    border: 1px solid var(--ta-border);
    background: #fff;
}

.comment-respond textarea {
    min-height: 160px;
    resize: vertical;
}

.comment-form p {
    margin-bottom: 1rem;
}

input[type="submit"],
.search-form button,
.wp-block-search__button,
.read-more-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.2rem;
    border: 0;
    border-radius: 999px;
    background: #111111;
    color: #fff;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

input[type="submit"]:hover,
.search-form button:hover,
.wp-block-search__button:hover,
.read-more-link:hover {
    background: var(--ta-dark-hover);
    transform: translateY(-2px);
}

.search-form {
    display: flex;
    gap: 0.75rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.search-form label {
    flex: 1 1 280px;
}

.site-footer {
    border-top: 1px solid var(--ta-border);
    padding: 1.8rem 0;
}

.site-footer__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: var(--ta-soft);
    font-size: 0.85rem;
}

.footer-block,
.footer-links,
.footer-icons {
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.footer-links a,
.footer-icons span {
    transition: color 0.2s ease, opacity 0.2s ease;
}

.footer-icons span {
    font-size: 1.1rem;
    opacity: 0.55;
}

.footer-icons span:hover {
    opacity: 1;
}

.dot-separator {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #d1d5db;
}

.alignwide,
.alignfull {
    clear: both;
}

.alignwide {
    margin-left: auto;
    margin-right: auto;
    max-width: 1100px;
}

.alignfull {
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    max-width: 100vw;
    width: 100vw;
}

.gallery {
    display: grid;
    gap: 1rem;
}

.wp-caption,
.gallery-caption {
    max-width: 100%;
}

.sticky-post .category-badge::before {
    content: '★ ';
}

::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f5f5f5;
}

::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

@media (min-width: 1025px) {
    .header-toggle {
        display: none;
    }

    .header-panel {
        display: flex !important;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
    }

    .site-navigation {
        display: block;
    }
}

@media (max-width: 1440px) {
    .masonry-grid {
        column-count: 4;
    }

    .related-bottom-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 1200px) {
    .masonry-grid {
        column-count: 3;
    }

    .single-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr) 320px;
    }

    .related-bottom-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .site-navigation {
        display: block;
    }

    .header-toggle {
        display: inline-flex;
        flex-direction: column;
        gap: 0;
    }

    .site-header__inner {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .header-panel {
        grid-column: 1 / -1;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.9rem;
        padding-top: 0.4rem;
        border-top: 1px solid var(--ta-border);
    }

    .header-toggle[aria-expanded="true"] + .header-panel {
        display: flex;
    }

    .site-navigation ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .site-navigation a {
        display: block;
        width: 100%;
        padding: 0.65rem 0;
    }

    .header-filters {
        justify-content: flex-start;
    }
}

@media (max-width: 768px) {
    .site-header__inner,
    .site-footer__inner {
        gap: 1rem;
    }

    .masonry-grid {
        column-count: 2;
        column-gap: 1rem;
    }

    .image-card {
        margin-bottom: 1rem;
    }

    .single-layout.has-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .single-sidebar__sticky {
        position: static;
    }

    .related-bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .related-side-card__link--compact {
        grid-template-columns: 96px minmax(0, 1fr);
    }

    .page-hero {
        padding-top: 2rem;
    }

    .single-shell {
        padding-top: 2rem;
    }

    .card-overlay {
        opacity: 1;
    }
}

@media (max-width: 640px) {
    .ta-container,
    .site-topbar__inner,
    .site-header__inner,
    .site-footer__inner,
    .page-hero,
    .single-shell,
    .pagination-shell,
    .comments-area,
    .archive-description,
    .masonry-grid,
    .related-posts__title,
    .empty-state,
    .not-found,
    .category-strip-wrap {
        width: min(calc(100% - 1.2rem), var(--ta-max));
    }

    .category-strip {
        gap: 0.4rem;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .category-strip__label {
        display: none;
    }

    .masonry-grid {
        column-count: 2;
        column-gap: 0.9rem;
    }

    .site-description,
    .site-topbar__label {
        display: none;
    }

    .site-topbar__inner {
        min-height: 0;
        padding: 0.16rem 0;
    }

    .related-bottom-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .single-navigation {
        flex-direction: column;
        align-items: stretch;
    }

    .single-nav-card {
        max-width: none;
    }

    .site-footer__inner {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .masonry-grid {
        column-count: 1;
    }

    .related-bottom-grid {
        grid-template-columns: 1fr;
    }
}



.comments-area {
    display: none !important;
}
