@import url("https://fonts.googleapis.com/css2?family=Source+Sans+3:wght@400;600;700;900&display=swap");

:root {
    --bg: #f5f5f5;
    --paper: #ffffff;
    --ink: #3d3d3d;
    --muted: rgba(61, 61, 61, 0.72);
    --line: rgba(88, 88, 88, 0.15);
    --shadow: 0 0.35rem 1.25rem rgba(46, 38, 30, 0.08);
    --radius: 0.35rem;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-width: 320px;
    background: #f7f7f7;
    color: var(--ink);
    font-family: "Source Sans 3", Arial, sans-serif;
    font-size: 16pt;
    font-weight: 400;
    line-height: 1.75;
}

a {
    color: inherit;
    text-decoration: none;
}

h1,
h2,
h3,
strong {
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: 0.02em;
}

p {
    margin: 0 0 1rem;
}

.site-shell {
    padding-bottom: 4rem;
}

.page {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
}

.site-header {
    background: transparent;
    padding: 2rem 0 1rem;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.brandmark {
    display: inline-flex;
    align-items: center;
    gap: 0.9rem;
}

.brand-symbol {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.2rem;
    background:
        linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.08)),
        linear-gradient(135deg, #f2849e, #7ecaf6);
    box-shadow: var(--shadow);
    transform: rotate(45deg);
}

.brand-copy {
    display: grid;
    gap: 0.15rem;
}

.brand-copy strong {
    font-size: 1.2rem;
}

.brand-copy span,
.header-nav a,
.eyebrow,
.section-note,
.listing-mode,
.subtitle,
.lead,
.summary,
.meta,
.empty p {
    color: var(--muted);
}

.header-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.header-nav a:hover,
.listing-link:hover,
.back-link:hover {
    color: #f2849e;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 240px;
    gap: 2rem;
    align-items: end;
    padding: 2rem 0 2.5rem;
}

.eyebrow,
.listing-mode {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 700;
}

.hero h1,
.detail-card h1 {
    font-size: clamp(2.35rem, 4vw, 4.7rem);
    margin: 0 0 0.75rem;
}

.lead {
    font-size: 1.2rem;
    max-width: 36rem;
}

.hero-meta {
    padding: 1.2rem 1.25rem;
    border-radius: 0.3rem;
    background: var(--paper);
    border: 1px solid var(--line);
    box-shadow: var(--shadow);
}

.hero-meta p {
    margin-bottom: 0.2rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-size: 0.72rem;
}

.hero-meta strong {
    display: block;
    font-size: 1.05rem;
    margin-bottom: 1rem;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-head h2 {
    font-size: 2rem;
    margin: 0;
}

.section-note {
    margin: 0;
    font-size: 0.95rem;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 2rem;
}

.listing-card {
    position: relative;
    min-height: 18rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 2rem;
    color: #ffffff;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.listing-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(0,0,0,0.08));
    pointer-events: none;
}

.listing-card > * {
    position: relative;
    z-index: 1;
}

.theme-copper { background: linear-gradient(135deg, #f2849e, #c75b73); }
.theme-rust { background: linear-gradient(135deg, #f28476, #cd5e52); }
.theme-forest { background: linear-gradient(135deg, #7ecaf6, #4d9fd0); }
.theme-sand { background: linear-gradient(135deg, #c1b398, #8f7d61); }
.theme-plum { background: linear-gradient(135deg, #8e7cc3, #5c4a91); }
.theme-slate { background: linear-gradient(135deg, #7f92cf, #5569a6); }

.listing-card-top,
.detail-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
}

.listing-tag {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.75rem;
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 999px;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.listing-main h3 {
    margin: 0 0 0.6rem;
    font-size: 2rem;
}

.subtitle {
    font-size: 1rem;
}

.listing-card .subtitle,
.listing-card .summary,
.listing-card .listing-mode {
    color: rgba(255,255,255,0.84);
}

.facts,
.prices {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.facts span,
.prices span {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.8rem;
    border-radius: 999px;
    font-size: 0.9rem;
    line-height: 1.2;
}

.listing-card .facts span,
.listing-card .prices span {
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.18);
}

.detail-card .prices span {
    background: #f7f7f7;
    border: 1px solid var(--line);
}

.listing-link,
.back-link {
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.82rem;
}

.empty,
.detail-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 2rem;
    box-shadow: var(--shadow);
}

.detail-back {
    margin-bottom: 1rem;
}

.detail-card {
    display: grid;
    gap: 1.25rem;
}

@media (max-width: 900px) {
    body {
        font-size: 14pt;
    }

    .hero {
        grid-template-columns: 1fr;
    }

    .hero-meta {
        max-width: 22rem;
    }
}

@media (max-width: 640px) {
    .page {
        width: min(100% - 1rem, 1100px);
    }

    .site-header {
        padding-top: 1rem;
    }

    .header-inner,
    .section-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero {
        padding-top: 1rem;
    }

    .listing-grid {
        gap: 1rem;
    }

    .listing-card,
    .empty,
    .detail-card {
        padding: 1.35rem;
    }

    .listing-main h3 {
        font-size: 1.6rem;
    }
}
