:root {
  color-scheme: light;
  --ink: #2f2241;
  --purple: #56357c;
  --muted: #5d4e69;
  --line: #dfd4e7;
  --lilac: #eee4f7;
  --paper: #faf7fc;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.65 system-ui, "Hiragino Sans", "Yu Gothic", sans-serif; }
.wrap { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
a { color: var(--purple); text-underline-offset: .22em; }
:focus-visible { outline: 3px solid #925325; outline-offset: 4px; }
[hidden] { display: none !important; }
.skip { position: absolute; top: 8px; left: 12px; z-index: 2; transform: translateY(-160%); background: white; padding: 8px 12px; }
.skip:focus { transform: none; }
header { background: white; border-bottom: 1px solid var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 68px; }
.brand { display: inline-flex; gap: 9px; align-items: center; font-weight: 800; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; border-radius: 11px; flex: 0 0 32px; height: 32px; background: var(--purple); color: white; }
nav { display: flex; gap: 18px; font-size: .875rem; font-weight: 700; }
nav a { text-decoration: none; }
nav a:hover { text-decoration: underline; }
.hero { background: radial-gradient(ellipse at 14% 0%, #f9e8f4, transparent 66%), linear-gradient(115deg, #f3ecfc, #e9d8f6); border-bottom: 1px solid var(--line); }
.hero-inner { display: grid; grid-template-columns: 1fr 1.05fr; align-items: center; gap: clamp(20px, 5vw, 66px); padding-block: clamp(28px, 5.8vw, 72px); }
h1, h2, h3, p { margin-top: 0; }
.eyebrow { font-size: .875rem; font-weight: 800; color: var(--purple); margin-bottom: 10px; }
h1 { font-size: clamp(2rem, 5.4vw, 4.05rem); line-height: 1.15; letter-spacing: -.04em; margin-bottom: 16px; }
.hero-copy p:last-child { color: var(--muted); max-width: 28em; margin-bottom: 0; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); line-height: 1.35; margin-bottom: 12px; }
.finder { background: white; padding: clamp(15px, 3vw, 26px); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 14px 36px #57348016; }
.finder h2 { font-size: 1.25rem; }
.fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
label { display: grid; gap: 5px; font-size: .875rem; font-weight: 750; }
select { appearance: none; width: 100%; min-height: 46px; padding: 6px 24px 6px 8px; color: var(--ink); font: inherit; border: 1px solid #bca8cc; border-radius: 9px; background: #fcf9fe url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1 5 5 5-5' fill='none' stroke='%2356357c' stroke-width='2'/%3E%3C/svg%3E") right 8px center no-repeat; }
button, .action { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; text-align: center; background: var(--purple); color: white; font: inherit; font-weight: 750; padding: 9px 12px; border: 0; border-radius: 9px; text-decoration: none; }
button { width: 100%; margin-top: 15px; cursor: pointer; }
button:hover, .action:hover { background: #40255e; }
.content { padding-block: 23px 38px; }
.ad { display: flex; align-items: center; justify-content: center; gap: 9px; border: 1px dashed #aa91bf; border-radius: 10px; min-height: 54px; margin-bottom: 23px; overflow: hidden; color: var(--muted); font-size: .875rem; }
.ad-label { padding: 2px 7px; background: var(--lilac); border-radius: 5px; color: var(--purple); flex-shrink: 0; }
.ad a { flex: 1; }
.ad img { display: block; width: 100%; height: auto; }
.ad:has(img) .ad-label { margin-inline-start: 8px; }
#results { scroll-margin-top: 15px; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 0 10px; flex-wrap: wrap; }
.section-heading p, .helper, .fine, .area, .note, .sources { color: var(--muted); font-size: .875rem; }
#status, .section-heading p { margin-bottom: 10px; }
.helper { background: var(--lilac); padding: 8px 12px; border-radius: 7px; }
.cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; }
.card { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 16px; display: flex; flex-direction: column; }
.card h3 { font-size: 1.1rem; line-height: 1.35; margin-bottom: 4px; }
.area { margin-bottom: 8px; }
.price { color: var(--purple); font-size: clamp(1.36rem, 2.5vw, 1.8rem); font-weight: 850; line-height: 1.3; margin-bottom: 4px; }
.unit { color: var(--muted); margin-bottom: 10px; font-size: .875rem; }
.note { flex: 1; padding-top: 10px; border-top: 1px solid var(--line); margin-bottom: 12px; }
.sources { margin: 7px 0 0; }
.fine { margin: 15px 0 23px; }
.empty { grid-column: 1/-1; background: white; padding: 14px; border: 1px solid var(--line); border-radius: 8px; }
.guide details { padding: 10px 0; border-bottom: 1px solid var(--line); }
.guide summary { cursor: pointer; font-weight: 700; }
.guide p { color: var(--muted); margin: 6px 0 0; }
footer { padding: 18px 0; background: white; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
@media(max-width: 850px) { .cards { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media(max-width: 710px) { .hero-inner { grid-template-columns: 1fr; } .wrap { width: calc(100% - 30px); } }
@media(max-width: 500px) { .cards { grid-template-columns: 1fr; } nav { font-size: .75rem; } nav a:first-child { display: none; } .brand { font-size: .87rem; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
