/* ==========================================================================
   Base — the small amount WordPress used to supply.

   theme.css is the design and is served unchanged; it already sets html, body,
   headings, p, lists, links, media, form controls, ::selection and :focus-visible.
   Three things the WordPress site got from elsewhere were checked and restated
   here, so nothing depends on WordPress any more:

     1. .screen-reader-text — WordPress core ships this; the markup relies on it.
        Restated from core, with the focus state wearing the theme's tokens.
     2. hr — theme.json styled the separator with the rule colour.
     3. core/code was told to use the mono family; theme.css already does, so
        nothing is needed for it.

   Checked and deliberately NOT restated:
     - theme.json set links to `text-decoration: underline`. It loses on the live
       site: the generated global styles load before theme.css, whose
       `a { text-decoration: none }` is later and equally specific. The live
       rendering is therefore un-underlined links, and that is what is kept.
     - theme.json's colour and type presets duplicate theme.css's tokens
       (--paper, --ink, --accent, the scale) under --wp--preset--* names. Only
       theme.css's names are used here; cti.css already reads them with
       fallbacks.
   ========================================================================== */

/* --- WordPress core's screen-reader-text, unchanged in behaviour ---------- */
.screen-reader-text {
	border: 0;
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip-path: none;
	display: block;
	width: auto;
	height: auto;
	inset-block-start: var(--s2);
	inset-inline-start: var(--s2);
	z-index: 100000;
	padding: var(--s2) var(--s3);
	background: var(--ink);
	color: var(--paper);
	border-radius: var(--radius-ctl);
	font-family: var(--font-mono);
	font-size: var(--fs-small);
	line-height: 1.4;
	text-decoration: none;
}

/* --- separator, from theme.json (core/separator -> --rule) ---------------- */
hr {
	border: 0;
	border-block-start: var(--meter) solid var(--rule);
	margin-block: var(--s5);
}
