/* =====================================================================
   Avengers · pages/where.css  (the page "Where your files go": public/app/where.html, at /where-your-files-go)
   A plain page to read: one column on the design system's content material, over its wallpaper. It follows
   the device's light or dark setting (the design system's own tokens), and loads no script.
   Open without signing in, so it holds nothing but its own layout.
   ===================================================================== */

/* One readable column: about 68 characters to a line. (A letter of this text is 0.43em wide on average, so
   30em holds 70 at the very most, and a line that ends at a word holds a few fewer.) */
:root { --where-measure: 30em; --where-pad: 44px; }

body { font-size: 17px; line-height: 27px; letter-spacing: -.012em; }

.where-top, .where { box-sizing: border-box; width: min(100% - 32px, calc(var(--where-measure) + 2 * var(--where-pad))); margin-left: auto; margin-right: auto; }
.where-top { padding: max(18px, var(--safe-top)) 0 0; }
/* Back to the app: a small link with room for a finger */
.where-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 4px; margin-left: -4px; border-radius: 10px; font-size: var(--fs-subheadline); line-height: var(--lh-subheadline); font-weight: 600; }
.where-back::before { content: ""; flex: none; width: 7px; height: 7px; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; border-radius: 1px; transform: rotate(45deg); }

.where { margin-top: 6px; margin-bottom: max(48px, var(--safe-bottom)); padding: 44px var(--where-pad) 40px; border-radius: var(--r-outer); -webkit-backdrop-filter: var(--material-filter); backdrop-filter: var(--material-filter); }

.where h1 { font-family: var(--font-display); font-size: var(--fs-large-title); line-height: var(--lh-large-title); font-weight: var(--fw-display); letter-spacing: var(--ls-display); text-wrap: balance; }
.where h2 { margin-top: 36px; font-family: var(--font-display); font-size: var(--fs-title-3); line-height: var(--lh-title-3); font-weight: var(--fw-display); letter-spacing: var(--ls-display); text-wrap: balance; }
.where p { margin-top: 14px; }
.where__lede { color: var(--label-2); }
.where ul { margin: 14px 0 0; padding: 0 0 0 1.25em; }
.where li { padding-left: 2px; }
.where li + li { margin-top: 8px; }
.where li::marker { color: var(--label-3); }
.where strong { font-weight: 600; }
/* A link in running text says it is one without relying on colour alone */
.where a { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.where a:hover { text-decoration-thickness: 2px; }
/* Sources: each one a line a finger can hit */
.where__sources li + li { margin-top: 10px; }

@media (max-width: 760px) {
  :root { --where-pad: 20px; }
  .where { padding-top: 28px; padding-bottom: 28px; border-radius: var(--r-card); }
  .where h1 { font-size: 30px; line-height: 36px; }
  .where h2 { margin-top: 30px; }
  .where__sources li + li { margin-top: 14px; }
}

/* Touch: each source is a target of its own, 44 points from the next */
@media (pointer: coarse) {
  .where__sources a { padding-block: 9px; }
  .where__sources li + li { margin-top: 17px; }
}

@media (prefers-reduced-transparency: reduce) { .where { -webkit-backdrop-filter: none; backdrop-filter: none; } }

@media print {
  body::before, body::after, .where-top { display: none; }
  .where { width: auto; margin: 0; padding: 0; box-shadow: none; background: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .where a { color: inherit; }
}
