/*
Theme Name: Livro Vivo
Theme URI: https://joeri.com.br/
Author: JOERI
Author URI: https://joeri.com.br/
Description: Tema editorial imersivo que transforma as postagens do WordPress em um livro interativo, com capa animada, leitura em duas páginas e efeito de virada de folha.
Version: 1.0.2
Requires at least: 6.0
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: livro-vivo
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready, accessibility-ready
*/

:root {
  --lv-ink: #2c2119;
  --lv-muted: #78695c;
  --lv-page: #f7f0df;
  --lv-page-alt: #efe4cf;
  --lv-cover: #173f35;
  --lv-cover-ink: #fff8e8;
  --lv-accent: #b8904f;
  --lv-stage: #151311;
  --lv-serif: Georgia, "Times New Roman", Times, serif;
  --lv-sans: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --lv-reading-size: 1rem;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--lv-ink);
  background: var(--lv-stage);
  font-family: var(--lv-sans);
  line-height: 1.65;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

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

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

a {
  color: inherit;
  text-decoration-thickness: 0.08em;
  text-underline-offset: 0.16em;
}

a:hover {
  color: var(--lv-accent);
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

:focus-visible {
  outline: 3px solid var(--lv-accent);
  outline-offset: 4px;
}

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

.screen-reader-text:focus {
  background: #fff;
  clip: auto !important;
  clip-path: none;
  color: #111;
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  height: auto;
  left: 1rem;
  padding: 0.85rem 1rem;
  top: 1rem;
  width: auto;
  z-index: 100000;
}

.alignleft {
  float: left;
  margin: 0.35rem 1.5rem 1rem 0;
}

.alignright {
  float: right;
  margin: 0.35rem 0 1rem 1.5rem;
}

.aligncenter {
  clear: both;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.wp-caption,
.gallery-caption {
  color: var(--lv-muted);
  font-size: 0.86rem;
  max-width: 100%;
}

.sticky {
  position: relative;
}

.bypostauthor {
  position: relative;
}

.site-main {
  min-height: calc(100vh - 150px);
}

.lv-empty {
  background: var(--lv-page);
  border-radius: 18px;
  margin: 7vh auto;
  max-width: 720px;
  padding: clamp(2rem, 6vw, 5rem);
  text-align: center;
}

.lv-empty__title {
  font-family: var(--lv-serif);
  font-size: clamp(2rem, 6vw, 4rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.lv-empty .search-form {
  display: flex;
  gap: 0.5rem;
  margin-top: 1.5rem;
}

.lv-empty .search-field {
  border: 1px solid rgba(44, 33, 25, 0.25);
  border-radius: 999px;
  min-width: 0;
  padding: 0.8rem 1rem;
  width: 100%;
}

.lv-empty .search-submit {
  background: var(--lv-cover);
  border: 0;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  padding: 0.8rem 1.25rem;
}

@media (max-width: 600px) {
  .alignleft,
  .alignright {
    float: none;
    margin: 1rem auto;
  }
}
