.home-page {
    --home-ink: #172331;
    --home-muted: #66717c;
    --home-navy: #17344b;
    --home-accent: #e5963e;
    --home-line: #e3e8ec;
    width: min(1240px, calc(100% - 40px));
    margin: 0 auto;
    padding: 2.25rem 0 4rem;
    color: var(--home-ink);
}

.home-page *,
.home-page *::before,
.home-page *::after { box-sizing: border-box; }

.home-page h1,
.home-page h2,
.home-page h3,
.home-page p { margin: 0; }

.home-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
    gap: clamp(2rem, 5vw, 5.5rem);
    align-items: center;
    min-height: 500px;
    padding: clamp(2.2rem, 5vw, 5rem);
    overflow: hidden;
    border-radius: 28px;
    background: radial-gradient(circle at 8% 8%, rgba(229, 150, 62, 0.23), transparent 28%), radial-gradient(circle at 92% 88%, rgba(80, 139, 164, 0.26), transparent 30%), #112b40;
    color: #fff;
    box-shadow: 0 24px 60px rgba(23, 52, 75, 0.15);
}

.home-hero::after {
    content: "";
    position: absolute;
    width: 240px;
    height: 240px;
    top: -95px;
    right: -70px;
    border: 48px solid rgba(255, 255, 255, 0.055);
    border-radius: 50%;
    pointer-events: none;
}

.home-hero-copy,
.home-search-panel { position: relative; z-index: 1; }

.home-eyebrow {
    display: inline-block;
    color: #b7652f;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-transform: uppercase;
}

.home-hero .home-eyebrow { color: #ffc276; }

.home-hero h1 {
    max-width: 13ch;
    margin-top: 1rem;
    font-size: clamp(2.55rem, 5.2vw, 4.9rem);
    line-height: 1.02;
    font-weight: 800;
    letter-spacing: -0.055em;
    text-wrap: balance;
}

.home-hero-copy > p {
    max-width: 38rem;
    margin-top: 1.35rem;
    color: rgba(255, 255, 255, 0.76);
    font-size: 1.08rem;
    line-height: 1.7;
}

.home-hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 1.75rem; }
.home-hero-actions .btn-primary { background: #fff; color: var(--home-navy); box-shadow: none; }
.home-hero-actions .btn-outline { color: #fff; border-color: rgba(255, 255, 255, 0.34); background: rgba(255, 255, 255, 0.07); }

.home-search-panel {
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(14px);
}

.home-search-heading { display: grid; gap: 0.3rem; margin-bottom: 1rem; }
.home-search-heading span { color: rgba(255, 255, 255, 0.66); font-size: 0.84rem; }
.home-search-heading strong { font-size: 1.35rem; }

.home-search-form { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 0.65rem; }

.home-search-form input,
.home-search-form select {
    width: 100%;
    min-height: 50px;
    padding: 0 0.95rem;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 13px;
    outline: none;
    background: #fff;
    color: var(--home-ink);
    font: inherit;
}

.home-search-form input:focus,
.home-search-form select:focus { border-color: #ffc276; box-shadow: 0 0 0 4px rgba(255, 194, 118, 0.16); }

.home-search-form .btn { min-height: 50px; background: var(--home-accent); color: #142c3e; box-shadow: none; }

.home-city-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 0.8rem;
    margin-top: 1rem;
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.84rem;
}

.home-city-links a { color: #fff; text-decoration: none; }
.home-city-links a:hover { text-decoration: underline; text-underline-offset: 3px; }

.home-categories { display: flex; gap: 0.6rem; overflow-x: auto; padding: 1rem 0 0.2rem; scrollbar-width: thin; }
.home-categories a {
    flex: 0 0 auto;
    padding: 0.7rem 1rem;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    background: #fff;
    color: #334456;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.home-categories a:hover { transform: translateY(-1px); border-color: #8ca0af; color: var(--home-navy); }

.home-section { padding-top: 4.5rem; }
.home-section-head { display: flex; justify-content: space-between; align-items: end; gap: 1.5rem; margin-bottom: 1.4rem; }
.home-section-head h2 { margin-top: 0.45rem; font-size: clamp(2rem, 3.4vw, 3.25rem); line-height: 1.08; letter-spacing: -0.04em; }

.home-text-link,
.home-maker-link { color: var(--home-navy); font-weight: 800; text-decoration: none; }
.home-text-link:hover,
.home-maker-link:hover { color: #b7652f; }

.home-product-grid,
.home-maker-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }

.home-product-card,
.home-maker-card {
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: #fff;
    color: inherit;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-product-card:hover,
.home-maker-card:hover { transform: translateY(-3px); border-color: #cad3da; box-shadow: 0 18px 38px rgba(23, 52, 75, 0.1); }

.home-product-media {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: #eaf0f3;
}

.home-product-media img,
.home-maker-cover img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform 0.35s ease; }
.home-product-card:hover .home-product-media img,
.home-maker-card:hover .home-maker-cover img { transform: scale(1.025); }
.home-product-media > span:not(.home-product-type) { color: rgba(23, 52, 75, 0.24); font-size: 4rem; font-weight: 800; }

.home-product-type {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.35rem 0.58rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--home-navy);
    font-size: 0.72rem;
    font-weight: 800;
}

.home-product-copy { padding: 1rem; }
.home-product-author { color: var(--home-muted); font-size: 0.82rem; }
.home-product-copy h3 { margin-top: 0.4rem; font-size: 1.05rem; line-height: 1.35; }
.home-product-bottom { display: flex; justify-content: space-between; gap: 0.7rem; margin-top: 1rem; color: var(--home-muted); font-size: 0.84rem; }
.home-product-bottom strong { color: var(--home-navy); white-space: nowrap; }

.home-maker-card { padding-bottom: 1rem; }
.home-maker-cover { display: block; height: 150px; overflow: hidden; background: #eaf0f3; }
.home-maker-main { display: flex; align-items: center; gap: 0.75rem; padding: 1rem 1rem 0; }
.home-maker-avatar,
.home-maker-avatar img { width: 48px; height: 48px; border-radius: 50%; }
.home-maker-avatar { flex: 0 0 auto; display: grid; place-items: center; overflow: hidden; background: var(--home-navy); color: #fff; font-weight: 800; }
.home-maker-main h3 { font-size: 1rem; line-height: 1.3; }
.home-maker-main h3 a { color: inherit; text-decoration: none; }
.home-maker-main p,
.home-maker-about { color: var(--home-muted); font-size: 0.84rem; line-height: 1.55; }
.home-maker-main p { margin-top: 0.15rem; }
.home-maker-about { min-height: 2.7em; margin: 0.85rem 1rem 0; }
.home-maker-link { display: inline-block; margin: 0.85rem 1rem 0; font-size: 0.88rem; }

.home-empty { display: grid; justify-items: start; gap: 0.5rem; padding: 2rem; border: 1px dashed #c9d2d9; border-radius: 18px; background: #fff; }
.home-empty p { color: var(--home-muted); }
.home-empty .btn { margin-top: 0.5rem; }

.home-creator-callout {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 2rem;
    margin-top: 4.5rem;
    padding: clamp(2rem, 4vw, 3.5rem);
    border-radius: 24px;
    background: #e5963e;
    color: #172331;
}
.home-creator-callout .home-eyebrow { color: #633313; }
.home-creator-callout h2 { max-width: 22ch; margin-top: 0.55rem; font-size: clamp(1.8rem, 3vw, 2.8rem); line-height: 1.12; letter-spacing: -0.035em; }
.home-creator-callout p { max-width: 52rem; margin-top: 0.7rem; line-height: 1.65; }
.home-light-button { flex: 0 0 auto; background: #fff; color: var(--home-navy); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

@media (max-width: 1040px) {
    .home-hero { grid-template-columns: 1fr; min-height: 0; }
    .home-product-grid,
    .home-maker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
    .home-page { width: min(100% - 24px, 1240px); padding-top: 0.85rem; }
    .home-hero { gap: 2rem; padding: 1.4rem; border-radius: 20px; }
    .home-hero h1 { font-size: clamp(2.35rem, 12vw, 3.35rem); }
    .home-search-panel { padding: 1rem; border-radius: 16px; }
    .home-search-form { grid-template-columns: 1fr; }
    .home-search-form .btn { width: 100%; }
    .home-section { padding-top: 3.2rem; }
    .home-section-head { align-items: start; }
    .home-product-grid,
    .home-maker-grid { grid-template-columns: 1fr; }
    .home-product-card { display: grid; grid-template-columns: 42% 1fr; }
    .home-product-media { aspect-ratio: auto; min-height: 190px; }
    .home-product-bottom { flex-direction: column; }
    .home-creator-callout { align-items: start; flex-direction: column; margin-top: 3.2rem; border-radius: 20px; }
}

@media (max-width: 430px) {
    .home-hero-actions,
    .home-hero-actions .btn,
    .home-light-button { width: 100%; }
    .home-section-head { display: grid; gap: 0.75rem; }
    .home-product-card { grid-template-columns: 1fr; }
    .home-product-media { aspect-ratio: 4 / 5; }
}
