/* Index pages (Big Ideas, Small Ideas, About) and the not-found page. Builds on ui.css.
   Swiss/Metro: content first, a strict grid, flat colour, type and rules instead of banners, boxes and shadows. */
body.home{background:var(--paper)}
body.home.small{font-size:17px;line-height:1.55;color:var(--ink)}   /* the page class, not ui.css's small-print helper */
.home .in.wide{max-width:1400px}
/* the footer stays at the bottom of a short page */
body.home{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}body.home>main{flex:1}

/* ---------- a page: one compact head, then the grid ---------- */
.idx{padding-block:clamp(18px,2.4vw,30px) clamp(28px,3.6vw,44px)}
.idx+.idx{padding-top:0}
/* page head: the title, one line of what this is, the count; a heavy rule under it, then straight into the tiles */
.ph{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:6px clamp(18px,2.4vw,32px);padding-bottom:clamp(12px,1.4vw,16px);margin-bottom:clamp(16px,2vw,24px);border-bottom:3px solid var(--ink)}
.ph h1{font:700 clamp(32px,3.6vw,46px)/1 var(--body);letter-spacing:-.045em;text-wrap:nowrap}
.ph p{font-size:16px;line-height:1.45;color:var(--grey);max-width:68ch;text-wrap:balance}
.ph p a{color:var(--ink)}
.ph .label{color:var(--grey);white-space:nowrap;font-size:var(--micro)}
.sec-head h2{text-wrap:nowrap}

/* ---------- grids ---------- */
/* Both grids share one column gap. Each tile is a subgrid of five rows (picture, meta, title, line, Play it),
   so titles and lines sit on the same baselines across a row even when one of them wraps. */
.tiles.bigs,.tiles.smalls{column-gap:20px;row-gap:0}
.bigs>.tile,.smalls>.tile{display:grid;grid-row:span 5;grid-template-rows:subgrid;row-gap:6px;margin-bottom:clamp(22px,2.4vw,30px)}
.bigs .tb,.smalls .tb{display:contents}
.bigs .meta,.smalls .meta{padding-top:6px}
/* big ideas: four across from 960 px, so every big game is on the first screen; two across on a tablet, one on a phone */
.tiles.bigs{grid-template-columns:repeat(2,minmax(0,1fr))}
/* one column per big game on a wide screen (five now), three across on a laptop */
@media (min-width:960px){.tiles.bigs{grid-template-columns:repeat(3,minmax(0,1fr))}.bt .tb h3{font-size:21px}.bt .tb p{font-size:14.5px}}
@media (min-width:1200px){.tiles.bigs{grid-template-columns:repeat(5,minmax(0,1fr))}.bt .tb h3{font-size:20px}.bt .tb p{font-size:14px}}
.bt .cover .dat{display:none}
/* small ideas: five across (two full rows of ten) from 1000 px, four on a tablet, two on a phone */
.tiles.smalls{grid-template-columns:repeat(4,minmax(0,1fr))}
@media (min-width:1000px){.tiles.smalls{grid-template-columns:repeat(5,minmax(0,1fr))}}
.smalls .cover{aspect-ratio:4/3}
.smalls .tb h3{font-size:18px}
.smalls .tb p{font-size:14px}
.smalls .cover .dat{display:none}
@media (max-width:760px){.tiles.smalls{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:12px}}
@media (max-width:520px){
  .tiles.bigs{grid-template-columns:minmax(0,1fr)}
  .smalls .tok{font-size:48px}.smalls .tok.lg{font-size:72px}
  .smalls .tb h3{font-size:16px}
  .smalls .tb p{font-size:13.5px}
  .smalls .meta span{display:none}
}
/* ---------- About points: three columns under a rule ---------- */
.about{padding-block:0 clamp(32px,4vw,48px)}
.about h2{font:700 clamp(22px,2.2vw,28px)/1.1 var(--body);letter-spacing:-.03em;padding-top:12px;border-top:2px solid var(--ink);margin-bottom:clamp(14px,1.8vw,20px)}
.pts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px clamp(16px,2vw,28px);list-style:none;margin:0;padding:0}
.pts li{display:flex;flex-direction:column;gap:6px;padding-top:12px;border-top:1px solid var(--line)}
.pts .label{color:var(--pink-ink)}
.pts h3{font:700 20px/1.15 var(--body);letter-spacing:-.025em}
.pts p{font-size:15.5px;line-height:1.5;max-width:44em;color:#3a3442}
.foot .row p a{color:inherit;text-decoration:underline;text-underline-offset:3px}
/* About: the page head already carries the rule, so the points heading sits under it without a second one */
.aboutp .idx{padding-bottom:8px}
.aboutp .ph{margin-bottom:0}
.aboutp .about h2{border-top:0;padding-top:12px}
.aboutp .pts li{border-top:0;padding-top:4px}

/* footer on the index pages: the catalogue is the page itself, so no second list of links; sharing is one quiet row */
.home .foot .links{display:none}
/* footer share buttons: flat outlined squares here, like the rest of the page */
.home .foot .share a,.home .foot .share button,.home .foot .share details.more>summary{box-shadow:none;border-radius:0;border-width:1px;border-style:solid;border-color:#5a5266;background:transparent;color:var(--paper);translate:none}
.home :focus-visible{border-radius:0}
.home .foot .share button[data-net="native"],.home .foot .share button[data-net="copy"]{background:var(--yellow);color:var(--ink);border-color:var(--yellow)}
@media (hover:hover){.home .foot .share a:hover,.home .foot .share button:hover,.home .foot .share details.more>summary:hover{translate:none;box-shadow:none;background:var(--paper);color:var(--ink);border-color:var(--paper)}}
.home .foot .share a:active,.home .foot .share button:active{translate:0 1px;box-shadow:none}

@media (max-width:760px){
  .ph{grid-template-columns:minmax(0,1fr) auto}
  .ph p:not(.label){grid-column:1/-1;grid-row:2}
  .ph .label{grid-column:2;grid-row:1}
  @media (max-width:420px){.ph{grid-template-columns:minmax(0,1fr)}.ph .label{grid-column:1;grid-row:3}}
  .ph p{font-size:15px}
  .pts{grid-template-columns:minmax(0,1fr)}
}

/* ---------- not found ---------- */
body.nfp{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column}
.nf{background:var(--paper);flex:1;display:grid;place-items:center;padding-block:64px;text-align:center}
.nf .in{display:flex;flex-direction:column;align-items:center;gap:22px}
.nf .btn{align-self:center}
.nf h1{font-size:clamp(120px,30vw,300px);line-height:.8;letter-spacing:-.07em}
.nf h1 i{font-style:normal;color:var(--pink);display:inline-block}
.nf .lede{max-width:28ch;text-wrap:balance}
