/* The example pages (site/examples/, made by tools/site-pages.mjs), on top
   of pages.css: the same room, with the decks bringing the colour. */

.crumbs { padding-top: clamp(2rem, 5vw, 3rem); font-size: .875rem; color: var(--faint); }
.crumbs a { color: var(--quiet); text-decoration: none; }
.crumbs a:hover { color: var(--paper); }
.crumbs + .hero { padding-top: clamp(1.5rem, 4vw, 2.5rem); }
.ex-hero h1 { max-width: 20ch; font-size: clamp(2.5rem, 6vw, 4.75rem); }
.ex-hero .eyebrow { margin-bottom: .75rem; }

/* What was typed: the brief, set like the prompt card on the home page. */
.brief { margin-top: 2rem; max-width: 46rem; padding: 1.1rem 1.25rem 1.2rem; border-radius: 16px; background: var(--raise); box-shadow: 0 0 0 1px var(--line), 0 18px 40px -28px var(--shade); }
.brief figcaption { font-size: .8125rem; font-weight: 500; color: var(--faint); margin-bottom: .4rem; }
.brief blockquote p { font-size: clamp(1rem, 1.3vw, 1.125rem); line-height: 1.55; text-wrap: pretty; }

/* The deck: its cover, then the real player once you press play. */
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; box-shadow: 0 50px 100px -50px rgb(20 18 16 / .55), 0 0 0 1px var(--line); animation: rise .9s .15s var(--out) both; }
.stage.tall { aspect-ratio: 16 / 10; }
.stage > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .5s; }
.stage.tall > img { object-fit: contain; }
.stage .frame { position: absolute; border: 0; opacity: 0; transition: opacity .5s; }
.stage.playing .frame { opacity: 1; }
.stage.playing > img, .stage.playing .play { opacity: 0; pointer-events: none; }
.play { position: absolute; left: 50%; bottom: clamp(1rem, 3vw, 1.75rem); transform: translateX(-50%); display: inline-flex; align-items: center; gap: .6rem; height: 3rem; padding: 0 1.4rem 0 .5rem; border: 0; border-radius: 999px; cursor: pointer; background: rgb(255 255 255 / .94); color: var(--paper); font-weight: 500; box-shadow: 0 16px 40px -16px rgb(0 0 0 / .6); transition: transform .3s var(--out), opacity .3s; }
.play span { display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; background: var(--coral); color: #fff; }
.play:hover { transform: translateX(-50%) scale(1.03); }
.play:disabled { opacity: .7; cursor: progress; }
.shots { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; background: var(--panel); box-shadow: 0 0 0 1px var(--line); }
.stage.tall + .shots img { object-fit: contain; }
.note { margin-top: 1rem; font-size: .875rem; color: var(--faint); max-width: 48rem; }

/* The look, then slide by slide. */
.ex-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3rem; padding-top: clamp(3.5rem, 8vw, 5.5rem); }
@media (min-width: 62rem) { .ex-body { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: clamp(3rem, 6vw, 5.5rem); } .look { position: sticky; top: 6rem; align-self: start; } }
.ex-body h2, .make h2, .more h2, .group h2 { font: 600 clamp(1.75rem, 3vw, 2.25rem)/1.05 var(--sans); letter-spacing: -.045em; }
.look-name { margin-top: 1.25rem; font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; }
.look > p { color: var(--quiet); margin-top: .5rem; text-wrap: pretty; }
.look dl { margin-top: 1.5rem; display: grid; gap: 1rem; font-size: .9375rem; }
.look dt { font-size: .8125rem; font-weight: 500; color: var(--faint); }
.look dd { color: var(--quiet); margin-top: .15rem; text-wrap: pretty; }
.swatches { display: flex; flex-wrap: wrap; gap: .4rem .9rem; }
.swatches span { display: inline-flex; align-items: center; gap: .4rem; font-size: .875rem; }
.swatches i { width: .9rem; height: .9rem; border-radius: 4px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .1); }
.slides .sub { margin-top: .75rem; color: var(--quiet); max-width: 38rem; }
.slides ol { list-style: none; margin-top: 1.75rem; border-top: 1px solid var(--line); }
.sl { padding: 1.4rem 0; border-bottom: 1px solid var(--line); }
.sl-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .35rem .85rem; }
.sl-n { font-size: .875rem; font-weight: 500; color: var(--coral-text); font-variant-numeric: tabular-nums; min-width: 1.4em; }
.sl h3 { font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; }
.sl-t { font-size: .8125rem; color: var(--faint); margin-left: auto; }
.sl p { margin: .5rem 0 0 2.25em; color: var(--quiet); text-wrap: pretty; }
mark { background: rgb(255 90 31 / .14); color: var(--paper); border-radius: 4px; padding: 0 .2em; }

/* Make one, and more examples. */
.make { margin-top: clamp(4.5rem, 10vw, 7rem); padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px; background: #161514; color: #f3f1ec; display: grid; gap: 1rem; justify-items: start; }
.wrap.make { max-width: calc(75rem - 2 * var(--gutter)); margin-left: auto; margin-right: auto; }
@media (max-width: 80rem) { .wrap.make { margin-left: var(--gutter); margin-right: var(--gutter); } }
.make p { color: rgb(243 241 236 / .72); max-width: 36rem; }
.make .btn { width: auto; height: 3rem; padding: 0 1.5rem; margin-top: .5rem; }
.more { margin-top: clamp(4rem, 9vw, 6rem); padding-bottom: clamp(4rem, 9vw, 6rem); }
.more-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.more-head a { font-size: .9375rem; color: var(--quiet); text-underline-offset: .22em; text-decoration-color: var(--line-2); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 1.75rem 1.25rem; }
.card { display: block; text-decoration: none; color: inherit; }
.card .shot { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; box-shadow: 0 0 0 1px var(--line); transition: transform .5s var(--out), box-shadow .3s; }
.card .shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card.tall .shot img { object-fit: contain; }
.card:hover .shot { transform: translateY(-3px); box-shadow: 0 0 0 1px var(--line), 0 24px 40px -24px var(--shade); }
.card-k { display: block; margin-top: .85rem; font-size: .8125rem; color: var(--coral-text); font-weight: 500; }
.card-t { margin-top: .2rem; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
.card-w { display: block; margin-top: .15rem; font-size: .9375rem; color: var(--quiet); }
.groups { display: grid; gap: clamp(3rem, 7vw, 4.5rem); }
.group h2 { margin-bottom: 1.25rem; }
.groups + .make { margin-bottom: clamp(4rem, 9vw, 6rem); }
