/* cueslides.com/latest: where a bio link lands. The decks are the page: on a phone each one runs from edge to edge, with
   nothing on it and only its name under it. The list is written in by the Worker (worker/links.js). */

/* A phone: the words, then the decks, then the invitation. .side only groups the words for a laptop. */
.page{display:flex;flex-direction:column}
.side{display:contents}
.bar{order:0}.intro{order:1}main{order:2}.own{order:3}

.bar{display:flex;align-items:center;justify-content:space-between;padding:14px var(--gutter)}
.intro{padding:14px var(--gutter) 22px}
.intro h1{margin:0;font-size:clamp(28px,7.4vw,40px);line-height:1.08;font-weight:600;letter-spacing:-.03em}
.intro p{margin:10px 0 0;max-width:34ch;color:var(--ink2);font-size:17px}

.decks{list-style:none;margin:0;padding:0;display:grid;gap:30px}
.deck a{display:block;text-decoration:none;color:inherit}
.pic{position:relative;display:block;background:var(--wash);overflow:hidden}
.pic img{display:block;width:100%;height:100%;object-fit:cover}
/* The play mark sits beside the name, never on the slide. */
.line{display:flex;align-items:center;gap:12px;padding:12px var(--gutter) 0}
.play{flex:none;width:34px;height:34px;border-radius:50%;
  background:var(--coral) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23fff' d='M8.5 5.6v12.8a.6.6 0 0 0 .9.5l10.2-6.4a.6.6 0 0 0 0-1L9.4 5.1a.6.6 0 0 0-.9.5Z'/%3E%3C/svg%3E") 55% 50%/17px no-repeat}
.name{flex:1;min-width:0;font-size:19px;line-height:1.25;font-weight:560;letter-spacing:-.015em}
.line time{flex:none;color:var(--mute);font-size:14px}
.deck.tall .pic{width:68%;margin-inline:var(--gutter);border-radius:var(--r-m)}
.deck a:focus-visible{outline-offset:-2px}
.deck a:focus-visible .name{text-decoration:underline;text-underline-offset:3px}

.none{margin:0;padding:8px var(--gutter) 40px;max-width:44ch;color:var(--ink2)}
.own{padding:48px var(--gutter) calc(44px + env(safe-area-inset-bottom))}
.own h2{margin:0;font-size:26px;line-height:1.15;font-weight:600;letter-spacing:-.025em}
.own p{margin:8px 0 18px;color:var(--ink2);max-width:34ch}

@media (hover:hover){
  .pic img{transition:transform var(--med) var(--out)}
  .deck a:hover .pic img{transform:scale(1.015)}
  .deck a:hover .name{text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
}

/* A laptop: the words and the invitation stay still on the left and the decks go past beside them. The newest takes
   the whole width. Every deck gets the same wide frame, so a tall one sits in the middle of it instead of leaving
   holes in the grid. */
@media (min-width:900px){
  .page{display:grid;grid-template-columns:minmax(260px,330px) minmax(0,1fr);gap:0 clamp(32px,4vw,64px);max-width:calc(var(--max) + 2*var(--gutter));margin-inline:auto;padding:0 var(--gutter) 72px}
  .side{display:block;position:sticky;top:24px;align-self:start;padding-top:18px}
  .bar{grid-column:1/-1;padding:18px 0}
  .intro,.own{padding:0}
  .own{margin-top:40px}
  .intro h1{font-size:40px}
  .decks{grid-template-columns:repeat(2,minmax(0,1fr));gap:44px 24px;padding-top:18px}
  .deck:first-child{grid-column:1/-1}
  .pic{border-radius:var(--r-m);aspect-ratio:16/9!important}
  .line{padding:12px 2px 0}
  .deck:first-child .name{font-size:24px}
  .deck.tall .pic{width:auto;margin-inline:0;border-radius:var(--r-m)}
  .deck.tall .pic img{object-fit:contain;padding:14px 0}
  .none{padding:18px 0 0}
}

@media (prefers-reduced-motion:reduce){
  .pic img{transition:none!important}
  .deck a:hover .pic img{transform:none}
}
