/* The sleep story pages (/sleep-stories/ and one per story), on top of doc.css: a breadcrumb, the
   first-minute sample in the hero, the story's opening set for reading, and the story cards. */

.crumbs { display: flex; gap: .55rem; align-items: center; margin: 0 0 1.1rem; font: 500 .72rem/1.2 var(--body); letter-spacing: .2em; text-transform: uppercase; }
.crumbs a { color: var(--lav); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span { color: var(--fine); }

.s-hero h1 { max-width: 18ch; }
.s-hero h1 em { display: block; margin-top: .35em; font-size: .42em; letter-spacing: -.01em; color: var(--lav); }
.s-listen { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.6rem; padding: .9rem 1.1rem; max-width: 40rem; border-radius: 18px; border: 1px solid var(--hair); background: rgba(8, 11, 21, .55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.s-listen p { margin: 0; font-size: .9rem; color: var(--soft); }
.s-listen p span { display: block; font-size: .8rem; color: var(--fine); }
.s-listen audio { flex: 1 1 16rem; min-width: 0; height: 40px; }

.doc .s-people { list-style: none; padding: 0; }
.doc .s-people li { padding: .2rem 0 .2rem 1rem; border-left: 2px solid var(--hair); }
.doc .s-people strong { display: block; }
.doc .s-parts { list-style: none; padding: 0; border-top: 1px solid var(--hair); }
.doc .s-parts li { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; margin: 0; padding: .75rem 0; border-bottom: 1px solid var(--hair); color: var(--text); }
.doc .s-parts .t { font-size: .85rem; color: var(--fine); font-variant-numeric: tabular-nums; }
.doc .table th[scope="row"] { width: 8rem; background: none; }

/* the opening, as it is read: larger, warmer, and fading out where the page stops */
.doc .s-note { font-size: .88rem; color: var(--fine); }
.doc .s-text { position: relative; padding-bottom: 2rem; }
.doc .s-text p { font: 300 clamp(1.08rem, 1.4vw, 1.2rem)/1.85 var(--display); letter-spacing: -.005em; color: var(--cream); margin-bottom: 1.3rem; }
.doc .s-text p:first-child::first-letter { float: left; font: 200 3.4em/.85 var(--display); margin: .08em .1em 0 0; color: var(--lamp); }
.doc .s-text::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 9rem; pointer-events: none; background: linear-gradient(transparent, var(--night)); }
.doc .s-cta { border-color: rgba(184, 175, 240, .24); background: linear-gradient(180deg, rgba(184, 175, 240, .09), rgba(184, 175, 240, .02)); }

/* story cards: the hub's grid, and "More sleep stories" under each story */
.s-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 15rem), 1fr)); gap: 1.6rem 1.2rem; }
.s-grid-hub { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: 2.2rem 1.6rem; }
.s-hub { padding-top: clamp(2rem, 4vw, 3rem); }
.doc .s-grid li { margin: 0; padding: 0; }
.s-card a { display: block; text-decoration: none; color: var(--text); }
.s-art { position: relative; display: block; aspect-ratio: 700 / 394; overflow: hidden; border-radius: 16px; border: 1px solid var(--hair); background: var(--ink); }
.s-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease), filter 1.2s var(--ease); filter: brightness(.9); }
.s-card a:hover .s-art img, .s-card a:focus-visible .s-art img { transform: scale(1.04); filter: none; }
.s-art .chip { position: absolute; top: .7rem; left: .7rem; padding: .3rem .6rem; border-radius: 999px; background: var(--cream); color: #16182A; font: 600 .68rem/1 var(--body); letter-spacing: .06em; text-transform: uppercase; }
.s-title { display: block; margin-top: .9rem; font: 400 1.12rem/1.3 var(--display); letter-spacing: -.01em; }
.s-meta { display: block; margin-top: .25rem; font-size: .8rem; color: var(--fine); }
.s-card p { margin: .55rem 0 0; font-size: .92rem; line-height: 1.6; color: var(--muted); }
.doc .s-card p { font-size: .88rem; color: var(--muted); }
.doc .s-card a { color: var(--text); }
.doc .s-card a:hover { color: var(--text); }

@media (max-width: 640px) {
  .doc .s-parts li { grid-template-columns: 5.2rem minmax(0, 1fr); }
  .doc .table th[scope="row"] { width: 5.6rem; }
}
@media print {
  .s-listen, .s-grid, .s-text::after { display: none !important; }
  .doc .s-text p { color: #000; }
}

/* The App Store badge in the "listen tonight" boxes: Apple's own artwork, unaltered. */
.store-badge { flex: none; display: inline-block; line-height: 0; border-radius: 10px; transition: transform .3s; }
.store-badge img { width: 150px; height: auto; }
.store-badge:hover { transform: translateY(-1px); }
.store-badge:focus-visible { outline: 2px solid var(--cream); outline-offset: 4px; }
.foot-tm { flex-basis: 100%; margin: 0; font-size: .72rem; color: var(--fine, #8A8FAC); }
