/*
Theme Name: Metatron Blog
Theme URI: https://metatron.blog/
Author: Metatron Studio
Author URI: https://metatron.blog/
Description: Tema editorial multisite premium, responsivo e acessível para a rede Metatron.
Version: 3.0.0
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: metatron-blog
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, wide-blocks
*/

/**
 * Fallback essencial.
 *
 * A apresentação completa vive em assets/css/main.css e no stylesheet do
 * blog atual. Estas regras mantêm o documento legível caso um asset falhe.
 */
:root {
  color-scheme: light;
  --metatron-fallback-bg: #ffffff;
  --metatron-fallback-text: #172033;
  --metatron-fallback-link: #075985;
  --metatron-fallback-focus: #7c2d12;
}

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

html {
  font-size: 100%;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--metatron-fallback-text);
  background: var(--metatron-fallback-bg);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.7;
  text-rendering: optimizeLegibility;
}

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

a {
  color: var(--metatron-fallback-link);
  text-decoration-thickness: 0.12em;
  text-underline-offset: 0.18em;
}

:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 3px solid #ffffff;
  outline-offset: 3px;
  box-shadow: 0 0 0 6px var(--metatron-fallback-focus);
}

.screen-reader-text {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.screen-reader-text:focus {
  z-index: 100000;
  top: 0.75rem;
  left: 0.75rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  clip: auto !important;
  color: #ffffff;
  background: #172033;
  white-space: normal;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
