:root {
    --bg: #0f0b12;
    --bg-soft: #1a1320;
    --card: #221a2b;
    --text: #f3e9f8;
    --muted: #bfaeca;
    --accent: #ff5ca8;
    --accent-strong: #ff2f95;
    --border: #3a2f46;
    --shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
    --radius: 14px;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
    background: radial-gradient(circle at top right, #2a1634, var(--bg) 46%);
    color: var(--text);
    line-height: 1.65;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    color: var(--accent-strong);
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.container {
    width: min(1140px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    border-bottom: 1px solid var(--border);
    background: #0c080f;
    position: sticky;
    top: 0;
    z-index: 30;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 76px;
}

.site-title {
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text);
}

.site-tagline {
    margin: 0.2rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.menu-toggle {
    display: none;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text);
    width: 42px;
    height: 42px;
    padding: 0;
    border-radius: 8px;
    align-items: center;
    justify-content: center;
}

.menu-toggle__bars {
    display: inline-flex;
    flex-direction: column;
    gap: 4px;
}

.menu-toggle__bars span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--text);
    border-radius: 999px;
}

.menu-overlay {
    display: none;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    flex: 0 1 360px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.3rem 0.35rem 0.3rem 0.9rem;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.header-search:focus-within {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 92, 168, 0.18);
}

.header-search__icon {
    font-size: 0.9rem;
    opacity: 0.8;
    line-height: 1;
}

.header-search__input {
    flex: 1;
    min-width: 0;
    background: transparent;
    border: 0;
    outline: 0;
    color: var(--text);
    font: inherit;
    padding: 0.35rem 0;
}

.header-search__input::placeholder {
    color: var(--muted);
}

.header-search__submit {
    border: 0;
    border-radius: 999px;
    padding: 0.45rem 0.95rem;
    background: linear-gradient(120deg, var(--accent), #d73295);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.85rem;
}

.nav-drawer__search {
    display: none;
    position: relative;
    margin-bottom: 1rem;
}

.nav-drawer__search input {
    width: 100%;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 0.6rem 0.8rem 0.6rem 2.1rem;
    color: var(--text);
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-drawer__search input:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 92, 168, 0.18);
}

.nav-drawer__search-icon {
    position: absolute;
    left: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.95rem;
    opacity: 0.75;
    pointer-events: none;
}

.menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1rem;
}

.menu a {
    color: var(--text);
    font-weight: 600;
}

.main-navigation {
    position: relative;
}

.site-main {
    padding: 2.5rem 0 4rem;
}

.hero {
    background: linear-gradient(145deg, #2f163a, #19111f);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: clamp(1.6rem, 5vw, 3.7rem);
    margin-bottom: 2.2rem;
}

.hero__eyebrow {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: 0.12em;
    color: var(--muted);
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.hero h1 {
    font-size: clamp(2rem, 4vw, 3.1rem);
    margin: 0 0 0.6rem;
}

.hero p {
    max-width: 680px;
}

.section-block {
    margin-bottom: 2.4rem;
}

.section-block__header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    margin-bottom: 1.1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--border);
}

.section-block__title {
    margin: 0;
    font-size: clamp(1.35rem, 2.5vw, 1.8rem);
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.section-block__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: linear-gradient(130deg, var(--accent), #7b2ff7);
    color: #fff;
    font-size: 0.95rem;
    box-shadow: 0 6px 14px rgba(255, 92, 168, 0.28);
}

.section-block__subtitle {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.section-block__empty {
    color: var(--muted);
}

.story-card__read {
    display: inline-block;
    margin-top: 0.55rem;
    font-weight: 700;
    color: var(--accent);
}

.story-card__read:hover {
    color: var(--accent-strong);
}

.content-grid {
    display: grid;
    gap: 1.6rem;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.7rem;
}

.posts-feed > article.story-card {
    margin-bottom: 1.5rem;
}

.posts-feed > article.story-card:last-of-type {
    margin-bottom: 0;
}

.story-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
}

.story-card:hover {
    transform: translateY(-3px);
    border-color: rgba(255, 92, 168, 0.45);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.38);
}

.story-card__thumb {
    display: block;
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, #2a1634, #130b1b);
}

.story-card__thumb img,
.story-card__thumb picture {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 0;
    transition: transform 0.4s ease;
}

.story-card:hover .story-card__thumb img {
    transform: scale(1.04);
}

.story-card__thumb-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 220px;
    font-size: 3rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.85);
    background:
        radial-gradient(circle at 25% 30%, rgba(255, 92, 168, 0.5), transparent 55%),
        radial-gradient(circle at 75% 70%, rgba(123, 47, 247, 0.55), transparent 55%),
        linear-gradient(140deg, #26142f, #130b1b);
    text-shadow: 0 2px 14px rgba(0, 0, 0, 0.35);
}

.archive-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.8rem;
}

.story-card--panel .story-card__content {
    padding: 1.1rem 1.2rem 1.3rem;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    flex: 1;
}

.posts-feed > .page-header {
    margin-bottom: 1.4rem;
}

.story-card__content {
    padding: 1rem 1.1rem 1.1rem;
}

.story-card__title {
    margin: 0 0 0.55rem;
    line-height: 1.3;
}

.story-card__title a {
    color: var(--text);
}

.story-card__meta {
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.88rem;
}

.story-card__excerpt {
    color: #dfd0e8;
}

.button,
input[type="submit"],
.comment-form button {
    display: inline-block;
    border: 0;
    border-radius: 999px;
    padding: 0.65rem 1.1rem;
    background: linear-gradient(120deg, var(--accent), #d73295);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.button:hover,
input[type="submit"]:hover,
.comment-form button:hover {
    opacity: 0.95;
    transform: translateY(-1px);
}

.hero .button {
    min-width: 170px;
    text-align: center;
}

.page-header {
    margin-bottom: 1.2rem;
}

.page-header h1 {
    margin: 0;
    font-size: clamp(1.7rem, 3vw, 2.4rem);
}

.post-single,
.posts-feed,
.sidebar {
    min-width: 0;
}

.post-single article {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.3rem;
    box-shadow: var(--shadow);
}

.featured-image {
    margin: 1rem 0 1.15rem;
}

.post-content p {
    margin: 0 0 1rem;
}

.sidebar .widget {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.sidebar .widget_recent_comments,
.sidebar .widget_archive,
.sidebar .widget_archives {
    display: none !important;
}

.sidebar .wp-block-latest-comments,
.sidebar .wp-block-archives {
    display: none !important;
}

.sidebar .widget_block:has(.wp-block-latest-comments),
.sidebar .widget_block:has(.wp-block-archives) {
    display: none !important;
}

.widget-title {
    margin-top: 0;
}

.search-form {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.search-field,
input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="tel"],
input[type="password"],
textarea {
    flex: 1;
    min-width: 0;
    width: 100%;
    border: 1px solid var(--border);
    background: #130e18;
    color: var(--text);
    border-radius: 10px;
    padding: 0.65rem 0.85rem;
    font: inherit;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-field::placeholder,
input::placeholder,
textarea::placeholder {
    color: var(--muted);
    opacity: 0.85;
}

.search-field:focus,
input:focus,
textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(255, 92, 168, 0.18);
    background: #160f1d;
}

textarea {
    min-height: 140px;
    resize: vertical;
    line-height: 1.55;
}

.widget_search .search-form {
    position: relative;
    align-items: stretch;
}

.widget_search .search-field {
    padding-right: 3.2rem;
}

.widget_search .search-submit {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    padding: 0.45rem 0.9rem;
    font-size: 0.85rem;
}

.widget_recent_entries ul,
.widget_categories ul,
.widget_meta ul,
.widget_pages ul,
.widget_nav_menu ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

.widget_recent_entries li a,
.widget_categories li a,
.widget_meta li a,
.widget_pages li a,
.widget_nav_menu li a {
    display: block;
    padding: 0.5rem 0.6rem;
    border-radius: 8px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.04);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.widget_recent_entries li a:hover,
.widget_categories li a:hover,
.widget_meta li a:hover,
.widget_pages li a:hover,
.widget_nav_menu li a:hover {
    background: rgba(255, 92, 168, 0.12);
    border-color: rgba(255, 92, 168, 0.3);
    color: #fff;
}

.pagination-wrap {
    margin-top: 1.2rem;
}

.site-footer {
    border-top: 1px solid var(--border);
    padding: 2.2rem 0;
    background: #0b0810;
}

.site-footer__menu {
    margin-bottom: 0.7rem;
}

.menu--footer {
    flex-wrap: wrap;
}

.site-footer__copyright {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
}

.comments-area {
    margin-top: 1.5rem;
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1.4rem;
    box-shadow: var(--shadow);
}

.comments-area .comment-list {
    padding-left: 1.2rem;
    margin: 0 0 1.5rem;
}

.comments-title,
.comment-reply-title {
    margin: 0 0 1rem;
    font-size: 1.3rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--border);
}

.comment-form {
    display: grid;
    gap: 0.9rem;
}

.comment-form p {
    margin: 0;
}

.comment-form label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.35rem;
    color: var(--text);
}

.comment-form .required-field-message,
.comment-notes,
.logged-in-as {
    color: var(--muted);
    font-size: 0.9rem;
    margin: 0 0 0.2rem;
}

.comment-form-cookies-consent {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--muted);
    font-size: 0.9rem;
}

.comment-form-cookies-consent input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--accent);
}

.form-submit {
    margin-top: 0.2rem;
}

.comment-form .submit {
    padding: 0.7rem 1.4rem;
    font-size: 0.95rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    clip: rect(1px, 1px, 1px, 1px);
    overflow: hidden;
}

@media (max-width: 900px) {
    .site-main {
        padding: 1.8rem 0 3rem;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .cards-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .story-card__thumb img {
        height: 200px;
    }

    .menu-toggle {
        display: inline-flex;
        position: relative;
        z-index: 52;
        transition: opacity 0.2s ease, transform 0.2s ease;
    }

    .header-search {
        display: none;
    }

    .nav-drawer__search {
        display: block;
    }

    body.ht-mobile-menu-open .menu-toggle {
        opacity: 0;
        pointer-events: none;
        transform: scale(0.9);
    }

    .menu-overlay {
        display: block;
        position: fixed;
        inset: 0;
        border: 0;
        background: rgba(0, 0, 0, 0.5);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.25s ease;
        z-index: 49;
    }

    .main-navigation {
        position: fixed;
        top: 0;
        right: 0;
        width: min(320px, 84vw);
        height: 100vh;
        height: 100dvh;
        background:
            radial-gradient(circle at 100% 0%, rgba(255, 92, 168, 0.22), transparent 55%),
            radial-gradient(circle at 0% 100%, rgba(120, 53, 168, 0.28), transparent 55%),
            linear-gradient(160deg, #1d1325, #0f0b14);
        border-left: 1px solid rgba(255, 92, 168, 0.25);
        box-shadow: -18px 0 40px rgba(0, 0, 0, 0.45);
        padding: 1.1rem 1.2rem 1.4rem;
        transform: translateX(105%);
        transition: transform 0.32s cubic-bezier(0.22, 0.61, 0.36, 1);
        z-index: 51;
        overflow-y: auto;
        display: flex;
        flex-direction: column;
    }

    body.admin-bar .main-navigation {
        top: 46px;
        height: calc(100vh - 46px);
        height: calc(100dvh - 46px);
    }

    body.admin-bar .menu-overlay {
        top: 46px;
    }

    .nav-drawer__header {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding-bottom: 0.9rem;
        margin-bottom: 0.9rem;
        border-bottom: 1px solid rgba(255, 92, 168, 0.18);
    }

    .nav-drawer__brand {
        display: inline-flex;
        align-items: center;
        gap: 0.6rem;
    }

    .nav-drawer__brand-mark {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 10px;
        background: linear-gradient(130deg, var(--accent), #7b2ff7);
        color: #fff;
        font-weight: 800;
        letter-spacing: 0.02em;
        box-shadow: 0 6px 14px rgba(255, 92, 168, 0.35);
    }

    .nav-drawer__brand-name {
        font-weight: 800;
        font-size: 1.05rem;
        color: var(--text);
    }

    .nav-drawer__close {
        width: 36px;
        height: 36px;
        padding: 0;
        border-radius: 10px;
        border: 1px solid var(--border);
        background: rgba(255, 255, 255, 0.04);
        color: var(--text);
        font-size: 1.2rem;
        line-height: 1;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    .nav-drawer__close:hover {
        background: rgba(255, 92, 168, 0.18);
    }

    .nav-drawer__eyebrow {
        margin: 0 0 0.45rem;
        padding: 0 0.3rem;
        text-transform: uppercase;
        letter-spacing: 0.14em;
        font-size: 0.7rem;
        color: var(--muted);
    }

    .main-navigation .menu {
        display: flex;
        flex-direction: column;
        gap: 0.25rem;
        margin: 0;
    }

    .main-navigation .menu a {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        padding: 0.7rem 0.75rem;
        border-radius: 10px;
        color: var(--text);
        font-weight: 600;
        position: relative;
        transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
    }

    .main-navigation .menu a::before {
        content: "";
        width: 6px;
        height: 6px;
        border-radius: 999px;
        background: var(--accent);
        opacity: 0.55;
        flex-shrink: 0;
    }

    .main-navigation .menu a:hover,
    .main-navigation .menu .current-menu-item > a {
        background: linear-gradient(90deg, rgba(255, 92, 168, 0.22), rgba(123, 47, 247, 0.12));
        color: #fff;
        transform: translateX(2px);
    }

    .main-navigation .menu .current-menu-item > a::before {
        opacity: 1;
        box-shadow: 0 0 0 3px rgba(255, 92, 168, 0.25);
    }

    .nav-drawer__footer {
        margin-top: auto;
        padding-top: 1rem;
        border-top: 1px solid rgba(255, 92, 168, 0.14);
    }

    .nav-drawer__tagline {
        margin: 0;
        font-style: italic;
        color: var(--muted);
        font-size: 0.95rem;
    }

    .nav-drawer__copy {
        margin: 0.35rem 0 0;
        font-size: 0.75rem;
        color: #8a7a94;
    }

    .main-navigation.ht-nav-open {
        transform: translateX(0);
    }

    .main-navigation.ht-nav-open + .menu-overlay {
        opacity: 1;
        pointer-events: auto;
    }

    body.ht-mobile-menu-open {
        overflow: hidden;
    }
}

@media (min-width: 901px) {
    .menu-toggle,
    .menu-overlay,
    .nav-drawer__header,
    .nav-drawer__eyebrow,
    .nav-drawer__footer {
        display: none !important;
    }
}

@media (max-width: 700px) {
    .site-header__inner {
        min-height: 68px;
    }

    .site-title {
        font-size: 1.2rem;
    }

    .hero {
        margin-bottom: 1.5rem;
        padding: 1.25rem;
    }

    .hero h1 {
        font-size: 2.1rem;
    }

    .cards-grid {
        grid-template-columns: 1fr;
    }

    .story-card__thumb img {
        height: 190px;
    }
}

@media (max-width: 520px) {
    .container {
        width: min(1140px, calc(100% - 1.2rem));
    }

    .site-main {
        padding: 1.3rem 0 2.2rem;
    }

    .hero h1 {
        font-size: 1.9rem;
    }

    .hero .button {
        width: 100%;
    }

    .search-form {
        flex-direction: column;
    }

    .search-field {
        min-width: 0;
        width: 100%;
    }

    .story-card__thumb img {
        height: 170px;
    }

    .main-navigation {
        width: min(280px, 88vw);
    }
}
