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

html {
  scroll-behavior: smooth;
  background: var(--surface-ink);
  overscroll-behavior-y: none;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--type-body);
  color: var(--text-dark);
  background: var(--surface);
  line-height: 1.7;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 5;
  opacity: 0.35;
  background-image: var(--texture-grain);
  background-repeat: repeat;
  background-size: var(--texture-tile-size) var(--texture-tile-size);
}

body.dlb-nav-open,
body.dlb-lightbox-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  text-transform: none;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover,
a:focus-visible {
  color: var(--link-hover);
}

.dlb-bracket {
  color: var(--accent-dark);
  font-style: italic;
}

.dlb-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 10000;
  background: #fff;
  color: #000;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  clip-path: inset(50%);
  overflow: hidden;
  white-space: nowrap;
}

.dlb-skip-link:focus,
.dlb-skip-link:focus-visible {
  clip-path: none;
  overflow: visible;
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

a:focus-visible,
button:focus-visible,
.dlb-btn:focus-visible,
.dlb-card:focus-within a:focus-visible,
.dlb-primary-nav__item > a:focus-visible,
.dlb-gallery-item:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  position: absolute !important;
  height: 1px;
  width: 1px;
  overflow: hidden;
}

/* Prose / block editor heading scale */
.dlb-prose h1,
.dlb-prose h1.wp-block-heading {
  font-size: var(--type-h1);
}

.dlb-prose h2,
.dlb-prose h2.wp-block-heading {
  font-size: var(--type-h2);
}

.dlb-prose h3,
.dlb-prose h3.wp-block-heading {
  font-size: var(--type-h3);
}

.dlb-prose h4,
.dlb-prose h4.wp-block-heading {
  font-size: var(--type-h4);
}

.dlb-prose h5,
.dlb-prose h5.wp-block-heading {
  font-size: var(--type-h5);
}

.dlb-prose h6,
.dlb-prose h6.wp-block-heading {
  font-size: var(--type-h6);
}
