/*
Theme Name: Herman Bastion
Theme URI: https://checkspot.ru
Author: CheckSpot
Author URI: https://checkspot.ru
Description: Lightweight personal blog theme for legal-entity analytics.
Version: 1.0.0
Requires at least: 6.0
Tested up to: 6.9
Requires PHP: 8.0
Text Domain: herman-bastion
*/

:root {
    --hb-bg: #f5efe4;
    --hb-surface: #fffaf0;
    --hb-surface-strong: #fff;
    --hb-line: #d8cbb6;
    --hb-line-strong: #b59f80;
    --hb-text: #1f1a17;
    --hb-muted: #65584a;
    --hb-accent: #8a4b2a;
    --hb-accent-soft: #efe0d4;
    --hb-shadow: 0 18px 50px rgba(51, 36, 24, 0.08);
    --hb-radius: 24px;
    --hb-content: 780px;
    --hb-sidebar: 320px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(245, 219, 187, 0.55), transparent 28%),
        radial-gradient(circle at top right, rgba(221, 204, 176, 0.45), transparent 24%),
        linear-gradient(180deg, #f7f1e8 0%, var(--hb-bg) 100%);
    color: var(--hb-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.72;
}

a {
    color: var(--hb-accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.12em;
}

a:hover {
    text-decoration: none;
}

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

.hb-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.hb-site-header {
    padding: 32px 0 18px;
}

.hb-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.hb-brand {
    display: flex;
    align-items: center;
    gap: 18px;
    text-decoration: none;
    color: inherit;
}

.hb-brand:hover {
    text-decoration: none;
}

.hb-avatar {
    width: 66px;
    height: 66px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #2e241d 0%, #876247 100%);
    color: #fff7ee;
    font-size: 24px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    box-shadow: 0 10px 26px rgba(67, 45, 27, 0.18);
}

.hb-brand-copy {
    display: grid;
    gap: 2px;
}

.hb-site-title {
    margin: 0;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1.02;
    letter-spacing: -0.04em;
    font-weight: 700;
}

.hb-site-tagline {
    margin: 0;
    color: var(--hb-muted);
    font-size: 15px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.hb-top-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

.hb-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    border: 1px solid rgba(138, 75, 42, 0.18);
    background: rgba(255, 250, 240, 0.74);
    color: var(--hb-muted);
    font-size: 13px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.hb-hero {
    margin-top: 18px;
    padding: 26px 28px;
    border: 1px solid rgba(181, 159, 128, 0.22);
    border-radius: var(--hb-radius);
    background:
        linear-gradient(135deg, rgba(255, 250, 240, 0.94), rgba(249, 239, 225, 0.9)),
        #fff;
    box-shadow: var(--hb-shadow);
}

.hb-hero-copy {
    max-width: 760px;
}

.hb-kicker {
    display: inline-block;
    margin: 0 0 12px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(138, 75, 42, 0.1);
    color: var(--hb-accent);
    font-size: 12px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hb-hero-title {
    margin: 0;
    max-width: 12ch;
    font-size: clamp(38px, 6vw, 76px);
    line-height: 0.95;
    letter-spacing: -0.05em;
}

.hb-hero-text {
    margin: 18px 0 0;
    max-width: 62ch;
    color: var(--hb-muted);
    font-size: 19px;
}

.hb-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, var(--hb-sidebar));
    gap: 34px;
    padding: 34px 0 56px;
    align-items: start;
}

.hb-main--single {
    grid-template-columns: minmax(0, var(--hb-content)) minmax(260px, var(--hb-sidebar));
}

.hb-feed,
.hb-sidebar-box,
.hb-post,
.hb-archive-empty {
    border-radius: var(--hb-radius);
    border: 1px solid rgba(181, 159, 128, 0.18);
    background: rgba(255, 250, 240, 0.84);
    box-shadow: var(--hb-shadow);
}

.hb-feed {
    padding: 18px;
}

.hb-feed-heading {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 18px;
    padding: 10px 8px 22px;
}

.hb-feed-heading h2 {
    margin: 0;
    font-size: 32px;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.hb-feed-heading p {
    margin: 0;
    color: var(--hb-muted);
    font-size: 15px;
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.hb-post-card {
    padding: 28px 24px;
    border-top: 1px solid rgba(181, 159, 128, 0.18);
}

.hb-post-card:first-of-type {
    border-top: none;
}

.hb-post-card h3 {
    margin: 0 0 14px;
    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.04;
    letter-spacing: -0.04em;
}

.hb-post-card h3 a {
    color: inherit;
    text-decoration: none;
}

.hb-post-card h3 a:hover {
    color: var(--hb-accent);
}

.hb-post-meta,
.hb-post-taxonomy,
.hb-pagination,
.hb-sidebar-box,
.hb-footer {
    font-family: "Helvetica Neue", Arial, sans-serif;
}

.hb-post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--hb-muted);
    font-size: 13px;
}

.hb-post-meta time {
    font-weight: 600;
}

.hb-post-taxonomy {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.hb-tag {
    display: inline-flex;
    align-items: center;
    padding: 7px 10px;
    border-radius: 999px;
    background: var(--hb-accent-soft);
    color: var(--hb-accent);
    font-size: 12px;
    line-height: 1;
}

.hb-post-excerpt,
.hb-entry-content {
    color: #302823;
}

.hb-post-excerpt p:last-child {
    margin-bottom: 0;
}

.hb-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 18px;
    font-size: 14px;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.hb-sidebar {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 20px;
}

.hb-sidebar-box {
    padding: 22px 22px 20px;
}

.hb-sidebar-box h3 {
    margin: 0 0 12px;
    font-size: 15px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--hb-muted);
}

.hb-sidebar-box p {
    margin: 0 0 12px;
}

.hb-sidebar-box p:last-child,
.hb-sidebar-box ul:last-child {
    margin-bottom: 0;
}

.hb-sidebar-box ul {
    margin: 12px 0 0;
    padding-left: 18px;
}

.hb-sidebar-box li + li {
    margin-top: 8px;
}

.hb-post {
    padding: 32px 34px;
}

.hb-post-header {
    margin-bottom: 22px;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(181, 159, 128, 0.16);
}

.hb-post-header h1 {
    margin: 10px 0 0;
    font-size: clamp(38px, 5vw, 62px);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.hb-back-link {
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

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

.hb-entry-content h2,
.hb-entry-content h3 {
    letter-spacing: -0.035em;
    line-height: 1.05;
}

.hb-entry-content h2 {
    margin-top: 40px;
    font-size: clamp(30px, 4vw, 42px);
}

.hb-entry-content h3 {
    margin-top: 28px;
    font-size: clamp(24px, 3vw, 30px);
}

.hb-entry-content ul,
.hb-entry-content ol {
    padding-left: 22px;
}

.hb-entry-content blockquote {
    margin: 28px 0;
    padding: 0 0 0 18px;
    border-left: 3px solid rgba(138, 75, 42, 0.3);
    color: var(--hb-muted);
}

.hb-pagination {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 26px 8px 10px;
}

.hb-pagination a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    border-radius: 999px;
    background: rgba(255, 250, 240, 0.84);
    border: 1px solid rgba(181, 159, 128, 0.22);
    text-decoration: none;
}

.hb-footer {
    padding: 0 0 44px;
    color: var(--hb-muted);
    font-size: 13px;
}

.hb-footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(181, 159, 128, 0.3);
}

.hb-archive-empty {
    padding: 28px;
}

@media (max-width: 980px) {
    .hb-main,
    .hb-main--single {
        grid-template-columns: 1fr;
    }

    .hb-sidebar {
        position: static;
    }
}

@media (max-width: 720px) {
    .hb-shell {
        width: min(100% - 24px, 1180px);
    }

    .hb-topline {
        flex-direction: column;
        align-items: flex-start;
    }

    .hb-hero,
    .hb-post,
    .hb-feed,
    .hb-sidebar-box,
    .hb-archive-empty {
        border-radius: 20px;
    }

    .hb-post {
        padding: 24px 20px;
    }

    .hb-post-card {
        padding: 22px 16px;
    }
}
