/* Simple pages (privacy, 404): the v3 night with its pixel stars, the same nav, type and palette,
   our little morning star, and the snowy footer of the home page. No JavaScript. */
.page-main { position: relative; isolation: isolate; padding: calc(var(--nav-h) + 34px) 22px 0; }
/* the sky reaches down behind the snowy hills exactly (.page-land's height), so the footer's cream is always the last thing */
.page-sky { position: absolute; z-index: -1; left: 0; right: 0; top: 0; bottom: -230px;
  background: url(../img/stars.svg) 50% 0 / 2560px 900px no-repeat,
    linear-gradient(to bottom, var(--night-900) 0%, var(--night-800) 45%, var(--night-700) 80%, #4E3096 100%);
  image-rendering: pixelated; }
@supports (background: linear-gradient(in oklch, red, blue)) {
  .page-sky { background: url(../img/stars.svg) 50% 0 / 2560px 900px no-repeat,
    linear-gradient(in oklch to bottom, var(--night-900) 0%, var(--night-800) 45%, var(--night-700) 80%, #4E3096 100%); }
}
.page-head { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
.page-star { width: calc(32 * var(--P)); height: calc(48 * var(--P)); image-rendering: pixelated; }
.page-title { font: 900 clamp(48px, 7.4vw, 92px)/1.02 var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1, 'opsz' 144; color: var(--cream-100);
  letter-spacing: -.01em; word-spacing: .1em; -webkit-text-stroke: 7px var(--ink); paint-order: stroke fill; text-wrap: balance;
  text-shadow: 2px 2px 0 var(--ink), 4px 4px 0 var(--violet-500), 6px 6px 0 var(--violet-500), 8px 8px 0 var(--violet-500), 10px 10px 0 var(--ink); }
.updated { font: 500 18px/1 var(--f-pixel); letter-spacing: .03em; color: var(--ink); background: var(--lilac-300); padding: 9px 14px 8px; margin-top: 8px; }

/* the policy: a sewn cream page (ink edge, a running stitch inside), easy to read */
.policy { position: relative; max-width: 780px; margin: 46px auto 0; padding: 50px 58px 54px; background: var(--cream-100); color: var(--ink);
  border: 4px solid var(--ink); border-radius: 30px; box-shadow: 10px 10px 0 var(--ink); }
.policy::before { content: ''; position: absolute; inset: 11px; border: 2px dashed var(--lilac-300); border-radius: 21px; pointer-events: none; }
.policy h2 { position: relative; margin-top: 34px; font: 900 27px/1.2 var(--f-display); font-variation-settings: 'SOFT' 100, 'WONK' 1; }
.policy h2:first-child { margin-top: 0; }
.policy p, .policy li { position: relative; margin-top: 10px; font-size: 18px; line-height: 1.62; }
.policy ul { margin-top: 4px; }
.policy li { padding-left: 26px; }
.policy li::before { content: ''; position: absolute; left: 4px; top: .62em; width: 9px; height: 9px; background: var(--pink-500); box-shadow: 2px 2px 0 var(--ink); }
.policy a { font-weight: 700; text-underline-offset: 4px; text-decoration-thickness: 2px; }
.policy :focus-visible, .lost .px-btn:focus-visible { outline-color: var(--ink); }

/* 404 */
.lost { min-height: 62svh; display: grid; place-content: center; justify-items: center; gap: 20px; text-align: center; padding-top: 20px; color: var(--cream-100); }
.lost .page-star { margin-bottom: 4px; }
.lost p { font-size: 20px; font-weight: 500; max-width: 22em; text-wrap: balance; }
.lost .px-btn { margin-top: 18px; }
.lost .px-btn:focus-visible { outline-color: var(--cream-100); }

/* the snowy ground the footer stands on (the same hills as the home page's night) */
.page-land { position: relative; height: 230px; margin-top: 60px; overflow: hidden; }
.page-land svg { position: absolute; left: 50%; bottom: 0; margin-left: -1280px; }
.page .foot { margin-top: -2px; }

@media (max-width: 760px) {
  .page-main { padding-top: calc(var(--nav-h) + 22px); }
  .page-title { -webkit-text-stroke: 5px var(--ink); text-shadow: 2px 2px 0 var(--ink), 4px 4px 0 var(--violet-500), 6px 6px 0 var(--violet-500), 8px 8px 0 var(--ink); }
  .updated { font-size: 15px; }
  .policy { margin-top: 34px; padding: 34px 26px 38px; border-radius: 24px; box-shadow: 7px 7px 0 var(--ink); }
  .policy::before { inset: 8px; border-radius: 17px; }
  .policy h2 { font-size: 24px; }
  .policy p, .policy li { font-size: 17px; }
  .lost p { font-size: 18px; }
  .page-land { height: 180px; margin-top: 40px; }
  .page-sky { bottom: -180px; }
  .page-land svg { margin-left: -1420px; }
}
