/*
Theme Name: MemoryRevive
Description: A warm, accessible block theme for the MemoryRevive family photograph restoration service.
Author: MemoryRevive
Version: 1.1.1
Requires at least: 6.6
Requires PHP: 8.2
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: memory-revive
Tags: block-patterns, block-styles, full-site-editing, accessibility-ready, e-commerce, one-column, wide-blocks
*/

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 20rem;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid #b46024;
  outline-offset: 3px;
}

::selection {
  background: #d9bb82;
  color: #211f1a;
}

.screen-reader-text {
  clip: rect(1px, 1px, 1px, 1px);
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

.screen-reader-text:focus {
  clip: auto !important;
  clip-path: none;
  height: auto;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  top: 0.75rem;
  width: auto;
  z-index: 100000;
}

.skip-link {
  background: #f8f3ea;
  border: 2px solid #234338;
  border-radius: 0.25rem;
  color: #234338;
  font-weight: 700;
  left: 1rem;
  padding: 0.75rem 1rem;
  position: fixed;
  top: 1rem;
  z-index: 100000;
}

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

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