/* The press kit (press.html), loaded on that page only: its jump links, fact sheet, texts to copy and the cards of
   downloads, in the site's own cream cards, Fredoka and pills (site.css's colors and shapes). */

/* the jump links under the title: pills, as the header's */
.press-toc ul { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.press-toc a {
  display: block; padding: 7px 14px; border-radius: 999px; text-decoration: none;
  font: 600 15px/1.2 var(--font-display); color: var(--ink-strong); background: var(--cream-2); box-shadow: 0 3px 0 var(--cream-4);
}
.press-toc a:hover { background: var(--yellow); box-shadow: 0 3px 0 var(--yellow-edge); }
.press-toc a:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 2px; }
/* (a section jumped to lands clear of the sticky header) */
.press section[id] { scroll-margin-top: 72px; }

/* a section's heading, with its Download all at the other end (under it on a phone) */
.press-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin-bottom: 12px; }
.press-head h2 { margin: 0; }
.press-lead { margin: 0 0 18px; max-width: 680px; color: var(--muted); }
.press-sub { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 26px 0 12px; font-size: 21px; }
.press-sub span { font: 700 14px/1 var(--font-body); color: var(--muted); }

/* the fact sheet: a cream card of rows, what on the left and its answer on the right (one under the other on a phone) */
.press-facts { max-width: 900px; margin: 8px 0 0; padding: 6px 28px; background: var(--cream-2); border-radius: var(--blob-sm); box-shadow: var(--shadow); }
.press-facts > div { display: grid; grid-template-columns: minmax(130px, 200px) minmax(0, 1fr); gap: 2px 24px; padding: 12px 0; border-top: 2px dashed var(--line); }
.press-facts > div:first-child { border-top: 0; }
.press-facts dt { font: 600 16px/1.45 var(--font-display); color: var(--ink-strong); }
.press-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.press-social { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 18px; }
@media (max-width: 599px) {
  .press-facts { padding: 4px 18px; }
  .press-facts > div { grid-template-columns: minmax(0, 1fr); }
}

/* the texts to copy: cream cards, each with its Copy button by its title */
.press-texts { display: grid; gap: 18px; max-width: 900px; }
.press-card { padding: 20px 24px 22px; background: var(--cream-2); border-radius: var(--blob-sm); box-shadow: var(--shadow); }
.press-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.press-card-head h3 { margin: 0; }
.press-copy-text > :last-child { margin-bottom: 0; }
.press-copy-text ul, .press-rules ul { margin: 0; padding-left: 1.25em; }
.press-copy-text li, .press-rules li { margin: 0 0 6px; }
.btn.press-copy { flex: none; min-height: 38px; padding: 6px 18px; font-size: 15px; }
.btn.press-copy.done { background: var(--teal-soft); color: var(--teal-ink); box-shadow: 0 4px 0 var(--teal); }
@media (max-width: 599px) { .press-card { padding: 16px 16px 18px; } }

/* the trailer: its still in the site's cream frame, a play button over it and the words under it, all one link to
   YouTube (nothing of YouTube's loads here) */
.press-trailer { max-width: 800px; }
.press-trailer-link {
  position: relative; display: block; overflow: hidden; text-decoration: none; background: var(--cream-2);
  border: 8px solid var(--cream-2); border-radius: var(--blob-sm); box-shadow: var(--shadow);
}
.press-trailer-still { position: relative; display: block; }
.press-trailer-still img { width: 100%; height: auto; border-radius: 14px; }
/* (in the sky between the logo and the team on the still, 44% down, as on the home page; on a phone that gap is too
   thin for it, so it sits in the corner, as there) */
.press-play {
  position: absolute; left: 50%; top: 44%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink-strong); background: var(--yellow);
  box-shadow: 0 5px 0 var(--yellow-edge), 0 12px 22px -10px rgba(40, 28, 16, 0.6); transition: transform 0.15s ease;
}
.press-play svg { width: 38px; height: 38px; margin-left: 3px; }
.press-trailer-link:hover .press-play, .press-trailer-link:focus-visible .press-play { transform: translate(-50%, -50%) scale(1.08); }
.press-trailer-link:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 3px; }
.press-trailer-caption { display: block; padding: 10px 8px 4px; font: 600 17px/1.3 var(--font-display); color: var(--teal-ink); text-decoration: underline; text-underline-offset: 3px; }
.press-note { margin: 14px 0 0; }
@media (max-width: 599px) {
  .press-trailer-link { border-width: 5px; }
  .press-play { left: auto; top: auto; right: 10px; bottom: 10px; transform: none; width: 48px; height: 48px; }
  .press-trailer-link:hover .press-play, .press-trailer-link:focus-visible .press-play { transform: scale(1.08); }
  .press-play svg { width: 28px; height: 28px; }
}
@media (prefers-reduced-motion: reduce) { .press-play { transition: none; } }

/* the downloads: a grid of the Store's cards, a picture well on top and what it is under it, with its links */
.press-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 18px; }
.press-item {
  display: flex; flex-direction: column; overflow: hidden; background: var(--cream-2); border-radius: 22px;
  box-shadow: 0 4px 0 var(--cream-3), 0 10px 18px -12px rgba(84, 62, 34, 0.55);
}
.press-pic { background: var(--cream-3); }
.press-pic img { width: 100%; height: auto; }
.press-info { display: grid; justify-items: start; align-content: start; gap: 6px; padding: 12px 14px 14px; }
.press-info h3, .press-info h4 { margin: 0; font: 600 18px/1.2 var(--font-display); color: var(--ink-strong); }
.press-info p { margin: 0; font-size: 15px; line-height: 1.4; }
.press-info .press-meta { font: 700 13px/1.3 var(--font-body); color: var(--muted); }
/* a download: a small teal pill with an arrow, its size after its words (build-site writes it in: .dl-size), which
   goes under them when the card is narrow */
.press-dl {
  position: relative; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; max-width: 100%; padding: 6px 14px 6px 32px; border-radius: 18px;
  text-decoration: none; font: 600 15px/1.25 var(--font-display); color: var(--teal-ink); background: var(--teal-soft); box-shadow: 0 3px 0 rgba(58, 165, 146, 0.35);
}
.press-dl::before {
  content: ""; position: absolute; left: 11px; top: 50%; width: 15px; height: 15px; margin-top: -7.5px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v11.5M6.5 10l5.5 5.5 5.5-5.5M4.5 20.5h15'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3.5v11.5M6.5 10l5.5 5.5 5.5-5.5M4.5 20.5h15'/%3E%3C/svg%3E") center / contain no-repeat;
}
.press-dl:hover { background: var(--yellow); color: var(--ink-strong); box-shadow: 0 3px 0 var(--yellow-edge); }
.press-dl:focus-visible { outline: 3px solid var(--ink-strong); outline-offset: 2px; }
.dl-size { font: 700 13px/1.25 var(--font-body); opacity: 0.8; white-space: nowrap; }
.press-sizes { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }

/* the logos: five across on a wide screen, every picture in the same 16:9 well; the transparent logo on a
   checkerboard, the app icon with the corners iOS gives it, the profile picture in its circle */
.press-logos { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.press-logos .press-pic { aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; }
.press-logos .press-pic img { width: 100%; height: 100%; object-fit: cover; }
.press-logos .press-clear { background: repeating-conic-gradient(var(--cream-3) 0 25%, #fffdf6 0 50%) 0 0 / 20px 20px; }
.press-logos .press-clear img { width: 76%; height: auto; object-fit: contain; }
.press-logos .press-square .press-pic { background: var(--cream-3); }
.press-logos .press-square img { width: 40%; height: auto; aspect-ratio: 1; box-shadow: 0 6px 14px -8px rgba(84, 62, 34, 0.6); }
.press-icon { border-radius: 22.4%; }
.press-round { border-radius: 50%; }
.press-rules { max-width: 900px; margin-top: 22px; }

/* the characters: smaller cards (five across on a wide screen), each in one of the Store's tints */
.press-chars { grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr)); }
.press-chars .press-dl { font-size: 14px; padding: 5px 12px 5px 30px; }
.press-chars .press-dl::before { left: 10px; }
.press-chars .press-pic { background: #fde9a8; }
.press-chars .press-item:nth-child(5n+2) .press-pic { background: #cfeec6; }
.press-chars .press-item:nth-child(5n+3) .press-pic { background: #d2e7fb; }
.press-chars .press-item:nth-child(5n+4) .press-pic { background: #fbd8e3; }
.press-chars .press-item:nth-child(5n+5) .press-pic { background: #e4dbfa; }
@media (max-width: 599px) {
  .press-chars { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .press-chars .press-info { padding: 10px 10px 12px; }
}

/* the key art: the same 16:9 well for each, so the cards line up */
.press-art .press-pic { aspect-ratio: 16 / 9; overflow: hidden; }
.press-art .press-pic img { width: 100%; height: 100%; object-fit: cover; }

/* Download all: the button, then a progress bar and what it's doing under it */
.press-zip { display: grid; justify-items: end; gap: 8px; }
.press-zip:empty { display: none; }
.press-zip-button .dl-size { opacity: 0.85; }
.press-zip-progress { display: grid; justify-items: end; gap: 4px; width: min(300px, 100%); }
.press-zip-progress[hidden] { display: none; }
.press-zip-progress progress { width: 100%; height: 10px; accent-color: var(--teal); }
.press-zip-status { font-size: 14px; color: var(--muted); text-align: right; }
@media (max-width: 599px) {
  .press-zip { justify-items: start; width: 100%; }
  .press-zip-progress { justify-items: start; }
  .press-zip-status { text-align: left; }
}

/* the last two: plain words */
.press-prose > * { max-width: 760px; }
.press-prose p { font-size: 17px; }
