:root {
    --color-ivory: #fffaf4;
    --color-cream: #f7efe3;
    --color-blush: #e9b8b4;
    --color-sage: #aebc9f;
    --color-blue: #b7ced7;
    --color-brown: #6b4f3f;
    --color-ink: #302822;
    --color-muted: #786a60;
    --color-line: #eadfd2;
    --shadow-soft: 0 20px 55px rgba(107, 79, 63, .09);
    --radius: 14px;
    --container: 1160px;
}

* {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--color-ivory);
    color: var(--color-ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.65;
}

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

a {
    color: inherit;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin-inline: auto;
}

.skip-link,
.screen-reader-text {
    position: absolute;
    left: -9999px;
}

.skip-link:focus {
    left: 20px;
    top: 20px;
    z-index: 1000;
    background: #fff;
    padding: 10px 14px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 250, 244, .92);
    border-bottom: 1px solid rgba(234, 223, 210, .8);
    backdrop-filter: blur(14px);
}

.header-inner,
.footer-grid,
.footer-bottom,
.section-heading,
.cta-inner,
.newsletter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.header-inner {
    min-height: 76px;
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 800;
    text-decoration: none;
    color: var(--color-brown);
}

.custom-logo-link {
    display: inline-flex;
    align-items: center;
    max-width: min(260px, 58vw);
}

.custom-logo {
    width: auto;
    max-width: 100%;
    max-height: 50px;
    object-fit: contain;
}

.brand-mark {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--color-blush);
    color: #fff;
    font-family: Georgia, serif;
}

.site-nav ul {
    list-style: none;
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
}

.site-nav a {
    color: var(--color-muted);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.site-nav a:hover {
    color: var(--color-brown);
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    border: 1px solid var(--color-line);
    border-radius: 10px;
    background: #fff;
}

.menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 4px auto;
    background: var(--color-brown);
}

.hero {
    overflow: hidden;
    background: linear-gradient(135deg, #fffaf4 0%, #f7efe3 48%, #edf5f2 100%);
    border-bottom: 1px solid var(--color-line);
}

.hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, .8fr);
    align-items: center;
    min-height: clamp(560px, 82vh, 760px);
    gap: 48px;
    padding: 56px 0;
}

.hero h1,
.page-content h1,
.archive-hero h1,
.freebie-info h1 {
    margin: 0;
    color: var(--color-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 7vw, 76px);
    line-height: .98;
    letter-spacing: 0;
}

.hero p,
.lead,
.archive-hero p {
    max-width: 690px;
    color: var(--color-muted);
    font-size: 19px;
}

.eyebrow {
    margin: 0 0 12px;
    color: var(--color-brown);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.button,
.wp-block-button__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 20px;
    border: 1px solid var(--color-brown);
    border-radius: 999px;
    background: var(--color-brown);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}

.button:hover {
    transform: translateY(-1px);
}

.button-secondary {
    background: #fff;
    color: var(--color-brown);
}

.button-small {
    min-height: 38px;
    padding: 8px 14px;
    font-size: 14px;
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

.text-link {
    color: var(--color-brown);
    font-weight: 800;
    text-decoration-thickness: 2px;
    text-underline-offset: 4px;
}

.hero-preview {
    position: relative;
    min-height: 430px;
}

.paper {
    position: absolute;
    border: 10px solid #fff;
    border-radius: 8px;
    box-shadow: var(--shadow-soft);
    background-size: 28px 28px;
}

.paper-one {
    inset: 16px 78px auto auto;
    width: 260px;
    height: 360px;
    rotate: 8deg;
    background-color: var(--color-blush);
    background-image: radial-gradient(#fff6 2px, transparent 2px);
}

.paper-two {
    inset: 72px auto auto 20px;
    width: 260px;
    height: 340px;
    rotate: -9deg;
    background-color: var(--color-sage);
    background-image: linear-gradient(45deg, #fff5 25%, transparent 25%, transparent 75%, #fff5 75%);
}

.paper-three {
    inset: auto 24px 10px auto;
    width: 240px;
    height: 270px;
    rotate: 2deg;
    background-color: var(--color-blue);
    background-image: linear-gradient(90deg, #fff7 1px, transparent 1px), linear-gradient(#fff7 1px, transparent 1px);
}

.section {
    padding: clamp(54px, 8vw, 96px) 0;
}

.section-soft {
    background: #f5efe7;
}

.section-heading {
    align-items: end;
    margin-bottom: 28px;
}

h2,
.section-heading h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 48px);
    line-height: 1.08;
}

.freebie-grid,
.post-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.freebie-card,
.content-card {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(107, 79, 63, .05);
}

.card-image {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--color-cream);
}

.card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .25s ease;
}

.freebie-card:hover .card-image img,
.content-card:hover .card-image img {
    transform: scale(1.03);
}

.placeholder-pattern {
    display: block;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e9b8b4 0 25%, #f7efe3 25% 50%, #aebc9f 50% 75%, #b7ced7 75%);
}

.card-body {
    padding: 22px;
}

.card-body h2,
.card-body h3 {
    margin: 0 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

.card-body h2 a,
.card-body h3 a {
    text-decoration: none;
}

.card-body p {
    color: var(--color-muted);
    margin: 0 0 16px;
}

.card-terms {
    min-height: 22px;
    margin-bottom: 8px;
    color: var(--color-brown);
    font-size: 13px;
    font-weight: 800;
}

.card-terms a {
    text-decoration: none;
}

.feature-grid,
.steps-grid {
    display: grid;
    grid-template-columns: .75fr 1fr;
    gap: 40px;
    align-items: start;
}

.tag-cloud,
.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.tag-cloud a,
.filter-row a {
    padding: 10px 14px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: #fff;
    color: var(--color-brown);
    font-weight: 800;
    text-decoration: none;
}

.steps {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.steps li {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 18px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.steps span {
    display: grid;
    place-items: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--color-sage);
    color: #fff;
    font-weight: 900;
}

.cta-band {
    background: var(--color-brown);
    color: #fff;
}

.cta-band .eyebrow,
.cta-band h2 {
    color: #fff;
}

.newsletter-band {
    background: #edf5f2;
}

.newsletter-form {
    display: flex;
    gap: 10px;
    width: min(430px, 100%);
}

.newsletter-form input {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    padding: 0 16px;
    font: inherit;
}

.site-footer {
    padding: 46px 0 20px;
    background: #fff;
    border-top: 1px solid var(--color-line);
}

.footer-grid {
    align-items: start;
}

.footer-grid-complete {
    display: grid;
    grid-template-columns: minmax(260px, 1.3fr) repeat(3, minmax(150px, .7fr));
    align-items: start;
}

.footer-about p {
    max-width: 460px;
    color: var(--color-muted);
}

.footer-col h2 {
    margin: 0 0 12px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 900;
    text-transform: uppercase;
}

.footer-grid ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}

.footer-grid a {
    text-decoration: none;
    font-weight: 700;
}

.footer-bottom {
    margin-top: 24px;
    border-top: 1px solid var(--color-line);
    padding-top: 16px;
    color: var(--color-muted);
    font-size: 14px;
}

.breadcrumbs {
    margin-bottom: 24px;
    color: var(--color-muted);
    font-size: 14px;
}

.breadcrumbs a {
    color: var(--color-brown);
    font-weight: 800;
    text-decoration: none;
}

.archive-hero {
    max-width: 760px;
    margin-bottom: 30px;
}

.filter-row {
    margin-bottom: 28px;
}

.page-content {
    max-width: 880px;
}

.entry-content {
    color: var(--color-muted);
}

.entry-content h2,
.entry-content h3 {
    color: var(--color-ink);
}

.featured-media,
.freebie-media {
    margin: 28px 0;
}

.featured-media img,
.freebie-media > img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.freebie-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, .82fr);
    gap: 48px;
    align-items: start;
}

.preview-strip {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-top: 14px;
}

.preview-strip img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    border-radius: 8px;
}

.freebie-info {
    position: sticky;
    top: 100px;
    padding: 28px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.freebie-info h1 {
    font-size: clamp(30px, 3.4vw, 44px);
    line-height: 1.06;
}

.freebie-specs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin: 26px 0 0;
}

.freebie-specs div {
    padding: 12px;
    background: var(--color-cream);
    border-radius: 10px;
}

.freebie-specs dt {
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.freebie-specs dd {
    margin: 2px 0 0;
    color: var(--color-brown);
    font-weight: 900;
}

.freebie-description {
    max-width: 820px;
    margin-top: 50px;
}

.nav-links {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 32px;
}

.nav-links a,
.nav-links span {
    padding: 8px 12px;
    border: 1px solid var(--color-line);
    border-radius: 8px;
    text-decoration: none;
}

@media (max-width: 900px) {
    .hero-inner,
    .freebie-layout,
    .feature-grid,
    .steps-grid {
        grid-template-columns: 1fr;
    }

    .hero-inner {
        min-height: auto;
    }

    .hero-preview {
        min-height: 340px;
    }

    .freebie-grid,
    .post-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .freebie-info {
        position: static;
    }
}

@media (max-width: 720px) {
    body {
        font-size: 16px;
    }

    .container {
        width: min(100% - 28px, var(--container));
    }

    .menu-toggle {
        display: block;
        flex: 0 0 42px;
    }

    .site-nav {
        display: none;
        position: absolute;
        inset: 76px 14px auto;
        background: #fff;
        border: 1px solid var(--color-line);
        border-radius: var(--radius);
        box-shadow: var(--shadow-soft);
        padding: 18px;
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        display: grid;
        gap: 14px;
    }

    .footer-grid,
    .footer-bottom,
    .section-heading,
    .cta-inner,
    .newsletter-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .header-inner {
        min-height: 74px;
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }

    .custom-logo-link {
        max-width: calc(100% - 64px);
    }

    .site-brand {
        min-width: 0;
    }

    .freebie-info h1 {
        font-size: clamp(28px, 8vw, 34px);
    }

    .footer-grid-complete {
        display: grid;
        grid-template-columns: 1fr;
    }

    .freebie-grid,
    .post-grid,
    .freebie-specs {
        grid-template-columns: 1fr;
    }

    .newsletter-form {
        flex-direction: column;
    }

    .button,
    .newsletter-form button {
        width: 100%;
    }

    .hero-preview {
        display: none;
    }
}
