/* page-shell.css
   The frame every inner page shares: page frame, rounded shell, header with logo and title, footer.
   Not used by the home page. Needs theme.css. */

.page-frame { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; padding: 20px 0 12px; }
.shell { flex: 1 0 auto; width: min(960px, calc(100% - 36px)); margin: 0 auto; border: 1px solid var(--line); border-radius: 20px; background: rgba(10, 16, 27, .88); box-shadow: 0 18px 55px rgba(0, 0, 0, .36); overflow: hidden; }
header { display: flex; align-items: flex-start; justify-content: flex-start; gap: var(--logo-gap); padding: 19px 4px 12px 14px; }
/* width and height auto so the box hugs the artwork: no invisible space to the right of the logo */
.logo { display: block; width: auto; height: auto; max-width: 150px; max-height: 68px; }
.intro { min-width: 0; }
.eyebrow { margin: 0 0 4px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
h1 { margin: 0; color: var(--orange); font-size: clamp(21px, 3vw, 27px); line-height: 1.25; white-space: nowrap; }
.subhead { margin: 5px 0 0; color: #fff; font-size: 13px; }
/* Optional icon at the right end of the header, a bookend to the logo */
.head-icon { flex: none; width: 56px; height: 56px; margin-left: auto; margin-right: 10px; object-fit: contain; }
header:has(.head-icon) { align-items: center; }
main { padding: 10px 22px 20px; }
.site-footer { margin-top: auto; padding: 7px 12px 0; color: rgba(231, 237, 247, .78); font-size: 11px; text-align: center; }

@media (max-width: 560px) {
  .page-frame { padding: 15px 0 8px; }
  .shell { width: calc(100% - 30px); border-radius: 16px; }
  /* One line header: small logo, the title and the optional icon. The blue and white lines are hidden. */
  header { --logo-gap: 10px; align-items: center; padding: 8px 12px; }
  .logo { max-width: 88px; max-height: 30px; }
  .intro { flex: 1; min-width: 0; }
  .eyebrow, .subhead { display: none; }
  h1 { font-size: 15px; line-height: 1.2; white-space: normal; }
  .head-icon { width: 30px; height: 30px; margin-right: 0; }
  main { padding: 8px 14px 14px; }
}

@media (max-width: 380px) {
  h1 { font-size: 14px; }
}
