/* Holst Network landing: "affiche" (owner-approved iteration 5 of the refonte-landing mock-ups).
   Every site on one poster of key-art slices, then one wide shot per site, each signed with its real logo.
   Static HTML + CSS, no JavaScript; fonts and images are self-hosted (CSP in _headers). */

/* Self-hosted fonts (SIL Open Font License 1.1, via Fontsource, see assets/fonts/OFL.txt). Latin subset.
   Caveat is cut down to the glyphs of the signature "Irissia & Trakan" only (pyftsubset). */
@font-face { font-family: "Sora"; font-weight: 700; font-display: swap; src: url(assets/fonts/sora-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Sora"; font-weight: 800; font-display: swap; src: url(assets/fonts/sora-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/dm-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 500; font-display: swap; src: url(assets/fonts/dm-sans-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "DM Sans"; font-weight: 700; font-display: swap; src: url(assets/fonts/dm-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Caveat"; font-weight: 700; font-display: swap; src: url(assets/fonts/caveat-signature-700.woff2) format("woff2"); }

:root { --ink: #f3f5fa; --soft: #a9b0bd; --line: rgba(255, 255, 255, .1); }
* { box-sizing: border-box; }
html { background: #000; }
body { margin: 0; color: var(--ink); font: 400 16px/1.55 "DM Sans", sans-serif; background: #000; }
a { color: inherit; }
img { display: block; }
/* text for screen readers and search engines only (the headings show the site logo) */
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }

/* minimal header: only the way to each site */
.top { display: flex; justify-content: flex-end; padding: 16px 48px; }
.top nav { display: flex; gap: 24px; font-size: 14px; color: #9aa1ae; }
.top nav a { text-decoration: none; }
.top nav a:hover { color: #fff; }

.intro { display: grid; grid-template-columns: minmax(0, 820px) 1fr; column-gap: 28px; padding: 26px 48px 40px; }
.intro h1 { margin: 0 0 14px; font: 800 58px/1.02 "Sora", sans-serif; letter-spacing: -.045em; }
.intro p { margin: 0; color: var(--soft); font-size: 17px; line-height: 1.6; }
.intro p b { color: #fff; font-weight: 700; }
.sig { font: 700 44px/1 "Caveat", cursive; color: #fff; transform: rotate(-4deg); justify-self: end; align-self: end; margin: 0; }
.intro .sig { grid-column: 2; grid-row: 1 / 3; }

/* the poster */
.poster { display: flex; gap: 3px; height: 640px; background: #000; }
.slice {
  position: relative; flex: var(--g) 1 0; min-width: 118px; overflow: hidden; text-decoration: none;
  transition: flex-grow .5s cubic-bezier(.2, .7, .2, 1);
}
.slice:hover, .slice:focus-visible { flex-grow: calc(var(--g) * 1.5 + 14); }
.slice:focus-visible { outline: 3px solid #fff; outline-offset: -3px; }
.slice > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); transition: transform .8s ease; }
.slice:hover > img { transform: scale(1.04); }
.slice > img.fig { inset: auto; left: 50%; bottom: 0; width: auto; height: 82%; object-fit: contain; transform: translateX(-50%); }
.slice:hover > img.fig { transform: translateX(-50%) scale(1.03); }
.slice > img.fig.small { height: 30%; bottom: 56%; }
.slice > img.fig.dice { height: auto; width: 70%; bottom: 52%; filter: grayscale(1); opacity: .45; }
.hold { background: #111113; }
.slice::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, .25), transparent 22%, transparent 48%, rgba(0, 0, 0, .88) 100%);
}
.cap { position: absolute; left: 22px; right: 18px; bottom: 24px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.cap small { font-size: 14px; color: #dfe3ea; }
.cap em { font-style: normal; font-size: 13.5px; color: #9aa1ae; }

/* each site signs with its real logo, the image taken from the site's own header */
.logo { display: block; width: min(var(--lw, 220px), 100%); height: auto; filter: drop-shadow(0 2px 12px rgba(0, 0, 0, .55)); }

/* narrow slices: the logo runs up the edge like the spine of a game case */
.narrow .cap { left: 14px; right: 14px; }
.narrow .cap.spined { display: block; right: auto; width: 0; height: var(--sl); }
.logo.spine { position: absolute; left: 0; top: 100%; width: var(--sl); max-width: none; transform-origin: 0 0; transform: rotate(-90deg); }
.hold .cap em { position: absolute; left: 0; bottom: calc(100% + 14px); white-space: nowrap; }

/* wide shots */
.shots { display: flex; flex-direction: column; gap: 3px; margin-top: 56px; }
.shot { position: relative; height: var(--h); overflow: hidden; display: flex; align-items: flex-end; }
.shot .bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos); }
.shot .fig { position: absolute; z-index: 1; bottom: var(--fb, 0); left: var(--fx, 70%); height: var(--fh, 96%); width: auto; transform: translateX(-50%); filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .5)); }
.shot .dice { position: absolute; right: 7%; top: 50%; width: 150px; height: auto; transform: translateY(-50%) rotate(-12deg); filter: grayscale(1); opacity: .35; }
.shot::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .7) 30%, rgba(0, 0, 0, .1) 62%, transparent),
              linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 40%);
}
.shot.right::before { background: linear-gradient(270deg, rgba(0, 0, 0, .9) 0, rgba(0, 0, 0, .7) 30%, rgba(0, 0, 0, .1) 62%, transparent), linear-gradient(0deg, rgba(0, 0, 0, .6), transparent 40%); }
.shot.right { justify-content: flex-end; }
.copy { position: relative; z-index: 3; min-width: 0; max-width: 540px; padding: 0 48px 54px; }
.copy h2 { margin: 0 0 16px; }
.copy .game { margin: 0 0 12px; color: #dfe3ea; font-weight: 500; }
.copy p { margin: 0 0 20px; color: #d3d8e1; font-size: 17px; }
/* the monthly users, said as a sentence under a hairline, never as a badge */
.copy .count { margin: -4px 0 24px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .2); color: #aab1bd; font-size: 15px; }
.copy .count b { color: #fff; font-weight: 700; }
.go { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; font-weight: 500; }
.go a:not(.btn) { color: #fff; text-underline-offset: 5px; text-decoration-color: rgba(255, 255, 255, .4); }
.btn {
  display: inline-block; padding: 13px 22px; border-radius: 99px; text-decoration: none;
  background: var(--c); color: var(--on); font: 700 15px/1 "Sora", sans-serif; letter-spacing: -.01em;
}
.btn:hover { filter: brightness(1.08); }

.trio { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; }
.shot.tall { height: 560px; }
.shot.tall::before { background: linear-gradient(0deg, rgba(0, 0, 0, .95) 0, rgba(0, 0, 0, .8) 46%, rgba(0, 0, 0, .35) 66%, transparent 84%); }
.shot.tall .copy { padding: 0 32px 34px; }
.shot.tall p { font-size: 15.5px; }
.shot.tall .count { font-size: 14px; }

.shot.hold { background: #0d0d0e; align-items: center; height: 200px; }
.shot.hold::before { display: none; }
.copy.row { max-width: none; display: flex; align-items: center; gap: 36px; padding: 0 48px; }
.copy.row h2 { margin: 0; flex: none; }
.copy.row .logo { width: var(--lw); }
.copy.row p { margin: 0; max-width: 64ch; color: #b8bec9; font-size: 16px; }

.foot { display: grid; grid-template-columns: 1fr 1.4fr; gap: 20px 60px; padding: 56px 48px 48px; border-top: 1px solid var(--line); margin-top: 3px; color: var(--soft); font-size: 15px; }
.foot .sig { justify-self: start; transform: rotate(-3deg); margin-bottom: 10px; }
.foot p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 22px; align-content: start; }
.foot nav a { color: #dfe3ea; text-underline-offset: 4px; }
.foot .legal { grid-column: 1 / -1; font-size: 13px; line-height: 1.7; color: #6f7684; }

@media (prefers-reduced-motion: reduce) { .slice, .slice > img { transition: none; } }

/* phones: the poster turns into stacked bands, the shots into tall covers */
@media (max-width: 760px) {
  .top { display: none; }
  .intro { grid-template-columns: 1fr; padding: 34px 18px 28px; }
  .intro h1 { font-size: 36px; }
  .intro p { font-size: 15.5px; }
  .intro p br { display: none; }
  .intro .sig { grid-column: 1; grid-row: auto; font-size: 30px; margin-top: 16px; }
  .poster { flex-direction: column; height: auto; }
  .slice { flex: none; min-width: 0; height: calc(var(--g) * 3.6px + 100px); }
  .slice:hover, .slice:focus-visible { flex-grow: 0; }
  .slice::after { background: linear-gradient(90deg, rgba(0, 0, 0, .85), rgba(0, 0, 0, .2) 70%); }
  .cap { left: 18px; right: auto; bottom: 50%; transform: translateY(50%); }
  .cap .logo { width: min(var(--lw), 190px); }
  .narrow .cap { left: 18px; right: auto; }
  .narrow .cap.spined { display: flex; width: auto; height: auto; }
  .logo.spine { position: static; transform: none; width: min(var(--sl), 190px); }
  .narrow .cap .logo:not(.spine) { width: 96px; }
  .hold .cap em { position: static; }
  .roco-slice > img:first-child { width: 320%; left: auto; right: 0; }
  .slice > img.fig { height: 100%; left: 80%; }
  .slice > img.fig.small { height: 90%; bottom: 0; }
  .slice > img.fig.dice { width: auto; height: 70%; bottom: 15%; left: 84%; }
  .shots { margin-top: 36px; }
  .shot, .shot.tall { height: auto; min-height: 520px; padding-top: 250px; }
  .shot::before, .shot.right::before, .shot.tall::before { background: linear-gradient(0deg, rgba(0, 0, 0, .95) 0, rgba(0, 0, 0, .7) 40%, transparent 75%); }
  .shot.right { justify-content: flex-start; }
  .copy, .shot.tall .copy { max-width: 100%; padding: 0 18px 30px; }
  .copy .logo { width: min(var(--lw), 260px); }
  .copy p { font-size: 15.5px; }
  .shot .fig { top: 14px; bottom: auto; height: 54%; left: 72%; }
  #roco .fig { top: 18px; height: 230px; left: 70%; }
  .trio { grid-template-columns: 1fr; }
  .shot.hold { height: auto; min-height: 0; padding-top: 0; }
  .shot .dice { top: 26px; right: 22px; width: 64px; transform: rotate(-12deg); }
  .copy.row { flex-direction: column; align-items: flex-start; gap: 14px; padding: 30px 18px; }
  .foot { grid-template-columns: 1fr; padding: 40px 18px 36px; }
}
