@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap");

:root {
  --bg: #0c0917;
  --panel: rgba(35, 27, 58, .88);
  --panel2: #241b3b;
  --text: #f7f0f6;
  --muted: #bcb0cf;
  --gold: #ffc779;
  --gold2: #ffdf9e;
  --purple: #8f61ff;
  --pink: #e57bff;
  --line: rgba(182, 145, 255, .22);
  --width: 1100px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background-image: url("../assets/background.jpeg");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  background-attachment: fixed;
  background-color: var(--bg);
  color: var(--text);
  font-family: "DM Sans", sans-serif;
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  background:
    linear-gradient(
      90deg,
      rgba(10, 7, 19, .12),
      rgba(10, 7, 19, .92) 28%,
      rgba(10, 7, 19, .94) 72%,
      rgba(10, 7, 19, .12)
    ),
    url("../assets/cosmic-background.jpg") center/cover no-repeat;
  opacity: .52;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(ellipse at 50% 15%, rgba(88, 49, 157, .18), transparent 45%),
    linear-gradient(180deg, rgba(11, 8, 20, .1), #0c0917 95%);
  pointer-events: none;
}

.space-glow {
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse at 50% 35%, transparent 0, rgba(9, 6, 18, .3) 80%);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 3px;
}

.container {
  width: min(var(--width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  height: 66px;
  padding: 0 max(24px, calc((100vw - var(--width)) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid rgba(192, 141, 255, .18);
  background: rgba(12, 8, 23, .76);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.site-header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 12%;
  right: 12%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--purple), var(--gold), transparent);
  opacity: .8;
}

.brand-logo {
  height: 60px;        /* ajuste conforme o tamanho do header */
  width: auto;
  display: block;
  object-fit: contain;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  color: #271626;
  font-weight: 900;
  font-size: 27px;
  line-height: 1;
  background: linear-gradient(135deg, #fff0bd, #ffb251 60%, #e68a3c);
  border-radius: 11px 11px 14px 8px;
  box-shadow: 0 0 24px #f9a94b66;
  text-shadow: 0 1px #ffeac0;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2vw, 29px);
  font-size: .88rem;
}

.main-nav > a {
  color: #e4ddec;
  transition: color .2s;
}

.main-nav > a:hover,
.footer-links a:hover {
  color: var(--gold);
}

.nav-actions {
  display: flex;
  gap: 9px;
  margin-left: clamp(20px, 8vw, 100px);
}

.btn {
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px 17px;
  font-size: .84rem;
  font-weight: 700;
  transition: transform .2s, box-shadow .2s, background .2s;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-outline {
  background: rgba(15, 10, 27, .65);
  border: 1px solid var(--gold);
  color: #fff0d5;
}

.btn-outline:hover {
  background: #ffc77916;
}

.btn-gold {
  background: linear-gradient(110deg, #ffe2a2, #ffb65f);
  color: #2b1922;
  box-shadow: 0 4px 20px #ffb65f44;
}

.btn-gold:hover {
  box-shadow: 0 6px 26px #ffb65f77;
}

.btn-large {
  padding: 11px 22px;
  font-size: .9rem;
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 9px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 4px;
  background: var(--gold);
  border-radius: 2px;
}

.hero {
  min-height: 278px;
  display: grid;
  grid-template-columns: 1fr .9fr;
  align-items: center;
  gap: 20px;
  padding: 34px 15px 10px;
}

.hero-copy {
  position: relative;
  z-index: 1;
  max-width: 540px;
}

@font-face {
  font-family: 'Sweet Dreams Silhouette';
  src: url('/assets/fonts/SweetDreamsSilhouette.woff2') format('woff2'),
       url('/assets/fonts/SweetDreamsSilhouette.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* Eyebrow — display decorativa */
.eyebrow {
  font-family: 'Sweet Dreams Silhouette', cursive;
  color: var(--gold);
  letter-spacing: .14em;
  font-size: .95rem;
  font-weight: normal;
  margin: 0 0 10px;
}

/* Título principal — fonte legível */
.fonts {
  font-family: 'Playfair Display', Georgia, serif; /* ou a serifada que você já usa */
  font-size: clamp(2rem, 5vw, 3.5rem);
  line-height: 1.15;
  font-weight: 700;
  margin: 0 0 20px;
  color: #fff; /* ajuste conforme seu tema */
}

.fonts br {
  /* controla o espaçamento da quebra de linha */
  content: "";
  display: block;
  margin-bottom: .1em;
}

.hero h1,
.genre-intro h2,
.community-copy h2 {
  font-family: "Playfair Display", Georgia, serif;
  letter-spacing: -.035em;
}

.hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.12;
  margin: 0 0 13px;
  color: #f4e9f5;
}
.heading-icon-img {
  width: 24px;          /* ajuste conforme o tamanho desejado */
  height: 24px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 8px;    /* espaço entre ícone e texto */
  display: inline-block;
}
.hero-description {
  font-size: .91rem;
  color: #d1c7dc;
  max-width: 480px;
  margin: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.hero-art {
  position: relative;
  min-height: 270px;
  display: grid;
  place-items: center;
}

.reader-art {
  width: min(100%, 390px);
  max-height: 290px;
  object-fit: contain;
  filter: drop-shadow(0 0 20px #8e5cff55);
  mix-blend-mode: screen;
  position: relative;
  z-index: 1;
}

.orbit {
  position: absolute;
  border: 1px solid #a98aff40;
  border-radius: 50%;
  width: 65%;
  height: 40%;
  transform: rotate(-17deg);
  filter: drop-shadow(0 0 9px #9e65ff);
}

.orbit-two {
  width: 55%;
  height: 33%;
  transform: rotate(19deg);
  border-color: #ffb86633;
}

.featured-section {
  padding: 4px 0 24px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 8px;
  padding: 0 3px;
}

.section-heading h2 {
  font: 700 1.35rem "Playfair Display", serif;
  margin: 0;
}

.heading-icon {
  color: var(--gold);
  font-size: 1.6rem;
  margin-right: 8px;
}

.carousel-controls {
  display: flex;
  gap: 7px;
}

.round-btn {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: #211735;
  color: #fff;
  font-size: 1.35rem;
  cursor: pointer;
  transition: background .2s, border .2s;
}

.round-btn:hover {
  background: #513a7a;
  border-color: var(--purple);
}

.feature-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: 14px;
}

.shelf-card {
  min-width: 0;
  position: relative;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(140deg, rgba(37, 29, 61, .94), rgba(20, 15, 36, .94));
  padding: 10px;
  box-shadow: inset 0 1px #ffffff08, 0 12px 32px #0002;
}

.book-track,
.fanfic-track {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-behavior: smooth;
}

.book-track::-webkit-scrollbar,
.fanfic-track::-webkit-scrollbar {
  display: none;
}

.book-cover {
  position: relative;
  flex: 1 0 22%;
  min-width: 72px;
  height: 174px;
  border-radius: 8px;
  overflow: hidden;
  background: #171326;
  border: 1px solid #ffffff15;
}

.book-cover img,
.fanfic-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform .35s;
}

.book-cover:hover img,
.fanfic-cover:hover img {
  transform: scale(1.06);
}

.book-cover::after,
.fanfic-cover::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(9, 5, 16, .94));
}

.book-cover span,
.fanfic-cover span {
  position: absolute;
  z-index: 1;
  left: 7px;
  right: 7px;
  bottom: 8px;
  text-align: center;
  font: 700 .75rem/1.15 "Playfair Display", serif;
  text-transform: uppercase;
  text-shadow: 0 2px 5px #000;
}

.shelf-title {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 10px;
}

.shelf-title h3 {
  margin: 0;
  font: 700 1rem "Playfair Display", serif;
}

.pink-icon {
  color: var(--pink);
  font-size: 1.4rem;
}

.fanfic-cover {
  position: relative;
  flex: 1 0 16%;
  min-width: 53px;
  height: 130px;
  border-radius: 7px;
  overflow: hidden;
  border: 1px solid #9e5dff55;
  background: #171326;
}

.fanfic-cover span {
  font-size: .64rem;
}

.fanfic-next {
  position: absolute;
  right: -12px;
  top: 48%;
  z-index: 2;
  width: 35px;
  height: 35px;
  background: #26183f;
  border-color: #8e64e8;
}

.genres-section {
  padding: 20px 8px 25px;
}

.genre-intro {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  min-height: 100px;
}

.genre-intro h2 {
  font-size: 1.55rem;
  line-height: 1.13;
  color: var(--gold2);
  margin: 0;
}

.genre-intro p {
  color: var(--muted);
  font-size: .8rem;
  margin: 8px 0 0;
}

.people-art {
  width: 180px;
  height: 110px;
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 12px #8859ff33);
}

.genre-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.genre-card {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 9px;
  background: linear-gradient(110deg, rgba(41, 30, 68, .95), rgba(31, 25, 53, .94));
  color: #f9e9d0;
  cursor: pointer;
  transition: transform .2s, border .2s, background .2s;
}

.genre-card span {
  font-size: 1.4rem;
  color: var(--gold);
  width: 24px;
  text-align: center;
}

.genre-card:hover,
.genre-card.active {
  transform: translateY(-2px);
  border-color: #d3a1ff75;
  background: linear-gradient(110deg, #3d2b61, #282044);
}

.genre-feedback {
  min-height: 18px;
  color: var(--gold);
  font-size: .8rem;
  margin: 8px 0 0;
}

.community-section {
  display: grid;
  grid-template-columns: 1fr .95fr;
  align-items: center;
  gap: 40px;
  padding: 12px 15px 25px;
}

.community-copy h2 {
  font-size: 1.75rem;
  line-height: 1.15;
  margin: 0 0 10px;
}

.community-copy h2 span {
  font-size: 1.05rem;
  color: var(--gold);
}

.community-copy > p:not(.eyebrow) {
  font-size: .83rem;
  color: var(--muted);
  max-width: 450px;
  margin: 0 0 18px;
}

.community-visual {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 180px;
}

.community-visual > img {
  width: 100%;
  max-width: 600px;      /* era 400px */
  max-height: 320px;     /* era 200px */
  object-fit: contain;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 20px #8e5cff66); /* sombra levemente maior e mais visível */
}

.community-tag {
  position: absolute;
  top: 3px;
  right: 5%;
  padding: 7px 13px;
  border-radius: 9px;
  background: #21163edb;
  border: 1px solid #a98aff55;
  box-shadow: 0 0 20px #8e5cff33;
  font-size: .8rem;
}

.community-tag b {
  color: #fff;
  font-size: 1.2rem;
  margin-right: 7px;
}

.site-footer {
  width: min(var(--width), calc(100% - 40px));
  margin: 0 auto;
  padding: 19px 8px 24px;
  border-top: 1px solid #a98aff3d;
  display: flex;
  align-items: center;
  gap: 28px;
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8f61ff, #ffbc69, transparent);
}

.footer-brand .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 23px;
}

.footer-links {
  display: flex;
  gap: 20px;
  align-items: center;
  flex: 1;
  color: #c6b9d7;
  font-size: .75rem;
}

.social-links {
  display: flex;
  gap: 13px;
  color: #d4c4ee;
}

.social-links a {
  font-size: 1rem;
}

.social-links a:hover {
  color: var(--gold);
}

.copyright {
  font-size: .64rem;
  color: #a99bbd;
  white-space: nowrap;
  margin: 0;
}

.auth-modal {
  width: min(420px, calc(100% - 30px));
  border: 1px solid #8f61ff66;
  border-radius: 20px;
  background: linear-gradient(145deg, #211735, #100c1e);
  color: var(--text);
  padding: 30px;
  box-shadow: 0 25px 100px #000b;
}

.auth-modal::backdrop {
  background: #05030bbf;
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  right: 14px;
  top: 10px;
  border: 0;
  background: transparent;
  color: #d7c9e7;
  font-size: 1.8rem;
  cursor: pointer;
}

.modal-brand {
  display: flex;
  justify-content: center;
}

.modal-brand .brand-mark {
  width: 48px;
  height: 48px;
  font-size: 30px;
}

.auth-modal h2 {
  text-align: center;
  font: 700 1.6rem "Playfair Display", serif;
  margin: 15px 0 5px;
}

.auth-modal > p {
  text-align: center;
  color: var(--muted);
  font-size: .84rem;
}

.auth-modal form {
  display: grid;
  gap: 8px;
  margin-top: 22px;
}

.auth-modal label {
  font-size: .8rem;
  color: #e3d8ef;
}

.auth-modal input {
  width: 100%;
  border: 1px solid #8f61ff55;
  background: #130e22;
  color: white;
  border-radius: 9px;
  padding: 12px 13px;
  margin-bottom: 6px;
}

.modal-submit {
  margin-top: 8px;
  width: 100%;
  padding: 12px;
}

.auth-modal .modal-note {
  font-size: .72rem;
  line-height: 1.45;
}

.modal-switch button {
  border: 0;
  background: transparent;
  color: var(--gold);
  font-weight: 700;
  cursor: pointer;
}

.auth-modal .form-message {
  color: var(--gold);
  min-height: 20px;
  margin-bottom: 0;
}

.toast {
  position: fixed;
  bottom: 22px;
  left: 50%;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 18px;
  border-radius: 12px;
  background: #2c2046;
  border: 1px solid #a98aff66;
  box-shadow: 0 10px 35px #0008;
  color: #fff;
  z-index: 50;
  transition: opacity .2s, transform .2s;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* ============================================
   MOBILE PEQUENO: 360px – 480px
   ============================================ */
@media (max-width: 480px) {
  .site-header {
    height: 58px;
    padding: 0 14px;
  }

  .brand-mark {
    width: 36px;
    height: 36px;
    font-size: 22px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 58px;
    padding: 12px 16px 18px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: #100b1df7;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px #0005;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a {
    padding: 10px 2px;
    font-size: .92rem;
  }

  .nav-actions {
    margin: 10px 0 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }

  .nav-actions .btn {
    width: 100%;
  }

  .container {
    width: calc(100% - 24px);
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 26px 2px 10px;
    gap: 0;
    min-height: auto;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2rem;
    line-height: 1.15;
  }

  .hero-description {
    font-size: .85rem;
  }

  .hero-actions {
    flex-direction: column;
    gap: 10px;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-art {
    min-height: 170px;
    margin-top: 10px;
  }

  .reader-art {
    max-height: 200px;
    width: 70%;
  }

  .section-heading h2 {
    font-size: 1.1rem;
  }

  .heading-icon {
    font-size: 1.3rem;
    margin-right: 5px;
  }

  .round-btn {
    width: 28px;
    height: 28px;
    font-size: 1.15rem;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .shelf-card {
    padding: 8px;
  }

  .book-cover {
    flex-basis: 42%;
    height: 160px;
    min-width: 60px;
  }

  .book-cover span {
    font-size: .68rem;
  }

  .fanfic-cover {
    flex-basis: 32%;
    height: 130px;
    min-width: 48px;
  }

  .fanfic-cover span {
    font-size: .58rem;
  }

  .fanfic-next {
    width: 30px;
    height: 30px;
    right: -8px;
  }

  .genres-section {
    padding: 16px 0;
  }

  .genre-intro {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    gap: 8px;
    min-height: auto;
  }

  .genre-intro h2 {
    font-size: 1.2rem;
  }

  .genre-intro p {
    max-width: 100%;
    font-size: .75rem;
  }

  .people-art {
    width: 110px;
    height: 80px;
    order: -1;
  }

  .genre-grid {
    grid-template-columns: 1fr 1fr;
    gap: 7px;
  }

  .genre-card {
    padding: 9px 10px;
    gap: 6px;
    font-size: .78rem;
    min-height: 44px;
  }

  .genre-card span {
    font-size: 1.1rem;
    width: 20px;
  }

  .community-section {
    display: grid;
    grid-template-columns: 1fr 1.15fr;   /* dá MAIS espaço ao visual */
    align-items: center;
    gap: 40px;
    padding: 12px 15px 25px;
  }

  .community-copy h2 {
    font-size: 1.4rem;
  }

  .community-copy h2 span {
    font-size: .95rem;
  }

  .community-copy > p:not(.eyebrow) {
    font-size: .8rem;
  }

  .community-visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 240px;   /* acompanha o novo tamanho da imagem */
  }

  .community-visual > img {
    width: 100%;
    max-width: 600px;
    max-height: 360px;   /* sobe junto com min-height */
    object-fit: contain;
    mix-blend-mode: screen;
    filter: drop-shadow(0 0 22px #8e5cff77);
  }

  .community-tag {
    right: 2%;
    top: -4px;
    padding: 6px 10px;
    font-size: .72rem;
  }

  .community-tag b {
    font-size: 1rem;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 14px;
    padding: 16px 2px;
  }

  .footer-brand .brand-mark {
    width: 32px;
    height: 32px;
    font-size: 20px;
  }

  .footer-links {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 10px 14px;
    font-size: .7rem;
  }

  .social-links {
    margin-left: auto;
    gap: 10px;
  }

  .social-links a {
    font-size: .9rem;
  }

  .copyright {
    flex-basis: 100%;
    white-space: normal;
    font-size: .6rem;
  }

  .auth-modal {
    padding: 22px 18px;
    border-radius: 16px;
  }

  .auth-modal h2 {
    font-size: 1.35rem;
  }

  .modal-brand .brand-mark {
    width: 42px;
    height: 42px;
    font-size: 26px;
  }

  .toast {
    left: 12px;
    right: 12px;
    transform: translateY(20px);
    text-align: center;
  }

  .toast.show {
    transform: translateY(0);
  }
}

/* ============================================
   MOBILE GRANDE: 481px – 767px
   ============================================ */
@media (min-width: 481px) and (max-width: 767px) {
  .site-header {
    height: 60px;
    padding: 0 18px;
  }

  .menu-toggle {
    display: block;
  }

  .main-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 60px;
    padding: 14px 20px 20px;
    align-items: stretch;
    flex-direction: column;
    gap: 0;
    background: #100b1df7;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px #0005;
  }

  .main-nav.open {
    display: flex;
  }

  .main-nav > a {
    padding: 11px 3px;
    font-size: .95rem;
  }

  .nav-actions {
    margin: 12px 0 0;
    display: flex;
  }

  .nav-actions .btn {
    flex: 1;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 32px 2px 12px;
    gap: 0;
  }

  .hero-copy {
    max-width: 100%;
  }

  .hero h1 {
    font-size: 2.3rem;
  }

  .hero-art {
    min-height: 200px;
  }

  .reader-art {
    max-height: 230px;
    width: 72%;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .book-cover {
    flex-basis: 36%;
    height: 180px;
  }

  .fanfic-cover {
    flex-basis: 27%;
    height: 145px;
  }

  .genre-intro {
    justify-content: space-between;
    gap: 12px;
  }

  .genre-intro h2 {
    font-size: 1.35rem;
  }

  .genre-intro p {
    max-width: 240px;
  }

  .people-art {
    width: 130px;
    height: 100px;
  }

  .genre-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .genre-card {
    padding: 10px 12px;
    gap: 8px;
    font-size: .83rem;
  }

  .community-section {
    grid-template-columns: 1fr;
    padding: 18px 2px 26px;
    gap: 0;
  }

  .community-copy h2 {
    font-size: 1.6rem;
  }

  .community-visual {
    min-height: 160px;
  }

  .community-visual > img {
    max-height: 175px;
  }

  .site-footer {
    flex-wrap: wrap;
    gap: 16px;
    padding: 18px 2px;
  }

  .footer-links {
    order: 3;
    flex-basis: 100%;
    flex-wrap: wrap;
    gap: 12px 18px;
  }

  .social-links {
    margin-left: auto;
  }

  .copyright {
    flex-basis: 100%;
    white-space: normal;
  }

  .container {
    width: calc(100% - 32px);
  }
}

/* ============================================
   TABLET: 768px – 992px
   ============================================ */
@media (min-width: 768px) and (max-width: 992px) {
  .site-header {
    padding: 0 28px;
    height: 64px;
  }

  .main-nav {
    gap: 16px;
    font-size: .85rem;
  }

  .nav-actions {
    margin-left: 16px;
  }

  .hero {
    grid-template-columns: 1fr .85fr;
    gap: 16px;
    padding: 32px 10px 12px;
  }

  .hero h1 {
    font-size: clamp(2rem, 4.5vw, 2.6rem);
  }

  .hero-art {
    min-height: 240px;
  }

  .reader-art {
    max-height: 250px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .book-cover {
    flex-basis: 26%;
    height: 190px;
  }

  .fanfic-cover {
    flex-basis: 18%;
    height: 145px;
  }

  .genre-intro {
    gap: 24px;
  }

  .genre-intro h2 {
    font-size: 1.45rem;
  }

  .people-art {
    width: 150px;
    height: 100px;
  }

  .genre-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 9px;
  }

  .community-section {
    grid-template-columns: 1fr .9fr;
    gap: 28px;
  }

  .community-copy h2 {
    font-size: 1.6rem;
  }

  .community-visual > img {
    max-height: 175px;
  }

  .site-footer {
    gap: 22px;
  }

  .footer-links {
    gap: 16px;
  }

  .container {
    width: calc(100% - 48px);
  }
}

/* ============================================
   DESKTOP PADRÃO: 993px – 1399px
   (cobre 1200px – 1400px)
   ============================================ */
@media (min-width: 993px) and (max-width: 1399px) {
  .hero {
    padding: 36px 15px 10px;
  }

  .book-cover {
    height: 178px;
  }

  .fanfic-cover {
    height: 132px;
  }

  .genre-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ============================================
   MONITORES GRANDES: 1400px+
   (inclui 1920px ou mais)
   ============================================ */
@media (min-width: 1400px) {
  :root {
    --width: 1240px;
  }

  .hero {
    padding-top: 46px;
    gap: 32px;
  }

  .hero h1 {
    font-size: 3.3rem;
  }

  .hero-description {
    font-size: 1rem;
    max-width: 540px;
  }

  .reader-art {
    max-height: 320px;
  }

  .hero-art {
    min-height: 300px;
  }

  .book-cover {
    height: 200px;
  }

  .fanfic-cover {
    height: 150px;
  }

  .section-heading h2 {
    font-size: 1.55rem;
  }

  .genre-intro h2 {
    font-size: 1.75rem;
  }

  .genre-grid {
    gap: 12px;
  }

  .genre-card {
    padding: 12px 18px;
    font-size: .9rem;
  }

  .community-copy h2 {
    font-size: 2rem;
  }

  .community-visual > img {
    max-width: 380px;
    max-height: 220px;
  }

  .site-footer {
    gap: 32px;
  }

  .footer-links {
    gap: 24px;
    font-size: .8rem;
  }
}

/* ============================================
   ACESSIBILIDADE: MOVIMENTO REDUZIDO
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition: none !important;
  }
}