

.theme-page-main {
    --theme-page-accent-primary: var(--theme-accent-primary);
    --theme-page-accent-primary-soft: var(--theme-accent-primary-soft);
    --theme-page-accent-highlight: var(--theme-accent-highlight);
    --theme-page-accent-highlight-soft: var(--theme-accent-highlight-soft);
    --theme-page-accent-secondary: var(--theme-accent-secondary);
    --theme-page-accent-secondary-soft: var(--theme-accent-secondary-soft);
    --theme-page-text: var(--theme-text-soft);
    --theme-page-muted: var(--theme-muted);
    --theme-page-border: rgb(var(--theme-accent-highlight-rgb) / 0.2);
    --theme-page-panel: rgb(var(--theme-section-4-rgb) / 0.76);

    min-height: 100vh;
    background:
        radial-gradient(
            circle at 10% 8%,
            rgb(var(--theme-accent-primary-rgb) / 0.055),
            transparent 30rem
        ),
        radial-gradient(
            circle at 92% 10%,
            rgb(var(--theme-accent-secondary-rgb) / 0.045),
            transparent 26rem
        ),
        var(--theme-background);
}



.theme-page-hero {
    position: relative;
    overflow: hidden;
    padding: 58px 0 48px;
    border-bottom: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.18);
    background:
        radial-gradient(
            ellipse at 50% 0,
            rgb(var(--theme-accent-highlight-rgb) / 0.06),
            transparent 34rem
        ),
        linear-gradient(
            180deg,
            rgb(var(--theme-section-3-rgb) / 0.98),
            rgb(var(--theme-background-rgb) / 0.94)
        );
}

.theme-page-hero::before {
    position: absolute;
    inset: 0;
    pointer-events: none;
    background:
        linear-gradient(
            116deg,
            transparent 0 28%,
            rgb(var(--theme-accent-highlight-rgb) / 0.025) 28.15%,
            transparent 28.4% 72%,
            rgb(var(--theme-accent-primary-rgb) / 0.015) 72.15%,
            transparent 72.4%
        );
    content: "";
}

.theme-page-hero-inner {
    position: relative;
    z-index: 1;
    padding-inline: 30px;
}

.theme-page-title-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.theme-page-title-mark {
    width: 24px;
    height: 24px;
    margin-bottom: 11px;
    background: var(--theme-page-accent-secondary);
    -webkit-mask:
        url("../images/content-icon-diamond.svg")
        center / contain
        no-repeat;
    mask:
        url("../images/content-icon-diamond.svg")
        center / contain
        no-repeat;
}

.theme-page-title-block h1 {
    margin: 0;
    color: var(--theme-page-accent-highlight-soft);
    font-family: var(--theme-serif, Georgia, serif);
    font-size: clamp(40px, 5.2vw, 66px);
    font-weight: 400;
    letter-spacing: -0.025em;
    line-height: 1.06;
}

.theme-page-title-line {
    position: relative;
    width: 142px;
    height: 1px;
    margin-top: 20px;
    background:
        linear-gradient(
            90deg,
            transparent,
            var(--theme-page-accent-highlight),
            transparent
        );
}

.theme-page-title-line::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 7px;
    height: 7px;
    border: 1px solid var(--theme-page-accent-highlight);
    background: var(--theme-background);
    transform: translate(-50%, -50%) rotate(45deg);
    content: "";
}



.theme-page-content-section {
    padding: 54px 0 84px;
}

.theme-page-content-shell {
    padding-inline: 30px;
}

.theme-page-article {
    max-width: 1040px;
    margin: 0 auto;
    padding: clamp(28px, 4vw, 54px);
    border: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.28);
    border-radius: 13px;
    background:
        radial-gradient(
            circle at 100% 0,
            rgb(var(--theme-accent-secondary-rgb) / 0.025),
            transparent 24rem
        ),
        radial-gradient(
            circle at 0 100%,
            rgb(var(--theme-accent-primary-rgb) / 0.025),
            transparent 25rem
        ),
        var(--theme-page-panel);
    box-shadow:
        inset 0 0 0 1px rgb(var(--theme-text-rgb) / 0.01);
}

.theme-page-content {
    color: var(--theme-page-text);
    font-size: 14px;
    line-height: 1.95;
    overflow-wrap: anywhere;
}

.theme-page-content > :first-child {
    margin-top: 0;
}

.theme-page-content > :last-child {
    margin-bottom: 0;
}



.theme-page-content h1,
.theme-page-content h2,
.theme-page-content h3,
.theme-page-content h4,
.theme-page-content h5,
.theme-page-content h6 {
    scroll-margin-top: 100px;
    color: var(--theme-page-accent-highlight-soft);
    font-family: var(--theme-serif, Georgia, serif);
    font-weight: 500;
    line-height: 1.35;
}

.theme-page-content h1 {
    margin: 0 0 28px;
    padding-bottom: 17px;
    border-bottom: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.28);
    font-size: clamp(30px, 4vw, 42px);
}

.theme-page-content h2 {
    position: relative;
    margin: 52px 0 22px;
    padding: 0 0 13px 35px;
    border-bottom: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.22);
    font-size: clamp(24px, 3vw, 31px);
}

.theme-page-content h2::before {
    position: absolute;
    top: 0.24em;
    left: 0;
    width: 22px;
    height: 22px;
    background: var(--theme-page-accent-secondary);
    -webkit-mask:
        url("../images/content-icon-diamond.svg")
        center / contain
        no-repeat;
    mask:
        url("../images/content-icon-diamond.svg")
        center / contain
        no-repeat;
    content: "";
}

.theme-page-content h3 {
    position: relative;
    margin: 38px 0 16px;
    padding-left: 28px;
    color: var(--theme-page-accent-highlight);
    font-size: clamp(20px, 2.4vw, 24px);
}

.theme-page-content h3::before {
    position: absolute;
    top: 0.28em;
    left: 0;
    width: 17px;
    height: 17px;
    background: var(--theme-page-accent-primary);
    -webkit-mask:
        url("../images/content-icon-spark.svg")
        center / contain
        no-repeat;
    mask:
        url("../images/content-icon-spark.svg")
        center / contain
        no-repeat;
    content: "";
}

.theme-page-content h4 {
    margin: 30px 0 12px;
    color: var(--theme-page-accent-secondary-soft);
    font-size: 18px;
}

.theme-page-content h5 {
    margin: 25px 0 10px;
    color: var(--theme-page-accent-primary-soft);
    font-size: 16px;
}

.theme-page-content h6 {
    margin: 22px 0 9px;
    color: var(--theme-text-dim);
    font-size: 14px;
    letter-spacing: 0.04em;
}



.theme-page-content p {
    margin: 0 0 20px;
}

.theme-page-content .theme-page-lead {
    color: var(--theme-text-soft);
    font-family: var(--theme-serif, Georgia, serif);
    font-size: clamp(17px, 2vw, 20px);
    line-height: 1.85;
}

.theme-page-content strong {
    color: var(--theme-text-soft);
    font-weight: 700;
}

.theme-page-content em {
    color: var(--theme-page-accent-highlight-soft);
}

.theme-page-content a {
    color: var(--theme-page-accent-primary-soft);
    text-decoration: underline;
    text-decoration-color: rgb(var(--theme-accent-primary-rgb) / 0.36);
    text-underline-offset: 4px;
    transition:
        color 160ms ease,
        text-decoration-color 160ms ease;
}

.theme-page-content a:hover {
    color: var(--theme-page-accent-secondary-soft);
    text-decoration-color: rgb(var(--theme-accent-secondary-rgb) / 0.52);
}



.theme-page-content ul,
.theme-page-content ol {
    margin: 0 0 24px;
    padding-left: 1.55em;
}

.theme-page-content li {
    margin: 8px 0;
    padding-left: 4px;
}

.theme-page-content ul > li::marker {
    color: var(--theme-page-accent-secondary);
}

.theme-page-content ol > li::marker {
    color: var(--theme-page-accent-highlight);
    font-weight: 700;
}

.theme-page-content li ul,
.theme-page-content li ol {
    margin: 8px 0 0;
}



.theme-page-content .wp-block-table {
    margin: 28px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.theme-page-content table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.28);
    background: rgb(var(--theme-section-1-rgb) / 0.62);
}

.theme-page-content th,
.theme-page-content td {
    padding: 13px 15px;
    border-right: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.14);
    border-bottom: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.14);
    text-align: left;
    vertical-align: top;
}

.theme-page-content th:last-child,
.theme-page-content td:last-child {
    border-right: 0;
}

.theme-page-content tr:last-child td {
    border-bottom: 0;
}

.theme-page-content th {
    color: var(--theme-page-accent-highlight-soft);
    background: rgb(var(--theme-accent-highlight-rgb) / 0.075);
    font-family: var(--theme-serif, Georgia, serif);
    font-weight: 600;
}

.theme-page-content .wp-block-table figcaption,
.theme-page-content figcaption {
    margin-top: 9px;
    color: var(--theme-page-muted);
    font-size: 11px;
    line-height: 1.65;
}



.theme-page-content blockquote,
.theme-page-content .wp-block-quote {
    position: relative;
    margin: 30px 0;
    padding: 22px 25px 22px 54px;
    border: 1px solid rgb(var(--theme-accent-secondary-rgb) / 0.22);
    border-left: 3px solid var(--theme-page-accent-secondary);
    border-radius: 8px;
    background: rgb(var(--theme-accent-secondary-rgb) / 0.025);
    color: var(--theme-text-soft);
}

.theme-page-content blockquote::before,
.theme-page-content .wp-block-quote::before {
    position: absolute;
    top: 17px;
    left: 19px;
    color: var(--theme-page-accent-secondary-soft);
    font-family: Georgia, serif;
    font-size: 42px;
    line-height: 1;
    content: "“";
}

.theme-page-content blockquote p:last-child,
.theme-page-content .wp-block-quote p:last-child {
    margin-bottom: 0;
}

.theme-page-content blockquote cite,
.theme-page-content .wp-block-quote cite {
    display: block;
    margin-top: 12px;
    color: var(--theme-page-muted);
    font-size: 11px;
}



.theme-page-content code {
    padding: 2px 6px;
    border: 1px solid rgb(var(--theme-accent-primary-rgb) / 0.16);
    border-radius: 4px;
    color: var(--theme-page-accent-primary-soft);
    background: rgb(var(--theme-accent-primary-rgb) / 0.035);
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Monaco,
        Consolas,
        monospace;
    font-size: 0.92em;
}

.theme-page-content pre,
.theme-page-content .wp-block-code {
    margin: 28px 0;
    padding: 20px;
    overflow-x: auto;
    border: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.2);
    border-radius: 8px;
    background: var(--theme-section-1);
}

.theme-page-content pre code,
.theme-page-content .wp-block-code code {
    padding: 0;
    border: 0;
    color: var(--theme-text-dim);
    background: transparent;
    font-size: 12px;
    line-height: 1.75;
}



.theme-page-content hr,
.theme-page-content .wp-block-separator {
    width: 100%;
    height: 1px;
    margin: 42px 0;
    border: 0;
    background:
        linear-gradient(
            90deg,
            transparent,
            rgb(var(--theme-accent-highlight-rgb) / 0.55),
            transparent
        );
}



.theme-page-content img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.theme-page-content .wp-block-image,
.theme-page-content figure {
    margin: 30px 0;
}

.theme-page-content .wp-block-image img {
    border: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.18);
}

.theme-page-content .wp-block-columns {
    gap: 18px;
    margin: 28px 0;
}

.theme-page-content .wp-block-column {
    min-width: 0;
}

.theme-page-content .wp-block-details {
    margin: 24px 0;
    padding: 16px 18px;
    border: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.2);
    border-radius: 8px;
    background: rgb(var(--theme-accent-highlight-rgb) / 0.02);
}

.theme-page-content .wp-block-details summary {
    color: var(--theme-page-accent-highlight-soft);
    cursor: pointer;
    font-family: var(--theme-serif, Georgia, serif);
    font-weight: 600;
}



.theme-page-content .wp-block-button__link,
.theme-page-content .theme-page-button {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    border: 1px solid rgb(var(--theme-accent-highlight-rgb) / 0.48);
    border-radius: 7px;
    color: var(--theme-page-accent-highlight-soft);
    background: rgb(var(--theme-accent-highlight-rgb) / 0.04);
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.theme-page-content .wp-block-button__link:hover,
.theme-page-content .theme-page-button:hover {
    border-color: rgb(var(--theme-accent-primary-rgb) / 0.6);
    color: var(--theme-page-accent-primary-soft);
    background: rgb(var(--theme-accent-primary-rgb) / 0.035);
}



.theme-page-content .theme-notice {
    position: relative;
    margin: 28px 0;
    padding: 20px 22px 20px 58px;
    border: 1px solid;
    border-radius: 9px;
}

.theme-page-content .theme-notice::before {
    position: absolute;
    top: 20px;
    left: 20px;
    width: 23px;
    height: 23px;
    background: currentColor;
    -webkit-mask:
        url("../images/content-icon-info.svg")
        center / contain
        no-repeat;
    mask:
        url("../images/content-icon-info.svg")
        center / contain
        no-repeat;
    content: "";
}

.theme-page-content .theme-notice > :first-child {
    margin-top: 0;
}

.theme-page-content .theme-notice > :last-child {
    margin-bottom: 0;
}

.theme-page-content .theme-notice--primary {
    border-color: rgb(var(--theme-accent-primary-rgb) / 0.32);
    color: var(--theme-page-accent-primary-soft);
    background: rgb(var(--theme-accent-primary-rgb) / 0.035);
}

.theme-page-content .theme-notice--primary::before {
    -webkit-mask-image:
        url("../images/content-icon-shield.svg");
    mask-image:
        url("../images/content-icon-shield.svg");
}

.theme-page-content .theme-notice--highlight {
    border-color: rgb(var(--theme-accent-highlight-rgb) / 0.34);
    color: var(--theme-page-accent-highlight-soft);
    background: rgb(var(--theme-accent-highlight-rgb) / 0.035);
}

.theme-page-content .theme-notice--secondary {
    border-color: rgb(var(--theme-accent-secondary-rgb) / 0.34);
    color: var(--theme-page-accent-secondary-soft);
    background: rgb(var(--theme-accent-secondary-rgb) / 0.035);
}



.theme-page-content .theme-heading-icon {
    position: relative;
    padding-left: 35px;
}

.theme-page-content .theme-heading-icon::before {
    position: absolute;
    top: 0.22em;
    left: 0;
    width: 21px;
    height: 21px;
    background: var(--theme-page-accent-secondary);
    -webkit-mask:
        url("../images/content-icon-diamond.svg")
        center / contain
        no-repeat;
    mask:
        url("../images/content-icon-diamond.svg")
        center / contain
        no-repeat;
    content: "";
}

.theme-page-content .theme-heading-icon--shield::before {
    background: var(--theme-page-accent-primary);
    -webkit-mask-image:
        url("../images/content-icon-shield.svg");
    mask-image:
        url("../images/content-icon-shield.svg");
}

.theme-page-content .theme-heading-icon--spark::before {
    background: var(--theme-page-accent-highlight);
    -webkit-mask-image:
        url("../images/content-icon-spark.svg");
    mask-image:
        url("../images/content-icon-spark.svg");
}

.theme-page-content .theme-heading-icon--info::before {
    background: var(--theme-page-accent-secondary);
    -webkit-mask-image:
        url("../images/content-icon-info.svg");
    mask-image:
        url("../images/content-icon-info.svg");
}



@media (max-width: 680px) {
    .theme-page-hero {
        padding: 42px 0 38px;
    }

    .theme-page-hero-inner,
    .theme-page-content-shell {
        padding-inline: 16px;
    }

    .theme-page-title-mark {
        width: 21px;
        height: 21px;
    }

    .theme-page-title-block h1 {
        font-size: 38px;
    }

    .theme-page-content-section {
        padding: 34px 0 58px;
    }

    .theme-page-article {
        padding: 26px 19px;
        border-radius: 10px;
    }

    .theme-page-content {
        font-size: 14px;
        line-height: 1.9;
    }

    .theme-page-content h1 {
        font-size: 30px;
    }

    .theme-page-content h2 {
        margin-top: 42px;
        padding-left: 31px;
        font-size: 25px;
    }

    .theme-page-content h2::before {
        width: 19px;
        height: 19px;
    }

    .theme-page-content h3 {
        margin-top: 32px;
        font-size: 21px;
    }

    .theme-page-content h4 {
        font-size: 18px;
    }

    .theme-page-content blockquote,
    .theme-page-content .wp-block-quote {
        padding: 20px 18px 20px 44px;
    }

    .theme-page-content blockquote::before,
    .theme-page-content .wp-block-quote::before {
        left: 14px;
    }

    .theme-page-content .theme-notice {
        padding: 18px 17px 18px 50px;
    }

    .theme-page-content .theme-notice::before {
        top: 18px;
        left: 16px;
        width: 21px;
        height: 21px;
    }

    .theme-page-content .wp-block-columns {
        gap: 14px;
    }
}


.theme-page-title-block h1 { font-size: clamp(34px, 4vw, 52px); line-height: 1.24; }
.theme-page-content { font-size: 15px; line-height: 1.8; }
.theme-page-content h1 { font-size: clamp(28px, 3vw, 36px); }
.theme-page-content h2 { font-size: clamp(23px, 2.5vw, 29px); }
.theme-page-content h3 { font-size: clamp(19px, 2vw, 23px); }
@media (max-width: 680px) {
    .theme-page-title-block h1 { font-size: 34px; }
    .theme-page-content { font-size: 15px; line-height: 1.82; }
    .theme-page-content h1 { font-size: 28px; }
    .theme-page-content h2 { font-size: 23px; }
    .theme-page-content h3 { font-size: 20px; }
}

@media (min-width: 961px) {
    .theme-page-title-block h1 { font-size: clamp(36px, 4vw, 54px); }
    .theme-page-content { font-size: 17px; line-height: 1.82; }
    .theme-page-content h1 { font-size: clamp(30px, 3vw, 38px); }
    .theme-page-content h2 { font-size: clamp(25px, 2.5vw, 31px); }
    .theme-page-content h3 { font-size: clamp(21px, 2vw, 25px); }
}
