@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;500;600;700;800&family=Source+Serif+4:opsz,wght@8..60,400;8..60,500;8..60,600;8..60,700&family=Space+Grotesk:wght@500;700&display=swap");

.content-main {
    margin-top: 92px;
}

.page-hero .hero-container {
    max-width: 960px;
}

.content-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.content-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.4rem;
    box-shadow: var(--shadow-soft);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.content-card:hover,
.content-card:focus-within {
    transform: translateY(-3px);
    box-shadow: 0 22px 48px rgba(7, 17, 31, 0.14);
}

.content-card h2 {
    font-size: 1.2rem;
    line-height: 1.25;
    margin-bottom: 0.6rem;
}

.content-card a {
    text-decoration: none;
    color: var(--ink-900);
}

.content-card a:hover,
.content-card a:focus-visible {
    color: var(--accent-coral);
}

.article-wrap {
    padding-top: 2.2rem;
}

.article-body {
    position: relative;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-soft);
    padding: clamp(1.35rem, 3vw, 2.4rem);
    max-width: 880px;
    margin-inline: auto;
    font-family: "Source Serif 4", Georgia, serif;
    line-height: 1.82;
    font-size: clamp(1.04rem, 1.4vw, 1.12rem);
}

.article-body::before {
    content: "";
    display: block;
    width: 74px;
    height: 4px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--accent-coral), var(--accent-gold));
    margin-bottom: 1.15rem;
}

.article-body h1 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: clamp(2rem, 4vw, 3.4rem);
    line-height: 1.07;
    letter-spacing: -0.02em;
    margin-bottom: 1.1rem;
    color: var(--ink-900);
}

.article-body h2 {
    font-family: "Space Grotesk", "Manrope", sans-serif;
    margin-top: 1.8rem;
    margin-bottom: 0.6rem;
    font-size: 1.3rem;
    line-height: 1.25;
    color: var(--ink-900);
}

.article-body p {
    color: var(--ink-800);
    margin: 0;
}

.article-body p + p {
    margin-top: 1.7rem;
}

.article-body p:last-child {
    margin-bottom: 0;
}

.article-body p.eyebrow {
    font-family: "Manrope", sans-serif;
    margin-bottom: 0.9rem;
    line-height: 1.2;
}

.article-body p:not(.eyebrow):first-of-type::first-letter {
    float: left;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    font-size: 2.45rem;
    line-height: 0.9;
    margin-right: 0.28rem;
    margin-top: 0.14rem;
    color: var(--ink-900);
}

.article-cta {
    margin-top: 2rem;
}

.article-links {
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
    margin-top: 1.2rem;
}

.tools-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.tool-card {
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    box-shadow: var(--shadow-soft);
    font-family: "Manrope", sans-serif;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tool-card:hover,
.tool-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 22px 50px rgba(7, 17, 31, 0.12);
}

.tool-card h2 {
    margin-bottom: 0.45rem;
    font-size: 1.22rem;
    font-family: "Space Grotesk", "Manrope", sans-serif;
    line-height: 1.25;
}

.tool-card p {
    margin-bottom: 1rem;
    line-height: 1.65;
}

.article-body .subtitle + p,
.article-body .eyebrow + h1 + p {
    margin-top: 1.2rem;
}

.subtitle {
    white-space: normal;
}

.tool-card label {
    display: block;
    margin-top: 0.6rem;
    font-weight: 600;
    color: var(--ink-800);
}

.tool-card input {
    display: block;
    margin-top: 0.3rem;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 10px;
    min-height: 42px;
    padding: 0.5rem 0.65rem;
    font: inherit;
}

.tool-card .btn {
    margin-top: 0.85rem;
}

.tool-result {
    margin-top: 0.8rem;
    color: var(--ink-900);
    font-weight: 600;
}

.tool-help {
    margin-top: 0.75rem;
    color: var(--ink-700);
    font-size: 0.95rem;
    line-height: 1.6;
}

.tool-pre {
    white-space: pre-wrap;
    font-weight: 500;
    line-height: 1.5;
    background: #f7f7fb;
    border-radius: 10px;
    border: 1px solid var(--line);
    padding: 0.7rem;
}

@media (max-width: 900px) {
    .content-grid,
    .tools-grid {
        grid-template-columns: 1fr;
    }

    .article-body {
        font-size: 1rem;
    }

    .article-body p:not(.eyebrow):first-of-type::first-letter {
        font-size: 2rem;
        margin-top: 0.08rem;
    }
}
