/*
 * All house plans archive.
 * Calm catalog page for /house-plans/.
 */

.hp-archive {
  background: var(--cream);
  color: var(--ink);
}

.hp-hero {
  padding: 54px 0 46px;
  background: var(--cream-deep);
  border-bottom: 1px solid rgba(20, 20, 19, .08);
}

.hp-hero--paged {
  padding-bottom: 34px;
}

.hp-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 34px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hp-breadcrumb a {
  color: var(--ink-mute);
}

.hp-breadcrumb a:hover {
  color: var(--ink);
}

.hp-eyebrow {
  margin: 0 0 12px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--clay-deep);
}

.hp-hero h1 {
  max-width: 820px;
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(48px, 8vw, 92px);
  font-weight: 400;
  line-height: .94;
  color: var(--ink);
}

.hp-lede {
  max-width: 690px;
  margin: 28px 0 0;
  font-family: var(--serif);
  font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.28;
  color: var(--ink-soft);
}

.hp-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 920px;
  margin-top: 42px;
  border: 1px solid rgba(20, 20, 19, .1);
  background: rgba(20, 20, 19, .1);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.hp-stats div {
  min-width: 0;
  padding: 18px 20px;
  background: var(--cream);
}

.hp-stats strong {
  display: block;
  margin-bottom: 4px;
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  line-height: 1.08;
}

.hp-stats span {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.hp-tools {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(250, 249, 245, .96);
  border-bottom: 1px solid rgba(20, 20, 19, .1);
  backdrop-filter: blur(12px);
}

.hp-tools-inner {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
  align-items: center;
  padding-top: 16px;
  padding-bottom: 16px;
}

.hp-search {
  display: grid;
  grid-template-columns: 1fr auto;
  min-width: 0;
  border: 1px solid rgba(20, 20, 19, .14);
  border-radius: 999px;
  background: #fff;
  overflow: hidden;
}

.hp-search input[type="search"] {
  min-width: 0;
  width: 100%;
  height: 44px;
  border: 0;
  padding: 0 18px;
  background: transparent;
  font-size: 14px;
  outline: 0;
}

.hp-search button {
  height: 44px;
  padding: 0 18px;
  background: var(--ink);
  color: var(--cream);
  font-size: 13px;
  font-weight: 600;
}

.hp-search button:hover {
  background: var(--clay-deep);
}

.hp-chips {
  display: flex;
  gap: 8px;
  align-items: center;
  overflow-x: auto;
  padding: 3px 0;
  scrollbar-width: thin;
}

.hp-chips a {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 9px 15px;
  border: 1px solid rgba(20, 20, 19, .14);
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.hp-chips a:hover {
  border-color: var(--clay);
  color: var(--clay-deep);
}

.hp-featured,
.hp-hub,
.hp-catalog,
.hp-guide,
.hp-faq {
  padding: 72px 0;
}

.hp-featured,
.hp-guide {
  scroll-margin-top: 120px;
}

.hp-guide {
  background: var(--cream);
}

.hp-hub,
.hp-faq {
  background: var(--cream-deep);
}

.hp-section-head,
.hp-catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 28px;
}

.hp-section-head h2,
.hp-catalog-head h2,
.hp-guide h2 {
  margin: 0;
  max-width: 760px;
  font-family: var(--serif);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 400;
  line-height: 1.02;
}

.hp-featured-grid,
.hp-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.hp-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hp-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(20, 20, 19, .1);
  border-radius: var(--radius-sm);
  background: var(--cream);
  box-shadow: 0 1px 0 rgba(20, 20, 19, .03);
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}

.hp-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.hp-card-media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--linen);
}

.hp-card--featured .hp-card-media {
  aspect-ratio: 16 / 10;
}

.hp-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease);
}

.hp-card:hover .hp-card-media img {
  transform: scale(1.025);
}

.hp-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  max-width: calc(100% - 24px);
  padding: 6px 9px;
  border-radius: 4px;
  background: rgba(250, 249, 245, .94);
  color: var(--ink);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .1em;
  line-height: 1.1;
  text-transform: uppercase;
}

.hp-media-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: 20px;
  color: var(--ink-mute);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-align: center;
  text-transform: uppercase;
}

.hp-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 20px;
}

.hp-card h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(24px, 2.2vw, 31px);
  font-weight: 400;
  line-height: 1.08;
}

.hp-card h3 a:hover {
  color: var(--clay-deep);
}

.hp-card-specs {
  margin: 12px 0 0;
  color: var(--ink-mute);
  font-size: 14px;
  line-height: 1.45;
}

.hp-card-fit {
  margin: 12px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.45;
}

.hp-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: auto;
  padding-top: 20px;
  font-size: 14px;
  font-weight: 600;
}

.hp-card-foot a {
  color: var(--clay-deep);
  white-space: nowrap;
}

.hp-hub-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hp-hub-group {
  padding: 22px;
  border: 1px solid rgba(20, 20, 19, .1);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.hp-hub-group h3 {
  margin: 0 0 16px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
}

.hp-hub-group ul {
  display: grid;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: rgba(20, 20, 19, .09);
}

.hp-hub-group li {
  min-width: 0;
  background: var(--cream);
}

.hp-hub-group a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 0;
  font-size: 15px;
  line-height: 1.25;
}

.hp-hub-group a:hover span {
  color: var(--clay-deep);
}

.hp-hub-group em {
  flex: 0 0 auto;
  min-width: 28px;
  padding: 3px 7px;
  border-radius: 999px;
  background: var(--cream-deep);
  color: var(--ink-mute);
  font-size: 12px;
  font-style: normal;
  text-align: center;
}

.hp-catalog-head {
  align-items: center;
}

.hp-call {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(20, 20, 19, .2);
  border-radius: 999px;
  font-weight: 700;
}

.hp-call:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--cream);
}

.hp-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 42px;
}

.hp-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(20, 20, 19, .14);
  border-radius: 999px;
  background: var(--cream);
  font-weight: 700;
}

.hp-pagination .current {
  background: var(--ink);
  color: var(--cream);
}

.hp-guide-grid {
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(0, 1.4fr);
  gap: 56px;
}

.hp-guide-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.hp-guide-list article {
  padding: 24px;
  border: 1px solid rgba(20, 20, 19, .1);
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
}

.hp-guide-list h3 {
  margin: 0 0 10px;
  font-family: var(--serif);
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
}

.hp-guide-list p,
.hp-faq p {
  margin: 0;
  color: var(--ink-soft);
}

.hp-guide-list a,
.hp-faq a {
  color: var(--clay-deep);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.hp-faq-list {
  display: grid;
  gap: 10px;
  max-width: 900px;
}

.hp-faq details {
  border: 1px solid rgba(20, 20, 19, .1);
  border-radius: var(--radius-sm);
  background: var(--cream);
}

.hp-faq summary {
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--serif);
  font-size: 22px;
  line-height: 1.2;
}

.hp-faq details p {
  padding: 0 22px 22px;
}

.hp-empty {
  padding: 44px;
  border: 1px solid rgba(20, 20, 19, .1);
  border-radius: var(--radius-sm);
  background: var(--cream-deep);
}

@media (max-width: 1120px) {
  .hp-tools-inner {
    grid-template-columns: 1fr;
  }

  .hp-featured-grid,
  .hp-grid,
  .hp-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 780px) {
  .hp-tools {
    position: static;
  }

  .hp-hero {
    padding: 34px 0 34px;
  }

  .hp-breadcrumb {
    margin-bottom: 24px;
  }

  .hp-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 30px;
  }

  .hp-featured,
  .hp-hub,
  .hp-catalog,
  .hp-faq {
    padding: 48px 0;
  }

  .hp-guide {
    padding: 64px 0 56px;
  }

  .hp-section-head,
  .hp-catalog-head,
  .hp-guide-grid {
    display: block;
  }

  .hp-guide .hp-eyebrow {
    margin-bottom: 16px;
  }

  .hp-guide h2 {
    margin-bottom: 24px;
    font-size: clamp(38px, 10vw, 54px);
    line-height: 1.06;
  }

  .hp-guide-list {
    gap: 22px;
  }

  .hp-call {
    margin-top: 20px;
  }

  .hp-featured-grid,
  .hp-grid,
  .hp-hub-grid,
  .hp-guide-list {
    grid-template-columns: 1fr;
  }

  .hp-card-body,
  .hp-hub-group,
  .hp-guide-list article {
    padding: 18px;
  }
}

@media (max-width: 520px) {
  .hp-guide {
    padding: 72px 0 56px;
  }

  .hp-guide h2 {
    margin-bottom: 26px;
  }

  .hp-search {
    grid-template-columns: 1fr;
    border-radius: var(--radius-sm);
  }

  .hp-search button {
    width: 100%;
  }

  .hp-stats {
    grid-template-columns: 1fr;
  }

  .hp-card-foot {
    display: block;
  }

  .hp-card-foot a {
    display: inline-flex;
    margin-top: 10px;
  }
}
