:root {
  color-scheme: light;
  --paper: #f3f5f6;
  --ink: #151a1e;
  --muted: #525c65;
  --line: #d7dde1;
  --accent: #005f92;
  font-family: Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
[hidden] { display: none !important; }
.shell { width: min(1250px, calc(100% - 48px)); margin-inline: auto; }
.hero { background: #111518; color: #fff; }
.hero-inner { display: grid; grid-template-columns: auto 1fr auto; gap: 26px; align-items: center; padding-block: 38px; }
.brand-mark { object-fit: contain; }
.hero h1 { font-family: Georgia, serif; font-weight: 400; font-size: clamp(2rem, 4.8vw, 4rem); margin: 0 0 8px; letter-spacing: -.035em; }
.hero p { margin: 4px 0; color: #d5dce0; }
.hero .eyebrow { text-transform: uppercase; font-size: .75rem; letter-spacing: .15em; }
.contact { display: flex; gap: 8px; flex-wrap: wrap; }
.contact a, button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; font: inherit; font-weight: 650; }
.contact a { color: #fff; border-color: #77838b; }
button { background: white; color: var(--ink); cursor: pointer; }
button:hover, .contact a:hover { border-color: #4887ae; }
:focus-visible { outline: 3px solid #1788c9; outline-offset: 3px; }
.section-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; margin: 30px 0 16px; }
h2, h3 { margin: 0; }
.section-head h2 { font-size: 1.55rem; }
.view-switch { display: flex; gap: 5px; padding: 4px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.view-switch button { border-color: transparent; }
.view-switch [aria-pressed="true"] { background: #19242c; color: #fff; }
.filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 10px; }
.filters label { display: grid; min-width: 0; gap: 6px; font-size: .85rem; font-weight: 650; }
.filters .wide { grid-column: span 2; }
.filters input, .filters select { width: 100%; min-height: 42px; padding: 8px 10px; border: 1px solid #b9c4cc; border-radius: 6px; background: #fff; color: var(--ink); font: inherit; font-weight: 400; }
.results-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; min-height: 56px; color: var(--muted); }
.results-bar p { margin: 0 auto 0 0; }
.text-button { border: 0; background: transparent; color: var(--accent); padding-inline: 0; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 10px; background: white; }
.card figure { position: relative; display: grid; place-items: center; margin: 0; padding: 18px 18px 29px; aspect-ratio: 2 / 1; background: linear-gradient(155deg, #f7f8f9, #e9edf0); }
.card img { display: block; width: 100%; height: auto; max-height: 150px; object-fit: contain; }
.card figcaption { position: absolute; bottom: 8px; left: 12px; color: #49575f; font-size: .7rem; }
.card-body { padding: 16px; display: flex; flex: 1; flex-direction: column; gap: 8px; }
.card h3 { font-size: 1.1rem; }
.card p { margin: 0; color: var(--muted); }
.card dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; font-size: .85rem; }
.card dt { color: var(--muted); }
.card dd { margin: 0; }
.card .year { color: var(--muted); font-weight: 700; font-size: .75rem; }
.card .status { color: #6e4a00; font-size: .82rem; }
.card .price { font-weight: 750; color: var(--ink); margin-top: auto; padding-top: 6px; }
.card .action { display: block; width: 100%; text-align: center; text-decoration: none; border: 1px solid var(--line); background: #f7fafb; border-radius: 6px; padding: 9px; color: var(--accent); font-weight: 700; }
.card .action:hover { border-color: var(--accent); }
.empty { padding: 32px; text-align: center; background: white; border: 1px solid var(--line); border-radius: 10px; }
#load-more { display: block; margin: 22px auto; }
.footer { padding-block: 32px; color: var(--muted); font-size: .8rem; }
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: auto 1fr; }
  .contact { grid-column: 2; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .filters .wide { grid-column: 1 / -1; }
}
@media (max-width: 590px) {
  .shell { width: calc(100% - 28px); }
  .hero-inner { gap: 12px; padding-block: 27px; }
  .brand-mark { width: 48px; height: 48px; }
  .hero p { font-size: .84rem; }
  .contact { grid-column: 1 / -1; }
  .filters { padding: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid { grid-template-columns: 1fr; }
}
