/* bookbask — home page.

   Layout ported value-for-value from docs/bookbask/reference-build.html (the
   owner's "Demo (standalone).html"). The reference is a prototype with every
   style inline; this is the same page expressed as classes, so the numbers here
   are deliberately odd (14.5px, 12.5px, 2.5px gaps) — they are the reference's,
   not invented. Do not round them.

   Tokens come from css/bookbask.css, which this file assumes is loaded. The
   reference's palette and the system's are the same hex values, so a literal
   colour below is always a place the reference used a one-off. */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}


/* ---------- Header ---------- */

.home-nav {
  background: var(--bb-page);
  border-bottom: 1px solid var(--bb-hairline);
}

.home-nav__in {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}

/* Brand. Both marks ship; [data-brand] on <html> picks one, so the two can be
   compared without a rebuild. Neither is display:none'd in a way that would
   hide it from the accessible name — the <a> carries its own aria-label.
   "bookbask" is the supplied lockup art (assets/brand), not type set in Inter. */
.home-brand { flex: none; display: flex; align-items: center; }
.home-brand:hover { text-decoration: none; }

.home-brand__bask { display: none; align-items: baseline; gap: 6px; }
.home-brand__full { display: none; align-items: center; gap: 9px; }
[data-brand="bask"] .home-brand__bask,
[data-brand="bookbask"] .home-brand__full { display: flex; }

.home-brand__word {
  font: 800 24px/1 var(--bb-font);
  letter-spacing: -0.5px;
  color: var(--bb-primary);
}
.home-brand__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bb-trust);
}
/* Sized by height so the lockup tracks the nav, not by width; the width
   attribute on the <img> is a presentational hint and has to be overridden. */
.home-brand__lockup { height: 24px; width: auto; display: block; }

/* The full lockup is 189px wide. With the sign-in controls that puts the nav's
   minimum at 408px — wider than most phones, so "Sign in" clipped off the
   right edge. The arc mark alone is 47px. Both ship; the breakpoint picks one. */
.home-brand__mark { height: 26px; width: auto; display: none; }

.home-nav__end {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  font: 500 14px/1 var(--bb-font);
  flex: none;
}
.home-nav__end > a[href]:not(.bb-btn) { color: var(--bb-ink); }

/* The reference's nav buttons are a size smaller than the system default. */
.home-nav__end .bb-btn { padding: 10px 18px; font-size: 14px; font-weight: 600; }
.home-nav__end .bb-btn--primary { padding: 10px 20px; }

/* The language switcher sits where the reference put its quiet "USD" control,
   so it is toned down to match: plain muted text, no border, no white pill.
   js/i18n.js ships its own default styling for pages that have no opinion. */
.home-nav__end .ji-sw__btn {
  border-color: transparent;
  background: transparent;
  padding: 6px 2px;
  color: var(--bb-ink-soft);
  font-family: var(--bb-font);
  font-weight: 500;
}
.home-nav__end .ji-sw__btn:hover { border-color: transparent; color: var(--bb-ink); }


/* ---------- Hero ---------- */

.home-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.home-hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* The reference's tag is a touch smaller and dimmer than the system default. */
.home-hero__credit { padding: 6px 14px; font-size: 12px; color: rgba(251, 247, 240, 0.85); }
.home-hero__credit::before { width: 6px; height: 6px; }

.home-hero__in {
  position: relative;
  width: 100%;
  max-width: 860px;
  padding: 64px 24px 56px;
  text-align: center;
  /* The scrim and photo must not eat clicks; the controls opt back in. */
  pointer-events: none;
}
.home-hero__live,
.home-hero__tabs,
.home-search { pointer-events: auto; }

.home-hero__live {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 7px 16px;
  border-radius: var(--bb-r-pill);
  background: rgba(28, 26, 23, 0.35);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(251, 247, 240, 0.25);
  color: rgba(251, 247, 240, 0.92);
  font: 600 13px/1.4 var(--bb-font);
  font-variant-numeric: tabular-nums;
}
.home-hero__live::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--bb-on-navy-trust);
}

.home-hero__h1 {
  margin: 0 0 14px;
  color: var(--bb-on-navy-ink);
  text-shadow: 0 2px 24px rgba(28, 26, 23, 0.35);
}

.home-hero__sub {
  margin: 0 0 36px;
  font: 400 17px/1.45 var(--bb-font);
  color: rgba(251, 247, 240, 0.90);
  text-shadow: 0 1px 12px rgba(28, 26, 23, 0.35);
}

/* Category tabs. These filter the two grids below in place rather than
   navigating — the reference's are decorative, but a control a traveler can
   press should do something. */
.home-hero__tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 26px;
  margin-bottom: 26px;
  font: 600 14.5px/1 var(--bb-font);
}
.home-hero__tab {
  padding-bottom: 8px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font: inherit;
  font-family: var(--bb-font);
  color: rgba(251, 247, 240, 0.75);
  cursor: pointer;
  white-space: nowrap;
}
.home-hero__tab:hover { color: var(--bb-on-navy-ink); }
.home-hero__tab[aria-pressed="true"] {
  color: var(--bb-on-navy-ink);
  border-bottom-color: var(--bb-on-navy-ink);
}


/* ---------- Search ---------- */

.home-search {
  display: flex;
  align-items: center;
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-pill);
  padding: 8px 8px 8px 26px;
  box-shadow: 0 8px 30px rgba(28, 26, 23, 0.25);  /* a floating card */
  text-align: left;
}

.home-search__icon { display: flex; flex: none; margin-right: 12px; color: var(--bb-primary); }
.home-search__icon svg { width: 18px; height: 18px; }

.home-search #q {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  font: 400 15.5px/1.2 var(--bb-font);
  color: var(--bb-ink);
  padding: 10px 0;
}

.home-search__sep {
  width: 1px;
  height: 28px;
  margin: 0 18px;
  background: var(--bb-hairline);
  flex: none;
}

.home-search__where,
.home-search__when { display: inline-flex; align-items: center; gap: 7px; flex: none; }

.home-search__dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--bb-urgency);
  flex: none;
}

/* Native selects, restyled — a real control beats a span that looks like one. */
.home-search select {
  border: 0;
  outline: none;
  background: transparent;
  font: 600 15px/1.2 var(--bb-font);
  font-family: var(--bb-font);
  color: var(--bb-primary);
  cursor: pointer;
  max-width: 190px;
  appearance: none;
  -webkit-appearance: none;
}
.home-search__when select { font-weight: 400; color: var(--bb-ink-soft); }

.home-search .bb-btn {
  margin-left: 18px;
  flex: none;
  padding: 13px 30px;
  font: 700 15px/1.2 var(--bb-font);
}


/* ---------- Bands ----------
   The reference's vertical rhythm exactly: each band owns its own top and
   bottom padding rather than relying on a shared section spacing. */

.home-tiles-band       { padding-block: 44px 0; }
.home-band--fresh      { padding-block: 56px 8px; }
.home-band--guide      { padding-block: 48px; }
.home-band--evening    { padding-block: 8px 64px; }
.home-band--almanac    { padding-block: 0 48px; }
.home-band--areas      { padding-block: 0 8px; }
.home-band--notes      { padding-block: 48px 64px; }

.home-band .bb-sub { margin: 4px 0 22px; }


/* ---------- Category tiles ---------- */

.home-tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.home-tile { text-align: center; }
.home-tile:hover { text-decoration: none; }

.home-tile__art {
  display: block;
  width: 100%;
  height: 108px;
  margin-bottom: 10px;
  border-radius: var(--bb-r-card);
  object-fit: cover;
  background: var(--bb-tint-blue);
}
.home-tile:hover .home-tile__art { box-shadow: var(--bb-shadow-hover); }

.home-tile__name  { font: 700 14px/1.3 var(--bb-font); color: var(--bb-ink); }
.home-tile__count {
  font: 400 12.5px/1.4 var(--bb-font);
  color: var(--bb-ink-soft);
  font-variant-numeric: tabular-nums;
}


/* ---------- Venue cards ---------- */

.home-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home-card { display: block; }
.home-card:hover { text-decoration: none; }

.home-card__frame {
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-card);
  overflow: hidden;
  transition: box-shadow .18s ease-out;
}
.home-card:hover .home-card__frame { box-shadow: var(--bb-shadow-hover); }

.home-card__art { position: relative; height: 172px; }
.home-card__art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bb-tint-blue);
}

.home-card__flag {
  position: absolute;
  left: 10px; top: 10px;
  max-width: calc(100% - 62px);
  background: var(--bb-page);
  color: var(--bb-ink);
  border-radius: var(--bb-r-pill);
  padding: 5px 12px;
  font: 700 11.5px/1.4 var(--bb-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
}
.home-card__flag--trust { background: var(--bb-trust); color: var(--bb-page); }

.home-card__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px 16px;
}

.home-card__name { font: 700 16px/1.3 var(--bb-font); color: var(--bb-ink); margin: 0; }
.home-card__area { font: 400 12.5px/1.4 var(--bb-font); color: var(--bb-ink-soft); margin: 0; }

.home-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 3px;
}
.home-card__pill {
  background: var(--bb-tint-blue);
  color: var(--bb-primary);
  border-radius: var(--bb-r-pill);
  padding: 4px 11px;
  font: 600 12px/1.4 var(--bb-font);
  white-space: nowrap;
}
.home-card__price {
  font: 400 13.5px/1.4 var(--bb-font);
  color: var(--bb-ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.home-card__price b { color: var(--bb-ink); font-weight: 700; font-size: 15px; }


/* ---------- Field guide ---------- */

.home-guide {
  display: grid;
  grid-template-columns: 460px 1fr;
  background: var(--bb-tint-blue);
  border-radius: 18px;
  overflow: hidden;
}

.home-guide__art { min-height: 300px; }
.home-guide__art img { display: block; width: 100%; height: 100%; object-fit: cover; }

.home-guide__text {
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
}
.home-guide__eyebrow { font: 600 13px/1.4 var(--bb-font); color: var(--bb-primary); }
.home-guide__h {
  margin: 0;
  font: 800 32px/1.15 var(--bb-font);
  letter-spacing: -1px;
  color: var(--bb-primary);
}
.home-guide__p {
  margin: 0;
  max-width: 46ch;
  font: 400 15.5px/1.6 var(--bb-font);
  color: var(--bb-ink);
}
.home-guide__cta { margin-top: 8px; padding: 12px 26px; font-size: 14.5px; }
.home-guide__cta:hover { text-decoration: none; }


/* ---------- Almanac ---------- */

.home-almanac {
  display: grid;
  grid-template-columns: 210px repeat(4, 1fr);
  gap: 26px;
  align-items: center;
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-feature);
  padding: 24px 30px;
}

.home-almanac__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font: 800 16px/1.3 var(--bb-font);
}
.home-almanac__title::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--bb-trust);
  flex: none;
}
.home-almanac__sub { margin-top: 5px; font: 400 12.5px/1.4 var(--bb-font); color: var(--bb-ink-soft); }

.home-almanac__cell {
  display: flex;
  align-items: center;
  gap: 13px;
  border-left: 1px solid var(--bb-hairline);
  padding-left: 24px;
}
.home-almanac__label { margin-bottom: 3px; font: 400 12px/1.3 var(--bb-font); color: var(--bb-ink-soft); }
.home-almanac__value {
  font: 600 14.5px/1.3 var(--bb-font);
  font-variant-numeric: tabular-nums;
}

/* Icon discs: pure geometry, per the doc. No icon font, no emoji. */
.home-almanac__glyph { width: 14px; height: 14px; border-radius: 50%; display: inline-block; }
.home-almanac__glyph--rust { background: var(--bb-urgency); box-shadow: 0 0 0 3px rgba(154, 74, 28, 0.25); }
.home-almanac__glyph--jade { border: 3px solid var(--bb-trust); box-sizing: border-box; }
.home-almanac__glyph--navy { width: 16px; height: 8px; border-radius: 16px 16px 0 0; background: var(--bb-primary); border-bottom: 2px solid var(--bb-urgency); border-radius: 16px 16px 0 0; }
.home-almanac__glyph--page { background: var(--bb-page); box-shadow: 0 0 6px rgba(251, 247, 240, 0.8); }


/* ---------- Neighbourhoods ---------- */

.home-areas {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.home-area {
  position: relative;
  height: 240px;
  border-radius: var(--bb-r-feature);
  overflow: hidden;
  display: block;
}
.home-area:hover { text-decoration: none; }
.home-area img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s ease-out;
}
.home-area:hover img { transform: scale(1.03); }

.home-area__label {
  position: absolute;
  left: 16px;
  bottom: 14px;
  background: var(--bb-page);
  border-radius: 10px;
  padding: 8px 14px;
  pointer-events: none;
}
.home-area__name { font: 800 15px/1.3 var(--bb-font); color: var(--bb-ink); }
.home-area__meta {
  font: 400 12px/1.4 var(--bb-font);
  color: var(--bb-ink-soft);
  font-variant-numeric: tabular-nums;
}


/* ---------- Good to know ---------- */

.home-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.home-note {
  background: var(--bb-surface);
  border: 1px solid var(--bb-hairline);
  border-radius: var(--bb-r-card);
  padding: 20px 22px;
}
.home-note__num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  margin-bottom: 12px;
  border-radius: 50%;
  background: var(--bb-tint-blue);
  color: var(--bb-primary);
  font: 700 13px/1 var(--bb-font);
}
.home-note__p { margin: 0 0 14px; font: 400 14.5px/1.6 var(--bb-font); }
.home-note__by { margin: 0; font: 700 13px/1.3 var(--bb-font); color: var(--bb-ink-soft); }


/* ---------- Footer ---------- */

.home-foot {
  border-top: 1px solid var(--bb-hairline);
  margin-top: 8px;
}
.home-foot__in {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-block: 36px;
  font: 400 13.5px/1.4 var(--bb-font);
  color: var(--bb-ink-soft);
}
.home-foot__mark {
  font: 800 16px/1 var(--bb-font);
  color: var(--bb-primary);
}
.home-foot__mark::before { content: "bask"; }
.home-foot__mark::after { content: "."; color: var(--bb-trust); }

/* bookbask: the lockup art rather than the word plus a dot. It is decorative
   here — the footer links carry the page's meaning — so a background image is
   enough and the two pseudo-elements that spell "bask." are dropped. */
[data-brand="bookbask"] .home-foot__mark {
  display: inline-block;
  width: 126px;
  height: 16px;
  background: url("../assets/brand/bookbask-lockup.svg") left center / contain no-repeat;
}
[data-brand="bookbask"] .home-foot__mark::before,
[data-brand="bookbask"] .home-foot__mark::after { content: none; }

.home-foot__links { display: flex; gap: 28px; }
.home-foot__links a { color: var(--bb-ink-soft); }
.home-foot__tag { margin-left: auto; }


/* ---------- Responsive ----------
   The reference is a fixed 1140px prototype with no breakpoints at all. These
   are additions, not ports: below 1140 the six- and four-up grids have to give. */

@media (max-width: 1180px) {
  .home-nav__in { gap: 22px; }
  .home-nav__end { gap: 14px; }
  .home-guide { grid-template-columns: 360px 1fr; }
  .home-guide__text { padding: 40px 40px; }
}

@media (max-width: 1040px) {
  .home-tiles { grid-template-columns: repeat(3, 1fr); }
  .home-cards { grid-template-columns: repeat(2, 1fr); }
  .home-areas { grid-template-columns: repeat(2, 1fr); }
  .home-almanac { grid-template-columns: 1fr 1fr; row-gap: 20px; }
  .home-almanac__cell:nth-child(2) { border-left: 0; padding-left: 0; }
  .home-notes { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .home-hero { min-height: 540px; }
  .home-guide { grid-template-columns: 1fr; }
  .home-guide__art { min-height: 220px; }
  .home-guide__text { padding: 32px 28px; }
  .home-guide__h { font-size: 27px; }

  .home-search {
    flex-wrap: wrap;
    border-radius: var(--bb-r-feature);
    padding: 14px;
    gap: 10px;
  }
  .home-search #q { flex: 1 0 100%; padding: 6px 0; }
  .home-search__sep { display: none; }
  .home-search__icon { display: none; }
  .home-search .bb-btn { margin-left: auto; }

  .home-nav__end > a[href]:not(.bb-btn) { display: none; }
}

@media (max-width: 620px) {
  /* The brand, both buttons and the language control cannot share one row at
     this width. "Sign in" is the one a traveler needs; the owner path stays
     reachable from "For venues" in the footer. */
  .home-nav__end { gap: 12px; }
  .home-nav__end .bb-btn--secondary { display: none; }

  /* Mark instead of the full lockup — see the note beside .home-brand__mark.
     This is what keeps the language switcher and "Sign in" on the row. */
  .home-brand__lockup { display: none; }
  .home-brand__mark { display: block; }

  .home-tiles { grid-template-columns: repeat(2, 1fr); }
  .home-cards { grid-template-columns: 1fr; }
  .home-areas { grid-template-columns: 1fr; }
  .home-almanac { grid-template-columns: 1fr; }
  .home-almanac__cell { border-left: 0; padding-left: 0; }
  .home-hero__in { padding: 48px 20px 40px; }
  .home-hero__tabs { gap: 18px; font-size: 13.5px; }
  .home-foot__in { flex-wrap: wrap; gap: 16px; }
  .home-foot__tag { margin-left: 0; flex: 1 0 100%; }
}
