/* Contrast, keyboard, motion and print. Loaded on every page, after extra.css. */

/* --field: the edge of a form field, 3:1 or more on the page and on cards (--line is only a divider). */
.site { --field: #7c8aa0; }
.site.dark { --field: #6b768a; }
/* A shade darker than the design's: 4.5:1 also on the soft orange. */
.site.light { --btext: #b93d0a; }
html { color-scheme: light; }

/* Links follow the theme. :where keeps this weaker than every styled link. */
.site :where(a) { color: var(--btext); }
.site :where(a):hover { color: var(--ink); }

/* Skip link: off screen until it gets the keyboard focus. */
.site a.skip { position: absolute; left: 12px; top: -80px; z-index: 40; padding: 12px 18px; border: 1px solid var(--field); border-radius: 10px; background: var(--card); color: var(--ink); font-weight: 600; }
.site a.skip:focus { top: 12px; }
.admin-bar .site a.skip:focus { top: 44px; }
.site main { display: flex; flex-direction: column; flex: 1 0 auto; }
.site main.doc { display: block; }
.site main.lost { display: grid; }

/* Legal text: a column that reads comfortably. */
/* In em: the ch unit of the font is wide and let lines reach 90 characters. */
.doc:not(.doc-wide) p, .doc:not(.doc-wide) li { max-width: 34em; }

@media print {
	.site *, .site *::before, .site *::after { animation: none !important; }
	.site .swB, .site .undone, .site .st-off, .site .mDots, .site .skel, .site a.skip { display: none !important; }
	.site .fillt { max-width: 100%; }
	.site > header { position: static; }
}

/* The side index shows where you are. */
.site .docs-toc a[aria-current="location"], .site nav.zi a[aria-current="location"] { background: var(--bsoft); color: var(--btext); font-weight: 600; }

/* The links and both header buttons do not fit one row below this width: the menu button takes over, so the sticky header stays short. */
@media (max-width: 1020px) {
	.site .navl { display: none !important; }
	.site .menu-btn { display: grid !important; }
	.site .menu-btn { margin-left: 0; }
	.site > header .acts { margin-left: auto; }
}
@media (min-width: 761px) and (max-width: 1020px) {
	.site .mpanel:not([hidden]) { display: flex !important; }
}

/* Text is always sharp at rest. */
/* Reveal on scroll is off: tied to the scroll position, it left text half transparent wherever the reader stopped. */
.site .rv { animation: none !important; }
/* Entrances play once and then let go: holding the last frame kept the text on an animation layer, drawn soft. */
.site .in, .site .w, .site .dec { animation-fill-mode: backwards !important; }

/* The credit reads like the line it sits in. */
.site .foot-end a, .site .soon-end a { color: inherit; font-weight: 600; }
.site .foot-end a:hover, .site .soon-end a:hover { color: var(--btext); }
