/* Sold archive: a wide horizon, the live count, the honest empty state. */

.sd-hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--sea);
  min-height: min(88svh, 62vw); display: grid; align-items: end;
}
.sd-hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 76%; z-index: -2; }
.sd-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(180deg, rgb(6 16 25 / .45) 0%, rgb(6 16 25 / 0) 22%),
    linear-gradient(0deg, rgb(6 16 25 / .78) 0%, rgb(6 16 25 / .3) 26%, rgb(6 16 25 / 0) 44%);
}
.sd-inner {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 48px; align-items: end;
  padding-top: 140px; padding-bottom: clamp(32px, 5vh, 56px);
}
.sd-title { display: grid; gap: 14px; }
.sd-title h1 { font-size: clamp(2.8rem, 1.6rem + 4.4vw, 5.6rem); line-height: .98; }
.sd-title .lede { color: rgb(255 255 255 / .9); font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem); max-width: 44ch; }
.sd-hero .crumbs { color: rgb(255 255 255 / .78); }
.sd-hero .crumbs a { color: rgb(255 255 255 / .9); }

.sd-today { display: grid; gap: 14px; justify-items: end; text-align: right; }
.sd-count { display: grid; justify-items: end; color: #fff; text-decoration: none; }
.sd-n { font-family: var(--serif); font-size: clamp(4rem, 2.6rem + 5vw, 8rem); line-height: .85; }
.sd-n-label { font-size: 0.95rem; color: rgb(255 255 255 / .9); margin-top: 10px; }
.sd-count:hover .sd-n-label { text-decoration: underline; text-underline-offset: 4px; }
.sd-cap { font-size: 0.8125rem; color: rgb(255 255 255 / .75); text-underline-offset: 3px; }
.sd-cap:hover { color: #fff; }
.sd-count:focus-visible, .sd-cap:focus-visible { outline-color: #fff; }

@media (prefers-reduced-motion: no-preference) {
  .sd-hero > img { animation: sdSettle 2.8s cubic-bezier(.16, 1, .3, 1) both; }
}
@keyframes sdSettle { from { transform: scale(1.05); } }

/* ---------- the empty state ---------- */

.sd-empty {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px clamp(32px, 6vw, 96px);
  padding-top: clamp(64px, 8vw, 112px); padding-bottom: 0; align-items: start;
}
.sd-empty h2 { font-size: clamp(2.1rem, 1.4rem + 2.4vw, 3.4rem); line-height: 1.04; max-width: 14ch; }
.sd-empty-body { display: grid; gap: 18px; padding-top: 6px; }
.sd-empty-body .lede { max-width: 46ch; }
.sd-how { color: var(--ink-2); padding-left: 16px; border-left: 2px solid var(--sky); max-width: 46ch; }

@media (max-width: 760px) {
  .sd-hero { min-height: 0; display: block; }
  .sd-hero > img { position: relative; inset: auto; height: auto; aspect-ratio: 4 / 3; object-position: 34% 50%; z-index: 0; }
  .sd-hero::after { inset: 0 0 auto 0; aspect-ratio: 4 / 3; background: linear-gradient(180deg, rgb(6 16 25 / .5) 0%, rgb(6 16 25 / 0) 32%); }
  .sd-inner { position: relative; z-index: 1; grid-template-columns: minmax(0, 1fr); padding-top: 22px; padding-bottom: 36px; gap: 28px; }
  .sd-today { justify-items: start; text-align: left; padding-top: 22px; border-top: 1px solid rgb(255 255 255 / .16); }
  .sd-count { justify-items: start; }
  .sd-empty { grid-template-columns: minmax(0, 1fr); }
}

