/*
 * Element defaults. Deliberately sparse: theme.json's `styles` object is the
 * right home for anything the block editor should also know about.
 */

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  text-rendering: optimizelegibility;
  -webkit-font-smoothing: antialiased;
  background: url("../assets/background-tile.png") repeat;
}

img,
video {
  max-width: 100%;
  height: auto;
}

:where(a) {
  color: inherit;
}

:where(button, input, select, textarea) {
  font: inherit;
}

:focus-visible {
  outline: 2px solid currentcolor;
  outline-offset: 2px;
}

/*
 * The wrapper: the white panel every template (bar the front page) puts
 * its content in, over the tiled body background. It is a Group in the
 * templates, styled here by class rather than given a background colour in
 * the markup, so colour stays out of theme.json's presets.
 *
 * Not aligned, so the constrained <main> holds it to contentSize, and wide
 * blocks inside stop at the panel. As a nested constrained layout, core
 * zeroes its inline padding; the root gutter is put back here so `alignfull`
 * children, which pull out by exactly that much, land on the panel's edges.
 * The doubled class outranks core's rule regardless of stylesheet order.
 */
.wp-block-group.wrapper {
  padding-block: var(--wp--preset--spacing--50);
  padding-inline: var(--wp--style--root--padding-left, clamp(1rem, 4vw, 2.5rem))
    var(--wp--style--root--padding-right, clamp(1rem, 4vw, 2.5rem));
  background-color: var(--color-white);
  border: 1px solid #e6e6e6;
  border-bottom-width: 3px;
}

/* WordPress's own accessibility helper, which core markup expects to exist. */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.screen-reader-text:focus {
  position: static;
  width: auto;
  height: auto;
  margin: 0;
  overflow: visible;
  clip-path: none;
  white-space: normal;
}

[hidden] {
  display: none !important;
}
