:root {
    --td-rose: #bd4a78;
    --td-rose-dark: #9f315b;
    --td-rose-soft: #fff5f8;
    --td-ink: #1f2933;
    --td-muted: #5e6b77;
    --td-line: #dce3ea;
    --td-surface: #fff;
    --td-page: #f4f6f8;
}

body {
    background: var(--td-page);
}

.td-home,
.td-library-page {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto 56px;
    color: var(--td-ink);
}

.td-home {
    margin-bottom: 0;
}

.td-home + .site-footer {
    margin-top: 0;
}

.td-home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(350px, .7fr);
    gap: 40px;
    align-items: center;
    padding: 42px 0 34px;
}

.td-home-eyebrow,
.td-section-heading > span,
.td-library-eyebrow {
    display: block;
    color: var(--td-rose);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .06em;
}

.td-home-hero h1 {
    margin: 0;
    font-size: clamp(25px, 2.2vw, 30px);
    font-weight: 900;
    line-height: 1.35;
    letter-spacing: -.025em;
}

.td-home-hero-title {
    display: block;
}

.td-home-hero-title .td-home-eyebrow {
    margin-bottom: 11px;
}

.td-home-hero-copy > p {
    max-width: 720px;
    margin: 20px 0 0;
    color: var(--td-muted);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.8;
}

.td-button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 9px;
    padding: 12px 22px;
    font-size: 15px;
    font-style: normal;
    font-weight: 900;
    line-height: 1.4;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease, color .18s ease, transform .18s ease;
}

.td-button:hover,
.td-button:focus {
    text-decoration: none;
}

.td-button--primary {
    border: 1px solid var(--td-rose);
    background: var(--td-rose);
    color: #fff;
}

.td-button--primary:hover,
.td-button--primary:focus {
    border-color: var(--td-rose-dark);
    background: var(--td-rose-dark);
    color: #fff;
}

.td-button--text {
    min-height: 44px;
    color: var(--td-rose-dark);
    padding-right: 6px;
    padding-left: 6px;
}

.td-button .td-inline-arrow-icon,
.td-guide-card .td-inline-arrow-icon {
    flex: 0 0 auto;
    height: 1.05em;
    margin-left: 7px;
    max-height: 18px;
    max-width: 18px;
    transition: transform .18s ease;
    width: 1.05em;
}

a:hover .td-inline-arrow-icon,
a:focus .td-inline-arrow-icon {
    transform: translateX(3px);
}

.td-button--text:hover,
.td-button--text:focus {
    color: #7e2448;
}

.td-button--outline {
    border: 1px solid var(--td-rose);
    background: #fff;
    color: var(--td-rose-dark);
}

.td-button--outline:hover,
.td-button--outline:focus {
    background: var(--td-rose-soft);
    color: var(--td-rose-dark);
}

.td-home-hero-features .td-content-feature-grid {
    grid-template-columns: 1fr;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    box-shadow: 0 8px 22px rgba(31, 41, 51, .045);
}

.td-home-hero-features .td-content-feature {
    min-height: 0;
    gap: 11px;
    padding: 11px 16px;
}

.td-home-hero-features .td-content-feature + .td-content-feature::before {
    display: none;
}

.td-home-hero-features .td-content-feature-icon {
    width: 28px;
    height: 28px;
    flex-basis: 28px;
}

.td-home-hero-features .td-content-feature-icon svg {
    width: 16px;
    height: 16px;
}

.td-home-hero-features .td-content-feature h2,
.td-home-hero-features .td-content-feature h3 {
    margin: 0;
    color: var(--td-rose-dark);
    font-size: 14px;
    line-height: 1.4;
}

.td-home-hero-features .td-content-feature p {
    display: none;
}

.td-home-templates,
.td-home-guides {
    background: #fff;
    box-shadow: 0 0 0 100vmax #fff;
    clip-path: inset(0 -100vmax);
    padding-top: 64px;
}

.td-home-templates {
    border-top: 1px solid #e9edf1;
}

.td-home-guides,
.td-home-templates:last-child {
    padding-bottom: 56px;
}

.td-section-heading h2 {
    margin: 8px 0 0;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.35;
}

.td-section-heading p {
    margin: 10px 0 0;
    color: var(--td-muted);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.7;
}

.td-section-heading--split {
    display: flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
}

.td-template-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0;
}

.td-template-filter a {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    border: 1px solid #d3dce4;
    border-radius: 8px;
    background: #fff;
    color: #34404c;
    padding: 9px 16px;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
}

.td-template-filter a:hover,
.td-template-filter a:focus,
.td-template-filter a.is-active {
    border-color: var(--td-rose);
    background: var(--td-rose-soft);
    color: var(--td-rose-dark);
    text-decoration: none;
}

.td-home-templates.is-loading [data-template-grid] {
    opacity: .45;
    pointer-events: none;
}

.td-home-templates [data-template-grid] {
    min-height: 232px;
    transition: opacity .18s ease;
}

.td-home-templates-more {
    display: flex;
    justify-content: center;
    margin-top: 28px;
}

.td-guide-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
}

.td-guide-card {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    overflow: hidden;
    min-height: 158px;
    border: 1px solid var(--td-line);
    border-radius: 12px;
    background: #fff;
    color: var(--td-ink);
    padding: 20px;
    text-decoration: none;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.td-guide-card--with-image {
    grid-template-columns: 128px minmax(0, 1fr);
    padding: 12px 20px 12px 12px;
}

.td-guide-card:hover,
.td-guide-card:focus {
    border-color: var(--td-rose);
    box-shadow: 0 12px 28px rgba(31, 41, 51, .07);
    color: var(--td-ink);
    text-decoration: none;
    transform: translateY(-2px);
}

.td-guide-card-icon,
.td-guide-card-image {
    display: grid;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 9px;
    background: var(--td-rose-soft);
    color: var(--td-rose);
    font-size: 28px;
    place-items: center;
}

.td-guide-card-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.td-guide-card-copy {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.td-guide-card-copy strong {
    font-size: 18px;
    font-weight: 900;
    line-height: 1.45;
}

.td-guide-card-copy > span {
    overflow: hidden;
    color: var(--td-muted);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.7;
}

.td-guide-card-copy em {
    align-items: center;
    color: var(--td-rose-dark);
    display: inline-flex;
    font-size: 13px;
    font-style: normal;
    font-weight: 900;
    justify-self: start;
    line-height: 1.4;
}

.td-guide-card-icon .td-material-svg-icon {
    display: block;
    height: 32px;
    width: 32px;
}

@media (max-width: 900px) {
    .td-home-hero {
        grid-template-columns: 1fr;
        gap: 28px;
        padding-top: 38px;
    }
    .td-home-hero-copy {
        text-align: center;
    }
    .td-home-hero-copy > p {
        margin-right: auto;
        margin-left: auto;
    }
    .td-home-hero-features {
        width: min(100%, 520px);
        justify-self: center;
        margin: 0 auto;
    }
}

@media (max-width: 720px) {
    .td-home,
    .td-library-page {
        width: min(100% - 24px, 1180px);
    }
    .td-home-hero {
        min-height: 0;
        padding: 30px 0 24px;
    }
    .td-home-hero h1 {
        font-size: clamp(23px, 7vw, 30px);
        line-height: 1.4;
    }
    .td-home-hero-copy > p {
        font-size: 15px;
        line-height: 1.8;
    }
    .td-home-templates,
    .td-home-guides {
        padding-top: 48px;
    }
    .td-section-heading--split {
        display: grid;
        align-items: start;
    }
    .td-template-filter {
        flex-wrap: nowrap;
        overflow-x: auto;
        margin-right: -12px;
        padding-right: 12px;
        scrollbar-width: thin;
    }
    .td-template-filter a {
        flex: 0 0 auto;
    }
    .td-guide-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .td-home-hero h1 br {
        display: none;
    }
    .td-button--text {
        justify-self: center;
    }
    .td-guide-card,
    .td-guide-card--with-image {
        grid-template-columns: 82px minmax(0, 1fr);
        min-height: 132px;
        padding: 12px;
    }
    .td-guide-card-copy > span {
        display: none;
    }
}
