/* Page frame and masthead.
   One slice of the page's stylesheet. The files load in the order of their numbers (the <link> list in
   web/site_template.html) and several rules rely on that order at equal specificity: never reorder or merge
   them without running tests/layout_check.js. */
html { scrollbar-gutter: stable; }
[hidden] { display: none !important; }

body {
  background: var(--bg); color: var(--ink); font-family: var(--f-body); font-size: 15px; line-height: 1.45;
}
.wrap {
  max-width: 1500px; margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
  padding-block: 20px 40px;
  display: flex; flex-direction: column; gap: 18px;
}
h1, h2, h3 { margin: 0; text-wrap: balance; }
.mast { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
/* the skip link: out of sight until it has the keyboard's focus; text only screen readers hear */
.skip { position: absolute; left: 16px; top: -60px; z-index: 50; padding: 8px 14px; border-radius: 6px; background: var(--ink); color: var(--surface);
  font-weight: 600; text-decoration: none; }
.skip:focus { top: 8px; outline: 2px solid var(--score); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
main:focus { outline: none; }
.mast p { margin: 0; color: var(--muted); font-size: 0.9rem; }
/* masthead (the owner, Dec 3): the 10X ANALYTIX lockup at the top left and the tagline beside it, set like the
   lockup's "ANALYTIX": Manrope Light at its size (0.261 of the lockup's height) and on its baseline (0.02 of the height
   above the lockup's foot). --logo-h is the lockup's height. */
.brand { --logo-h: 104px; flex: 1 1 100%; display: flex; align-items: flex-end; gap: 10px 26px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
/* the lockup links to 10X Analytix's landing page; its ink is the text color, the X the brand amber */
.mast .logo { flex: none; display: block; color: var(--ink); line-height: 0; border-radius: 4px; }
.mast .logo:hover, .mast .logo:focus-visible { color: var(--score); }
.mast .logo:focus-visible { outline: 2px solid var(--score); outline-offset: 4px; }
.mast .logo-svg { display: block; width: auto; height: var(--logo-h); }
.mast .punch { margin: 0 0 calc(var(--logo-h) * 0.0423 - 0.2em); font-family: var(--f-display); font-weight: 300;
  font-size: calc(var(--logo-h) * 0.261); line-height: 1; letter-spacing: 0.01em; color: var(--ink); }
.mast .punch .pl-p { font-weight: 300; color: var(--score); }

@media (max-width: 640px) {
  .brand { --logo-h: 72px; gap: 16px; }
}


/* the footer (the owner, Dec 2): a line on winning and what NAPPR+ is, small and quiet */
.foot { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px;
  max-width: 100ch; color: var(--muted); font-size: 0.8rem; line-height: 1.45; }
.foot p { margin: 0; }
.foot-def b { color: var(--ink); }
.foot p:focus { outline: none; }
.foot p:focus-visible { outline: 2px solid var(--score); outline-offset: 4px; border-radius: 2px; }
.foot p:target { color: var(--ink); }      /* the line a link just opened */
