/* Uncle Brian's theme: the ground the design system stands on.

   The design was built on Tailwind's base reset. WordPress pages get the theme's reset (reset.css)
   instead, so this file gives the theme's own markup the same starting point. Everything is
   scoped to .ub-t ("theme markup"): the header, the footer and the templates in this theme
   carry that class. Text typed into the block editor does not, so it keeps the plain reset.

   Loads after reset.css and before the design system (ds-*.css), so component classes
   always win over these element rules. */

.ub-t, .ub-t *, .ub-t ::before, .ub-t ::after { box-sizing: border-box; }
.ub-t :where(*), .ub-t :where(*)::before, .ub-t :where(*)::after { border-width: 0; border-style: solid; border-color: var(--ub-line); }

/* :where() keeps every rule below at the weight of one class, so a component class from the
   design system (which loads later) always wins, while reset.css's bare element rules still lose. */
.ub-t :where(h1, h2, h3, h4, h5, h6) { margin: 0; font-size: inherit; font-weight: inherit; line-height: inherit; color: inherit; }
.ub-t :where(p, figure, blockquote, dl, dd, pre, fieldset) { margin: 0; }
.ub-t :where(ul, ol) { list-style: none; margin: 0; padding: 0; }
.ub-t :where(img, svg, video, iframe) { display: block; vertical-align: middle; }
.ub-t :where(img, video) { max-width: 100%; height: auto; }
.ub-t :where(a) { color: inherit; text-decoration: none; }
.ub-t :where(b, strong) { font-weight: 700; }
.ub-t :where(label) { display: block; line-height: inherit; vertical-align: baseline; }
.ub-t :where(table) { font-size: inherit; margin: 0; }
.ub-t [hidden] { display: none !important; }

/* reset.css gives every button and field a plain look, for content typed into the editor. Take that back off inside theme markup. */
.ub-t :where(button, [type="button"], [type="submit"]) {
  background: transparent; border: 0; border-radius: 0; color: inherit; font: inherit; letter-spacing: inherit;
  padding: 0; margin: 0; text-align: inherit; white-space: normal; transition: none; -webkit-appearance: none; appearance: none; cursor: pointer;
}
.ub-t :where(button:disabled) { cursor: default; }
.ub-t :where(input, select, textarea) { font: inherit; color: inherit; margin: 0; }

/* Tailwind's screen-reader-only utility, which the design's markup uses throughout. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }

/* The skip link lands here: just after the header, before the page's content. */
.ub-start { display: block; height: 0; outline: 0; }

/* reset.css gives the page a light body until the design system loads. Keep it dark from the first paint. */
html { background: #121113; }
