/*!
* Theme Name: Pomni
* Author: Leonardo Furlanis
* Author URI: https://leonardofurlanis.it
* Tags: full-site-editing, block-patterns
* Text Domain: pomni
* Requires at least: 6.4
* Requires PHP: 8.3
* Tested up to: 7.0
* Version: 1.0.0
*/
* {
  text-rendering: optimizeLegibility;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
  scrollbar-color: var(--wp--preset--color--primary) var(--wp--preset--color--neutral);
  scrollbar-width: thin;
  scroll-margin-top: 180px;
}
*::-webkit-scrollbar {
  width: 2px;
}
*::-webkit-scrollbar-thumb {
  background: var(--wp--preset--color--primary);
}
*::-webkit-scrollbar-track {
  background: var(--wp--preset--color--neutral);
}
*:focus {
  outline: dotted 2px var(--wp--preset--color--neutral);
  outline-offset: 3px;
}

/* Styles intended only for the front.*/
html {
  scroll-behavior: smooth;
}

@media screen and (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
pre,
li,
a {
  word-wrap: break-word;
}

pre {
  white-space: pre-wrap;
}

p:empty {
  display: none;
}

a {
  text-underline-offset: 2px;
  text-decoration-thickness: 1px;
}
a:hover {
  text-underline-offset: 2px;
  text-decoration-thickness: 3px;
}

:root :where(.wp-block-post-content) {
  margin-top: 0;
  margin-bottom: 0;
}