.text-block {
    --tb-text: #1b1712;
    --tb-muted: rgba(27, 23, 18, 0.72);
    --tb-line: rgba(27, 23, 18, 0.1);
    width: 100%;
    padding: clamp(28px, 4vw, 60px) 0;
    background: #ffffff;
}

.text-block__wrap {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

.text-block__card {
    max-width: 980px;
    margin: 0 auto;
    padding: clamp(12px, 2vw, 24px) 0;
    background: transparent;
}

.text-block__header {
    max-width: 860px;
    margin: 0 auto 28px;
    text-align: center;
}

.text-block__title {
    margin: 0;
    max-width: 16ch;
    margin-left: auto;
    margin-right: auto;
    color: var(--tb-text);
    font-size: clamp(34px, 4.8vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    font-weight: 800;
    text-wrap: balance;
}

.text-block__title * {
    font: inherit;
    color: inherit;
}

.text-block__content {
    max-width: 860px;
    margin: 0 auto;
    color: var(--tb-text);
    font-size: clamp(16px, 1.35vw, 19px);
    line-height: 1.95;
}

.text-block__content > *:first-child {
    margin-top: 0;
}

.text-block__content > *:last-child {
    margin-bottom: 0;
}

.text-block__content p,
.text-block__content ul,
.text-block__content ol,
.text-block__content blockquote,
.text-block__content table,
.text-block__content figure,
.text-block__content pre {
    margin: 0 0 1.3em;
}

.text-block__content h1,
.text-block__content h2,
.text-block__content h3,
.text-block__content h4,
.text-block__content h5,
.text-block__content h6 {
    margin: 1.5em 0 0.55em;
    color: var(--tb-text);
    line-height: 1.08;
    letter-spacing: -0.03em;
    font-weight: 800;
}

.text-block__content h1 { font-size: clamp(34px, 4.6vw, 56px); }
.text-block__content h2 { font-size: clamp(28px, 3.8vw, 44px); }
.text-block__content h3 { font-size: clamp(24px, 2.9vw, 34px); }
.text-block__content h4,
.text-block__content h5 { font-size: clamp(20px, 2.2vw, 28px); }

.text-block__content h6 { font-size: clamp(18px, 2vw, 24px); }

.text-block__content ul,
.text-block__content ol {
    padding-left: 1.35em;
}

.text-block__content li + li {
    margin-top: 0.45em;
}

.text-block__content strong,
.text-block__content b {
    color: var(--tb-text);
    font-weight: 700;
}

.text-block__content em,
.text-block__content i {
    color: #8e6b1d;
}

.text-block__content a {
    color: inherit;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
}

.text-block__content blockquote {
    padding: 0.2em 0 0.2em 1.1em;
    border-left: 3px solid rgba(173, 136, 58, 0.55);
    color: var(--tb-muted);
    font-size: 1.04em;
}

.text-block__content img,
.text-block__content video,
.text-block__content iframe {
    display: block;
    max-width: 100%;
    height: auto;
    border-radius: 20px;
}

.text-block__content figure {
    overflow: hidden;
}

.text-block__content figcaption {
    margin-top: 12px;
    color: var(--tb-muted);
    font-size: 0.85em;
}

.text-block__content table {
    width: 100%;
    border-collapse: collapse;
    overflow: hidden;
    border-radius: 18px;
    border: 1px solid rgba(27, 23, 18, 0.09);
}

.text-block__content th,
.text-block__content td {
    padding: 14px 16px;
    border-bottom: 1px solid rgba(27, 23, 18, 0.09);
    text-align: left;
    vertical-align: top;
}

.text-block__content th {
    background: rgba(255, 255, 255, 0.68);
    font-weight: 700;
}

.text-block__content hr {
    border: 0;
    border-top: 1px solid rgba(27, 23, 18, 0.12);
    margin: 2em 0;
}

.text-block--style-2 .text-block__card {
    max-width: 820px;
    margin: 0 auto;
    padding: 8px 0;
}

.text-block--style-2 .text-block__title {
    max-width: 14ch;
}

.text-block--style-3 .text-block__card {
    max-width: 920px;
    margin: 0 auto;
    padding-left: clamp(26px, 3vw, 38px);
    border-left: 3px solid rgba(173, 136, 58, 0.6);
}

.text-block--style-3 .text-block__header,
.text-block--style-3 .text-block__content {
    max-width: 820px;
}

@media (max-width: 768px) {
    .text-block__wrap {
        width: min(1120px, calc(100% - 32px));
    }

    .text-block__card {
        padding: 8px 0;
    }

    .text-block--style-2 .text-block__card {
        padding: 4px 0;
    }

    .text-block--style-3 .text-block__card {
        padding-left: 18px;
    }
}
