@font-face {
  font-family: Raleway;
  src: url('fonts/raleway-latin.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  font-family: Raleway, Arial, sans-serif;
  color: #19191b;
  background: #fff;
  --purple: #3d2070;
  --accent: #5b3d82;
  --muted: #5a535f;
  --border: #dedbe2;
  --light: #f0eaf7;
  --white: #fff;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.wrap { width: min(1120px, calc(100% - 96px)); margin-inline: auto; }
.skip { position: absolute; z-index: 3; left: 1rem; top: .5rem; padding: .75rem; background: var(--white); color: var(--purple); transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }

.hero { position: relative; isolation: isolate; color: var(--white); background: var(--purple); }
.hero-picture, .hero::before { position: absolute; z-index: -1; inset: 0; pointer-events: none; }
.hero-picture { z-index: -2; }
.hero-picture img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 52%; }
.hero::before { content: ''; background: linear-gradient(100deg, rgba(39, 19, 69, .85) 0%, rgba(61, 32, 112, .73) 47%, rgba(61, 32, 112, .52) 100%); }
.header-inner { display: flex; min-height: 88px; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(24px, 4vw, 60px); }
.brand { display: block; width: 64px; height: 64px; object-fit: contain; }
.header-links { display: flex; align-items: center; gap: clamp(12px, 3vw, 30px); }
.contact-link { color: var(--white); font-size: .94rem; font-weight: 700; text-underline-offset: .29em; }
.hero-inner { padding-block: clamp(39px, 7vw, 92px) clamp(51px, 7vw, 88px); }
h1, h2, h3, p { margin-top: 0; }
.kicker { font-size: .92rem; font-weight: 700; margin: 0 0 11px; }
h1 { font-size: clamp(2.5rem, 6.1vw, 5.5rem); line-height: 1.02; letter-spacing: -.055em; font-weight: 600; margin-bottom: 15px; }
.intro { max-width: 55ch; margin-bottom: 0; font-size: clamp(1rem, 1.6vw, 1.17rem); line-height: 1.55; }
.search { max-width: 930px; margin-top: 33px; }
label { display: block; margin-bottom: 8px; font-weight: 700; font-size: .91rem; }
textarea, input, select, button { font: inherit; color: inherit; border-radius: 0; }
textarea, input, select { width: 100%; padding: 12px; border: 1px solid #a79bb5; background: var(--white); color: #19191b; }
textarea::placeholder, input::placeholder { color: #5e5766; }
.search-row { display: grid; grid-template-columns: minmax(0,1fr) auto; }
.search-row textarea { min-height: 70px; padding: 14px 16px; resize: vertical; line-height: 1.45; border-color: var(--white); }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
.primary, .secondary { min-height: 42px; padding: 11px 16px; border: 1px solid var(--purple); font-weight: 700; }
.primary { color: var(--white); background: var(--purple); }
.primary:hover { background: var(--accent); }
.search-submit { padding-inline: 24px; }
.secondary { color: var(--purple); background: var(--white); }
.secondary:hover { background: var(--light); }
.examples { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.examples button { padding: 8px 11px; border: 1px solid #ded3eb; color: var(--white); background: #2e174f; font-size: .84rem; font-weight: 700; }
.examples button:hover { background: var(--accent); }
.search-note { margin: 10px 0 0; font-size: .85rem; line-height: 1.45; }

.output { padding-block: 42px 50px; }
.output-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.output-heading h2 { scroll-margin-top: 20px; margin: 0 0 7px; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.038em; }
.output-heading h2:focus { outline: none; }
.muted { margin-bottom: 0; font-size: .95rem; line-height: 1.5; color: var(--muted); }
.subtle { color: var(--purple); font-weight: 700; font-size: .91rem; text-underline-offset: 3px; }
.criteria { display: flex; flex-wrap: wrap; gap: 7px; margin: 17px 0; }
.chip { padding: 7px 10px; border: 1px solid #e2d8ed; color: var(--purple); background: var(--light); font-size: .85rem; font-weight: 600; }
.location-panel { margin: 20px 0; padding: 20px; border: 1px solid #e2d8ed; background: #f7f4fb; }
.location-panel h3 { margin: 0 0 6px; font-size: 1.15rem; }
.location-fields { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 12px; margin-top: 16px; }
.maps-status { margin: 8px 0 0; color: var(--purple); font-size: .88rem; line-height: 1.45; }
#location-error { margin: 12px 0 0; color: #7b2346; font-weight: 700; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); background: var(--white); }
.cover { display: block; width: 100%; aspect-ratio: 1.82; object-fit: cover; background: var(--light); }
.cover.missing { display: grid; place-items: center; color: var(--accent); font-size: .92rem; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 16px 17px 17px; }
.card .locality, .card .facts, .card .reference { margin-bottom: 8px; color: var(--muted); font-size: .88rem; }
.card .reference { margin-top: auto; padding-top: 5px; }
.card h3 { margin: 0 0 10px; font-size: 1.11rem; line-height: 1.35; }
.price { margin-bottom: 9px; color: var(--purple); font-size: 1.13rem; font-weight: 700; }
.card-actions { display: flex; flex-wrap: wrap; gap: 7px 9px; margin-top: 8px; }
.card-actions button, .card-actions a { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 9px; font-size: .84rem; }
.maps-output { margin-top: 11px; padding: 10px; border: 1px solid var(--border); background: #faf8fc; font-size: .88rem; line-height: 1.5; }
.maps-output p { margin-bottom: 6px; }
.maps-output p:last-child { margin-bottom: 0; }
.maps-output a { display: block; margin-top: 6px; }
.pass { color: #235944; font-weight: 700; }
.fail { color: #85384f; font-weight: 700; }
.empty { grid-column: 1 / -1; padding: 24px; border: 1px solid var(--border); }
#more { margin-top: 16px; }
.footer { border-top: 1px solid var(--border); }
.footer-inner { display: flex; justify-content: space-between; gap: 12px; padding-block: 19px 24px; color: var(--muted); font-size: .86rem; }
.footer-inner strong { margin-right: 13px; color: var(--purple); font-weight: 700; }
:focus-visible { outline: 3px solid #8b59c4; outline-offset: 3px; }
.hero :focus-visible { outline-color: #efe0ff; }
.search-row textarea:focus-visible { outline-color: #8455bd; outline-offset: -4px; }
.visually-hidden { 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: 900px) {
  .wrap { width: calc(100% - 56px); }
  .cards { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 600px) {
  .wrap { width: calc(100% - 36px); }
  .header-inner { min-height: 73px; padding-inline: 18px; }
  .brand { width: 48px; height: 48px; }
  .header-links { flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
  .contact-link { font-size: .84rem; }
  .hero-picture img { object-position: 50% 51%; }
  .hero::before { background: linear-gradient(160deg, rgba(39, 19, 69, .83), rgba(61, 32, 112, .71)); }
  .hero-inner { padding-block: 32px 42px; }
  h1 { max-width: 13ch; }
  .search { margin-top: 25px; }
  .search-row { grid-template-columns: 1fr; }
  .search-row textarea { min-height: 104px; }
  .search-submit { min-height: 46px; }
  .output { padding-block: 32px 40px; }
  .output-heading { flex-direction: column; align-items: flex-start; gap: 10px; }
  .location-panel { padding: 14px; }
  .location-fields { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .location-fields > div:first-child { grid-column: 1 / -1; }
  .cards { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; }
}
