:root {
    --bg: #fffaf7;
    --surface: rgba(255, 255, 255, 0.88);
    --surface-strong: #ffffff;
    --ink: #24181b;
    --muted: #74656a;
    --line: rgba(80, 46, 55, 0.12);
    --accent: #e7848f;
    --accent-soft: #f7dde0;
    --accent-deep: #9f4c59;
    --sand: #f4e8df;
    --shadow: 0 24px 60px rgba(122, 78, 89, 0.12);
}

body {
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at top left, rgba(231, 132, 143, 0.18), transparent 28%),
        radial-gradient(circle at top right, rgba(244, 232, 223, 0.9), transparent 30%),
        linear-gradient(180deg, #fffdfc 0%, var(--bg) 100%);
}

.posts-archive-page {
    background:
        linear-gradient(180deg, #faf8f5 0%, #f1eeea 100%);
}

.public-body,
.admin-body {
    min-height: 100vh;
}

.public-nav {
    backdrop-filter: blur(16px);
    background: rgba(255, 250, 247, 0.74);
    border-bottom: 1px solid rgba(80, 46, 55, 0.08);
}

.public-nav .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.brand-mark {
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.public-nav-links {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.public-nav-links a {
    color: var(--ink);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
}

.public-nav-links a:hover {
    color: var(--accent-deep);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 0.8rem;
    color: var(--accent-deep);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    font-weight: 800;
}

.hero-section {
    padding: 5rem 0 2rem;
}

.hero-card,
.admin-card,
.highlight-card,
.post-shell,
.login-panel,
.admin-sidebar-card,
.empty-state {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 28px;
    box-shadow: var(--shadow);
}

.hero-card {
    padding: 2rem;
    min-height: 100%;
    display: grid;
    gap: 1rem;
}

.hero-portrait-wrap {
    position: relative;
    min-height: 100%;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(36, 24, 27, 0.08)),
        linear-gradient(135deg, #f8d6db, #f4e8df);
}

.hero-portrait {
    width: 100%;
    height: 100%;
    min-height: 520px;
    display: block;
    object-fit: cover;
    object-position: center top;
}

.hero-portrait-badge {
    position: absolute;
    left: 1.5rem;
    right: 1.5rem;
    bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.2rem;
    color: #fff;
    border-radius: 22px;
    background: rgba(20, 12, 14, 0.5);
    backdrop-filter: blur(14px);
}

.hero-portrait-badge strong {
    display: block;
    font-size: 1.05rem;
}

.hero-portrait-badge span {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.92rem;
}

.hero-stat {
    padding: 1.2rem 1.3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(247, 221, 224, 0.76));
    border-radius: 22px;
}

.hero-stat strong {
    display: block;
    font-size: 2rem;
}

.hero-quote {
    padding: 1.2rem 1.3rem;
    border-radius: 22px;
    background: #24181b;
    color: #fff;
}

.section-space {
    padding: 2rem 0 3rem;
}

.posts-page-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(80, 46, 55, 0.1);
}

.posts-page-count {
    color: var(--muted);
    font-weight: 700;
    white-space: nowrap;
    font-size: 0.92rem;
}

.section-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.5rem;
}


.highlight-card {
    overflow: hidden;
    position: relative;
}

.highlight-media-link,
.highlight-media-link:hover {
    display: block;
    color: inherit;
    text-decoration: none;
}

.highlight-media img,
.masonry-card img,
.post-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.highlight-media img {
    aspect-ratio: 1 / 1;
    transition: transform 0.35s ease;
}

.highlight-media,
.archive-thumb,
.masonry-image-link {
    overflow: hidden;
}

.highlight-card:hover .highlight-media img {
    transform: scale(1.03);
}

.platform-chip,
.rating-pill,
.rating-badge,
.product-cta {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.8rem;
}

.platform-chip,
.rating-pill {
    padding: 0.45rem 0.75rem;
    background: var(--accent-soft);
    color: var(--accent-deep);
}

.masonry-grid {
    column-count: 3;
    column-gap: 1.4rem;
}

.masonry-card {
    break-inside: avoid;
    margin-bottom: 1.4rem;
    border-radius: 28px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow);
}

.masonry-link {
    display: block;
    position: relative;
    color: inherit;
    text-decoration: none;
}

.masonry-image-link {
    display: block;
}

.masonry-link img {
    min-height: 280px;
    max-height: 620px;
}

.masonry-overlay {
    position: absolute;
    inset: auto 0 0;
    padding: 1.1rem;
    background: linear-gradient(180deg, rgba(20, 12, 14, 0) 0%, rgba(20, 12, 14, 0.84) 72%);
}

.rating-badge {
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    padding: 0.55rem 0.8rem;
}

.stars {
    color: #fff0a8;
    letter-spacing: 0.05em;
}

.product-cta {
    color: #fff;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 255, 255, 0.26);
    background: rgba(255, 255, 255, 0.1);
}

.post-archive-list {
    column-count: 3;
    column-gap: 1.35rem;
}

.archive-card {
    break-inside: avoid;
    display: block;
    margin-bottom: 1.35rem;
    padding: 0;
    border-radius: 0;
    background: #fff;
    border: 1px solid rgba(80, 46, 55, 0.05);
    /* box-shadow: 0 1px 0 rgba(80, 46, 55, 0.04); */
    transition: transform 0.18s ease;
    overflow: visible;
}

.archive-card:hover {
    transform: translateY(-1px);
}

.archive-thumb {
    display: block;
    aspect-ratio: 1 / 1;
    background: #f6f0ec;
    border-radius: 0;
}

.archive-thumb img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.archive-card:hover .archive-thumb img {
    transform: scale(1.04);
}

.archive-content {
    display: flex;
    flex-direction: column;
    padding: 1rem 1rem 1.05rem;
}

.archive-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.5rem;
    align-items: center;
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    line-height: 1.4;
    margin-bottom: 0.75rem;
}

.archive-meta time {
    opacity: 0.85;
}

.archive-tags {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    flex-wrap: wrap;
    margin-bottom: 0.9rem;
}

.archive-title {
    margin: 0 0 0.75rem;
    font-size: clamp(1.42rem, 2vw, 1.78rem);
    line-height: 1.05;
}

.archive-title-link {
    color: var(--ink);
    text-decoration: none;
    line-height: 1.2;
    letter-spacing: -0.03em;
    /* font-family: Georgia, "Times New Roman", serif; */
    font-weight: 700;
}

.archive-title-link:hover,
.archive-readmore:hover {
    color: var(--accent-deep);
}

.archive-excerpt {
    margin-bottom: 1rem;
    color: #66575c;
    font-size: 0.96rem;
    line-height: 1.78;
}

.archive-product-pill {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin-bottom: 1rem;
    padding: 0.55rem 0.9rem;
    border-radius: 0;
    background: #f8f2ee;
    color: var(--accent-deep);
    font-size: 0.88rem;
    font-weight: 700;
    text-decoration: none;
    border: 1px solid rgba(80, 46, 55, 0.08);
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

a.archive-product-pill:hover {
    color: var(--accent-deep);
    background: #f3e7e2;
    border-color: rgba(80, 46, 55, 0.12);
    transform: translateY(-1px);
}

.archive-product-pill--footer {
    margin-bottom: 0;
}

.archive-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    align-items: center;
    margin-top: auto;
    padding-top: 0.2rem;
}

.archive-rating {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    color: #5a4c50;
    font-size: 0.78rem;
    padding: 0.34rem 0.62rem;
    border-radius: 999px;
    background: #f8f4f1;
    border: 1px solid rgba(80, 46, 55, 0.06);
}

.archive-platform {
    color: #8a7b80;
    font-size: 0.8rem;
    font-weight: 600;
}

.archive-meta-icon {
    color: #b8aeb2;
    font-size: 0.9rem;
}

.archive-pagination {
    margin-top: 2rem;
}

.archive-pagination .page-link {
    color: var(--ink);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.86);
}

.archive-pagination .page-item.active .page-link {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.footer-note {
    padding-bottom: 2.5rem;
    display: flex;
    justify-content: center;
    text-align: center;
}

.post-shell,
.admin-card {
    padding: 1.75rem;
}

.post-article {
    padding-top: 0.5rem;
}

.breadcrumb-nav .breadcrumb {
    padding: 0;
    background: transparent;
    border: 0;
    display: inline-flex;
    flex-wrap: wrap;
}

.breadcrumb-nav a {
    color: var(--accent-deep);
    text-decoration: none;
}

.post-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid rgba(80, 46, 55, 0.1);
}

.post-header-copy {
    max-width: 760px;
}

.post-header-date {
    display: inline-block;
    margin-top: 0.7rem;
    color: var(--muted);
    font-size: 0.95rem;
    white-space: nowrap;
}

.post-image-wrap {
    overflow: hidden;
    border-radius: 28px;
}

.post-image {
    max-height: 760px;
}

.detail-card {
    background: linear-gradient(180deg, rgba(247, 221, 224, 0.7), rgba(255, 255, 255, 0.8));
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 1.1rem 1.25rem;
    margin-top: 1.5rem;
}

.detail-card--compact {
    margin-top: 0;
    position: sticky;
    top: 6.5rem;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.7rem 0;
    border-bottom: 1px solid rgba(80, 46, 55, 0.1);
}

.detail-row:last-child {
    border-bottom: 0;
}

.post-content {
    max-width: 820px;
}

.legal-shell {
    max-width: 920px;
}

.legal-intro {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.8;
}

.legal-section {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(80, 46, 55, 0.1);
}

.legal-section h2 {
    margin-bottom: 0.9rem;
    font-size: 1.35rem;
}

.legal-section p,
.legal-list li {
    color: #3f3337;
    line-height: 1.8;
}

.legal-list {
    padding-left: 1.2rem;
}

.back-link {
    color: var(--accent-deep);
    text-decoration: none;
    font-weight: 700;
}

.public-footer {
    margin-top: 4rem;
    padding: 4rem 0 1.5rem;
    color: rgba(255, 255, 255, 0.86);
    background: linear-gradient(180deg, #23253d 0%, #1d2035 100%);
}

.public-footer-brand {
    margin-bottom: 1rem;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.public-footer-copy {
    max-width: 340px;
    color: rgba(255, 255, 255, 0.68);
    line-height: 1.75;
}

.public-footer-socials {
    display: flex;
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.public-footer-socials a {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.public-footer-socials a:hover {
    background: rgba(255, 255, 255, 0.16);
    transform: translateY(-1px);
}

.public-footer-socials i {
    font-size: 1rem;
    line-height: 1;
}

.public-footer-title {
    margin-bottom: 1rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.public-footer-list {
    margin: 0;
    padding: 0;
    list-style: none;
}

.public-footer-list li {
    margin-bottom: 0.7rem;
}

.public-footer-list a,
.public-footer-list span {
    color: rgba(255, 255, 255, 0.72);
    text-decoration: none;
}

.public-footer-list a:hover {
    color: #fff;
}

.public-footer-bottom {
    margin-top: 2.5rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.92rem;
}

.website a {
    color: rgba(255, 255, 255, 0.86);
    text-decoration: none;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.website a:hover {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 0.18em;
}

.admin-body {
    background:
        radial-gradient(circle at top left, rgba(231, 132, 143, 0.12), transparent 24%),
        linear-gradient(180deg, #fffefd 0%, #fff7f2 100%);
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 1rem;
}

.admin-sidebar-card {
    padding: 1.2rem;
}

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.login-panel {
    width: min(100%, 520px);
    padding: 2rem;
}

.btn-soft {
    background: var(--accent-soft);
    color: var(--accent-deep);
    border: 0;
}

.btn-soft:hover {
    background: #f3cdd2;
    color: var(--accent-deep);
}

.empty-state {
    padding: 3rem 1.5rem;
}

@media (max-width: 991.98px) {
    .post-archive-list {
        column-count: 2;
    }

    .masonry-grid {
        column-count: 2;
    }

    .admin-header,
    .section-heading,
    .posts-page-header {
        align-items: start;
        flex-direction: column;
    }

    .public-nav .container {
        align-items: start;
        flex-direction: column;
    }

    .hero-portrait {
        min-height: 420px;
    }

    .hero-portrait-badge {
        flex-direction: column;
        align-items: start;
    }

    .post-header {
        flex-direction: column;
        align-items: start;
    }
}

@media (max-width: 575.98px) {
    .post-archive-list {
        column-count: 1;
    }

    .hero-section {
        padding-top: 3rem;
    }

    .masonry-grid {
        column-count: 1;
    }

    .hero-card,
    .admin-card,
    .post-shell,
    .login-panel {
        border-radius: 22px;
    }

    .hero-portrait {
        min-height: 320px;
    }
}
