/* Keystone theme — Real estate. Generated by gen-brands.py; layout in ../_base/brand.css. */
@font-face { font-family: 'Instrument Serif'; src: url(fonts/head.woff2) format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Instrument Serif'; src: url(fonts/head-italic.woff2) format('woff2'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Inter Tight'; src: url(fonts/body.woff2) format('woff2'); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: 'JetBrains Mono'; src: url(fonts/jetbrains-mono.woff2) format('woff2'); font-weight: 500; font-display: swap; }
:root { --bg: #EFEDE8; --bg2: #F8F7F3; --bg3: #E2DED5; --ink: #1F1F1C; --ink2: #6B6860; --line: color-mix(in srgb, var(--ink) 12%, transparent); --acc: #3A3A3A; --acc-ink: #F8F7F3; --acc2: #C9A66B; --acc3: #7E8B6A; --f-head: 'Instrument Serif', Georgia, serif; --f-body: 'Inter Tight', system-ui, sans-serif; --f-mono: 'JetBrains Mono', ui-monospace, monospace; --r-lg: 6px; --r-md: 4px; --btn-r: 2px; --h-w: 400; }
h1, h2, h3, .a-head h2 { font-weight: 400; letter-spacing: -0.02em; }
.bh-title { font-size: clamp(56px, 8.4vw, 132px); line-height: .95; }
.bh-title em, .a-head h2 em, .b-split h2 em { font-style: italic; color: var(--acc2); }
.bh-full .bh-bg { background: linear-gradient(180deg, rgba(31,31,28,.15), rgba(31,31,28,.72)); }
.bh-full .bh-bg .ks-house { position: absolute; inset: 0; z-index: -1; border-radius: 0; }
.bh-full { background: linear-gradient(180deg, #B9C7CC, #E9E1D2 80%, #5E6E4A 80%); }
.bh-full .bh-bg .ks-house i:first-child { display: none; }
.bh-full .bh-bg .ks-house { left: 40%; width: 60%; background: transparent; }
.bh-full .bh-bg { background: linear-gradient(90deg, rgba(31,31,28,.72), rgba(31,31,28,.2) 60%, rgba(31,31,28,.05)), linear-gradient(180deg, transparent 55%, rgba(31,31,28,.5)); }
@media (max-width: 760px) { .bh-full .bh-bg .ks-house { left: 0; width: 100%; } }
.a-btn .chip { border-radius: 2px; background: var(--acc2); color: var(--ink); }
.a-eye::before { border-radius: 0; background: var(--acc2); }
.nav-links { background: transparent; } .nav-links a { border-radius: 2px; }
.b-card { background: var(--bg2); border-radius: var(--r-lg); } .b-card-ic { border-radius: 2px; background: var(--ink); color: var(--acc2); font-family: var(--f-head); font-size: 22px; }
.a-nums b { font-family: var(--f-head); font-weight: 400; }
.quote { background: var(--ink); color: var(--bg2); border: 0; border-radius: var(--r-lg); } .quote blockquote { color: var(--bg2); font-family: var(--f-head); } .quote .a-eye, .quote small { color: #B3AEA2; } .quote .av.lg { background: var(--acc2); color: var(--ink); } .quote .who-link { color: var(--acc2); }
.cta { background: var(--bg3); color: var(--ink); border-radius: var(--r-lg); } .cta h2 { color: var(--ink); } .cta p { color: var(--ink2); opacity: 1; }
.a-btn.dark { background: var(--ink); color: var(--bg2); --chip: var(--acc2); }
.cta-mark { color: color-mix(in srgb, var(--ink) 8%, transparent); }
.a-word { font-family: var(--f-head); color: var(--ink); -webkit-text-stroke: 0; background: none; opacity: .09; }
/* Illustrated houses: pure CSS, recoloured per listing with --sky, --wall, --roof, --door */
.ks-house { position: relative; overflow: hidden; width: 100%; height: 100%; background: linear-gradient(180deg, var(--sky, #CFD8DC), var(--sky2, #EFEDE8) 70%); }
.ks-img .ks-tag, .ks-img .ks-fav { z-index: 4; }
.ks-house.is-photo::after { content: ''; position: absolute; inset: 0; width: auto; height: auto; aspect-ratio: auto; border-radius: 0; box-shadow: none; z-index: 3; background: var(--ph) center / cover no-repeat; }
.bh-full .bh-bg .ks-house.is-photo { left: 0; width: 100%; }
.bh-full .bh-bg .ks-house.is-photo::after { background: linear-gradient(90deg, rgba(31,31,28,.88) 0, rgba(31,31,28,.6) 40%, rgba(31,31,28,.05) 75%), linear-gradient(180deg, transparent 55%, rgba(31,31,28,.5)), var(--ph) center / cover no-repeat; }
@media (max-width: 760px) { .bh-full .bh-bg .ks-house.is-photo::after { background: linear-gradient(rgba(0,0,0,.55), rgba(0,0,0,.55)), var(--ph) center / cover no-repeat; } }
.ks-house i { position: absolute; display: block; }
.ks-house i:nth-child(1) { left: 0; right: 0; bottom: 0; height: 22%; background: var(--ground, #8A9A6E); }
.ks-house i:nth-child(2) { left: 22%; width: 56%; bottom: 20%; height: 40%; background: var(--wall, #F2EEE6); box-shadow: 0 20px 40px -20px rgba(0,0,0,.4); }
.ks-house i:nth-child(3) { left: 17%; width: 66%; bottom: 59%; height: 26%; background: var(--roof, #3A3A3A); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.ks-house i:nth-child(4) { left: 45%; width: 10%; bottom: 20%; height: 20%; background: var(--door, #C9A66B); border-radius: 40px 40px 0 0; }
.ks-house i:nth-child(5) { left: 29%; width: 11%; bottom: 36%; height: 13%; background: var(--win, #FFE7B3); box-shadow: 30.5vw 0 0 0 transparent; outline: 3px solid var(--wall, #F2EEE6); }
.ks-house i:nth-child(6) { right: 29%; width: 11%; bottom: 36%; height: 13%; background: var(--win, #FFE7B3); }
.ks-house i:nth-child(7) { left: 66%; width: 6%; bottom: 72%; height: 14%; background: var(--roof, #3A3A3A); }
.ks-house::after { content: ''; position: absolute; left: 6%; bottom: 20%; width: 13%; aspect-ratio: .6; border-radius: 50% 50% 46% 46%; background: var(--tree, #5E6E4A); box-shadow: 70vw 0 0 0 transparent; }
.ks-house::before { content: ''; position: absolute; right: 8%; top: 12%; width: 9%; aspect-ratio: 1; border-radius: 50%; background: var(--sun, #F4D58D); }
/* Listings grid with a hover lift and price chip */
.ks-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.ks-filter span { padding: 10px 16px; border: 1px solid var(--line); border-radius: 2px; font-size: 14px; color: var(--ink2); } .ks-filter span.on { background: var(--ink); color: var(--bg2); border-color: var(--ink); }
.ks-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ks-card { display: block; background: var(--bg2); border-radius: var(--r-lg); overflow: hidden; color: inherit; text-decoration: none; transition: transform .5s var(--ease), box-shadow .5s var(--ease); }
.ks-card:hover { transform: translateY(-6px); box-shadow: 0 30px 60px -30px rgba(31,31,28,.45); }
.ks-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; } .ks-img .ks-house { transition: transform .9s var(--ease); } .ks-card:hover .ks-house { transform: scale(1.05); }
.ks-tag { position: absolute; left: 14px; top: 14px; padding: 6px 10px; background: var(--bg2); font: 500 11px/1 var(--f-mono); letter-spacing: .06em; text-transform: uppercase; }
.ks-fav { position: absolute; right: 14px; top: 12px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: rgba(248,247,243,.9); }
.ks-cap { display: flex; justify-content: space-between; align-items: start; gap: 12px; padding: 18px 18px 8px; } .ks-cap h3 { font-size: 26px; } .ks-cap small { color: var(--ink2); } .ks-cap b { font: 600 17px/1.4 var(--f-body); white-space: nowrap; }
.ks-meta { display: flex; gap: 16px; padding: 10px 18px 18px; color: var(--ink2); font-size: 14px; border-top: 1px solid var(--line); margin: 8px 18px 0; padding-left: 0; padding-right: 0; }
.ks-search { display: grid; grid-template-columns: 1.4fr 1fr 1fr auto; gap: 0; margin-top: 36px; max-width: 820px; background: var(--bg2); border-radius: 2px; overflow: hidden; color: var(--ink); }
.ks-search label { display: grid; gap: 4px; padding: 14px 18px; border-right: 1px solid var(--line); font-size: 15px; } .ks-search label small { font: 500 10px/1 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink2); }
.ks-search button { border: 0; padding: 0 28px; background: var(--acc2); color: var(--ink); font: 600 15px/1 var(--f-body); cursor: pointer; }
@media (max-width: 900px) { .ks-grid { grid-template-columns: 1fr 1fr; } .ks-search { grid-template-columns: 1fr 1fr; } .ks-search button { grid-column: 1 / -1; height: 52px; } }
@media (max-width: 600px) { .ks-grid { grid-template-columns: 1fr; } }
