/* /press/: the press kit (S41). The title and the kit's parts on the first screen; the two fact sheets side by side and
   of the same weight; each app's pictures in a scene of its own world (Zen Timer's dawn or dusk, Life Desk's sage or
   pine); Orbilla's stages, ranks and logos on the family ground; the contacts. Tokens only: no new colour values.
   Class names start with pr-. Loaded after orbi.css and pages.css. Spec: docs/DESIGN-SYSTEM.md, docs/S41-FINISH.md */

/* ---------- 0. Shared: an anchor's landing, an app's name with its icon, a scene's heading, a group's name ---------- */
.pr-anchor { scroll-margin-top: calc(var(--nav-h) + 16px); }
.pr-name { display: flex; align-items: center; gap: .3em; max-width: none; font-size: clamp(34px, 3.4vw, 48px); line-height: 1; }
.pr-name img { flex: none; width: .92em; height: .92em; border-radius: 22.5%; outline: 1px solid var(--rule); outline-offset: -1px; }
.pr-sub { font: 500 clamp(19px, 1.6vw, 22px)/1.25 var(--serif); letter-spacing: -.016em; font-variation-settings: var(--serif-set); color: var(--muted); }
.pr-head { display: grid; gap: 16px; justify-items: start; }
.pr-head .lede { max-width: 52ch; }
.pr-group { margin: clamp(44px, 5vw, 72px) 0 clamp(20px, 2vw, 28px); padding-top: 20px; border-top: 1px solid var(--rule); }

/* ---------- 1. The first screen's index: one column of the kit's parts ---------- */
.pr-head-in:has(> .pg-head-way) { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.pr-head-in .related-list a { min-height: 52px; }

/* ---------- 2. In a paragraph: Orbilla and each app, to quote, on the kit's ledger; then the two fact sheets, whose
   ledgers start on one line ---------- */
.pr-words { padding-bottom: 0; }
.pr-boiler > div { grid-template-columns: minmax(112px, 2fr) 5fr; gap: 6px 24px; }
.pr-boiler dd { max-width: 60ch; font-size: clamp(19px, 1.5vw, 22px); line-height: 1.4; letter-spacing: -.016em; color: var(--text); text-wrap: pretty; }
.pr-sheets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: auto auto; gap: 0 clamp(40px, 6vw, 96px); }
.pr-sheet { display: grid; grid-row: span 2; grid-template-rows: subgrid; row-gap: clamp(28px, 3vw, 40px); }
.pr-about { display: grid; gap: 14px; justify-items: start; align-content: start; }
.pr-about > .pr-sub { margin-top: -6px; }
.pr-about > p:not(.label, .pr-sub) { max-width: 48ch; color: var(--muted); }
.pr-about .actions { margin-top: 8px; }
.pr-status { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.pr-rows { align-self: start; }
.pr-rows > div { grid-template-columns: minmax(112px, 2fr) 5fr; gap: 4px 24px; }
.pr-rows dd { color: var(--text); }
.pr-rows a, .pr-more a { color: var(--accent); }
@media (max-width: 900px) {
  .pr-sheets { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-s); }
  .pr-sheet { grid-row: auto; grid-template-rows: none; }
}

/* ---------- 3. Pictures, in a scene of the app's own world: a 28 px block on the family ground ---------- */
/* The scene's own gutter is its padding, so a row of pictures runs to the block's edges and goes on past them. */
.pr-pictures { padding-block: var(--space-s); }
.pr-world { --gutter: clamp(24px, 4.4vw, 64px); padding: clamp(40px, 5vw, 80px) var(--gutter); border-radius: var(--r-l); }
.pr-world > :not(.stage-sky) { position: relative; }
/* In the light worlds the sky starts at the world's own second colour, not near-white, so the block reads as a place on
   the family's #fbfbfd ground (as the home page's scenes do); the dark worlds stand apart already. */
.pr-world:is([data-theme="dawn"], [data-theme="desk"]) { --sky-hi: var(--bg-2); }
.pr-world .pr-group:first-of-type { margin-top: clamp(36px, 4vw, 56px); }
.pr-rail { gap: clamp(20px, 2.4vw, 36px); align-items: end; padding-block: 24px 40px; margin-block: -24px -40px; -webkit-mask: none; mask: none; }   /* no fade: a picture cut by the block's edge already says the row goes on */
.pr-shot { display: grid; gap: 24px; width: clamp(168px, 15vw, 204px); text-decoration: none; color: var(--text); border-radius: var(--r-m); }
.pr-shot .dev-body { box-shadow: var(--lift-1); }   /* the resting shadow: the floating one is wider than the row and would be cut */
.pr-shot:focus-visible { outline-offset: 6px; }
/* Under the pointer the caption's tone says it is a link; nothing rises. */
.pr-cap { min-height: 2.6em; font: 500 15px/1.3 var(--sans); transition: color .12s var(--ease-chrome); }
.pr-shot:hover .pr-cap { color: var(--accent); }
.pr-shot-mac { width: clamp(340px, 36vw, 480px); }
.pr-shot-tablet { width: clamp(210px, 21vw, 280px); }
.pr-shot-watch { width: clamp(120px, 11vw, 148px); }
/* Tapan's iPhone Duo, photographed as a device (S45-8): no drawn frame, no hairline, no shadow, on the scene's own
   ground. The three are drawn to one scale: --duo-h is the device's long side, so the closed Duo and the open one
   held upright stand equally tall and the one on its side is as wide as they are tall. The long side is as tall as
   the App Store picture beside them (the tablet width times 995 / 700; Tapan's click, S45-8 round 2: "Larger, as
   tall as the App Store picture", the row's arrows and a longer page accepted). The pictures are cut tight to the
   device, so their boxes stand on one baseline. Each caption wraps to its picture's width. */
.pr-shot-dev { --duo-h: clamp(298.5px, 29.85vw, 398px); width: min-content; }
.pr-dev-pic { display: block; width: auto; max-width: none; height: var(--duo-h); }
.pr-dev-pic.pr-dev-wide { height: calc(var(--duo-h) * 1214 / 1589); }
/* A finished picture (Life Desk's App Store pictures, the garden, the header) stands as a file: rounded, on a hairline. */
.pr-still { display: block; overflow: hidden; border-radius: var(--r-m); outline: 1px solid var(--rule); outline-offset: -1px; }
.pr-rail-store { --still-h: clamp(360px, 32vw, 440px); }
.pr-rail-store .pr-shot { width: auto; }
.pr-still img { display: block; width: auto; height: var(--still-h); }
.pr-rail-store .pr-cap { max-width: 24ch; }
.pr-wide { display: grid; gap: 14px; margin: clamp(48px, 5vw, 72px) 0 clamp(28px, 3vw, 40px); }
.pr-wide a { display: block; overflow: hidden; border-radius: var(--r-m); outline: 1px solid var(--rule); outline-offset: -1px; }
.pr-wide img { display: block; width: 100%; height: auto; }
/* Zen Timer has painted the wide island at dawn only, so in dark mode the full garden at dusk stands here, with its own
   caption, and the dawn one is not shown (S20). When the app paints the wide island at dusk, it takes this place. */
.pr-wide a.pr-dusk { width: min(560px, 100%); }
[data-theme="night"] .pr-wide .pr-dawn, [data-theme="orbilla"] .pr-wide .pr-dusk { display: none; }
.pr-wide figcaption { max-width: 70ch; font-size: 15px; color: var(--muted); }
.pr-more { max-width: 70ch; color: var(--muted); }   /* a sentence, not a box (S20) */
.pr-more strong { color: var(--text); }
/* Life Desk's device switch is the kit's (site.css K9); here its place. With it on, it names the row. */
.pr-seg { display: grid; width: max-content; max-width: 100%; margin: clamp(36px, 4vw, 56px) 0 clamp(20px, 2.4vw, 32px); }
.pr-panels { gap: 0; }
.pr-panels[data-live] .pr-group { display: none; }

/* ---------- 4. Orbilla: stages, ranks and logos as pictures with a name and a size, each a link to its file ---------- */
.pr-orbilla { padding-block: var(--space); }
.pr-arts { display: grid; gap: 28px clamp(12px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.pr-arts-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.pr-arts-4 { grid-template-columns: repeat(4, minmax(0, 200px)); }
/* The eight ranks as one picture, in their order; their names and numbers are /orbilla/'s. */
.pr-ranks { display: grid; gap: 12px; justify-items: start; }
.pr-lineup { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(2px, 1vw, 12px); width: min(100%, 880px); margin: 0; padding: 0; list-style: none; }
.pr-lineup a { display: block; border-radius: 50%; }   /* each opens its own full-size file */
.pr-lineup img { display: block; width: 100%; height: auto; }
/* Orbilla the Organizer (S33, D036): its one look as one picture, its two lines beside it. */
.pr-organizer { display: grid; grid-template-columns: minmax(0, 240px) minmax(0, 52ch); gap: 20px clamp(24px, 4vw, 56px); align-items: center; }
.pr-organizer-copy { display: grid; gap: 12px; color: var(--muted); }
.pr-organizer-copy p:first-child { font: 500 clamp(20px, 1.8vw, 24px)/1.3 var(--serif); letter-spacing: -.016em; font-variation-settings: var(--serif-set); color: var(--text); }
.pr-art { display: grid; gap: 4px; justify-items: center; text-align: center; text-decoration: none; font-size: 14px; color: var(--muted); border-radius: var(--r-m); }
.pr-art strong { font: 500 clamp(16px, 1.3vw, 19px)/1.2 var(--serif); letter-spacing: -.012em; font-variation-settings: var(--serif-set); color: var(--text); transition: color .12s var(--ease-chrome); }
.pr-art:hover strong { color: var(--accent); }
.pr-art-pic { position: relative; display: block; width: 100%; aspect-ratio: 1; margin-bottom: 8px; }
.pr-art:focus-visible { outline-offset: 4px; }
.pr-art-pic > img { display: block; width: 100%; height: 100%; object-fit: contain; }   /* the tile's own picture only, never the layers of a living Orbilla (S33) */
.pr-art-glow img { position: absolute; left: 50%; top: 50%; width: 128%; height: auto; max-width: none; transform: translate(-50%, -50%); pointer-events: none; }   /* the stage pictures are mostly glow */
.pr-art-logo { display: grid; place-items: center; }   /* the marks stand on the page, with no tile (S19) */
.pr-art-logo img { width: 54%; height: auto; }
.pr-art-logo .pr-round { border-radius: 22.5%; outline: 1px solid var(--rule); outline-offset: -1px; }

/* ---------- 5. Contacts: the closing's ledger ---------- */
.pr-who { max-width: 860px; margin-top: clamp(32px, 4vw, 48px); text-align: left; }
.pr-who > div { grid-template-columns: minmax(180px, 2fr) 5fr; }
.pr-who dd { color: var(--muted); }
.pr-close .actions { margin-top: clamp(28px, 3vw, 40px); }

/* ---------- Narrower screens ---------- */
@media (max-width: 900px) { .pr-head-in:has(> .pg-head-way) { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 699px) {
  .pr-name { font-size: 34px; }
  .pr-rows > div, .pr-who > div, .pr-boiler > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .pr-world { padding-block: 36px 40px; border-radius: var(--r-m); }
  .pr-seg button { padding-inline: 14px; }   /* the three names fit a 360 px screen; the kit's indicator follows each name's own box */
  .pr-shot { width: 150px; gap: 20px; }
  .pr-shot-mac { width: 300px; }
  .pr-shot-tablet { width: 190px; }
  .pr-shot-dev { --duo-h: 270px; width: min-content; }   /* as tall as the 190 px App Store picture */
  .pr-shot-watch { width: 110px; }
  .pr-arts-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .pr-arts-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pr-organizer { grid-template-columns: minmax(0, 1fr); justify-items: start; }
  .pr-organizer .pr-art { width: 200px; }
  .pr-rail-store { --still-h: 326px; }   /* as tall as the 150 px iPhones above */
  .pr-art-glow img { width: 130%; -webkit-mask-image: radial-gradient(closest-side, #000 62%, transparent 92%); mask-image: radial-gradient(closest-side, #000 62%, transparent 92%); }
}
@media (max-width: 480px) { .pr-lineup { grid-template-columns: repeat(4, minmax(0, 1fr)); } }   /* eight across are under 44 px to tap below 430 px */
@media (prefers-reduced-motion: reduce) { .pr-cap, .pr-art strong { transition: none; } }
