/* Sold by Bre preview. Shared by / and /listing/bay-ridge/. Engine styles live in scrollcraft.css. */

@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage Grotesque"; src: url("/fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/hanken-grotesk-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }

:root {
  --sc-font-display: "Bricolage Grotesque", "Hanken Grotesk", system-ui, sans-serif;
  --sc-font-text: "Hanken Grotesk", system-ui, sans-serif;
  --notice-h: 30px;
  --shadow-plate: 0 18px 40px -18px hsl(var(--sc-shadow-color) / 0.45), 0 2px 6px -2px hsl(var(--sc-shadow-color) / 0.25);
}

img { height: auto; }
.sc-display { font-weight: 700; }
h1, h2, h3 { text-wrap: balance; }

/* --- honesty notice: always visible ------------------------------------- */
.notice {
  position: fixed; inset: 0 0 auto 0; z-index: 90;
  height: var(--notice-h);
  display: flex; align-items: center; justify-content: center;
  padding-inline: 12px;
  background: var(--sc-ink); color: var(--sc-canvas);
  font-size: 12.5px; font-weight: 500; letter-spacing: 0.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.notice span { overflow: hidden; text-overflow: ellipsis; }
body { padding-top: 0; }

.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

.skip {
  position: fixed; left: 12px; top: calc(var(--notice-h) + 8px); z-index: 100;
  padding: 10px 14px; border-radius: var(--sc-r-sm);
  background: var(--sc-accent); color: var(--sc-accent-ink); font-weight: 600; text-decoration: none;
  transform: translateY(-200%);
}
.skip:focus-visible { transform: none; }

/* --- buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 48px; padding: 0 22px;
  border-radius: var(--sc-r-sm); border: 1px solid transparent;
  font-weight: 600; font-size: 15.5px; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out);
}
.btn--primary { background: var(--sc-accent); color: var(--sc-accent-ink); box-shadow: var(--shadow-plate); }
.btn--ghost { background: transparent; color: inherit; border-color: currentColor; }
.btn:active { transform: scale(0.97); }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.5; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover { background: color-mix(in oklab, var(--sc-accent) 86%, var(--sc-ink)); }
  .btn--ghost:hover { background: color-mix(in oklab, currentColor 10%, transparent); }
}

.link {
  color: inherit; font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 0.24em;
  transition: text-decoration-color 160ms var(--sc-ease-out), color 160ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .link:hover { color: var(--sc-accent); } }

/* --- the mark: her logo as a mask so it takes the ink colour ------------ */
.mark {
  display: inline-block; width: 28px; aspect-ratio: 337 / 400;
  background: currentColor;
  -webkit-mask: url("/img/mark.png") center / contain no-repeat;
          mask: url("/img/mark.png") center / contain no-repeat;
}

/* --- forms -------------------------------------------------------------- */
.form { display: grid; gap: 14px; }
.form__row { display: grid; gap: 14px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 6px; }
.field label { font-size: 14px; font-weight: 600; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border-radius: var(--sc-r-sm);
  border: 1px solid color-mix(in oklab, var(--sc-ink) 34%, transparent);
  background: color-mix(in oklab, var(--sc-canvas) 70%, var(--sc-surface));
  color: var(--sc-ink);
  transition: border-color 160ms var(--sc-ease-out), background-color 160ms var(--sc-ease-out);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: color-mix(in oklab, var(--sc-ink) 60%, transparent); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { border-color: var(--sc-accent); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--sc-accent); }
.field__err { font-size: 13.5px; color: var(--sc-accent); font-weight: 600; min-height: 0; }
.field__err:empty { display: none; }
.form__fine { font-size: 13px; color: var(--sc-ink-soft); margin: 0; max-width: 60ch; }
.form__state {
  border-radius: var(--sc-r-md); padding: 18px 20px;
  background: var(--sc-surface); border: 1px solid var(--sc-hairline-strong);
}
.form__state h3 { margin: 0 0 6px; font-family: var(--sc-font-display); font-size: 1.25rem; letter-spacing: -0.01em; }
.form__state p { margin: 0; color: var(--sc-ink-soft); }
.form__state[hidden] { display: none; }

@media (max-width: 640px) { .form__row { grid-template-columns: 1fr; } }

@media (pointer: coarse), (max-width: 860px) {
  .link { display: inline-block; padding-block: 12px; margin-block: -7px; min-height: 44px; }
}
