/* core.css: the skeleton's plumbing styles, the same in every run. No look: no colors, fonts or sizes of the design.
   Loaded on every page after system.css and before components.css. */

/* A screen laid over its photo (core.js places it). Its box is the size its interface is designed at. h.screen writes
   the photo as a <figure>, so the browser's margin for it (1em 40px) is taken off. */
[data-screen-photo] { position: relative; display: block; margin: 0; overflow: hidden; }
[data-screen-photo] > img { display: block; width: 100%; height: 100%; object-fit: cover; }
[data-screen] { position: absolute; left: 0; top: 0; transform-origin: 0 0; overflow: hidden; backface-visibility: hidden; }
[data-screen]:not([data-placed]) { visibility: hidden; }

/* A scene fills the box its page gives it, its padding included, and keeps everything it draws inside that box. */
[data-scene] { position: relative; overflow: hidden; box-sizing: border-box; }

/* A link to a page that is only planned (Part 1): it shows, but it is not clickable yet. */
[data-planned] { pointer-events: none; cursor: default; }

/* A stop icon shows the icon of what pressing it does. */
[data-stop] .stop__play { display: none; }
[data-stop][aria-pressed="true"] .stop__play { display: inline; }
[data-stop][aria-pressed="true"] .stop__pause { display: none; }

/* The skip link appears when it gets the focus. */
.skip { position: absolute; left: -9999px; top: 0; }
.skip:focus { left: 8px; top: 8px; z-index: 1000; }

/* Hidden from the eye, read by screen readers. */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }

/* What the kit hides stays hidden. */
[hidden] { display: none !important; }

/* The skeleton's own pages, the 404 and the legal pages: one reading column in the design's spacing and the text's own
   color, so they never show unstyled. components.css gives them the site's look. */
.not-found, .legal { box-sizing: border-box; max-width: calc(760px + 2 * var(--gutter)); margin-inline: auto; padding: var(--section-y) var(--gutter); }
.not-found { display: grid; justify-items: start; gap: var(--space-3); }
.not-found__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-4); margin-top: var(--space-2); }
.legal > * + * { margin-top: var(--space-2); }
.legal > h2 { margin-top: var(--space-5); }
.legal > h3 { margin-top: var(--space-4); }
.legal > ul { padding-left: 1.4em; }
.legal li + li { margin-top: 0.4em; }
.legal__note { padding: var(--space-3) var(--space-4); background: color-mix(in srgb, currentColor 7%, transparent); }
.legal a { overflow-wrap: anywhere; }

/* Interactions: what everything clickable does under the mouse and the finger, the same on every site, in the site's
   own character (system.css: --ix-press and --ix-lift, with --dur-fast and --ease-out). A button shrinks a little while
   it is pressed: a native one, the skeleton's main buttons, and a link that acts as a button, a choice or a tab with
   data-ix="press". A card that is a link takes data-ix="lift" and rises under the mouse and with the keyboard's focus
   ("lift press" does both). Only the motion is here: the colors of a hover, a focus and a press are components.css's,
   and a component that sets its own transition names translate and scale in it too. Every rule sits in :where(), so
   any rule of the site's own wins. Nothing in a scene or on a screen, and nothing planned or disabled, takes it; under
   reduced motion only the colors change. */
:where(button, [role="button"], input[type="submit"], input[type="button"], [data-ix], .site-header__cta, .callbar__cta, .callbar__call, .not-found__home):where(:not([data-scene] *, [data-screen] *)) {
  transition: translate var(--dur-fast, 180ms) var(--ease-out, ease-out), scale var(--dur-fast, 180ms) var(--ease-out, ease-out);
}
:where(button, [role="button"], input[type="submit"], input[type="button"], [data-ix~="press"], .site-header__cta, .callbar__cta, .callbar__call, .not-found__home):where(:active):where(:not(:disabled, [aria-disabled="true"], [data-planned], [data-scene] *, [data-screen] *)) {
  scale: var(--ix-press, 0.97);
  transition-duration: calc(var(--dur-fast, 180ms) / 2);
}
@media (hover: hover) and (pointer: fine) {
  :where([data-ix~="lift"]):where(:hover):where(:not([data-planned], [data-scene] *, [data-screen] *)) { translate: 0 var(--ix-lift, -3px); }
}
:where([data-ix~="lift"]):where(:focus-visible):where(:not([data-planned], [data-scene] *, [data-screen] *)) { translate: 0 var(--ix-lift, -3px); }
@media (prefers-reduced-motion: reduce) {
  :where(button, [role="button"], input[type="submit"], input[type="button"], [data-ix], .site-header__cta, .callbar__cta, .callbar__call, .not-found__home) { translate: none; scale: none; }
}

/* An icon from icon.mjs: as tall as its text, in the text's color, drawn in the site's line (system.css: --icon-stroke,
   --icon-cap, --icon-join, as its drawn icons give them). */
:where(svg.icon) { width: 1em; height: 1em; flex: none; vertical-align: -0.125em; stroke-width: var(--icon-stroke, 2); stroke-linecap: var(--icon-cap, round); stroke-linejoin: var(--icon-join, round); }
