/* The Sleep Sounds page: the app's own colours and typeface inside the site's frame.
   Flat grounds only; no Sloth and no railway words inside the panel. */

@font-face {
  font-family: Figtree;
  src: url("../../_fonts/figtree.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

.brand--text { padding-block: 10px; }
.app--page {
  --pad: 16px;
  display: block;
  margin-inline: -16px;
  padding: 28px var(--pad) 40px;
  font: 400 17px/26px Figtree, system-ui, sans-serif;
}
.app--page h1 { margin-top: 16px; font: 700 32px/36px Figtree, system-ui, sans-serif; }
.app--page h2 { margin-top: 44px; font: 700 22px/28px Figtree, system-ui, sans-serif; }
.app--page .first-h2 { margin-top: 28px; }
.app-top__icon { width: 64px; height: 64px; border-radius: 14px; }
.app-top__what { margin-top: 8px; font-weight: 600; }
.app-top__where { color: var(--app-ink-2); }

.state { margin-top: 24px; padding: 16px 16px 6px; background: var(--app-deep); border-radius: 12px; }
.state__status { font-weight: 600; }
.applink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; }
.applink:hover, .applink:active { text-decoration-thickness: 4px; }
.state--live { display: flex; flex-wrap: wrap; padding: 6px; }
.badge { display: block; padding: 10px; text-decoration: none; }
.badge__art {
  display: flex; align-items: center; justify-content: center; width: 120px; height: 40px;
  background: #000000; color: var(--app-ink); border: 1px solid #A6A6A6; border-radius: 6px;
  font: 600 14px/1 Figtree, system-ui, sans-serif;
}
.badge__art--play { width: 135px; }
.app-blurb { margin-top: 28px; }

.gallery {
  display: flex; gap: 12px; margin: 14px calc(var(--pad) * -1) 0; padding: 4px var(--pad) 12px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad);
}
.gallery .shot { flex: none; margin: 0; scroll-snap-align: start; }
.gallery:focus-visible { outline-offset: -3px; }

.does { margin-top: 4px; }
.does li { position: relative; margin-top: 12px; padding-left: 22px; break-inside: avoid; }
.does li::before {
  content: ""; position: absolute; left: 2px; top: 9px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--app-accent);
}
.app-not { margin-top: 12px; }
.facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 20px; margin-top: 20px; }
.facts dt, .facts dd { padding-block: 10px; border-top: 1px solid var(--app-edge); }
.facts dt { color: var(--app-ink-2); }
.facts dd { font-weight: 600; }

.mark {
  display: inline-block; margin-left: 6px; padding: 2px 8px; vertical-align: 3px;
  border: 1.5px dashed var(--app-edge); border-radius: 4px;
  font: 600 14px/20px Figtree, system-ui, sans-serif; color: var(--app-ink-2);
}
.samples { margin-top: 12px; }
.samples li { display: flex; align-items: center; gap: 14px; padding-block: 10px; border-top: 1px solid var(--app-edge); }
.samples button {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  background: none; border: 1.5px solid var(--app-edge); border-radius: 50%; color: var(--app-ink-2);
}
.samples svg { width: 14px; height: 14px; fill: currentColor; }
.samples strong { display: block; font-weight: 600; }
.samples span { display: block; font-size: 14px; line-height: 20px; color: var(--app-ink-2); }

.app-small { margin-top: 44px; padding-top: 20px; border-top: 1px solid var(--app-edge); font-size: 14px; line-height: 22px; color: var(--app-ink-2); }
.app-links { display: flex; gap: 24px; margin-top: 4px; }

@media (min-width: 600px) {
  .app--page { --pad: 32px; margin-inline: 0; padding: 36px var(--pad) 48px; }
}
@media (min-width: 700px) {
  .narrow { max-width: 672px; }
}

/* From 1024 px the page is a page, not a phone column. */
@media (min-width: 1024px) {
  .narrow { max-width: 1264px; }
  .app--page { --pad: 48px; display: block; padding: 48px var(--pad) 56px; font-size: 18px; line-height: 28px; }
  .app-top { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); column-gap: 48px; align-items: end; }
  .app-top .state { margin-top: 0; }
  .app-top__icon { width: 88px; height: 88px; border-radius: 20px; }
  .app--page h1 { margin-top: 20px; font-size: 56px; line-height: 60px; }
  .app--page h2 { margin-top: 64px; font-size: 28px; line-height: 34px; }
  .app--page .first-h2 { margin-top: 56px; }
  .app-top__what, .app-top__where { font-size: 20px; line-height: 30px; }
  .gallery {
    display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px;
    margin: 20px 0 0; padding: 0; overflow: visible; scroll-snap-type: none;
  }
  .gallery .shot { width: auto; }
  .app-blurb { margin-top: 56px; max-width: 30em; font-size: 24px; line-height: 34px; }
  .does { columns: 2; column-gap: 48px; }
  .not { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: 48px; align-items: start; }
  .not .facts { margin-top: 12px; }
  .samples { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 24px; }
  .app-small { font-size: 16px; line-height: 24px; }
}
