/* press 상단 배너 — tools/add-header-banner.mjs 가 생성한다. 손으로 고치지 말 것.
 *
 * 그림은 SVG 타일 한 장을 가로로 반복한 것이다. 높이를 84px 로 고정했기 때문에
 * 화면이 넓든 좁든 배너는 늘 같은 크기의 가로 띠로 보이고, 폭이 바뀌면 반복 횟수만
 * 달라진다. (처음에는 cover 로 헤더를 덮게 했는데, 모바일에서 메뉴가 여러 줄로
 * 접혀 헤더가 높아지자 그림이 통째로 확대돼 얼룩처럼 보였다.)
 *
 * 위의 단색 그라데이션은 스크림이다: 그림을 28% 세기로 눌러
 * 메뉴 글씨 대비를 지킨다. 이 세기는 고른 값이 아니라 계산한 값이다 — 이 사이트
 * 헤더에서 실측한 글자색들이 기준(4.5:1)을 유지하는 한에서 가장 진한 쪽을
 * 도구가 찾았다. 적용 후 최악 대비 13.3:1.
 *
 * 이 파일은 사이트 자기 스타일시트보다 뒤에 와야 한다. background 단축 속성이
 * background-image 를 none 으로 되돌리기 때문이다.
 */
header.sticky {
  background-image:
    linear-gradient(0deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.72) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 84'%3E%3Crect width='1600' height='84' fill='%23faefef'/%3E%3Crect x='28' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='16' y='14' width='76' height='56' rx='8' fill='%23dc8e8e'/%3E%3Crect x='29' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='29' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='29' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='188' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='176' y='14' width='76' height='56' rx='8' fill='%23edc4c4'/%3E%3Crect x='189' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='189' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='189' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='348' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='336' y='14' width='76' height='56' rx='8' fill='%23dc8e8e'/%3E%3Crect x='349' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='349' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='349' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='508' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='496' y='14' width='76' height='56' rx='8' fill='%23edc4c4'/%3E%3Crect x='509' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='509' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='509' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='668' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='656' y='14' width='76' height='56' rx='8' fill='%23dc8e8e'/%3E%3Crect x='669' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='669' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='669' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='828' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='816' y='14' width='76' height='56' rx='8' fill='%23edc4c4'/%3E%3Crect x='829' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='829' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='829' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='988' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='976' y='14' width='76' height='56' rx='8' fill='%23dc8e8e'/%3E%3Crect x='989' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='989' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='989' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='1148' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='1136' y='14' width='76' height='56' rx='8' fill='%23edc4c4'/%3E%3Crect x='1149' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='1149' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='1149' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='1308' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='1296' y='14' width='76' height='56' rx='8' fill='%23dc8e8e'/%3E%3Crect x='1309' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='1309' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='1309' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='1468' y='20' width='76' height='56' rx='8' fill='%23f7e4e4'/%3E%3Crect x='1456' y='14' width='76' height='56' rx='8' fill='%23edc4c4'/%3E%3Crect x='1469' y='27' width='50' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='1469' y='42' width='39' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3Crect x='1469' y='57' width='28' height='7' rx='3.5' fill='%23f7e4e4'/%3E%3C/svg%3E");
  background-size: auto, auto 84px;
  background-position: center, center top;
  background-repeat: repeat, repeat-x;
}

/* 대비를 더 원하는 사용자에게는 그림을 치운다. 장식이 접근성을 이기면 안 된다. */
@media (prefers-contrast: more) {
  header.sticky { background-image: none; }
}
