/* Hallmark: Rua Ímpar. Street-poster composition, photographic listing and a single search control. */
/* Critique: the first listing earns the visual space, and browsing is available next to it. */

@font-face {
  font-family: Archivo Black;
  src: url("archivo-black.woff2") format("woff2");
  font-display: swap;
}
@font-face {
  font-family: Manrope;
  src: url("/assets/manrope-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #202027;
  --paper: #faf7ec;
  --white: #fffdf6;
  --acid: #e8f14f;
  --quiet: #57544b;
  --line: #ab9e83;
  --shade: #202027b5;
  --head: "Archivo Black", Manrope, sans-serif;
  --body: Manrope, system-ui, sans-serif;
  --gutter: clamp(1.25rem, 4.45vw, 4.5rem);
  color: var(--ink);
  background: var(--paper);
  font-family: var(--body);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: clip; }
body, h1, h2, h3, p, figure { margin: 0; }
body { font-size: 1rem; line-height: 1.5; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; line-height: .98; min-width: 0; overflow-wrap: break-word; }
a { color: inherit; text-underline-offset: .25em; }
img { display: block; width: 100%; height: auto; }
button, select { color: inherit; font: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
:focus-visible { outline: .14rem solid currentColor; outline-offset: .23rem; }
::selection { background: var(--ink); color: var(--acid); }
.wrap { width: min(calc(100% - var(--gutter) * 2), 92rem); margin-inline: auto; }
.skip, .visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { z-index: 20; top: .4rem; left: 1rem; width: auto; height: auto; overflow: visible; clip-path: none; padding: .6rem; background: var(--acid); }

.mast { display: flex; justify-content: space-between; align-items: center; min-height: 4.85rem; border-bottom: 1px solid var(--ink); gap: 1rem; }
.brand { display: inline-flex; gap: .6rem; align-items: center; white-space: nowrap; text-decoration: none; font: 400 clamp(1.35rem, 3vw, 2.2rem)/1 var(--head); letter-spacing: -.072em; }
.street-mark { width: 1.35rem; height: 1.35rem; background: var(--ink); clip-path: polygon(0 0,65% 0,65% 45%,100% 45%,100% 100%,48% 100%,48% 57%,0 57%); }
.mast nav { display: flex; align-items: center; gap: clamp(.9rem,4vw,3rem); }
.mast nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .92rem; font-weight: 750; }

.front { display: grid; grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); grid-template-areas: "pitch image" "search image"; padding: clamp(1.25rem, 3.8vw, 3.75rem) 0 0; border-bottom: 1px solid var(--ink); }
.pitch { grid-area: pitch; padding: clamp(1.25rem,3.2vw,3.75rem) clamp(1.15rem,3.7vw,4.4rem); background: var(--acid); }
.pitch h1 { font-size: clamp(3rem,5.7vw,7.1rem); letter-spacing: -.084em; }
.pitch p { max-width: 34ch; margin-top: clamp(.85rem, 2.8vw, 2.35rem); font-weight: 650; line-height: 1.55; }
.featured { grid-area: image; position: relative; min-height: 26rem; background: var(--ink); }
.featured img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 49% center; }
.featured figcaption { position: absolute; bottom: 0; right: 0; left: 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .3rem 1rem; color: var(--white); padding: .7rem 1rem; background: var(--ink); }
.featured figcaption button { min-height: 2.75rem; font-weight: 800; background: transparent; padding: 0; border: 0; text-decoration: underline; text-underline-offset: .25em; }
.featured figcaption button:hover { color: var(--acid); }

.search { grid-area: search; display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .85rem; padding: clamp(1rem, 2vw, 1.65rem) clamp(1.15rem, 3.7vw, 4.4rem); background: var(--ink); color: var(--white); }
.search label { display: grid; gap: .25rem; min-width: 0; font-size: .83rem; font-weight: 740; }
.search select { display: block; width: 100%; padding: .45rem .5rem; min-height: 2.8rem; border-radius: 0; border: 1px solid var(--line); color: var(--ink); background: var(--white); font-size: .89rem; }
.search-submit { grid-column: 1 / -1; width: fit-content; min-height: 2.95rem; border: 1px solid transparent; background: var(--acid); color: var(--ink); padding: .55rem 1.25rem; font-weight: 820; }
.search-submit:hover { background: var(--white); }

.catalog { padding-block: clamp(3.65rem,8vw,8rem); scroll-margin-top: 1rem; }
.catalog-head { display: flex; gap: 1.15rem; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.catalog-head h2, .note h2 { font-size: clamp(2.5rem,5.3vw,5.8rem); letter-spacing: -.072em; }
.filters { display: flex; gap: clamp(.55rem,2.1vw,1.7rem); }
.filters button, .empty button, .listings article button { border: 0; min-height: 2.75rem; background: transparent; padding: .45rem .1rem; font-weight: 750; }
.filters button:hover, .filters button[aria-pressed="true"], .empty button, .listings article button { text-decoration: underline; text-underline-offset: .28em; text-decoration-thickness: .12em; }
.count, .empty { color: var(--quiet); padding-block: .8rem; }
.empty button { margin-inline-start: .45rem; }
.listings { border-top: 1px solid var(--ink); }
.listings article { display: grid; grid-template-columns: minmax(0,.85fr) minmax(0,1.2fr) auto; gap: clamp(1rem,5.2vw,5.2rem); align-items: center; padding-block: clamp(.85rem,2vw,1.95rem); border-bottom: 1px solid var(--line); }
.listings img { aspect-ratio: 1.7; object-fit: cover; }
.listings h3 { font-size: clamp(1.35rem,3vw,3rem); letter-spacing: -.06em; margin: .4rem 0 .7rem; }
.location { color: var(--quiet); font-size: .85rem; }
.pricing { font-weight: 850; font-variant-numeric: tabular-nums; }
.listings article button { justify-self: start; }
.note { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(0,.85fr); align-items: end; gap: 1.25rem; padding: clamp(1.4rem,4vw,4rem); background: var(--acid); }
.note h2 { max-width: 11ch; }
.note p { max-width: 42ch; }

footer { padding: clamp(1.65rem,4vw,3.75rem) 0; }
.footer-head, .footer-head > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; }
footer p { font-size: .84rem; color: var(--quiet); border-top: 1px solid var(--line); margin-top: 1rem; padding-top: 1rem; }
dialog { max-width: min(calc(100% - 1.5rem), 40rem); max-height: 88dvh; padding: 0; border: 1px solid var(--ink); color: var(--ink); background: var(--white); }
dialog::backdrop { background: var(--shade); }
.dialog-head { display: flex; justify-content: space-between; align-items: center; padding: .5rem 1rem; background: var(--acid); font-weight: 750; }
.dialog-head button { padding: .45rem .65rem; border: 0; background: transparent; min-height: 2.75rem; text-decoration: underline; text-underline-offset: .26em; }
#sheet-photo { aspect-ratio: 1.75; object-fit: cover; }
.dialog-body { display: grid; gap: .5rem; padding: 1rem; }
.dialog-body h2 { font-size: clamp(1.65rem,5vw,3.4rem); letter-spacing: -.05em; }

@media (max-width: 790px) {
  .front { grid-template-columns: minmax(0,1fr); grid-template-areas: "pitch" "search" "image"; }
  .pitch h1 { font-size: clamp(2.5rem,10.4vw,5.3rem); }
  .featured { min-height: 0; aspect-ratio: 1.5; }
  .search-submit { width: 100%; }
  .note { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 490px) {
  .mast { min-height: 4.2rem; }
  .mast nav a { font-size: .8rem; }
  .featured figcaption { padding: .2rem .65rem; font-size: .79rem; }
  .listings article { grid-template-columns: minmax(0,.86fr) minmax(0,1.14fr); gap: .5rem .8rem; }
  .listings article button { grid-column: 2; }
}

