/* The home page (templates/home.html): one headline over two doors of the
   same shape, a song shown whole, a jam near the visitor, and the app.
   Colors and type are the site's own (colors.css, site.css, detail-pages.css). */
.home-page {
  --home-ink: var(--detail-ink, #24322f);
  --home-text: #3f3a33;
  --home-muted: #776f60;
  --home-rule: #e3dbcb;
  --home-wash: #f7f3ea;
  --home-rust: var(--detail-accent, #b66d25);
  --home-teal: var(--color-forest-main, #15666b);
  --home-teal-deep: var(--color-forest-deep, #0e4d51);
  --home-radius: 6px;
  background: #fff;
  color: var(--home-text);
}

.home-wrap { max-width: 1200px; margin: 0 auto; padding-inline: 24px; }
.home-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.home-page h1, .home-page h2, .home-page h3 { color: var(--home-ink); margin: 0; text-wrap: balance; }
.home-page p { margin: 0; }
.home-link { color: var(--home-teal); font-weight: 650; font-size: .92rem; text-decoration: none; white-space: nowrap; }
.home-link:hover { text-decoration: underline; }
.home-h4 { margin: 0 0 8px !important; color: var(--home-ink); font-family: var(--font-sans) !important; font-size: .98rem; font-weight: 700; }
.home-row-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.35; }
.home-row-text b { color: var(--home-ink); font-weight: 650; }
.home-row-text > span { color: var(--home-muted); font-size: .86rem; }

/* ---- one headline, two doors ---- */
.home-hero { background: var(--home-wash); border-bottom: 1px solid var(--home-rule); }
.home-hero-inner { display: flex; flex-direction: column; gap: 18px; padding-block: 28px 32px; }
.home-h1 { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: 28px; font-size: 1.95rem; line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.home-h1 span { display: block; }
.home-doors { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
.home-door { display: flex; flex-direction: column; gap: 12px; min-width: 0; padding: 16px; background: #fff; border: 1px solid var(--home-rule); border-radius: 8px; }
.home-count { color: var(--home-muted); font-size: .88rem; }
.home-door-h { font-size: 1.02rem !important; font-weight: 700; }
.home-near-me { align-self: flex-start; margin-top: -4px; padding: 2px 0; border: 0; background: none; color: var(--home-teal);
  font: inherit; font-size: .9rem; font-weight: 650; cursor: pointer; }
.home-near-me:hover { text-decoration: underline; }
.home-near-me:disabled { color: var(--home-muted); cursor: default; text-decoration: none; }
.home-field { display: flex; align-items: center; gap: 8px; min-width: 0; height: 46px; padding: 0 6px 0 12px; border: 1px solid #cfc5b2;
  border-radius: var(--home-radius); background: #fff; color: var(--home-ink); }
.home-field:focus-within { border-color: var(--home-teal); box-shadow: 0 0 0 3px rgba(21, 102, 107, .15); }
.home-field svg { width: 18px; height: 18px; flex: none; color: var(--home-teal); }
.home-field input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: var(--home-ink); font: inherit; font-size: 1rem; font-weight: 600; outline: none; }
.home-field input::placeholder { color: var(--home-muted); font-weight: 500; }
.home-field-act { flex: none; height: 34px; padding: 0 10px; border: 0; border-radius: 5px; background: transparent; color: var(--home-teal); font: inherit; font-size: .9rem; font-weight: 700; cursor: pointer; }
.home-field-act:hover { background: var(--home-wash); }
.home-field-act:focus-visible, .home-video:focus-visible, .home-row:focus-visible { outline: 2px solid var(--home-teal); outline-offset: 2px; }
/* The song search keeps the header search's results list (header-search.js). */
/* (On phones the header search takes its own row last; this one stays where it is.) */
.home-search.songs-new-header-search { position: relative; order: 0; max-width: none; margin: 0; flex: none; }
.home-search.songs-new-header-search .songs-new-search-input,
.home-search.songs-new-header-search .songs-new-search-input:focus { flex: 1; min-width: 0; height: 100%; padding: 0; border: 0; border-radius: 0;
  background: transparent; box-shadow: none; color: var(--home-ink); font: inherit; font-size: 1rem; font-weight: 600; }
.home-search.songs-new-header-search .songs-new-search-input::placeholder { color: var(--home-muted); font-weight: 500; }
.home-search .songs-new-search-results { top: calc(100% + 4px); left: 0; right: 0; }
.home-rows { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.home-row { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--home-rule); color: inherit; text-decoration: none; }
.home-rows li:first-child .home-row { padding-top: 0; }
.home-row:hover b { color: var(--home-teal); }
.home-row .key-chip { margin-right: 2px; vertical-align: 1px; }
.home-thumb { width: 50px; height: 54px; border-radius: var(--home-radius); object-fit: cover; background: var(--home-wash); }
.home-live { color: #c0392b; font-weight: 700; }

/* ---- a song and a jam, each shown whole ---- */
.home-show { border-bottom: 1px solid var(--home-rule); }
.home-show-inner { display: flex; flex-direction: column; gap: 22px; padding-block: 32px; }
.home-show-head { display: flex; flex-direction: column; gap: 6px; }
.home-show-title { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; }
.home-show-title h2 { font-size: 1.75rem; line-height: 1.15; font-weight: 700; }
.home-show-title h2 a { color: inherit; text-decoration: none; }
.home-show-title h2 a:hover { color: var(--home-teal); }
.home-meta { color: var(--home-muted); font-size: .92rem; }
.home-show-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 26px; }
.home-show-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

.home-videos { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.home-tyler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.home-videos li { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.home-videos b { color: var(--home-ink); font-size: .9rem; font-weight: 650; line-height: 1.3; overflow-wrap: anywhere; }
.home-by { color: var(--home-muted); font-size: .8rem; }
.home-video { position: relative; display: block; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; border-radius: var(--home-radius); background: #1d2f2c; }
.home-video img { width: 100%; height: 100%; object-fit: cover; display: block; }
iframe.home-video { width: 100%; height: auto; border: 0; }
.home-play { position: absolute; inset: 0; margin: auto; width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .55); }
.home-play::after { content: ""; position: absolute; left: 18px; top: 14px; border-left: 15px solid #fff; border-top: 9px solid transparent; border-bottom: 9px solid transparent; }
.home-video:hover .home-play { background: var(--home-teal); }
.home-video-tag { position: absolute; left: 8px; top: 8px; padding: 2px 7px; border-radius: 3px; background: rgba(0, 0, 0, .55); color: #fff; font-size: .78rem; font-weight: 700; }

.home-list { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.home-list a { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--home-rule); color: inherit; text-decoration: none; }
.home-list li:first-child a { padding-top: 0; }
.home-list a:hover b { color: var(--home-teal); }
.home-also { margin-top: 10px !important; color: var(--home-muted); font-size: .86rem; line-height: 1.5; }
.home-also a { color: var(--home-teal); font-weight: 600; text-decoration: none; }

.home-browse { color: var(--home-muted); font-size: .88rem; line-height: 1.9; }
.home-browse b { margin-right: 8px; color: var(--home-ink); }
.home-browse a { color: var(--home-teal); font-weight: 600; text-decoration: none; }
.home-browse a:not(:last-child)::after, .home-know a:not(:last-child)::after { content: "·"; margin: 0 8px; color: var(--home-muted); font-weight: 400; }

/* A jam's page in miniature. */
.home-jcard { min-width: 0; overflow: hidden; border: 1px solid var(--home-rule); border-radius: 8px; background: #fff; }
.home-jcard-head { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 12px; align-items: center; padding: 14px; border-bottom: 1px solid var(--home-rule); color: inherit; text-decoration: none; }
.home-jcard-head img { width: 64px; height: 64px; border-radius: var(--home-radius); object-fit: cover; background: var(--home-wash); }
.home-jcard-head.no-photo { grid-template-columns: minmax(0, 1fr); }
.home-jcard-head:hover b { color: var(--home-teal); }
.home-jcard-body { display: flex; flex-direction: column; gap: 16px; padding: 14px; }
.home-upcoming { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.home-cal { display: grid; grid-template-columns: 50px auto; gap: 10px; align-items: center; color: var(--home-ink); font-size: .88rem; font-weight: 600; }
.home-know { display: flex; flex-wrap: wrap; font-size: .9rem; line-height: 1.8; }
.home-know a { color: var(--home-teal); font-weight: 600; text-decoration: none; }
.home-nights { font-size: .9rem; }
.home-nights b { color: var(--home-ink); }
.home-host { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.home-host h3 { font-size: 1.2rem; }
.home-host p { max-width: 46ch; font-size: .95rem; line-height: 1.55; }
.home-host-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.home-btn-line { display: inline-flex; align-items: center; height: 42px; padding: 0 18px; border: 1px solid var(--home-teal); border-radius: var(--home-radius);
  color: var(--home-teal); font-weight: 700; font-size: .92rem; text-decoration: none; }
.home-btn-line:hover { background: var(--home-teal); color: #fff; }

/* ---- the app, asked for once ---- */
.home-app { background: var(--home-teal-deep); color: #e8f1f0; }
.home-app-inner { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; padding-block: 36px; }
.home-app-copy { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.home-app h2 { color: #fff !important; font-size: 1.65rem; }
.home-points { display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; list-style: none; }
.home-points li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; }
.home-points svg { width: 22px; height: 22px; margin-top: 2px; color: #9fd6d6; }
.home-points b { display: block; color: #fff; font-size: 1rem; }
.home-points span { color: #c5dcda; font-size: .93rem; line-height: 1.5; }
.home-get-phone { display: inline-flex; align-items: center; height: 50px; padding: 0 24px; border-radius: var(--home-radius); background: #fff; color: var(--home-teal-deep);
  font-weight: 750; font-size: 1rem; text-decoration: none; }
.home-get-desk { display: none; align-items: center; gap: 18px; }
.home-qr { width: 116px; height: 116px; padding: 8px; border-radius: var(--home-radius); background: #fff; }
.home-get-desk p { color: #d7e7e5; font-size: .92rem; line-height: 1.55; }
.home-get-desk b { display: block; color: #fff; font-size: 1.02rem; }
.home-get-desk a { color: #fff; font-weight: 650; }
.home-free { color: #b8d3d0; font-size: .86rem; }
/* Two of the app's own screens, captured for its store listings
   (grass_app/store_screenshots), in the stores' frame: a dark bezel 3.4% of
   the screen's width, corners 14% of it. */
.home-phones { display: flex; justify-content: center; align-items: flex-start; gap: 16px; }
.home-phone { box-sizing: border-box; width: 150px; max-width: calc(50% - 8px); height: auto; border: 5px solid #1b1b1d; border-radius: 26px;
  background: #1b1b1d; box-shadow: 0 0 0 1px #5a5a5f, 0 18px 36px -12px rgba(0, 0, 0, .55); }
.home-phone + .home-phone { margin-top: 36px; }

@media (max-width: 759px) {
  .home-wrap { padding-inline: 16px; }
}

@media (min-width: 760px) {
  .home-hero-inner { gap: 22px; padding-block: 44px 48px; }
  .home-h1 { grid-template-columns: repeat(2, minmax(0, 1fr)); font-size: 2.5rem; }
  .home-doors { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; }
  .home-door { padding: 20px; }
  .home-show-inner { padding-block: 44px; }
  .home-show-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 44px; }
  .home-app-inner { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; padding-block: 48px; }
}

@media (min-width: 1000px) {
  .home-phone { width: 210px; border-width: 7px; border-radius: 35px; }
  .home-phone + .home-phone { margin-top: 48px; }
}

/* A computer gets the QR code; a phone gets one button for its store. */
@media (min-width: 760px) and (hover: hover) and (pointer: fine) {
  .home-get-phone { display: none; }
  .home-get-desk { display: flex; }
}
